dnaber 2004/11/19 12:58:45 Modified: src/jsp results.jsp Log: open the searcher so that the searcher's close() call will close the implicitly opened reader Revision Changes Path 1.7 +1 -2 jakarta-lucene/src/jsp/results.jsp Index: results.jsp =================================================================== RCS file: /home/cvs/jakarta-lucene/src/jsp/results.jsp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- results.jsp 18 Nov 2004 19:28:02 -0000 1.6 +++ results.jsp 19 Nov 2004 20:58:45 -0000 1.7 @@ -42,8 +42,7 @@ //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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]