Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use global Constants.VERSION when opening index writer.

  • Loading branch information...
commit 3098af1a4b5f5c88c533ec8b1369dcac29e5f9ba 1 parent cd29c07
@rnewson authored
View
2  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));
Please sign in to comment.
Something went wrong with that request. Please try again.