You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/07/06 19:01:00 UTC

[jira] [Commented] (LUCENE-10020) DocComparator should not skip docs with the same docID on multiple sorts with search after

    [ https://issues.apache.org/jira/browse/LUCENE-10020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17375948#comment-17375948 ] 

ASF subversion and git services commented on LUCENE-10020:
----------------------------------------------------------

Commit 64d9f8c58710eaec8177408b8301a72064581fb1 in lucene's branch refs/heads/main from Mayya Sharipova
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=64d9f8c ]

LUCENE-10020 DocComparator don't skip docs of same docID (#204)

DocComparator should not skip docs with the same docID on multiple
sorts with search after.

Because of the optimization introduced in LUCENE-9449, currently when
searching with sort on [_doc, other fields] with search after,
DocComparator can efficiently skip all docs before and including
the provided [search after docID]. This is a desirable behaviour
in a single index search. But in a distributed search, where multiple
indices have docs with the same docID, and when searching on
 [_doc, other fields], the sort optimization should NOT skip
documents with the same docIDs.

This PR fixes this.

Relates to LUCENE-9449

> DocComparator should not skip docs with the same docID on multiple sorts with search after
> ------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-10020
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10020
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Mayya Sharipova
>            Priority: Minor
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Because of the optimization introduced in [LUCENE-9449|https://issues.apache.org/jira/browse/LUCENE-9449], when searching with sort on  [_doc, other fields] with search after,  DocComparator can efficiently skip all docs before and including the provided [search after docID].
> This is a desirable behaviour in a single index search. But in a distributed search, where multiple indices have docs with the same docID, and when searching on [_doc, other fields], the sort optimization should not skip documents with the same docIDs.  
> Relates to LUCENE-9449



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org