1
2
3
4
5
6
7
8
9
10
11
12
13
14 __doc__="""Search
15
16 Utilities to help build zcatalog indexes
17 """
18
19 __version__ = "$Revision: 1.3 $"[11:-2]
20
21 from Products.ManagableIndex import FieldIndex, KeywordIndex, PathIndex
22
24 index = FieldIndex(indexName)
25 index.PrenormalizeTerm = 'value/lower'
26 index.TermType = termType
27 return index
28
30 index = KeywordIndex(indexName)
31 index.PrenormalizeTerm = 'value/lower'
32 index.TermType = 'ustring'
33 index.TermTypeExtra = 'latin-1'
34 return index
35
37 index = KeywordIndex(indexName)
38 index.TermType = 'ustring'
39 index.TermTypeExtra = 'latin-1'
40 return index
41
43 index = FieldIndex(indexName)
44 index.TermType = 'ustring'
45 return index
46
49
52
54 return PathIndex(indexName)
55