Otis Gospodnetić Apache Lucene - System Properties

Lucene has a number of properties that can be tuned. They can be adjusted either programmatically, using the Lucene API, or their default values can be set via system properties described in this document. Starting with Lucene 1.9, the system properties (except org.apache.lucene.lockDir) are not supported anymore and the API (i.e. the get/set methods) should be used directly.

Lucene Property System Property Default Value
mergeFactor org.apache.lucene.mergeFactor 10
minMergeDocs org.apache.lucene.minMergeDocs 10
maxMergeDocs org.apache.lucene.maxMergeDocs Integer.MAX_VALUE
maxFieldLength org.apache.lucene.maxFieldLength 10000
COMMIT_LOCK_TIMEOUT org.apache.lucene.commitLockTimeout 10000 ms
WRITE_LOCK_TIMEOUT org.apache.lucene.writeLockTimeout 1000 ms
maxClauseCount org.apache.lucene.maxClauseCount 1024
lockDir org.apache.lucene.lockDir the value of java.io.tmpdir system property
FSDirectory.class org.apache.lucene.FSDirectory.class org.apache.lucene.store.FSDirectory
SegmentReader.class org.apache.lucene.index.SegmentReader.class org.apache.lucene.index.SegmentReader