You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Anuj Bhargava <an...@gmail.com> on 2025/08/06 10:38:11 UTC

solrconfig.xml modification Solr Version 8.11

The current solrconfig.xml has the following entries -



*<queryResultCache size="512" initialSize="512"
autowarmCount="0"/><filterCache size="512" initialSize="512"
autowarmCount="0"/><documentCache size="512" initialSize="512"
autowarmCount="0"/>*

Can we change these, for large and high-frequency queries, to













*<queryResultCache class="solr.LRUCache"                  size="1000"
            initialSize="1000"
autowarmCount="200"/><filterCache class="solr.FastLRUCache"
 size="4000"             initialSize="4000"
 autowarmCount="500"/><documentCache size="1024"
 initialSize="1024"               autowarmCount="0" />*

Re: solrconfig.xml modification Solr Version 8.11

Posted by Patryk Mazurkiewicz <pm...@gmail.com>.
Hi Anuj,

You can definitely change it. It will consume more heap memory
depending on the number of docs and hits.
Also, please note that org.apache.solr.search.LRUCache is deprecated
and was removed in Solr 9.0 in favor of CaffeineCache
(https://solr.apache.org/docs/8_11_1/solr-core/deprecated-list.html)

Regards,

Patryk

On Wed, Aug 6, 2025 at 12:38 PM Anuj Bhargava <an...@gmail.com> wrote:
>
> The current solrconfig.xml has the following entries -
>
>
>
> *<queryResultCache size="512" initialSize="512"
> autowarmCount="0"/><filterCache size="512" initialSize="512"
> autowarmCount="0"/><documentCache size="512" initialSize="512"
> autowarmCount="0"/>*
>
> Can we change these, for large and high-frequency queries, to
>
>
>
>
>
>
>
>
>
>
>
>
>
> *<queryResultCache class="solr.LRUCache"                  size="1000"
>             initialSize="1000"
> autowarmCount="200"/><filterCache class="solr.FastLRUCache"
>  size="4000"             initialSize="4000"
>  autowarmCount="500"/><documentCache size="1024"
>  initialSize="1024"               autowarmCount="0" />*