I'm guessing it is because you have your Spell checker mapped to the
"spellchecker" request handler, but you are asking the standard
request handler to build the spell checker. Unless you've modified
the Standard Req Handler, it is not spell check aware.
Try http://localhost:8983/solr/select?qt=spellchecker&q=cancr&...
Otherwise, what you really likely want is to add the
SpellCheckComponent to your standard handler. See the comments in the
example solrconfig.xml for more on this.
-Grant
On Aug 5, 2009, at 8:52 AM, Ian Connor wrote:
Hi,
I have downloaded a dictionary in plane text format from
http://icon.shef.ac.uk/Moby/mwords.html and added it to my /mnt
directory.
When I tried to add:
<lst name="dictionary">
<str name="name">external</str>
<str
name="type">org.apache.solr.spelling.FileBasedSpellChecker</str>
<str name="sourceLocation">/mnt/dictionary.txt</str>
<str name="fieldType">text</str>
</lst>
within the <requestHandler name="spellchecker"
class="solr.SpellCheckerRequestHandler" startup="lazy"> block, I
thought it
would be as easy as running a query like:
http://localhost:8983/solr/select/?q=cancr&spellcheck=true&spellcheck.build=true
to get it to work. Can anyone tell me what steps I am missing here?
Thanks
for any help here.
I was trying to get the idea from the example here:
https://issues.apache.org/jira/browse/SOLR-572 after reading through
http://wiki.apache.org/solr/SpellCheckComponent
--
Regards,
Ian Connor
--------------------------
Grant Ingersoll
http://www.lucidimagination.com/
Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search