I build org.apache.lucene.analysis.Analyzer using these options and the
suggester works 100% for me.
return CustomAnalyzer.builder()
.withTokenizer(StandardTokenizerFactory.class)
.addTokenFilter(StandardFilterFactory.class)
.addTokenFilter(LowerCaseFilterFactory.class)
.addTokenFilter(SuggestStopFilterFactory.class).build();
On 23 February 2018 at 14:57, jawad lamrayah <[email protected]> wrote:
> Hi,
>
> I have one question about AnalyzingInfixSuggester behavior.
> In fact when I search with two terms, if only the second term is found, I
> have the auto complete with the suggestions containing the second term.
> If only the first term is found, there is no suggestion.
>
> e.g:
> new market --> n results
> market new --> 0 results
>
> Only the term market is present in the dictionary
>
> Thanks
>