Need help of example of Lucene use.

2023-01-04 Thread Saha, Rajib
Hi, We are in a project of migration of Lucene from 2.4.1 to 8.11.2. In our project Lucene is been used extensively. We are looking for examples/sample code of uses of Lucene 8.11.2. Currently I am badly required of some examples of using TokenStream, tokenAttributes, *Filter. I need to replac

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

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

2023-01-29 Thread Saha, Rajib
CJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2PNhH%2BroJce9BR5cuh1p81iXHrPx53hqot3POeV0Ua0%3D&reserved=0 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 our > platform code. > We have used

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

2023-01-30 Thread Saha, Rajib
nown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=bjsIK1Xhb%2B%2FQfXgUqRbJlRmUyg%2FfYMHGeIEyMD39Bes%3D&reserved=0 On Sun, Jan 29, 2023 at 2:08 PM Saha, Rajib wrote: > Hi Mikhail, > > Thanks for the reference link. > It really helped me. > > In One of my requirement, I need

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

2023-01-31 Thread Saha, Rajib
Hi All, If you have any suggestion on any below points[in my previous mail thread], could you please share your experience? We are bit stuck on those points. ☹ Need some of your expert's suggestion. Regards Rajib -Original Message- From: Saha, Rajib Sent: 30 January 2023 18:

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

2023-02-06 Thread Saha, Rajib
Hello, Rajib. On Mon, Jan 30, 2023 at 4:07 PM Saha, Rajib wrote: > Hi Mikhail, > > Thanks for your suggestion. It solved lots of cases today in my end. 😊 > > I need some more suggestions from your end. I am putting together as below > one by one: > =

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

2023-02-09 Thread Saha, Rajib
rom Lucene 2.4.0 to 8.11.2 Hi, Since around Lucene 4 (maybe already in 3) there is no way to write index files in random access anymore. All data must be written in sequence (aka input stream). This is especially important as Lucene index files use checksums since around Lucene 5. Uwe Am 06.02.202

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

2023-02-13 Thread Saha, Rajib
nt to just deal with termporary files, the Directory API allows you to maintain temporary files, too. Uwe Am 10.02.2023 um 06:49 schrieb Saha, Rajib: > Hi Uwe, > > Thanks for the clarification. > We may have to rewrite the whole logic related to it, as seek functionality > i

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

2023-03-03 Thread Saha, Rajib
rary files, too. Uwe Am 10.02.2023 um 06:49 schrieb Saha, Rajib: > Hi Uwe, > > Thanks for the clarification. > We may have to rewrite the whole logic related to it, as seek functionality > is no more for IndexOutput. > > BTW, I have one more query related to

Run time error in IndexWriter.addDocument

2023-04-03 Thread Saha, Rajib
Hi, We are in a project from migration of Lucene 2.4.1 to 8.11.2. We have achieved till now about resolving the compilation errors. It is a huge project. On runtime, we are facing an error on the API IndexWriter.addDocument(). Not sure, if I am missing any other jar at runtime. Can anybody plea

RE: Run time error in IndexWriter.addDocument

2023-04-03 Thread Saha, Rajib
around lucene-analysis-stempel*jar. Please check that you have only one jar file from the corresponding version. On Mon, Apr 3, 2023 at 10:59 AM Saha, Rajib wrote: > Hi, > > We are in a project from migration of Lucene 2.4.1 to 8.11.2. > > We have achieved till now about resolv

RE: Run time error in IndexWriter.addDocument

2023-04-03 Thread Saha, Rajib
e error in IndexWriter.addDocument Nope, it's embedded completely. You can find Trie.java in lucene-8.11.2 sources. And compiled class in lucene-analyzers-stempel-8.11.2.jar as well. On Mon, Apr 3, 2023 at 12:03 PM Saha, Rajib wrote: > Hi Mikhail, > > In top stack, >

Difference in search result for Luke and my code.

2024-01-10 Thread Saha, Rajib
Hi Experts, I am in a project of migration of Lucene from 2.4.1 to 8.11.2 for our product. I am seeing some difference in search result of my written code Vs. Luke Tool result on same Index files. Can anybody please explain, what can be the reason behind it? I explaining more in details below.

Regarding extracting Token as String from TokenStream.

2024-01-25 Thread Saha, Rajib
Hi Experts, I need to get the Token as String from TokenStream for some further processing. I have similar code as below. Can somebody please help me, how I can get the Token as String[termText] in below code? ArrayList hotTokens = new ArrayList(); TokenStream stream = analyzer.tokenStream(fiel

Need suggestion for a Lucene upgrade scenario

2024-01-30 Thread Saha, Rajib
Hi, In our project for Lucene migration from 2.4.0 to 8.11.2, we need your suggestion to address a case. With Lucene 2.4.0, we were using the kind of below code snippet. With Lucene 8.11.2[Written snippet below], we need to extract the startOffset & endOffset value for further some calculation s

Difference between '-' and 'NOT' in Lucene Query.

2024-05-06 Thread Saha, Rajib
Hi Experts, As per the definition in https://lucene.apache.org/core/2_9_4/queryparsersyntax.html '-' and 'NOT' in query string stands for same reason theoretically. [cid:image001.png@01DA9FCF.A22DAD00] [cid:image002.png@01DA9FD0.1DB4C0D0] But, in practical, is there any difference? Why I am a

RE: Suggestion needed for a case of Lucene Migration with TokenStream

2025-04-24 Thread Saha, Rajib
argument in new Field() see https://github.com/apache/lucene-solr/blob/e27f44e3d78dfcec230c97e0a1240e3751daeff9/lucene/core/src/java/org/apache/lucene/document/TextField.java#L35C33-L35C44 On Thu, Apr 24, 2025 at 8:37 AM Saha, Rajib wrote: > Hi Experts, > > We are migrating Lucene from 2.4.1

Suggestion needed for a case of Lucene Migration with TokenStream

2025-04-23 Thread Saha, Rajib
Hi Experts, We are migrating Lucene from 2.4.1 to 8.11.2. During Migration for a part of code, we are getting below exception in 8.11.2 based changes from Red line colored. = java.lang.IllegalArgumentException: TokenStream fields must be indexed and tokenized at org.apache.lucene.do

RE: Suggestion needed for a case of Lucene Migration with TokenStream

2025-04-28 Thread Saha, Rajib
yLoads on Tokenstreams obsolete. I'd not recommend to use something payloads on terms nowadays. Uwe Am 24.04.2025 um 12:29 schrieb Mikhail Khludnev: > Right. TextField.TYPE_NOT_STORED should be used then. > > On Thu, Apr 24, 2025 at 10:37 AM Saha, Rajib > wrote: > >> Thanks

RE: Suggestion needed for a case of Lucene Migration with TokenStream

2025-04-29 Thread Saha, Rajib
rks from the API point of view, but the data is different. Uwe Am 28.04.2025 um 12:43 schrieb Saha, Rajib: > Hi Uwe, > > Thank you for your detailed input and valuable advice. I fully understand and > agree that upgrading from such an old version of Lucene involves much more > than ju

RE: Suggestion needed for a case of Lucene Migration with TokenStream

2025-05-26 Thread Saha, Rajib
k if there are still IndexReaders or Writers open by same or other processes. On Linux I have no idea, need an exception message. It should clearly say why it fails. Uwe Am 29.04.2025 um 13:44 schrieb Saha, Rajib: > Hi Uwe, > > In our product we have different level of indexing like MetaData/Full

RE: Suggestion needed for a case of Lucene Migration with TokenStream

2025-05-29 Thread Saha, Rajib
Dear Experts, Can somebody please help and guide me for the below queries? I have become bit clueless now, after giving a good number of different tries. Regards Rajib -Original Message- From: Saha, Rajib Sent: 27 May 2025 11:52 To: java-user@lucene.apache.org Subject: RE: Suggestion