FAQ
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

Search Discussions

  • Ian Lea at Sep 13, 2010 at 9:54 am
    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 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedSep 13, '10 at 9:46a
activeSep 13, '10 at 9:54a
posts2
users2
websitelucene.apache.org

2 users in discussion

Liat oren: 1 post Ian Lea: 1 post

People

Translate

site design / logo © 2022 Grokbase