首页 > 解决方案 > filterCache 中的大小参数单位

问题描述

我正在读一本书 Solr 并到达了解释 filterCache 及其配置的部分。这是一个示例配置:

<filterCache class="solr.FastLRUCache"
             size="512"
             initialSize="512"
             autowarmCount="0"/>

我对 和 的单位(条目)感到size困惑initialSizeautowarmCount

文档说:

       size - the maximum number of entries in the cache
       initialSize - the initial capacity (number of entries) of
           the cache.  (see java.util.HashMap)
       autowarmCount - the number of entries to prepopulate from
           and old cache.

category:book如果我没看错,一个条目是(or )的键值对category:car和匹配过滤器的文档。它与缓存的实际大小(以 MB 为单位)无关。我做对了吗?

标签: solr

解决方案


推荐阅读