Apache Lucene open-source search software
adding a comment that opening an IndexReader can be slow
Daniel Naber229e6e039f2f
diff --git a/src/jsp/results.jsp b/src/jsp/results.jspindex e53e3237f01..b5510cd228c 100755--- a/src/jsp/results.jsp+++ b/src/jsp/results.jsp@@ -43,8 +43,12 @@ public String escapeHTML(String s) {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