Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW] Global message search (beta: disabled by default) #9687

Merged
merged 9 commits into from
Feb 17, 2018

Conversation

rodrigok
Copy link
Member

@rodrigok rodrigok commented Feb 12, 2018

Description

It adds a new setting to enable the global search beta feature allowing users to search messages using the contextual bar (right bar) and choose to receive results from the current room only or from all rooms that he already joined.

Settings

  • Message_GlobalSearch: Boolean (default false)

@RocketChat/core

Based on #7628 and #7274 thanks @cyberhck and @savikko

Closes #7628
Closes #7274
Closes #1615

screen shot 2018-02-12 at 11 52 56 am

image

@karlprieb we need to improve the checkbox ui at search contextual bar

cyberhck and others added 8 commits June 17, 2017 09:58
# Conflicts:
#	packages/rocketchat-i18n/i18n/en.i18n.json
#	packages/rocketchat-ui-flextab/client/tabs/messageSearch.html
#	packages/rocketchat-ui-flextab/client/tabs/messageSearch.js
#	packages/rocketchat-ui-message/client/message.js
#	server/methods/messageSearch.js
@rodrigok rodrigok added this to the 0.62.0 milestone Feb 12, 2018
@engelgabriel engelgabriel temporarily deployed to rocket-chat-pr-9687 February 12, 2018 13:59 Inactive
@meghalagrawal
Copy link

Can I work on this issue?

@geekgonecrazy
Copy link
Contributor

What about combining this with #8714 ?

Seems like proper implementation here would be to plug this up as providers.

Default provider of search being this one. But being able to plug in external provider would be the perfect solution.

It seems like we really should do this properly instead of just merging alone? Or if we merge alone we need to make sure and let everyone know what are plans are?

@RocketChat/core thoughts?

Can I work on this issue?
@meghalagrawal this is a PR not an issue :)

@cyberhck
Copy link
Contributor

wow, the UI looks million times better than what I saw last time. (again, I'm poor in design)

@rodrigok
Copy link
Member Author

@geekgonecrazy would be awesome for a future implementation, the idea here is to have a working solution to solve some team issues while trying to find the correct message, wasn't developed to be the best option. But I'd lide to see a better implementation in the future to improve this.

@cyberhck
Copy link
Contributor

cyberhck commented Feb 15, 2018

In the future, yes, the provider option should be the way to go, maybe one wants different types of search, maybe someone might want to index stuff on elastic search, and maybe keywords and stuff, provider should be quite good. But for now since this is a highly asked feature, I think it's a good idea to get this first, but it's upto maintainers, so.

@geekgonecrazy
Copy link
Contributor

Will be having conversations to attempt the provider approach after this PR. 👍 might as well include this behind beta flag and get some bugs found, reported and fixed.

@tkurz
Copy link
Contributor

tkurz commented Feb 16, 2018

Hi all! As you might already heard from @mrsimpson we are currently working on a search provider concept for Rocketchat. As we are working with solr for a long time, we already implemented a search provider for solr (which we now slightly adapt to fit the provider concept). You can see the current status in a nice gif (thx @mrsimpson) here redlink-gmbh/chatpal-search#14 (comment). We will have a alpha version of the concept mid of next week and would looking forward to present and discuss it with you!

@theorenck theorenck assigned rodrigok and unassigned karlprieb Feb 16, 2018
if (window.matchMedia('(max-width: 500px)').matches) {
Template.instance().tabBar.close();
}

RoomHistoryManager.getSurroundingMessages(message, 50);
window.setTimeout(() => {
RoomHistoryManager.getSurroundingMessages(message, 50);
Copy link
Contributor

@cyberhck cyberhck Feb 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see this is still there, I was trying so hard to find if there's any other way than setting a timeout, looks like FlowRouter.goToRoomById doesn't return any promise nor does it have callbacks

@rodrigok rodrigok mentioned this pull request Feb 28, 2018
@tkurz
Copy link
Contributor

tkurz commented Mar 14, 2018

Hi guys!
As you might have seen I create a pull request #10110 which integrates a provider concept liked discussed in #8714 with your search. I would be great if you could have a closer look at it!
I hope you like the approach!

@paulharris
Copy link

Surely this feature should be finished properly and enabled by default by now?

@eishta-christy
Copy link

Hi, I'm new here, and very much interested on the developing of the global search in Rocket.Chat. My team is using rocket chat and for the short period of time it was available, it was really helpful! @tkurz could you help me to understand the current state?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Global search across channels