dnaber 2004/11/18 11:28:02 Modified: src/jsp results.jsp Log: adding a comment that opening an IndexReader can be slow Revision Changes Path 1.6 +6 -2 jakarta-lucene/src/jsp/results.jsp Index: results.jsp =================================================================== RCS file: /home/cvs/jakarta-lucene/src/jsp/results.jsp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- results.jsp 18 Nov 2004 19:22:27 -0000 1.5 +++ results.jsp 18 Nov 2004 19:28:02 -0000 1.6 @@ -43,8 +43,12 @@
try { searcher = new IndexSearcher( - IndexReader.open(indexName) //create an indexSearcher for our page - ); + IndexReader.open(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 + //open + } catch (Exception e) { //any error that happens is probably due //to a permission problem or non-existant //or otherwise corrupt index --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]