summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/search.py
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@thoughtworks.com>2014-10-16 14:51:38 +0200
committerBruno Wagner <bwagner@thoughtworks.com>2014-10-16 14:51:38 +0200
commit2871fd91a844e007cbf821b51f6bba16cf727abb (patch)
tree1b222a8c47160db2d9dcd2e2e8af720c14f16782 /service/pixelated/adapter/search.py
parent898c6049243ac93a5fffdb0e2809de9b454d6719 (diff)
Pep8 fixes
Diffstat (limited to 'service/pixelated/adapter/search.py')
-rw-r--r--service/pixelated/adapter/search.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/service/pixelated/adapter/search.py b/service/pixelated/adapter/search.py
index cfb5aaa0..a5b31c67 100644
--- a/service/pixelated/adapter/search.py
+++ b/service/pixelated/adapter/search.py
@@ -124,7 +124,6 @@ class SearchEngine(object):
else:
return self._paginated_search_mails(query, window, page)
-
def _search_all_mails(self, query):
with self._index.searcher() as searcher:
results = searcher.search(query, limit=None)
@@ -138,7 +137,6 @@ class SearchEngine(object):
results = searcher.search_page(query, page, pagelen=window)
return [mail['ident'] for mail in results]
-
def prepare_query(self, query):
query = (
query
@@ -147,8 +145,6 @@ class SearchEngine(object):
.replace('in:all', '*')
)
return QueryParser('raw', self._index.schema).parse(query)
-
-
def remove_from_index(self, mail_id):
writer = self._index.writer()