lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Access to SolrIndexSearcher in UpdateProcessor
Date Sat, 08 Dec 2007 06:11:25 GMT
: 
: 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


Mime
View raw message