lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <jpou...@gmail.com>
Subject Re: Lucene 6.1: number of hits per document
Date Fri, 02 Sep 2016 07:35:42 GMT
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.

Le jeu. 1 sept. 2016 à 16:09, szzoli <reg9szabo@freemail.hu> a écrit :

> I call
> IndexSearcher.search(Query, Collector)
> but it is void. Where can I obtain the Scorer object?
> collector.getTotalHits()
> seems to return the number of the documents.
> How can I tell it that it should count the hits in the approriate document?
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Lucene-6-1-number-of-hits-per-document-tp4293245p4294308.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message