Below is the solrconfig.xml. myfieldName is indexed in solr and is searchable. The spellcheck.build=true <http://xxxx:8080/solr/mycore/suggestkeyword?spellcheck.build=true> works in one env but not in another.
<searchComponent class="solr.SpellCheckComponent" name="suggestk"> <lst name="spellchecker"> <str name="name">suggestDict</str> <str name="classname">org.apache.solr.spelling.suggest.Suggester</str> <str name="lookupImpl"> org.apache.solr.spelling.suggest.fst.FSTLookupFactory</str> <str name="storeDir">suggestDir</str> <str name="field">myfieldName</str> <float name="threshold">0.001</float> </lst> </searchComponent> <requestHandler class="org.apache.solr.handler.component.SearchHandler" name="/suggestk"> <lst name="defaults"> <str name="wt">json</str> <str name="spellcheck">true</str> <str name="spellcheck.dictionary">suggestDict</str> <str name="spellcheck.count">10</str> </lst> <arr name="components"> <str> suggestk </str> </arr> </requestHandler> Thanks. On Fri, Dec 5, 2014 at 2:05 PM, Alexandre Rafalovitch <arafa...@gmail.com> wrote: > What's your suggester XML definition? > > Do you have a link similar to: > <str name="sourceLocation">fuzzysuggest.txt</str> > > That particular code path seems to be expecting it. > > Regards, > Alex. > Personal: http://www.outerthoughts.com/ and @arafalov > Solr resources and newsletter: http://www.solr-start.com/ and @solrstart > Solr popularizers community: https://www.linkedin.com/groups?gid=6713853 > > > On 5 December 2014 at 14:07, Min L <minl07...@gmail.com> wrote: > > Hi all: > > > > My code using solr spellchecker to suggest keywords worked fine locally, > > however in qa solr env, it failed to build it with the following error in > > solr log: > > > > ERROR Suggester Store Lookup build from index on field: myfieldname > failed > > reader has: xxx docs > > > > I checked the solr directory and the file fst.bin was created > successfully > > though. Does anyone know what caused the issue? > > > > command to build: > > http://xxxx:8080/solr/mycore/suggestkeyword?spellcheck.build=true > > > > Thanks a lot! >