: 
: 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()

that's the way i would expect should work best ... it will give you a 
consistent view of the index for the duration of the request.  i can't 
imagine why it would give you too many open files ... it should be a 
reused searcher shared by all concurrent requests, so accessing it 
shouldn't open more file handles.  Searchers are refrence counted ... 
maybe there is an edge case where they aren't getting freed up properly.

can you post a small example of the kind of UpdateProcessor you have (it 
doesn't need to do everything you are doing, just something that 
demonstrates the too many files bug)



-Hoss

Reply via email to