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/09/23 17:11:00 UTC

[jira] [Commented] (LUCENE-10119) singleSort should not be set when after is non-null

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

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

Commit 7390d1af5190749312b803f900c65c9a56cc2dbc in lucene's branch refs/heads/main from Nhat Nguyen
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=7390d1a ]

LUCENE-10119: Do not set single sort with search after (#317)

We should not set single sort when the search_after is non-null; 
otherwise, we will incorrectly skip documents whose values are equal to
the value from the search_after and docIDs are greater than the docID
from the search_after.

> singleSort should not be set when after is non-null
> ---------------------------------------------------
>
>                 Key: LUCENE-10119
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10119
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: main (9.0), 8.10
>            Reporter: Nhat Nguyen
>            Assignee: Nhat Nguyen
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Today we set the parameter `singleSort` to true when we have a single comparator to skip documents whose values equal the last visited value. However, this is incorrect when the search_after parameter is non-null as that we will skip documents whose values are equal, but their docIDs are greater than the docID of the `search_after` parameter.
>  
> We found this issue in Elasticsearch after upgrading it to Lucene 8.10 and Lucene 9.



--
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