Skip to content
Snippets Groups Projects
Commit 3cf9948b authored by Erik Johnston's avatar Erik Johnston
Browse files

Add docstring

parent 73260ad0
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,17 @@ from synapse.storage.engines import PostgresEngine
class SearchStore(SQLBaseStore):
@defer.inlineCallbacks
def search_msgs(self, room_ids, search_term, keys):
"""Performs a full text search over events with give keys.
Args:
room_ids (list): List of room ids to search in
search_term (str): Search term to search for
keys (list): List of keys to search in, currently supports
"content.body", "content.name", "content.body"
Returns:
2-tuple of (dict event_id -> rank, dict event_id -> event)
"""
clauses = []
args = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment