-
Notifications
You must be signed in to change notification settings - Fork 4
Feature Request: Conversation-independent search within Rocket.Chat #62
Comments
User Story Acceptance Criteria:
@mrsimpson Should we move this issue to our Rocket.Chat branch? |
We can provide such a service based on the conversation index. We will need to wrap Solr with a Webservice as we need to add FilterQueries to parsed searches to enforce access restrictions. |
Allow conversation-independent search (closes #62)
Ok, I did some digging in the code in order to get an idea on how to override the default search like discussed yesterday. By overriding the default behaviour we would be able to inject our search results. However this seems to be quite complicated caused by the weird implementation. There aren't any good locations in the code where i can hook into. Nevertheless, this analysis yields two possible ways to implement the search:
Which way should I go, @mrsimpson? |
@lobo87 I'd go for a dedicated hook which should be provided in Rocket.Chat Core (we should create an issue for that and contribute the hook) in order to go for approach 1). |
@mrsimpson so if i get you right, you want to create a similar method "spotlight" which does the same as the core method plus injecting custom search results. This method will the be called instead of the spotlight one? That means replacing As far as I have seen, Rocket.Chat does not provide any callback for the search, we could hook onto. Or do you want me to create a new hook and call that during search phase so we can hook to? |
I think having custom hooks for the search (searchStart, beforeClientSearch, afterClientSearch, beforeServerSearch, afterServerSearch, searchComplete) would be the best way. I like this proposal. This way we can hook into at any place during the search and modify the results. This however means we need to modify the Rocket.Chat core. |
@lobo87 Modifying Rocket.Chat-Core is fine as long as we can contribute it back. For that, we need to create an issue specifying the needs. I've quickly done that: RocketChat/feature-requests#745 . |
alright, i'll do that. |
Why do you think we'll need multiple callbacks? See https://github.com/RocketChat/Rocket.Chat/blob/develop/packages/rocketchat-lib/server/functions/sendMessage.js#L55-L59 for some hook-definition-sample. |
i thought it would be a good idea to have more hooks in order to be more flexible. In this case it is propaby sufficient to implement just one. |
@lobo87 added you to our Rocket.Chat fork (https://github.com/assistify/Rocket.Chat/). If you start the PR towards Rocket.Chat from there, we can contribute to that as well |
Please move the discussion about the search-integration into rocket.chat to assistify/Rocket.Chat#76. |
Situation:
Users ask questions, discuss possible solutions and find the right answer. After a typical question/answer process, the users finish the conversation and the conversation is stored in Smarti. The system deletes the users' subscriptions and the conversation disappears.
Later, a user might remind that there was a conversation, which could help in a new situation. The user likes to look up the conversation. However, it is hard to find the right one, because Smarti and Rocket.Chat do not provide a conversation-independant search.
Possible Solution:
The text was updated successfully, but these errors were encountered: