diff options
Diffstat (limited to 'service/pixelated')
-rw-r--r-- | service/pixelated/adapter/search/contacts.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/service/pixelated/adapter/search/contacts.py b/service/pixelated/adapter/search/contacts.py index f1ea2575..733489b0 100644 --- a/service/pixelated/adapter/search/contacts.py +++ b/service/pixelated/adapter/search/contacts.py @@ -44,10 +44,9 @@ def search_addresses(searcher, query): results = [] for field in ['to', 'cc', 'bcc', 'sender']: query_parser = QueryParser(field, searcher.schema) - query_parsed = query_parser.parse("*%s* OR *%s*" % (query.title(), query)) results.append( searcher.search( - query_parsed, + query_parser.parse("*%s* OR *%s*" % (query.title(), query)), limit=None, mask=restrict_q, groupedby=sorting.FieldFacet( |