Hello, John.
I tended to say, you are calling API in a little bit specific way
https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/index/DocValuesIterator.java#L29

Thanks.

On Wed, May 6, 2020 at 11:04 PM John Wang <[email protected]> wrote:

> Hi folks:
>
> We ran into a problem with DenseNumericDocValues in Lucene 8.0 codec where
> advanceExact returns true even when advancing to an invalid docid.
>
> Our code looks like:
>
> if (docval.advanceExact(docid)) {
>     var myVal = docVal.get(docid);
> }
>
> when docid == DocIdSetIterator.NO_MORE_DOCS, the docVal.get() call barfs.
>
> I am not sure if that is a bug in Lucene or is it the way I am calling the
> API.
>
> Following is the link to the code for context. Any advice is appreciated.
>
>
> https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/codecs/lucene80/Lucene80DocValuesProducer.java#L413
>
> Thanks
>
> -John
>


-- 
Sincerely yours
Mikhail Khludnev

Reply via email to