Permalink
Browse files

add trace level indexing of documents as they're indexed.

  • Loading branch information...
1 parent d2c451e commit cf466c7a379926f6489b6b9e38776c2073388724 Robert Newson committed Jul 15, 2009
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/com/github/rnewson/couchdb/lucene/Index.java
@@ -287,6 +287,10 @@ private boolean updateDatabase(final IndexWriter writer, final Analyzer analyzer
docs[j].add(token(Config.DB, dbname, false));
docs[j].add(token(Config.VIEW, viewname, false));
docs[j].add(token(Config.ID, docid, true));
+
+ if (Utils.LOG.isTraceEnabled()) {
+ Utils.LOG.trace("Adding " + docs[j]);
+ }
writer.addDocument(docs[j], analyzer);
}

0 comments on commit cf466c7

Please sign in to comment.