在solr中禁用查询结果和文档缓存并仅在solr中使用过滤器缓存?
Disable query result and document cache in solr and only use filter cache in solr?
我尝试将文档和查询结果缓存的大小设置为零,但它仍然没有被禁用。我在这些缓存中看到很多驱逐,因为它的大小为零。
如何完全禁用除 solr 中的过滤器缓存之外的所有其他缓存。
这是我的 solr 配置片段。
-->
<!-- 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"/>
编辑 1
注释、设置 enable=false 或设置大小为零在 solrconfig 中不起作用
如果我们在 q 参数中传递 cache=false,那么我可以关闭 queryResult 缓存,但仍然找不到关闭文档缓存的方法
禁用缓存 put enabled =false
<!-- disabled -->
<queryResultCache
enabled ="false"
class="solr.LRUCache"
size="0"
initialSize="0"
autowarmCount="0"/>
通过这样做,它也会将其从 plugin/stats 屏幕中删除
我尝试将文档和查询结果缓存的大小设置为零,但它仍然没有被禁用。我在这些缓存中看到很多驱逐,因为它的大小为零。 如何完全禁用除 solr 中的过滤器缓存之外的所有其他缓存。
这是我的 solr 配置片段。
-->
<!-- 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"/>
编辑 1
注释、设置 enable=false 或设置大小为零在 solrconfig 中不起作用
如果我们在 q 参数中传递 cache=false,那么我可以关闭 queryResult 缓存,但仍然找不到关闭文档缓存的方法
禁用缓存 put enabled =false
<!-- disabled -->
<queryResultCache
enabled ="false"
class="solr.LRUCache"
size="0"
initialSize="0"
autowarmCount="0"/>
通过这样做,它也会将其从 plugin/stats 屏幕中删除