: I trying to split the query into multiple subqueries
: (LocalSolrQueryRequest) in my custom handler and call SearchHandler's
: handleRequestBody on each of these LocalSolrQueryRequests. Its sort of a

FWIW: I'm not totally understanding what you are trying to do, but 
generally speaking it is extremely rare that a piece of code should ever 
call core.getSearcher().

using SolrQueryRequest.getSearcher() garuntees you a consistent 
SolrIndexSearcher for the life of hte request, and that 
SolrIndexSearcher's refcount is decremented when you close the 
SolrQueryRequest.

If you want to "fork" a request and process it in paralel -- or process 
multiple variations of it -- i would not suggest making your own 
LocalSolrQueryRequest objects, because each one could potentially have a 
differnet SolrIndexSearcher if a newSearcher event takes place in between 
instantiating your LocalSolrQueryRequest.

I would either consistently reuse the original SolrQueryRequest in all of 
your sub-requests, or write your own SolrQueryRequest subclass that always 
reuses the SolrIndexSearcher from your "root" request.


-Hoss

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to