Re: many index reader problem

2012-07-16 Thread Danil Ε’ORIN
Do you really HAVE to keep all those indexes opened? You could use a LRU or LFU cache of reasonable size with opened indexes, and open new searcher if it's not in the cache. If your indexes are quite small, the open call shouldn't be too expensive. On Mon, Jul 16, 2012 at 11:51 AM, Ian Lea wrot

Re: many index reader problem

2012-07-16 Thread Ian Lea
OOV or OOM? Always best to post a full stack trace, and version of lucene, and OS. Anyway - give your app more memory? Close searchers after use or some period of inactivity? Best long term solution is probably to merge the many small indexes into one, or a few, larger indexes and restrict quer