lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: "Suggester was not built" exception in Solr
Date Wed, 14 Sep 2016 15:14:49 GMT
You have to build suggesters, see the "suggest.build" parameter here:
https://cwiki.apache.org/confluence/display/solr/Suggester

Best,
Erick

On Wed, Sep 14, 2016 at 4:06 AM, Harsha JSN <harsha.jsn@gmail.com> wrote:
> 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

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message