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 for Windows 10 From: Amol Suryawanshi Sent: Monday, November 25, 2019 7:05:36 PM To: java-user@lucene.apache.org Subject: RE: Get d

RE: Get distinct fields values from lucene index

2019-11-25 Thread Amol Suryawanshi
Hello Michael, Thanks for the response, I have tried the approach suggested by you(TermsEnum) but it is not working for me. I have used below code. String field = "address"; try (IndexReader reader = Utils.getIndexReader(indexDirectoryPath)) { List leaves = reader.leaves(); for (LeafRe