[
https://issues.apache.org/jira/browse/SOLR-5787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14118678#comment-14118678
]
Nalini Kartha commented on SOLR-5787:
-------------------------------------
Sounds like what [~h4k1m] is looking for is different than what we're looking
for and that collations are the right solution for him?
Unfortunately, we can't use collations to get the query which would return most
results (respecting fqs) because our query is a default OR query. The collation
hits value would be reflecting the number of results returned for a default OR
query which doesn't help with selecting a collation, especially when it's a
multi term query where some terms are correctly spelled. The workaround we're
using is to select the best corrections for each mis-spelled query term based
on the individual frequencies passed back in the extended results but since
these freqs don't respect fqs, we're not selecting the best correction most of
the time. We had discussed this on the mailing list a while ago but then it
slipped off my radar -
http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201212.mbox/%3CCAMqOzYHYpmsBrwv1HoEeoODT-faw4tKgg_-aXv=f7o5kff8...@mail.gmail.com%3E
[~jdyer] I'll go ahead and open another JIRA for this issue so that we can move
the discussion over there. Apologies for hijacking this thread with the
discussion about fq params.
> Get spellcheck frequency relatively to current query
> ----------------------------------------------------
>
> Key: SOLR-5787
> URL: https://issues.apache.org/jira/browse/SOLR-5787
> Project: Solr
> Issue Type: Improvement
> Components: spellchecker
> Affects Versions: 4.6
> Environment: Solr deployed on Jetty 9 Servlet container
> Reporter: Hakim
> Priority: Minor
> Labels: features, newbie
>
> I guess that this functionnality isn't implemented yet. I'll begin by an
> example to explain what I'm requesting:
> I have a lucene query that get articles satisfying a certain query. With this
> same command, I'm getting at the same time suggestions if this query doesnt
> return any article (so far, nothing unusual).
> The frequency (count) associated with these suggestions is relative to all
> index (it counts all occurences of the suggestion in the whole index). What I
> want is that it counts only suggestion occurences satisfying current lucene
> query.
> P.S: I'm using solr's spellcheck component (solr.DirectSolrSpellChecker).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]