java.lang.WrongThreadException when build TermStates

2023-08-10 Thread Yuan Xiao
Hello Community, I am an engineer from Amazon Product Search and we recently encountered a WrongThreadException in our service when building TermStates with Lucene9.6 and JDK19.02+9. We are just using one thread when initializing term states. I am wondering if any other users encounter this prob

Re: What is the approximate processing mechanism for field length?

2023-08-10 Thread Mikhail Khludnev
Hello, Koo. I can share my shallow understanding of this algorithm. Approximate field length is called norm and stored in a byte per document for sake of compactness (implying performance). Norms are encoded via org.apache.lucene.util.SmallFloat#intToByte4. Thus, there might be just 256 different