Permalink
Browse files

create or append

  • Loading branch information...
1 parent 7c5fc8d commit d542ceb4b31392acd0d31cd402571323e32f6af5 @hofmeister committed May 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/github/rnewson/couchdb/lucene/DatabaseIndexer.java
@@ -798,7 +798,7 @@ private IndexWriter newWriter(final Directory dir) throws IOException {
mergePolicy.setUseCompoundFile(ini.getBoolean("lucene.useCompoundFile",
false));
config.setMergePolicy(mergePolicy);
-
+ config.setOpenMode(IndexWriterConfig.OpenMode.CREATE_OR_APPEND);
config.setRAMBufferSizeMB(ini.getDouble("lucene.ramBufferSizeMB",
IndexWriterConfig.DEFAULT_RAM_BUFFER_SIZE_MB));

0 comments on commit d542ceb

Please sign in to comment.