autosuggest - Any working solr suggester example? -


all:

i using solr 4.10 default configuration now, wonder if 1 can give me working configuration suggester part? tried example in solr in action, not work(i tried /suggest handler in admin page, keeping other options default specifying keyword in q ).

<requesthandler name="/suggest" class="org.apache.solr.handler.component.searchhandler"> <lst name="defaults"> <str name="echoparams">none</str> <str name="wt">json</str> <str name="indent">false</str> <str name="spellcheck">true</str> <str name="spellcheck.dictionary">suggestdictionary</str> <str name="spellcheck.onlymorepopular">true</str> <str name="spellcheck.count">5</str> <str name="spellcheck.collate">false</str> </lst> <arr name="components"> <str>suggest</str> </arr> </requesthandler>   <searchcomponent class="solr.spellcheckcomponent" name="suggest"> <lst name="spellchecker"> <str name="name">suggestdictionary</str> <str name="classname">org.apache.solr.spelling.suggest.suggester</str> <str name="lookupimpl">org.apache.solr.spelling.suggest.fst .fstlookupfactory</str> <str name="field">suggest</str> <float name="threshold">0.</float> <str name="buildoncommit">true</str> </lst> </searchcomponent> 

thanks


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -