Permalink
Browse files

use global Constants.VERSION when opening index writer.

  • Loading branch information...
1 parent cd29c07 commit 3098af1a4b5f5c88c533ec8b1369dcac29e5f9ba Robert Newson committed Jun 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/github/rnewson/couchdb/lucene/DatabaseIndexer.java
@@ -787,7 +787,7 @@ private void maybeCommit() throws IOException {
private IndexWriter newWriter(final Directory dir) throws IOException {
final IndexWriterConfig config = new IndexWriterConfig(
- Version.LUCENE_30, Constants.ANALYZER);
+ Constants.VERSION, Constants.ANALYZER);
final LogByteSizeMergePolicy mergePolicy = new LogByteSizeMergePolicy();
mergePolicy.setMergeFactor(ini.getInt("lucene.mergeFactor", 10));

0 comments on commit 3098af1

Please sign in to comment.