Hi,

I am getting "Suggester was not built" exception in Solr while fetching
suggestions.

Suggester configuration:

    <lst name="suggester">
        <str name="name">my_suggester</str>
        <str name="lookupImpl">BlendedInfixLookupFactory</str>
        <str name="dictionaryImpl">DocumentDictionaryFactory</str>
        <str name="field">suggest_text</str>
        <str name="weightField">weight_field</str>
        <str name="contextField"context_field</str>
        <str name="minPrefixChars">5</str>
        <str name="suggestAnalyzerFieldType">text</str>
        <str name="buildOnStartup">false</str>
        <str name="buildOnCommit">true</str>
    </lst>


Exception in Solr logs:

null:java.lang.IllegalStateException: suggester was not built at
org.apache.lucene.search.suggest.analyzing.AnalyzingInfixSuggester.lookup(AnalyzingInfixSuggester.java:531)
at
org.apache.lucene.search.suggest.analyzing.BlendedInfixSuggester.lookup(BlendedInfixSuggester.java:188)
at
org.apache.solr.spelling.suggest.SolrSuggester.getSuggestions(SolrSuggester.java:235)


Please guide me the way we can handle this.


Thanks
Harsha

Reply via email to