diff MoinMoin/search/Xapian.py @ 5004:bb2317d4984b

Xapian2009: Index field actions and names were updated.
author Dmitrijs Milajevs <dimazest@gmail.com>
date Thu, 13 Aug 2009 22:49:47 +0200
parents e64a9fe80f6d
children dbec2f99c0dc
line wrap: on
line diff
--- a/MoinMoin/search/Xapian.py	Thu Aug 13 22:46:34 2009 +0200
+++ b/MoinMoin/search/Xapian.py	Thu Aug 13 22:49:47 2009 +0200
@@ -83,9 +83,10 @@
         self.add_field_action('attachment', INDEX_EXACT)
         self.add_field_action('attachment', STORE_CONTENT)
         self.add_field_action('mtime', INDEX_EXACT)
+        self.add_field_action('mtime', STORE_CONTENT)
         self.add_field_action('revision', STORE_CONTENT)
         self.add_field_action('revision', INDEX_EXACT)
-        self.add_field_action('mimetype ', INDEX_EXACT)
+        self.add_field_action('mimetype', INDEX_EXACT)
         self.add_field_action('mimetype', STORE_CONTENT)
         self.add_field_action('title', INDEX_FREETEXT, weight=5)
         self.add_field_action('content', INDEX_FREETEXT, spell=True)
@@ -93,15 +94,14 @@
         self.add_field_action('fulltitle', STORE_CONTENT)
         self.add_field_action('domain', INDEX_EXACT)
         self.add_field_action('domain', STORE_CONTENT)
-        self.add_field_action('lang ', INDEX_EXACT)
+        self.add_field_action('lang', INDEX_EXACT)
         self.add_field_action('lang', STORE_CONTENT)
-        self.add_field_action('stem_lang ', INDEX_EXACT)
+        self.add_field_action('stem_lang', INDEX_EXACT)
         self.add_field_action('author', INDEX_EXACT)
         self.add_field_action('linkto', INDEX_EXACT)
         self.add_field_action('linkto', STORE_CONTENT)
         self.add_field_action('category', INDEX_EXACT)
         self.add_field_action('category', STORE_CONTENT)
-        self.add_field_action('mtime', STORE_CONTENT)
 
 
 ##############################################################################