You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by satya swaroop <sa...@gmail.com> on 2011/01/17 17:32:23 UTC

spellchecking even the key is true....

Hi All,
        can we get the spellchecking results even when the keyword is true.
As for spellchecking will give only to the wrong keywords, cant we get
similar and near words of the keyword though the spellcheck.q is true..
as an example
http://localhost:8080/solr/spellcheck?q=java&spellcheck=true&spellcheck.count=5
the result will be

1)-
<response>
-
<lst name="spellcheck">
<lst name="suggestions"/>
</lst>
</response>


can we get the result as
2)
<response>
-
<lst name="spellcheck">
<lst name="suggestions">
<str>javax</str>
<str>javac</str>
<str>javabean</str>
<str>javascript</str>
</lst>
</response>

NOTE:: all the keywords in the 2nd result is are in index...

Regards,
satya

RE: spellchecking even the key is true....

Posted by "Dyer, James" <Ja...@ingrambook.com>.
Add spellcheck.onlyMorePopular=true to your query and I think it'll do what you want.  See http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.onlyMorePopular for more info.

One caveat is if you use spellcheck.collate, this will likely result in useless, nonsensical collations most of the time.

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: satya swaroop [mailto:satya.yadalam@gmail.com] 
Sent: Monday, January 17, 2011 10:32 AM
To: solr-user@lucene.apache.org
Subject: spellchecking even the key is true....

Hi All,
        can we get the spellchecking results even when the keyword is true.
As for spellchecking will give only to the wrong keywords, cant we get
similar and near words of the keyword though the spellcheck.q is true..
as an example
http://localhost:8080/solr/spellcheck?q=java&spellcheck=true&spellcheck.count=5
the result will be

1)-
<response>
-
<lst name="spellcheck">
<lst name="suggestions"/>
</lst>
</response>


can we get the result as
2)
<response>
-
<lst name="spellcheck">
<lst name="suggestions">
<str>javax</str>
<str>javac</str>
<str>javabean</str>
<str>javascript</str>
</lst>
</response>

NOTE:: all the keywords in the 2nd result is are in index...

Regards,
satya