From f9f3f74b68f39c8c77e8526e989581e9a37d92d6 Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Fri, 19 Nov 2004 20:58:45 +0000 Subject: [PATCH] open the searcher so that the searcher's close() call will close the implicitly opened reader git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150653 13f79535-47bb-0310-9956-ffa450edef68 --- src/jsp/results.jsp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jsp/results.jsp b/src/jsp/results.jsp index b5510cd228c..13a89e09693 100755 --- a/src/jsp/results.jsp +++ b/src/jsp/results.jsp @@ -42,8 +42,7 @@ public String escapeHTML(String s) { //less try { - searcher = new IndexSearcher( - IndexReader.open(indexName)); //create an indexSearcher for our page + searcher = new IndexSearcher(indexName); //create an indexSearcher for our page //NOTE: this operation is slow for large //indices (much slower than the search itself) //so you might want to keep an IndexSearcher