Reputation: 697
I tried setting the size of the document and query result cache to zero but still it is not getting disabled. I see a lot of evictions in these caches as its size is zero. How do I completely disable the use of all other caches except the filter cache in solr.
Here is my solr config snippet.
-->
<!-- disabled -->
<queryResultCache class="solr.LRUCache"
size="0"
initialSize="0"
autowarmCount="0"/>
<!-- Document Cache
Caches Lucene Document objects (the stored fields for each
document). Since Lucene internal document ids are transient,
this cache will not be autowarmed.
-->
<!-- disabled -->
<documentCache class="solr.LRUCache"
size="0"
initialSize="0"
autowarmCount="0"/>
Edit 1
Commenting, or setting enable=false or setting the size zero doesnt work in solrconfig
If we pass cache=false in q param then I am able to turn off queryResult cache but still could not find a way to turn off document cache
Upvotes: 0
Views: 2622
Reputation: 697
To disable a cache put enabled =false
<!-- disabled -->
<queryResultCache
enabled ="false"
class="solr.LRUCache"
size="0"
initialSize="0"
autowarmCount="0"/>
By doing this it will remove it from the plugin/stats screen as well
Upvotes: 1