[
https://issues.apache.org/jira/browse/LUCENE-8857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16866575#comment-16866575
]
Simon Willnauer commented on LUCENE-8857:
-----------------------------------------
Why don't we just use the comparator and have a default and a doc one? like
this:
{code}
Comparator<ScoreDoc> defaultComparator = Comparator.comparingInt(d ->
d.shardIndex);
Comparator<ScoreDoc> docComparator = Comparator.comparingInt(d -> d.doc);
{code}
> Refactor TopDocs#Merge To Take In Custom Tie Breakers
> -----------------------------------------------------
>
> Key: LUCENE-8857
> URL: https://issues.apache.org/jira/browse/LUCENE-8857
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Atri Sharma
> Priority: Major
> Attachments: LUCENE-8857.patch, LUCENE-8857.patch, LUCENE-8857.patch
>
>
> In LUCENE-8829, the idea of having lambdas passed in to the API to allow
> finer control over the process was discussed.
> This JIRA tracks adding a parameter to the API which allows passing in
> lambdas to define custom tie breakers, thus allowing users to do custom
> algorithms when required.
> CC: [~jpountz] [~simonw]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]