I already tried with field type = "textSpell" but it didn't work, I replaced it 
though.


 I found this code :


 <requestHandler name="/spellCheckCompRH" class="solr.SearchHandler">
 <lst name="defaults">
 <!-- Optional, must match spell checker's name as defined above, defaults to 
"default" -->
 <str name="spellcheck.dictionary">default</str>
 <!-- omp = Only More Popular -->
 <str name="spellcheck.onlyMorePopular">false</str>
 <!-- exr = Extended Results -->
 <str name="spellcheck.extendedResults">false</str>
 <!-- The number of suggestions to return -->
 <str name="spellcheck.count">1</str>
 </lst>

 <arr name="last-components">
 <str>spellcheck</str>
 </arr>
 </requestHandler>


 I put this in solrconfig.xml and used the query you gave me, there is the <str 
name="command">build</str> line (like before) but I don't have any <lst 
name="spellcheck"><lst name="suggestions"/></lst>


 When I told <doc></doc> this was a shortcut to mean I have many docs, but they 
aren't empty, there are many fields in them.


 PS : I have the impression my keyboard 'returns' don't show well in the 
mailing list making them very hard to read, is this true ? If yes, how to fix 
that ?


----- Original Message -----
From: tamanjit.bin...@yahoo.co.in
Sent: 09/08/11 08:43 AM
To: solr-user@lucene.apache.org
Subject: Re: Spellcheck

 Hi if you have not figyured it out as yet, this might help:: Issues with 
*schema.xml* <field name="textSpell" type="text" stored="false" indexed="true" 
multiValued="true" /> here the type should actually be textSpell (fieldType 
that you have defined earlier) Also I would suggest that you use a seperate 
RequestHandler for your queries. You alreasy have spellCheckCompRH defined in 
the solrconfig.xml, to which you can make the changes and add your <lst> So 
really your fist query should be like: 
http://localhost:8983/solr/spellCheckCompRH/?q=*:*&&version=2.2&start=0&rows=10&indent=on&spellcheck=true&spellcheck.build=true&spellcheck.dictionary=textSpell
 -- View this message in context: 
http://lucene.472066.n3.nabble.com/Spellcheck-tp3315994p3318854.html Sent from 
the Solr - User mailing list archive at Nabble.com.

Reply via email to