我已经为Solr附带的示例安装配置设置了拼写检查程序.我在这里按照他们的拼写检查说明进行操作:[http://wiki.apache.org/solr/SpellCheckComponent] [1]
我遇到的问题是,在完全遵循之后我仍然无法让它工作?
我构建时的响应(http:// localhost:8983/solr/spell?q = :&spellcheck.build = true&spellcheck.q = delll%20ultrashar&spellcheck = true)
看起来如下:
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">14</int>
</lst>
<str name="command">build</str>
<result name="response" numFound="17" start="0">
...
</result>
<lst name="spellcheck">
<lst name="suggestions"/>
</lst>
</response>
Run Code Online (Sandbox Code Playgroud)
当我查询http:// localhost:8983/solr/spell?q = :&spellcheck.q = delll + ultrashar&spellcheck = true&spellcheck.extendedResults = true
我收到以下回复
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">1</int>
</lst>
<result name="response" numFound="17" start="0">
...
</result>
<lst name="spellcheck">
<lst name="suggestions">
<bool name="correctlySpelled">false</bool>
</lst>
</lst>
</response>
Run Code Online (Sandbox Code Playgroud)
是什么赋予了?我在schema.xml中遗漏了什么?
schema.xml位于:http://www.developermill.com/schema.xml …