mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-27 01:56:59 -05:00
Typing
This commit is contained in:
parent
33646eb000
commit
f2d698cb52
@ -22,13 +22,13 @@ from synapse.storage.engines import PostgresEngine, Sqlite3Engine
|
|||||||
class SearchStore(SQLBaseStore):
|
class SearchStore(SQLBaseStore):
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def search_msgs(self, room_ids, search_term, keys):
|
def search_msgs(self, room_ids, search_term, keys):
|
||||||
"""Performs a full text search over events with give keys.
|
"""Performs a full text search over events with given keys.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
room_ids (list): List of room ids to search in
|
room_ids (list): List of room ids to search in
|
||||||
search_term (str): Search term to search for
|
search_term (str): Search term to search for
|
||||||
keys (list): List of keys to search in, currently supports
|
keys (list): List of keys to search in, currently supports
|
||||||
"content.body", "content.name", "content.body"
|
"content.body", "content.name", "content.topic"
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
2-tuple of (dict event_id -> rank, dict event_id -> event)
|
2-tuple of (dict event_id -> rank, dict event_id -> event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user