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/15 02:05:00 UTC
[jira] [Commented] (LUCENE-10106) Sort optimization mistakenly
skips the first
documentshttps://github.com/elastic/elasticsearch/pull/73324
[ https://issues.apache.org/jira/browse/LUCENE-10106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17415286#comment-17415286 ]
ASF subversion and git services commented on LUCENE-10106:
----------------------------------------------------------
Commit 0cf0a3524db31b0fc677537f9f8d35795e9c6cfa in lucene's branch refs/heads/fix-sort-optimization from Nhat Nguyen
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=0cf0a35 ]
LUCENE-10106: Sort optimization wrongly skip first docs
> Sort optimization mistakenly skips the first documentshttps://github.com/elastic/elasticsearch/pull/73324
> ---------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-10106
> URL: https://issues.apache.org/jira/browse/LUCENE-10106
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/search
> Affects Versions: main (9.0), 8.9
> Reporter: Nhat Nguyen
> Assignee: Nhat Nguyen
> Priority: Major
>
> [~romseygeek] and I looked into a test [failure|https://github.com/elastic/elasticsearch/pull/73324] that occurs in Elasticsearch with Lucene 9. The first documents of subsequent segments are mistakenly skipped when sort optimization is enabled. We should initialize `maxDocVisited` in NumericComparator to -1 instead of 0.
--
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