Hi all,

I'm trying to implement a custom UpdateProcessor which requires access to
SolrIndexSearcher. However, I'm constantly running into "Too many open
files" exception. I'm confused about which is the correct way to get access
to SolrIndexSearcher in UpdateProcessor:

1) req.getSearcher()
2) req.getCore().getSearcher()
3) req.getCore().newSearcher("MyCustomerProcessorFactory");

I have tried 1) & 3) but both produce "Too many open files". The weird thing
with 3) is the SolrIndexSearcher created gets set to null automatically by
Solr so I didn't have a chance to call searcher.close() method. I suspect
all searchers open this way will be set to null when a commit is made. Any
recommendation?

-- 
Regards,

Cuong Hoang

Reply via email to