[
https://issues.apache.org/jira/browse/LUCENE-10154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17433762#comment-17433762
]
ASF subversion and git services commented on LUCENE-10154:
----------------------------------------------------------
Commit 2ed6e4aa78eb6d1fbb90c21c9723313ab5077e83 in lucene's branch
refs/heads/main from Mayya Sharipova
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=2ed6e4a ]
LUCENE-10154 NumericLeafComparator to define getPointValues (#364)
This patch adds getPointValues to NumericLeafComparatorsimilar how it
has getNumericDocValues.
Numeric Sort optimization with points relies on the assumption that
points and doc values record the same information, as we substitute
iterator over doc_values with one over points.
If we override getNumericDocValues it almost certainly means that whatever
PointValues NumericComparator is going to look at shouldn't be used to
skip non-competitive documents. Returning null for pointValues in this
case will force comparator NOT to use sort optimization with points,
and continue with a traditional way of iterating over doc values.
> NumericLeafComparator to define getPointValues
> ----------------------------------------------
>
> Key: LUCENE-10154
> URL: https://issues.apache.org/jira/browse/LUCENE-10154
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Mayya Sharipova
> Priority: Minor
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> NumericLeafComparator must have a method getPointValues similar how it has
> getNumericDocValues.
> Numeric Sort optimization with points relies on the assumption that points
> and doc values record the same information, as we substitute iterator over
> doc_values with one over points.
> If we extend {{getNumericDocValues}} it almost certainly means that whatever
> {{PointValues}} NumericComparator is going to look at shouldn't be used to
> skip non-competitive documents. Returning null for pointValues in this case
> will force comparator NOT to use sort optimization with points, and continue
> with a traditional way of iterating over doc values.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]