You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Lu Xugang (Jira)" <ji...@apache.org> on 2022/03/08 07:32:00 UTC

[jira] [Commented] (LUCENE-10458) BoundedDocSetIdIterator may supply error count in Weigth#count(LeafReaderContext) when missingValue enables

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

Lu Xugang commented on LUCENE-10458:
------------------------------------

That is why in BoundedDocSetIdIterator#advance(int target), target need to be check if such Document contains DocValues

> BoundedDocSetIdIterator may supply error count in Weigth#count(LeafReaderContext) when missingValue enables
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-10458
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10458
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Lu Xugang
>            Priority: Major
>
> When IndexSortSortedNumericDocValuesRangeQuery can take advantage of index sort, Weight#count will use BoundedDocSetIdIterator's lastDoc and firstDoc to calculate count, but if missingValue enables, those Documents which not contain DocValues may be involved in calculating count.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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