Re: TermPositions (Lucene 3.3) replacement?

2021-07-08 Thread Trejkaz
Hi. What you probably want is `TermsEnum.postings(PostingsEnum reuse, int flags)`, with `PostingsEnum.POSITIONS` in the flags. I'd also recommend using the `TermsEnum` to iterate the terms instead of using your own loop, as working with postings works better if you do. TX On Fri, 9 Jul 2021 at

TermPositions (Lucene 3.3) replacement?

2021-07-08 Thread TK Solr
Hi, I'm porting a piece of code that uses TermPositions of Lucene 3.3 to 8.9. https://lucene.apache.org/core/4_0_0/MIGRATE.html reads: * TermPositions is renamed to DocsAndPositionsEnum, and no longer extends the docs only enumerator (DocsEnum). But DocsAndPositionsEnum doesn't exist in

Lucene indexes error

2021-07-08 Thread Mohd Ahtesham
Dear concern, I'm getting below error from my application code when trying to index data. = java.io.EOFException: read past EOF: MMapIndexInput(path="/attachments/produpg/TNIndexes/8OYDBB3YXK250409/LOGS_Indexes_STAGI