lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: pagination
Date Wed, 21 Feb 2007 14:58:25 GMT
I'll add that in a web application that using Hits to page through  
results is perfectly acceptable.  Going to these other APIs is a bit  
more complicated and often unnecessary.  Don't prematurely optimize!  :)

	Erik


On Feb 21, 2007, at 8:07 AM, Erick Erickson wrote:

> See TopDocs, HitCollector, etc. Don't iterate through a Hits  
> objects to get
> docs beyond, say, 100 since it's designed to efficiently return the  
> first
> 100 documents but re-executes the queries each 100 or so times you  
> advance
> to the next document.
>
> Erick
>
> On 2/21/07, Kainth, Sachin <Sachin.Kainth@atkinsglobal.com> wrote:
>>
>> Hello,
>>
>> I was wondering if Lucene provides any mechanism which helps in
>> pagination.  In other words is there a way to return the first 10  
>> of 500
>> results and then the  next 10 and so on.
>>
>> Cheers
>>
>>
>> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message