RE: Get distinct fields values from lucene index

2019-11-25 Thread Amol Suryawanshi
h (IOException e) { e.printStackTrace(); } Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Michael Sokolov Sent: Friday, November 22, 2019 8:11:25 PM To: java-user@lucene.apache.org Subject: Re: Get distinct fie

RE: Get distinct fields values from lucene index

2019-11-25 Thread Amol Suryawanshi
; } Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Michael Sokolov Sent: Friday, November 22, 2019 8:11:25 PM To: java-user@lucene.apache.org Subject: Re: Get distinct fields values from lucene index In Solr and ES t

Re: Get distinct fields values from lucene index

2019-11-22 Thread Michael Sokolov
In Solr and ES this 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