Karl,
You are opening IndexSearchers in this code but not closing them.
If GC & finalizers don't happen to run before you run out of file
handles, you will get exceptions.
You could close the IndexSearcher after every request, but it would
lead to very poor performance. Better to keep a single
Hello,
how do I close and open an IndexSearcher object in order to free resources
that cause my system to throw an IOException saing "Too many open files" as
well as trouble with an index lock file ?
I have the following code:
synchronized public static Hits search(String queryString, String[]