diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2013-08-01 12:20:57 +0000 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2013-08-01 13:36:17 +0000 |
commit | a373e9e6f8b26e700257de062f04f13ddfb96a5f (patch) | |
tree | 015ed78e543dc7f4adaffb4433a38fd58728176f /kittystore/storm/search.py | |
parent | 070871070e62fce367c55ec52579f4680b3d3980 (diff) | |
download | kittystore-master.tar.gz kittystore-master.tar.xz kittystore-master.zip |
Diffstat (limited to 'kittystore/storm/search.py')
-rw-r--r-- | kittystore/storm/search.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kittystore/storm/search.py b/kittystore/storm/search.py index 4a7b1fc..3098aa6 100644 --- a/kittystore/storm/search.py +++ b/kittystore/storm/search.py @@ -32,7 +32,7 @@ def email_to_search_doc(email): "list_name": email.list_name, "message_id": email.message_id, "sender": u"%s %s" % (email.sender_name, email.sender_email), - "user_id": email.user_id or "", + "user_id": email.user_id, "subject": email.subject, "content": email.content, "date": email.date, # UTC @@ -147,7 +147,7 @@ class SearchEngine(object): def upgrade(self, store): """Upgrade the schema""" - if "user_id" not in self.index.schema or True: + if "user_id" not in self.index.schema: print "Rebuilding the search index to include the new user_id field..." shutil.rmtree(self.location) self._index = None |