Update of /var/cvs/contributions/lucene/src/org/mmbase/module/lucene
In directory james.mmbase.org:/tmp/cvs-serv22632
Modified Files:
Searcher.java
Log Message:
if the index file simple does not exist yet, a warning without stacktrace about
that suffices.
See also:
http://cvs.mmbase.org/viewcvs/contributions/lucene/src/org/mmbase/module/lucene
Index: Searcher.java
===================================================================
RCS file:
/var/cvs/contributions/lucene/src/org/mmbase/module/lucene/Searcher.java,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- Searcher.java 4 Feb 2009 16:21:51 -0000 1.54
+++ Searcher.java 19 Feb 2009 10:22:01 -0000 1.55
@@ -34,7 +34,7 @@
* A wrapper around Lucene's {...@link
org.apache.lucene.search.IndexSearcher}. Every {...@link Indexer} has its own
Searcher.
*
* @author Pierre van Rooden
- * @version $Id: Searcher.java,v 1.54 2009/02/04 16:21:51 michiel Exp $
+ * @version $Id: Searcher.java,v 1.55 2009/02/19 10:22:01 michiel Exp $
* @todo Should the StopAnalyzers be replaced by index.analyzer? Something
else?
**/
public class Searcher implements NewSearcher.Listener,
FullIndexEvents.Listener {
@@ -220,6 +220,10 @@
final Hits hits;
try {
hits = getHits(value, filter, sort, analyzer, extraQuery,
fields, false);
+ } catch (java.io.FileNotFoundException fnfe) {
+ log.warn(fnfe + " returning empty list");
+ needsNewSearcher = true;
+ return Collections.emptyList();
} catch (java.io.IOException ioe) {
log.warn(ioe + " returning empty list", ioe);
needsNewSearcher = true;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs