Skip to content

Commit

Permalink
XWIKI-22820: Solr field cache uses a lot of RAM (#3845)
Browse files Browse the repository at this point in the history
* Configure the "string" field type with docValues="true" as in the
  default configuration. In tests, this eliminates all fields in the
  field cache apart from the caches for title_sort and
  author_display_sort, which seem small in comparison.
  • Loading branch information
michitux authored Feb 3, 2025
1 parent 72e10a1 commit 062dabe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@
-->

<!-- The StrField type is not analyzed, but indexed/stored verbatim. -->
<fieldType name="string" class="solr.StrField" sortMissingLast="true" />
<fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />
<fieldType name="strings" class="solr.StrField" sortMissingLast="true" multiValued="true" docValues="true" />

<!-- boolean type: "true" or "false" -->
Expand Down

0 comments on commit 062dabe

Please sign in to comment.