lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsha JSN <harsha....@gmail.com>
Subject "Suggester was not built" exception in Solr
Date Wed, 14 Sep 2016 11:06:24 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message