I have a brand name field that is configured to be tokenized as a keyword and lowercased:
Code:
@AnalyzerDef(name="name_analyzer", tokenizer = @TokenizerDef(factory = KeywordTokenizerFactory.class), filters=[@TokenFilterDef(factory = LowerCaseFilterFactory.class)])
class Make {
@Field(index = Index.UN_TOKENIZED, store = Store.YES)
@Analyzer(definition="name_analyzer")
String name
}
But when I look at the index with Luke, names are not lowercased. So when I query "caterpillar" instead of "Caterpillar", I can't find instances whose name is "Caterpillar".
What did I do wrong?