lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <>
Subject [jira] [Commented] (LUCENE-8857) Refactor TopDocs#Merge To Take In Custom Tie Breakers
Date Tue, 18 Jun 2019 12:52:00 GMT


Simon Willnauer commented on LUCENE-8857:

Why don't we just use the comparator and have a default and a doc one? like this:

 Comparator<ScoreDoc> defaultComparator = Comparator.comparingInt(d -> d.shardIndex);
 Comparator<ScoreDoc> docComparator = Comparator.comparingInt(d -> d.doc);

> Refactor TopDocs#Merge To Take In Custom Tie Breakers
> -----------------------------------------------------
>                 Key: LUCENE-8857
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message