Update of /var/cvs/contributions/lucene/src/org/mmbase/module/lucene
In directory james.mmbase.org:/tmp/cvs-serv12076

Modified Files:
        Indexer.java 
Log Message:
added check for Interrupt


See also: 
http://cvs.mmbase.org/viewcvs/contributions/lucene/src/org/mmbase/module/lucene


Index: Indexer.java
===================================================================
RCS file: 
/var/cvs/contributions/lucene/src/org/mmbase/module/lucene/Indexer.java,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -b -r1.58 -r1.59
--- Indexer.java        19 Mar 2008 16:25:22 -0000      1.58
+++ Indexer.java        21 Jul 2008 14:25:54 -0000      1.59
@@ -34,7 +34,7 @@
  *
  * @author Pierre van Rooden
  * @author Michiel Meeuwissen
- * @version $Id: Indexer.java,v 1.58 2008/03/19 16:25:22 michiel Exp $
+ * @version $Id: Indexer.java,v 1.59 2008/07/21 14:25:54 michiel Exp $
  **/
 public class Indexer {
 
@@ -442,6 +442,8 @@
                 Directory.copy(fullIndex, getDirectory(), true);
                 Date lastFullIndex = setLastFullIndex(startTime);
                 log.info("Full index finished at " + lastFullIndex + ". Copied 
" + fullIndex + " to " + getDirectory() + " Total nr documents in index '" + 
getName() + "': " + writer.docCount());
+            } else if (Thread.currentThread().isInterrupted()) {
+                addError("Interrupted, will not update the index");
             } else {
                 addError((errorCount - errorCountBefore) + " errors during 
full index. Will not update the index.");
             }
@@ -497,7 +499,7 @@
         }
         if (document != null) {
             if (log.isDebugEnabled()) {
-                log.debug("New document " + document);
+                log.debug("New document " + document.getBoost() + " " + 
document);
             }
             writer.addDocument(document);
         }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to