Re: Lucene 6.1: number of hits per document

2016-09-02 Thread szzoli
This link helped me, it contained the solution. Thank you! -- View this message in context: http://lucene.472066.n3.nabble.com/Lucene-6-1-number-of-hits-per-document-tp4293245p4294403.html Sent from the Lucene - Java Users mailing list archive at Nabble.com. --

Re: Lucene 6.1: number of hits per document

2016-09-02 Thread Adrien Grand
What is an "appropriate document"? This discussion looks like an XY problem where you are asking about freqs while the actual problem you are trying to solve is different. Anyway, here are two ways to get freqs, first only for the top docs and then inside a collector: http://pastebin.com/FfFy2Amp.