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