Paging sorted results

2007-05-14 Thread dontspamterry
Hi there, Is there a way where I can page through sorted results? Say my query has 1000 hits (sorted by name field), but I want to return only 100 rows at a time. There was no search API() which takes a hit collector and a Sort, so I looked at the TopFieldDocCollector, but it only accepts the max

Re: Paging sorted results

2007-05-14 Thread Mark Miller
All you need is the max number. If you want 20-30, get up to 30 and ignore 1-20. If you think about it, this is what the system would have to do for you anyway (Lucene does not). - Mark On 5/14/07, dontspamterry <[EMAIL PROTECTED]> wrote: Hi there, Is there a way where I can page through sor

Stephen Hussey is out of the office.

2007-05-14 Thread Stephen Hussey
I will be out of the office starting 05/14/2007 and will not return until 05/15/2007. I will respond to your message when I return.

Re: Paging sorted results

2007-05-14 Thread dontspamterry
Figured it out before I read your reply. Thanks for your help! -Terry markrmiller wrote: > > All you need is the max number. If you want 20-30, get up to 30 and ignore > 1-20. If you think about it, this is what the system would have to do for > you anyway (Lucene does not). > > - Mark > > O