lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kainth, Sachin" <>
Subject RE: Returning only a small set of results
Date Thu, 22 Feb 2007 10:01:25 GMT
What can you use in place of Hits and how do they differ? 

-----Original Message-----
From: Chris Hostetter [] 
Sent: 21 February 2007 22:43
Subject: Re: Returning only a small set of results

: A question about efficiency and the internal workings of the Hits
: When we make a call to IndexSearcher's search method thus:
: Hits hits = searcher.Search(query);
: Do we actually, physically get back all the results of the query even
: there are 20 million results or for efficiency do we physically get

the Hits class fetches back the first N result documents (where N is 100
think) and then it fetches more and more as needed if you ask for more.
generally speaking Hits works fine for simple pagination applications,
but if you are intented on walking deep down the list of ordred results,
i would avoid it.


To unsubscribe, e-mail:
For additional commands, e-mail:

This message has been scanned for viruses by MailControl - (see

This email and any attached files are confidential and copyright protected. If you are not
the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise
expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered in England No.
1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW.

Consider the environment. Please don't print this e-mail unless you really need to. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message