mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-09-16 22:44:36 -04:00
Merge pull request #350 from matrix-org/erikj/search
Implement pagination, order by and groups in search
This commit is contained in:
commit
6be1b4b113
3 changed files with 288 additions and 36 deletions
|
@ -600,7 +600,8 @@ class SearchRestServlet(ClientV1RestServlet):
|
|||
|
||||
content = _parse_json(request)
|
||||
|
||||
results = yield self.handlers.search_handler.search(auth_user, content)
|
||||
batch = request.args.get("next_batch", [None])[0]
|
||||
results = yield self.handlers.search_handler.search(auth_user, content, batch)
|
||||
|
||||
defer.returnValue((200, results))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue