Hi,

Check my earlier reply. You have explicitely set onlyMorePopular to true thus 
you will most likely always get suggestion even if the term was spelled 
correctly. You'll only get no suggestions if the term is spelled correctly and 
it is the most `popular` term.

You can opt for keeping onlyMorePopular set to true but it is then wise to 
enable extendedResults so you can check the correctlySpelled boolean.


cheers,


>here simple query:
>http://estyledesign:8983/request/select?q=popular&spellcheck=true&qt
>=keyrequest&spellcheck.extendedResults=true result:
>populars! but popular is correct word! Maybe i must change some properties
>in solrconfig! Here my configs for keyrequest:
><requestHandler name="keyrequest" class="solr.SearchHandler">
>    <lst name="defaults">
>        <str name="defType">dismax</str>
>      <str name="spellcheck.onlyMorePopular">true</str>
>      <str name="spellcheck.extendedResults">false</str>
>      <str name="spellcheck.collate">true</str>
>      <str name="spellcheck.dictionary">external</str>
>    </lst>
>    <arr name="last-components">
>        <str>query</str>
>        <str>spellcheck</str>
>        <str>mlt</str>
>    </arr>
></requestHandler>
>and search component:
><searchComponent name="spellcheck" class="solr.SpellCheckComponent">
>    <str name="queryAnalyzerFieldType">textSpell</str>
>    <lst name="spellchecker">
>      <str
>name="classname">org.apache.solr.spelling.FileBasedSpellChecker</str>
>      <str name="name">external</str>
>      <str name="sourceLocation">spellings.txt</str>
>      <str name="characterEncoding">UTF-8</str>
>      <str name="spellcheckIndexDir">spellcheckerfile</str>
>    </lst>
>   </searchComponent>
>--
>View this message in context:
> http://old.nabble.com/spellcheck-tp27527425p27548078.html Sent from the
> Solr - User mailing list archive at Nabble.com.

Markus Jelsma - Technisch Architect - Buyways BV
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350

Reply via email to