Skip to content

Commit 140f0b7

Browse files
Merge pull request DSpace#9790 from DSpace/backport-9775-to-dspace-7_x (#769)
[Port dspace-7_x] Make statistics autocommit much more frequently Co-authored-by: Tim Donohue <tim.donohue@lyrasis.org>
1 parent 4f579e1 commit 140f0b7

1 file changed

Lines changed: 16 additions & 9 deletions

File tree

dspace/solr/statistics/conf/solrconfig.xml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,16 @@
3232

3333
<codecFactory class="solr.SchemaCodecFactory"/>
3434

35-
<!-- Use classic schema.xml & disallow programmatic changes to schema at runtime -->
35+
<!-- Use classic schema.xml & disallow programmatic changes to
36+
schema at runtime -->
3637
<schemaFactory class="ClassicIndexSchemaFactory"/>
3738

3839
<indexConfig>
3940
<ramBufferSizeMB>32</ramBufferSizeMB>
4041
<maxBufferedDocs>1000</maxBufferedDocs>
4142
<lockType>${solr.lock.type:native}</lockType>
42-
<!-- Set to true to "write detailed debug information from the indexing process as Solr log messages" -->
43+
<!-- Set to true to "write detailed debug information from the
44+
indexing process as Solr log messages" -->
4345
<infoStream>false</infoStream>
4446
</indexConfig>
4547

@@ -48,7 +50,7 @@
4850
<!-- How often should commits be done automatically -->
4951
<autoCommit>
5052
<maxDocs>10000</maxDocs> <!--Commit every 10.000 documents-->
51-
<maxTime>${solr.autoCommit.maxTime:900000}</maxTime> <!--Default commit every 15 minutes-->
53+
<maxTime>${solr.autoCommit.maxTime:10000}</maxTime> <!--Ten seconds-->
5254
<openSearcher>true</openSearcher>
5355
</autoCommit>
5456

@@ -62,14 +64,16 @@
6264
<maxBooleanClauses>${solr.max.booleanClauses:1024}</maxBooleanClauses>
6365

6466
<!-- Cache used by SolrIndexSearcher for filters (DocSets) for
65-
unordered sets of *all* documents that match a query. Caches results of 'fq' search param. -->
67+
unordered sets of *all* documents that match a
68+
query. Caches results of 'fq' search param. -->
6669
<filterCache class="solr.search.CaffeineCache"
6770
size="512"
6871
initialSize="512"
6972
autowarmCount="0"/>
7073

71-
<!-- Caches results of previous searches - ordered lists of document ids
72-
(DocList) based on a query, a sort, and the range of documents requested. -->
74+
<!-- Caches results of previous searches - ordered lists of
75+
document ids (DocList) based on a query, a sort, and the
76+
range of documents requested. -->
7377
<queryResultCache class="solr.search.CaffeineCache"
7478
size="512"
7579
initialSize="512"
@@ -91,7 +95,8 @@
9195
<slowQueryThresholdMillis>1000</slowQueryThresholdMillis>
9296
</query>
9397

94-
<!-- Controls how the Solr HTTP RequestDispatcher responds to requests -->
98+
<!-- Controls how the Solr HTTP RequestDispatcher responds to
99+
requests -->
95100
<requestDispatcher handleSelect="false" >
96101
<requestParsers enableRemoteStreaming="true"
97102
multipartUploadLimitInKB="-1"
@@ -113,7 +118,8 @@
113118

114119
<!-- Processes updates to the index -->
115120
<requestHandler name="/update" class="solr.UpdateRequestHandler">
116-
<!-- Update chain processor required by DSpace to auto generate the UUID field in solr -->
121+
<!-- Update chain processor required by DSpace to auto
122+
generate the UUID field in solr -->
117123
<lst name="defaults">
118124
<str name="update.chain">uuid</str>
119125
</lst>
@@ -126,7 +132,8 @@
126132
</lst>
127133
</requestHandler>
128134

129-
<!-- Required for DSpace to ensure that unique identifiers are added to each solr document -->
135+
<!-- Required for DSpace to ensure that unique identifiers are
136+
added to each solr document -->
130137
<updateRequestProcessorChain name="uuid">
131138
<processor class="solr.UUIDUpdateProcessorFactory">
132139
<str name="fieldName">uid</str>

0 commit comments

Comments
 (0)