I am trying to use the spellchecker but cannot get past the point of having the
spelling possibilities returned.
I have a text field define in the schema.xml file as:
<field name="text" type="text_ws" indexed="true" stored="false"
multiValued="true"/>
I modified solrconfig.xml to point the analyzer to the same field type and have
the name set the same.
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<str name="queryAnalyzerFieldType">text_ws</str>
<lst name="spellchecker">
<str name="name">default</str>
<str name="field">text</str>
<str name="spellcheckIndexDir">./spellchecker</str>
</lst>
I left the handler alone
<requestHandler name="/spell" class="solr.SearchHandler" lazy="true">
<lst name="defaults">
I see that the spellchecker folder gets files built so I am assuming that the
spelling data is being created
Then I ran the query as
http://localhost:8983/solr/biolibrary/spell/?q=text:wedg&version=2.2&start=0&rows=10&indent=on&wt=json
I would expect that this would have returned some spelling suggestions ( such
as wedge) but don’t get anything besides:
{
"responseHeader":{
"status":0,
"QTime":1},
"response":{"numFound":0,"start":0,"docs":[]
}}
Any help is appreciated.
Gregg