[
https://issues.apache.org/jira/browse/LUCENE-8529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16654181#comment-16654181
]
Jim Ferenczi commented on LUCENE-8529:
--------------------------------------
We want to sort by decreasing score then by completion key and finally by
document id. This is done to ensure that we have the best suggestions (sorted
by score) first when we collect them but I am not sure this should be the
natural sort order for `SuggestScoreDoc`.
I don't know why this class implements Comparable, maybe we should remove it to
avoid confusion ?
> Use the completion key to tiebreak completion suggestion
> --------------------------------------------------------
>
> Key: LUCENE-8529
> URL: https://issues.apache.org/jira/browse/LUCENE-8529
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Jim Ferenczi
> Priority: Minor
> Attachments: LUCENE-8529.patch
>
>
> Today the completion suggester uses the document id to tiebreak completion
> suggestion with same scores. It would improve the stability of the sort to
> use the surface form of suggestions as the first tiebreaker.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]