On Thu, Jul 23, 2009 at 1:09 PM, shb <suh...@gmail.com> wrote:

> if I use query.setRows(Integer.MAX_VALUE);
> the query will become very slow, because searcher will go
> to fetch the filed value in the index for all the returned
> document.
>
> So if I set query.setRows(10), is there any other ways to
> get all the ids? thanks
>

You should fetch as many rows as you need and not more. Why do you need all
the ids? I'm assuming that by id you mean the uniqueKey of a document.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to