Requesting 5000 rows will use a lot of server time, because
it has to fetch the information for 5000 results when it
makes the response.

It is much more efficient to request only the results you
will need, usually 10 at a time.

wunder

On 2/17/09 3:30 AM, "Jana, Kumar Raja" <kj...@ptc.com> wrote:

> Hi,
> 
>  
> 
> I am trying to avoid queries which take a lot of server time. For this I
> plan to use setRows(Integer) and setTimeAllowed(Integer) methods while
> creating the SolrQuery. I would like to know the following:
> 
>  
> 
> 1.       I set SolrQuery.setRows(5000) Will the processing of the query
> stop once 5000 results are found or the query will be completely
> processed and then the result set is sorted out based on Rank Boosting
> and the top 5000 results are returned?
> 
> 2.       If I set SolrQuery.setTimeAllowed(2000) Will this kill query
> processing after 2 secs? (I know this question sounds silly but I just
> want a confirmation from the experts J )
> 
>  
> 
> Is there anything else I can do to get the desired results?
> 
>  
> 
> Thanks,
> 
> Kumar
> 

Reply via email to