From 65991e5b7afe0a470d12a2a1fa97f998515c9a43 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Fri, 10 Oct 2014 17:24:41 +0200 Subject: Increasing results limit --- service/pixelated/adapter/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/pixelated') 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): -- cgit v1.2.3