Re: Question about searcherManager applyAllDeletes parameter and maybeRefresh method

2023-03-03 Thread Patrick Zhai
Note that in the javadoc it says "If false, the deletes may or may not be applied" means it will not force applying all the delete and it's up to IndexWriter to decide whether to apply at the refresh time or not, I'm not 100% sure how IndexWriter decides that and maybe someone knows more can chime

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

2023-03-03 Thread Mikhail Khludnev
Hello, Rajib. Lucene supports https://lucene.apache.org/core/8_11_1/core/org/apache/lucene/analysis/tokenattributes/PayloadAttribute.html You can check https://lucene.apache.org/core/8_11_1/analyzers-common/org/apache/lucene/analysis/payloads/package-summary.html for example of payloads injection.

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

2023-03-03 Thread Saha, Rajib
Hi Mikhail, Uwe, We are been able to overcome several hurdles. Thanks for your suggestions, which helped us a lot. 😊 We need one more suggestion. Previously, we had used a sample code like below: = byte[] buffer; private Token token = new Token(UID_PAYLOAD_STAR