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

Reply via email to