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

Modified Files:
        Indexer.java 
Log Message:
Log less aggressively on update errors if the indices are simply not yet build


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.56
retrieving revision 1.57
diff -u -b -r1.56 -r1.57
--- Indexer.java        25 Feb 2008 10:46:35 -0000      1.56
+++ Indexer.java        25 Feb 2008 14:10:01 -0000      1.57
@@ -34,7 +34,7 @@
  *
  * @author Pierre van Rooden
  * @author Michiel Meeuwissen
- * @version $Id: Indexer.java,v 1.56 2008/02/25 10:46:35 michiel Exp $
+ * @version $Id: Indexer.java,v 1.57 2008/02/25 14:10:01 michiel Exp $
  **/
 public class Indexer {
 
@@ -296,6 +296,8 @@
                 updated += index(j, writer, indexDefinition.getId());
                 j.close();
             }
+        } catch (FileNotFoundException fnfe) {
+            log.debug(fnfe);
         } catch (IOException ioe) {
             addError(ioe.getMessage());
             log.error(ioe);
@@ -347,6 +349,9 @@
                         }
                     }
                     docs.close();
+                } catch (FileNotFoundException fnfe) {
+                    // ignore, indices were simply not y et build.
+                    log.debug(fnfe);
                 } catch (IOException ioe) {
                     addError(ioe.getMessage());
                     log.error(ioe);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to