Skip to content

Commit 138c2e4

Browse files
Update run.properties with commitSeconds=0 and explaining comment
1 parent f3e5b0e commit 138c2e4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/main/config/run.properties.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# are marked with '!'
33

44
directory = ${HOME}/data/search
5-
commitSeconds = 5
5+
# A value of 0 will disable automatic commits and rely on icat.server to explicitly call commit after creating new documents
6+
commitSeconds = 0
67
# Lucene limits the max number of documents in an index to Integer.MAX_VALUE - 128
78
maxShardSize = 2147483519
89
ip = 127.0.0.1/32

src/main/resources/run.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
# are marked with '!'
33

44
directory = ${HOME}/data/search
5-
commitSeconds = 5
5+
# A value of 0 will disable automatic commits and rely on icat.server to explicitly call commit after creating new documents
6+
commitSeconds = 0
67
maxShardSize = 2147483519
78
ip = 127.0.0.1/32
89
# A search taking longer than this will be cancelled to avoid blocking other users' searches

src/site/xhtml/installation.xhtml.vm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454

5555
<dt>commitSeconds</dt>
5656
<dd>the interval in seconds between committing lucene changes to
57-
disk and updating the index.</dd>
57+
disk and updating the index. Automatic commits can be disabled by setting to
58+
0, in which case icat.server will need to explicitly commit after creating a
59+
batch of documents.</dd>
5860

5961
<dt>maxShardSize</dt>
6062
<dd>The maximum number of documents to store in a single index before "sharding"

0 commit comments

Comments
 (0)