Okay putting "spellcheck=true" makes all the difference in the world.
Thanks On 9/9/10 1:58 PM, "Markus Jelsma" <markus.jel...@buyways.nl> wrote: > I don't see you passing spellcheck parameters in the query string. Are they > configured as default in your search handler? > > -----Original message----- > From: Gregg Hoshovsky <hosho...@ohsu.edu> > Sent: Thu 09-09-2010 22:40 > To: solr-user@lucene.apache.org; > Subject: Help on spelling. > > 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&r > ows=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 >