Need approach to store JSON data in Lucene index

2021-06-17 Thread Amol Suryawanshi
Hi Team, We are using Lucene Java library in our organization to store JSON files data into to Lucene indexes. Our JSON file are structured in below format. 1. Testcase has several Testcase steps 2. Testcase has several Tasks 3. Tasks has task step 4. Task step has Actions and obje

Pagination in TermsEnum

2019-12-06 Thread Amol Suryawanshi
Hello, I am using TermsEnum to get distinct values of a field. Now I want to implement pagination using TermsEnum. Is it possible? Thanks & Regards, Amol Suryawanshi. Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

RE: Get distinct fields values from lucene index

2019-11-25 Thread Amol Suryawanshi
Thanks Michael, Appreciate your feedback. It’s working for me now. Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Amol Suryawanshi Sent: Monday, November 25, 2019 7:05:36 PM To: java-user@lucene.apache.org Subject: R

RE: Get distinct fields values from lucene index

2019-11-25 Thread Amol Suryawanshi
his is done with faceting and aggregations, respectively, based on Lucene's low-level APIs. Have you looked at TermsEnum? You can use that to get all distinct terms for a segment, and then it is up to you to coalesce terms across segments ("leaves"). On Thu, Nov 21, 2019 at 1:15 AM Amo

Get distinct fields values from lucene index

2019-11-20 Thread Amol Suryawanshi
Hello, I am using lucene in my organization. I want to know how can I get distinct values from lucene index. I have tried “GroupingSearch” API but it doesn’t serves the purpose. It will give all documents contains distinct values. I have used below code. final GroupingSearch groupingSearch =