Thank you Adrien, you are correct!
There was an out of order call.

-----Original Message-----
From: Adrien Grand <[email protected]> 
Sent: Monday, January 1, 2024 8:59 PM
To: [email protected]
Subject: Re: Assertion error with NumericDocValues.advanceExact

Hello,

Can you check if you are running advanceExact on decreasing doc IDs or on doc 
IDs that are outside of the valid range [0, maxDoc)? If you have Lucene's test 
framework on your classpath, these checks can be added automatically by using 
AssertingIndexSearcher instead of IndexSearcher to run queries.


On Sun, Dec 31, 2023 at 8:51 AM <[email protected]> wrote:

> Stack trace:
>
> java.lang.AssertionError
>
>         at
> org.apache.lucene.codecs.lucene90.IndexedDISI$Method$1.advanceExactWit
> hinBlock(IndexedDISI.java:567)
>
>         at
> org.apache.lucene.codecs.lucene90.IndexedDISI.advanceExact(IndexedDISI
> .java:461)
>
>         at
> org.apache.lucene.codecs.lucene90.Lucene90DocValuesProducer$SparseNume
> ricDocValues.advanceExact(Lucene90DocValuesProducer.java:453)
>
>
>
> Lucene 9.80 with a 9.80 index.
>
>
>
> Everything seems to work fine if I run it with assertions disabled.
>
> This is a large project which I can’t share.
>
> CheckIndex didn’t find any problems.
>
>
>
> Erel
>
>
>
>

--
Adrien


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to