Solr identifying words as spelled correctly when they're not

戏子无情 提交于 2019-12-21 02:36:10

问题


I'm following along with the Solr SpellCheck Component documentation, but can't seem to get this to work.

The spell checking components seems to be running, but Solr is identifying the word as correctly spelled when it's not. How can I fix this?

Example search query results for 'applicatoin' are...

<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 config which is handling 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>

来源:https://stackoverflow.com/questions/2329742/solr-identifying-words-as-spelled-correctly-when-theyre-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!