Re: Question for SynonymQuery

2023-01-18 Thread Anh Dũng Bùi
Thanks Mikhail! It turns out I used FlattenGraphFilter and cause the PositionLength to be all 1 and resulted in the behavior above =) A side note is that we don't need to use WORD_SEPARATOR in the synonym file. SynonymMap.Parser.analyze would tokenize and append the separator for us. Regards, An

Re: Need help for conversion code from Lucene 2.4.0 to 8.11.2

2023-01-18 Thread Mikhail Khludnev
Hello, Rajib. API were evolved since 2.4, but it should be clear https://lucene.apache.org/core/8_11_2/core/org/apache/lucene/index/package-summary.html#fields On Wed, Jan 18, 2023 at 1:11 PM Saha, Rajib wrote: > Hi All, > > We are in a process for conversion of Lucene from 2.4.0 to 8.11.2 for

Need help for conversion code from Lucene 2.4.0 to 8.11.2

2023-01-18 Thread Saha, Rajib
Hi All, We are in a process for conversion of Lucene from 2.4.0 to 8.11.2 for our platform code. We have used extensively Lucene in our code. We have replaced several of our code to Lucene 8.11.2 APIs. But, few places, we are stuck of which New Lucene APIs to use, as not getting any suitable