SOLR-13817: Clean up config files to remove the default 'class=' attribute in

standard caches.
This commit is contained in:
Andrzej Bialecki 2020-01-02 20:58:47 +01:00
parent 15d5e6662c
commit 7d0cf0df32
20 changed files with 39 additions and 83 deletions

View File

@ -83,25 +83,22 @@
that match a particular query.
-->
<filterCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<queryResultCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<documentCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>
<cache name="perSegFilter"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="0"
autowarmCount="10" />

View File

@ -37,21 +37,18 @@
-->
<filterCache
enabled="${filterCache.enabled}"
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<queryResultCache
enabled="${queryResultCache.enabled}"
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<documentCache
enabled="${documentCache.enabled}"
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>

View File

@ -21,19 +21,19 @@
<schemaFactory class="ClassicIndexSchemaFactory"/>
<query>
<cache name="lfuCacheDecayFalse"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="9"
timeDecay="false" />
<cache name="lfuCacheDecayTrue"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="9"
timeDecay="true" />
<cache name="lfuCacheDecayDefault"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="9" />
</query>

View File

@ -83,25 +83,22 @@
that match a particular query.
-->
<filterCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<queryResultCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<documentCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>
<cache name="perSegFilter"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="0"
autowarmCount="10" />

View File

@ -39,8 +39,8 @@
<!-- deep paging better play nice with caching -->
<query>
<!-- no wautowarming, it screws up our ability to sanity check cache stats in tests -->
<filterCache class="solr.CaffeineCache" size="50" initialSize="50" autowarmCount="0"/>
<queryResultCache class="solr.CaffeineCache" size="50" initialSize="50" autowarmCount="0"/>
<filterCache size="50" initialSize="50" autowarmCount="0"/>
<queryResultCache size="50" initialSize="50" autowarmCount="0"/>
<queryResultWindowSize>50</queryResultWindowSize>
<queryResultMaxDocsCached>500</queryResultMaxDocsCached>
<!-- randomized so we excersize cursors using various paths in SolrIndexSearcher -->

View File

@ -41,19 +41,16 @@
<query>
<filterCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>
<queryResultCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>
<documentCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>

View File

@ -56,19 +56,16 @@
that match a particular query.
-->
<filterCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="256"/>
<queryResultCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="1024"/>
<documentCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>

View File

@ -37,21 +37,18 @@
<query>
<filterCache
enabled="${filterCache.enabled:false}"
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<queryResultCache
enabled="${queryResultCache.enabled:false}"
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<documentCache
enabled="${documentCache.enabled:false}"
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>

View File

@ -95,25 +95,22 @@
that match a particular query.
-->
<filterCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<queryResultCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<documentCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>
<cache name="perSegFilter"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="0"
autowarmCount="10" />

View File

@ -82,25 +82,22 @@
that match a particular query.
-->
<filterCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<queryResultCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<documentCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>
<cache name="perSegFilter"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="0"
autowarmCount="10" />

View File

@ -35,8 +35,7 @@
<queryResultMaxDocsCached>200</queryResultMaxDocsCached>
<documentCache class="solr.CaffeineCache"
size="512"
<documentCache size="512"
initialSize="512"
autowarmCount="0"/>
</query>

View File

@ -140,23 +140,23 @@
<query>
<filterCache class="solr.CaffeineCache"
<filterCache
size="512"
initialSize="512"
autowarmCount="0" />
<queryResultCache class="solr.CaffeineCache"
<queryResultCache
size="512"
initialSize="512"
autowarmCount="0" />
<documentCache class="solr.CaffeineCache"
<documentCache
size="512"
initialSize="512"
autowarmCount="0" />
<cache name="perSegFilter"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="0"
autowarmCount="10"

View File

@ -95,25 +95,22 @@
that match a particular query.
-->
<filterCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<queryResultCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="2"/>
<documentCache
class="solr.search.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>
<cache name="perSegFilter"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="0"
autowarmCount="10" />
@ -125,7 +122,6 @@
<!--
<cache name="myUserCache"
class="solr.search.CaffeineCache"
size="4096"
initialSize="1024"
autowarmCount="1024"

View File

@ -36,19 +36,16 @@
<query>
<filterCache
class="solr.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>
<queryResultCache
class="solr.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>
<documentCache
class="solr.CaffeineCache"
size="512"
initialSize="512"
autowarmCount="0"/>

View File

@ -404,8 +404,7 @@
to occupy. Note that when this option is specified, the size
and initialSize parameters are ignored.
-->
<filterCache class="solr.CaffeineCache"
size="512"
<filterCache size="512"
initialSize="512"
autowarmCount="0"/>
@ -417,8 +416,7 @@
maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
to occupy
-->
<queryResultCache class="solr.CaffeineCache"
size="512"
<queryResultCache size="512"
initialSize="512"
autowarmCount="0"/>
@ -428,14 +426,13 @@
document). Since Lucene internal document ids are transient,
this cache will not be autowarmed.
-->
<documentCache class="solr.CaffeineCache"
size="512"
<documentCache size="512"
initialSize="512"
autowarmCount="0"/>
<!-- custom cache currently used by block join -->
<cache name="perSegFilter"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="0"
autowarmCount="10"
@ -448,8 +445,7 @@
even if not configured here.
-->
<!--
<fieldValueCache class="solr.CaffeineCache"
size="512"
<fieldValueCache size="512"
autowarmCount="128"
showItems="32" />
-->

View File

@ -56,19 +56,19 @@
</updateHandler>
<query>
<filterCache class="solr.CaffeineCache"
<filterCache
size="0"
initialSize="0"
autowarmCount="0"/>
<queryResultCache class="solr.CaffeineCache"
<queryResultCache
size="0"
initialSize="0"
autowarmCount="0"/>
<documentCache class="solr.CaffeineCache"
<documentCache
size="0"
initialSize="0"
autowarmCount="0"/>
<fieldValueCache class="solr.CaffeineCache"
<fieldValueCache
size="0"
autowarmCount="0"
showItems="0" />

View File

@ -26,17 +26,17 @@
<requestHandler name="/select" class="solr.SearchHandler" />
<query>
<filterCache class="solr.CaffeineCache"
<filterCache
size="512"
initialSize="512"
autowarmCount="0" />
<queryResultCache class="solr.CaffeineCache"
<queryResultCache
size="512"
initialSize="512"
autowarmCount="0" />
<documentCache class="solr.CaffeineCache"
<documentCache
size="512"
initialSize="512"
autowarmCount="0" />

View File

@ -404,8 +404,7 @@
to occupy. Note that when this option is specified, the size
and initialSize parameters are ignored.
-->
<filterCache class="solr.CaffeineCache"
size="512"
<filterCache size="512"
initialSize="512"
autowarmCount="0"/>
@ -417,8 +416,7 @@
maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
to occupy
-->
<queryResultCache class="solr.CaffeineCache"
size="512"
<queryResultCache size="512"
initialSize="512"
autowarmCount="0"/>
@ -428,14 +426,13 @@
document). Since Lucene internal document ids are transient,
this cache will not be autowarmed.
-->
<documentCache class="solr.CaffeineCache"
size="512"
<documentCache size="512"
initialSize="512"
autowarmCount="0"/>
<!-- custom cache currently used by block join -->
<cache name="perSegFilter"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="0"
autowarmCount="10"
@ -448,8 +445,7 @@
even if not configured here.
-->
<!--
<fieldValueCache class="solr.CaffeineCache"
size="512"
<fieldValueCache size="512"
autowarmCount="128"
showItems="32" />
-->

View File

@ -428,8 +428,7 @@
to occupy. Note that when this option is specified, the size
and initialSize parameters are ignored.
-->
<filterCache class="solr.CaffeineCache"
size="512"
<filterCache size="512"
initialSize="512"
autowarmCount="0"/>
@ -441,8 +440,7 @@
maxRamMB - the maximum amount of RAM (in MB) that this cache is allowed
to occupy
-->
<queryResultCache class="solr.CaffeineCache"
size="512"
<queryResultCache size="512"
initialSize="512"
autowarmCount="0"/>
@ -452,14 +450,13 @@
document). Since Lucene internal document ids are transient,
this cache will not be autowarmed.
-->
<documentCache class="solr.CaffeineCache"
size="512"
<documentCache size="512"
initialSize="512"
autowarmCount="0"/>
<!-- custom cache currently used by block join -->
<cache name="perSegFilter"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="10"
initialSize="0"
autowarmCount="10"
@ -472,8 +469,7 @@
even if not configured here.
-->
<!--
<fieldValueCache class="solr.CaffeineCache"
size="512"
<fieldValueCache size="512"
autowarmCount="128"
showItems="32" />
-->
@ -489,7 +485,7 @@
https://lucene.apache.org/solr/guide/learning-to-rank.html
-->
<cache enable="${solr.ltr.enabled:false}" name="QUERY_DOC_FV"
class="solr.search.CaffeineCache"
class="solr.CaffeineCache"
size="4096"
initialSize="2048"
autowarmCount="4096"