Le lun. 29 août 2016 à 12:00, <reg9sz...@freemail.hu> a écrit :

> I was searching for a word in an index (multiple files were indexed in a
> library). I was searching e.g for "run". A document contained two times, an
> other three times this word.
> I would like to see int the result for the firs document "2", for the
> other "3".
>

If the Query is a TermQuery, you can get this number by calling
Scorer.freq() on the Scorer that is passed to Collector.setScorer(). Is it
what you were looking for?

Reply via email to