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 "O. Klein" <kl...@octoweb.nl> on 2012/01/18 14:26:00 UTC

Different mm for spellcheckquery

What is the best way to search with a mm of 0%, but use a mm of 100% on the
spellcheck query so maxCollationTries gives the best results?

--
View this message in context: http://lucene.472066.n3.nabble.com/Different-mm-for-spellcheckquery-tp3669200p3669200.html
Sent from the Solr - User mailing list archive at Nabble.com.

RE: Different mm for spellcheckquery

Posted by "O. Klein" <kl...@octoweb.nl>.
Dyer, James wrote
> 
> I thought of a way you could do this with one query, if using edismax.  If
> you use "spellcheck.q" and insert "AND" between each keyword you'll make
> all the terms required regardless of the "mm" parameter.  I quickly tried
> this out and it seems to work if you use "AND" but not if you prefix all
> the terms with plus-signs.
> 
> example:
> 
> q=mispelt werds&defType=edismax&mm=0&spellcheck.q=mispelt AND werds ...
> {other spellcheck parameters}
> 
> James Dyer
> E-Commerce Systems
> Ingram Content Group
> (615) 213-4311
> 
> 

Thanx for your answer. This could work for me.


--
View this message in context: http://lucene.472066.n3.nabble.com/Different-mm-for-spellcheckquery-tp3669200p3677857.html
Sent from the Solr - User mailing list archive at Nabble.com.

RE: Different mm for spellcheckquery

Posted by "Dyer, James" <Ja...@ingrambook.com>.
I thought of a way you could do this with one query, if using edismax.  If you use "spellcheck.q" and insert "AND" between each keyword you'll make all the terms required regardless of the "mm" parameter.  I quickly tried this out and it seems to work if you use "AND" but not if you prefix all the terms with plus-signs.

example:

q=mispelt werds&defType=edismax&mm=0&spellcheck.q=mispelt AND werds ... {other spellcheck parameters}

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

-----Original Message-----
From: Dyer, James [mailto:James.Dyer@ingrambook.com] 
Sent: Thursday, January 19, 2012 3:17 PM
To: solr-user@lucene.apache.org
Subject: RE: Different mm for spellcheckquery

I'm not sure there is a good way to this this currently.  I think you'd just have to issue a second query with mm=100 to get additional spelling suggestions as "maxCollationTries" is designed to replicate the original query when trying collations for hits.  It might be a worthy enhancement to provide a way to selectively override individual query parameters for cases like this.

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


-----Original Message-----
From: O. Klein [mailto:klein@octoweb.nl] 
Sent: Wednesday, January 18, 2012 7:26 AM
To: solr-user@lucene.apache.org
Subject: Different mm for spellcheckquery

What is the best way to search with a mm of 0%, but use a mm of 100% on the
spellcheck query so maxCollationTries gives the best results?

--
View this message in context: http://lucene.472066.n3.nabble.com/Different-mm-for-spellcheckquery-tp3669200p3669200.html
Sent from the Solr - User mailing list archive at Nabble.com.

RE: Different mm for spellcheckquery

Posted by "Dyer, James" <Ja...@ingrambook.com>.
I'm not sure there is a good way to this this currently.  I think you'd just have to issue a second query with mm=100 to get additional spelling suggestions as "maxCollationTries" is designed to replicate the original query when trying collations for hits.  It might be a worthy enhancement to provide a way to selectively override individual query parameters for cases like this.

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


-----Original Message-----
From: O. Klein [mailto:klein@octoweb.nl] 
Sent: Wednesday, January 18, 2012 7:26 AM
To: solr-user@lucene.apache.org
Subject: Different mm for spellcheckquery

What is the best way to search with a mm of 0%, but use a mm of 100% on the
spellcheck query so maxCollationTries gives the best results?

--
View this message in context: http://lucene.472066.n3.nabble.com/Different-mm-for-spellcheckquery-tp3669200p3669200.html
Sent from the Solr - User mailing list archive at Nabble.com.