def makeCaseSensitiveKeywordIndex(indexName): index = KeywordIndex(indexName) index.TermType = 'ustring' index.TermTypeExtra = 'latin-1' return index
def makeCaseInsensitiveKeywordIndex(indexName): index = KeywordIndex(indexName) index.PrenormalizeTerm = 'value/lower' index.TermType = 'ustring' index.TermTypeExtra = 'latin-1' return index