changeset 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 3277ee13b6c7
children dbec2f99c0dc
files MoinMoin/search/Xapian.py MoinMoin/search/_tests/test_search.py
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
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)
 
 
 ##############################################################################
--- a/MoinMoin/search/_tests/test_search.py	Thu Aug 13 22:46:34 2009 +0200
+++ b/MoinMoin/search/_tests/test_search.py	Thu Aug 13 22:49:47 2009 +0200
@@ -317,7 +317,7 @@
                     u'title:': ([u'', u're:', u'case:', u'case:re:'], u'SearchTestPage'),
                     u'linkto:': ([u'', u're:', u'case:', u'case:re:'], u'FrontPage'),
                     u'category:': ([u'', u're:', u'case:', u'case:re:'], u'CategoryHomepage'),
-                    u'mimetype:': ([u'', u're:'], u'text/creole'),
+                    u'mimetype:': ([u'', u're:'], u'text/text'),
                     u'language:': ([u''], u'en'),
                     u'domain:': ([u''], u'system')}