comparison 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
comparison
equal deleted inserted replaced
5003:3277ee13b6c7 5004:bb2317d4984b
81 self.add_field_action('pagename', STORE_CONTENT) 81 self.add_field_action('pagename', STORE_CONTENT)
82 self.add_field_action('pagename', SORTABLE) 82 self.add_field_action('pagename', SORTABLE)
83 self.add_field_action('attachment', INDEX_EXACT) 83 self.add_field_action('attachment', INDEX_EXACT)
84 self.add_field_action('attachment', STORE_CONTENT) 84 self.add_field_action('attachment', STORE_CONTENT)
85 self.add_field_action('mtime', INDEX_EXACT) 85 self.add_field_action('mtime', INDEX_EXACT)
86 self.add_field_action('mtime', STORE_CONTENT)
86 self.add_field_action('revision', STORE_CONTENT) 87 self.add_field_action('revision', STORE_CONTENT)
87 self.add_field_action('revision', INDEX_EXACT) 88 self.add_field_action('revision', INDEX_EXACT)
88 self.add_field_action('mimetype ', INDEX_EXACT) 89 self.add_field_action('mimetype', INDEX_EXACT)
89 self.add_field_action('mimetype', STORE_CONTENT) 90 self.add_field_action('mimetype', STORE_CONTENT)
90 self.add_field_action('title', INDEX_FREETEXT, weight=5) 91 self.add_field_action('title', INDEX_FREETEXT, weight=5)
91 self.add_field_action('content', INDEX_FREETEXT, spell=True) 92 self.add_field_action('content', INDEX_FREETEXT, spell=True)
92 self.add_field_action('fulltitle', INDEX_EXACT) 93 self.add_field_action('fulltitle', INDEX_EXACT)
93 self.add_field_action('fulltitle', STORE_CONTENT) 94 self.add_field_action('fulltitle', STORE_CONTENT)
94 self.add_field_action('domain', INDEX_EXACT) 95 self.add_field_action('domain', INDEX_EXACT)
95 self.add_field_action('domain', STORE_CONTENT) 96 self.add_field_action('domain', STORE_CONTENT)
96 self.add_field_action('lang ', INDEX_EXACT) 97 self.add_field_action('lang', INDEX_EXACT)
97 self.add_field_action('lang', STORE_CONTENT) 98 self.add_field_action('lang', STORE_CONTENT)
98 self.add_field_action('stem_lang ', INDEX_EXACT) 99 self.add_field_action('stem_lang', INDEX_EXACT)
99 self.add_field_action('author', INDEX_EXACT) 100 self.add_field_action('author', INDEX_EXACT)
100 self.add_field_action('linkto', INDEX_EXACT) 101 self.add_field_action('linkto', INDEX_EXACT)
101 self.add_field_action('linkto', STORE_CONTENT) 102 self.add_field_action('linkto', STORE_CONTENT)
102 self.add_field_action('category', INDEX_EXACT) 103 self.add_field_action('category', INDEX_EXACT)
103 self.add_field_action('category', STORE_CONTENT) 104 self.add_field_action('category', STORE_CONTENT)
104 self.add_field_action('mtime', STORE_CONTENT)
105 105
106 106
107 ############################################################################## 107 ##############################################################################
108 ### Tokenizer 108 ### Tokenizer
109 ############################################################################## 109 ##############################################################################