Description
The current code allows to set minPrefixChars=0, but it creates an unnecessary textgrams field, and might bring significant footprint. Bypassing it keeps existing tests green.
if (fieldName.equals("textgrams") && minPrefixChars > 0) { TokenFilter filter = new EdgeNGramTokenFilter(components.getTokenStream(), 1, minPrefixChars); return new TokenStreamComponents(components.getTokenizer(), filter); } else { return components; // threre is no sense to go here if minPrefixChars==0 and fieldName=="textgrams" }
Attachments
Attachments
Issue Links
- is part of
-
LUCENE-7930 make AnalyzingInfixSuggester handy for extension
- Open