Solr identifies words as they are spelled correctly when they are not

I am following the SpellCheck component documentation with the Solr document , but it may not seem like this works.

Spellchecking components seem to work, but Solr identifies the word as spelled correctly if not specified. How can i fix this?

Sample search results for 'applyatoin' ...

<response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">0</int> <lst name="params"> <str name="spellcheck">true</str> <str name="q">applicatoin</str> </lst> </lst> <result name="response" numFound="0" start="0"/> <lst name="spellcheck"> <lst name="suggestions"> <bool name="correctlySpelled">true</bool> </lst> </lst> </response> 

The requestHandler configuration that handles this search ...

  <requestHandler name="standard" class="solr.SearchHandler" default="true"> <lst name="defaults"> <str name="echoParams">explicit</str> <str name="spellcheck.extendedResults">true</str> <str name="spellcheck.count">1</str> </lst> <arr name="last-components"> <str>spellcheck</str> </arr> </requestHandler> 
+4
source share

Source: https://habr.com/ru/post/1302285/


All Articles