lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danicela nutch" <>
Subject Re: Spellcheck
Date Thu, 08 Sep 2011 07:38:18 GMT
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>

 <arr name="last-components">

 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 -----
Sent: 09/08/11 08:43 AM
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&
-- View this message in context:
Sent from the Solr - User mailing list archive at

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message