Update of /var/cvs/contributions/lucene/src/org/mmbase/module/lucene
In directory james.mmbase.org:/tmp/cvs-serv16703
Modified Files:
Searcher.java
Log Message:
A corrupt index should log a bit higher than sercice. It's pretty bad.
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.53
retrieving revision 1.54
diff -u -b -r1.53 -r1.54
--- Searcher.java 20 Aug 2008 11:17:02 -0000 1.53
+++ Searcher.java 4 Feb 2009 16:21:51 -0000 1.54
@@ -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.53 2008/08/20 11:17:02 michiel Exp $
+ * @version $Id: Searcher.java,v 1.54 2009/02/04 16:21:51 michiel Exp $
* @todo Should the StopAnalyzers be replaced by index.analyzer? Something
else?
**/
public class Searcher implements NewSearcher.Listener,
FullIndexEvents.Listener {
@@ -221,7 +221,7 @@
try {
hits = getHits(value, filter, sort, analyzer, extraQuery,
fields, false);
} catch (java.io.IOException ioe) {
- log.service(ioe + " returning empty list", ioe);
+ log.warn(ioe + " returning empty list", ioe);
needsNewSearcher = true;
return Collections.emptyList();
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs