lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lewis John Mcgibbney <lewis.mcgibb...@gmail.com>
Subject Necessary to close() IndexSearcher in 4.X?
Date Thu, 04 Apr 2013 02:15:14 GMT
Hi,
I am encountering many situations where searcher.close() is present in
finally blocks such as

        } finally {
            if (searcher != null) {
                try {
                    searcher.close();
                } catch (Exception ignore) {
                }
                searcher = null;
            }
        }

Is some similar implementation still necessary in the 4.X API?

Thank you very much

Lewis

-- 
*Lewis*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message