summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-11-05 14:34:37 +0000
committerErik Johnston <erik@matrix.org>2015-11-05 15:04:08 +0000
commit7301e05122e07f6513916e8a35bf05581de6521d (patch)
tree6a6b196c4cc111abc593e6b472dfe276f0e0e522 /synapse/rest
parentImplement order and group by (diff)
downloadsynapse-7301e05122e07f6513916e8a35bf05581de6521d.tar.xz
Implement basic pagination for search results
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v1/room.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 2dcaee86cd..8e28f12d29 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -601,7 +601,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))