Hello,
So essentially you simply want case-insensitive prefix search?
What was wrong with my answer to your previous, similar question?
It should work similarly for an ID field. You will just have to declare new analyzers where you remove unnecessary analysis components, such as the tokenizer (replace it with a KeywordTokenizer
) and the SnowballPorterFilterFactory
(remove it, you don’t need it for IDs).
Alternatively, you can use a @KeywordField
with a simple “lowercasing” normalizer (similar to the one named lowercase
in this example), and rely on a wildcard predicate. It’s less flexible, but should work for simple use cases.