[
https://issues.apache.org/jira/browse/SOLR-8934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15229937#comment-15229937
]
Michael Solomon commented on SOLR-8934:
---------------------------------------
You are absolutely right!
I looked on this issue in narrow manner and forgot that solr should serve many
and general purposes.
Sort the collations on client by hits works great for me.
Thanks!
> Spellchecker collaction should return in popular order
> ------------------------------------------------------
>
> Key: SOLR-8934
> URL: https://issues.apache.org/jira/browse/SOLR-8934
> Project: Solr
> Issue Type: Improvement
> Components: spellchecker
> Affects Versions: 5.5.1
> Reporter: Michael Solomon
> Priority: Minor
>
> From what I understand solr execute queries to determine if the suggest
> return results.
> [https://cwiki.apache.org/confluence/display/solr/Spell+Checking#SpellChecking-Thespellcheck.collateParameter]
> {quote}
> The spellcheck.collate parameter only returns collations that are guaranteed
> to result in hits if re-queried, even when applying original fq parameters.
> it would be great if solr will order the collations by numFound, so the
> collations with more results appear first.
> {quote}
> i.e:
> spellcheck.q = prditive analytiycs
> spellcheck.maxCollations = 5
> spellcheck.count=0
> response:
> {code:xml}
> <lst name="spellcheck">
> <lst name="suggestions"/>
> <bool name="correctlySpelled">false</bool>
> <lst name="collations">
> <str name="collation">positive analytic</str>
> <str name="collation">positive analytics</str>
> <str name="collation">predictive analytics</str>
> <str name="collation">primitive analytics</str>
> <str name="collation">punitive analytic</str>
> </lst>
> </lst>
> {code}
> Obviesly that "predictive analytics" have more results from "positive
> analytic".
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]