Feature/chat message search#574
Draft
annaneliaa wants to merge 4 commits into
Draft
Conversation
… tests Signed-off-by: Anna Visman <a.c.visman@student.tudelft.nl>
Signed-off-by: Anna Visman <a.c.visman@student.tudelft.nl>
Signed-off-by: Anna Visman <a.c.visman@student.tudelft.nl>
50f425a to
002a45d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added
MessageMapper::searchMessages()a method to query messages across all sessions from a user sessions. It uses case-insensitive LIKE '%query%' search. The messages table is joined against the sessions table to ensure user scoping with the user id. A limitation here is that search does not use a database index on the content column, so a full table scan is performed. On large instances with a lot of message this can become slow.ChatService::searchMessages()a method to orchestrate the search. It returns matching messages with their session IDsChattyLLMController::searchMessages()new GET /chat/search?query= OCS endpointappinfo/routes.php