Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Support search expression (currently limited) #2826

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions synapse/handlers/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def search(self, user, content, batch=None):

if order_by == "rank":
search_result = yield self.store.search_msgs(
room_ids, search_term, keys
user.to_string(), room_ids, search_term, keys
)

count = search_result["count"]
Expand Down Expand Up @@ -205,7 +205,7 @@ def search(self, user, content, batch=None):
while len(room_events) < search_filter.limit() and i < 5:
i += 1
search_result = yield self.store.search_rooms(
room_ids, search_term, keys, search_filter.limit() * 2,
user.to_string(), room_ids, search_term, keys, search_filter.limit() * 2,
pagination_token=pagination_token,
)

Expand Down
Loading