Close
dtSearch Engine API for Java
IndexJob.setAutoCommitIntervalMB Method

Number of megabytes to index before committing the index update.

Syntax
Java
public void setAutoCommitIntervalMB(int autoCommitIntervalMB);

By default, an index update will commit after all documents have been indexed. Set this option to a non-zero value to force updates to commit periodically during an update, so newly-indexed documents will be searchable before the index update is complete. 

Note: This can make indexing substantially slower and results in a more fragmented index. The recommended value is zero to minimize unnecessary index commits.