summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-10-10 17:24:41 +0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-10-10 17:24:41 +0200
commit65991e5b7afe0a470d12a2a1fa97f998515c9a43 (patch)
tree78be26283713c9dce7a3410f1fbbeba6d59d779a
parent622631a2007c60a4bf34ca1ce0713b339180e435 (diff)
Increasing results limit
-rw-r--r--service/pixelated/adapter/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/search.py b/service/pixelated/adapter/search.py
index e68e8111..3697dfe1 100644
--- a/service/pixelated/adapter/search.py
+++ b/service/pixelated/adapter/search.py
@@ -60,7 +60,7 @@ class SearchEngine(object):
query = query.replace('in:all', '*')
with self._index.searcher() as searcher:
query = QueryParser('body', self._index.schema).parse(query)
- results = searcher.search(query)
+ results = searcher.search(query, limit=100)
return [mail['ident'] for mail in results]
def remove_from_index(self, mail_id):