On Fri, Oct 29, 2010 at 5:36 PM, Grant Ingersoll <gsing...@apache.org> wrote:
> Is it OK to call and increment a Searcher ref (i.e. SolrCore.getSearcher()) 
> in a SolrEventListener.postCommit() hook as long as I decrement it when I am 
> done?  I need to get a handle on an IndexReader so I can dump out a portion 
> of the index to an external process.

Yes, just be aware that the searcher you will get will not contain the
recently committed documents.
If you want that, look at the newSearcher hook instead.

-Yonik
http://www.lucidimagination.com

Reply via email to