lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: Get total number of results
Date Mon, 13 Sep 2010 09:53:40 GMT
http://lucene.apache.org/java/3_0_2/api/core/org/apache/lucene/search/TopDocsCollector.html#getTotalHits%28%29


--
Ian.


On Mon, Sep 13, 2010 at 10:46 AM, liat oren <oren.liat@gmail.com> wrote:
> Hi,
>
> I need to give the user the total number of results when running a query.
>
> Currently I use the TopDocCollector to get the top 200 documents.
>
> How can I know the total number of results?
>
> Thanks a lot,
> Liat
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message