[ 
https://issues.apache.org/jira/browse/SOLR-8934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Solomon updated SOLR-8934:
----------------------------------
    Priority: Minor  (was: Trivial)

> 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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to