diff options
| author | Michael Peter Christen <mc@yacy.net> | 2024-05-19 17:34:57 +0200 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2024-05-19 17:34:57 +0200 |
| commit | 8eb0d490aa486e4ade9dd40f4da433e3dc5f4ed6 (patch) | |
| tree | 8dac25c72bf0e61b1888f3303d9a7e67950623c9 /defaults | |
| parent | b8417e561982e33d324558c4fb8011f7595f263a (diff) | |
migrated solr to 9.0
This is a major step because solr removed support for embedded solr
instances in 9.0 and we want to keep it because we want to ship
YaCy with an embedded solr. It was necessary to add parts of solr
code into YaCy to make this migration possible. Further on with
Solr 9.1 they removed even more parts which are required for embedded
operation, therefore we cannot migrate yet further without big
changes.
If you are running a YaCy instance with Solr 8.x, the migration should
be done automatically. If not you require to first migrate to a YaCy
version 1.93 with Solr 8.x to migrate to Solr 8 data.
Diffstat (limited to 'defaults')
| -rw-r--r-- | defaults/solr/solrconfig.xml | 52 |
1 files changed, 10 insertions, 42 deletions
diff --git a/defaults/solr/solrconfig.xml b/defaults/solr/solrconfig.xml index b9d818a49..1dac2a5df 100644 --- a/defaults/solr/solrconfig.xml +++ b/defaults/solr/solrconfig.xml @@ -411,48 +411,32 @@ <maxBooleanClauses>1024</maxBooleanClauses> - <!-- Solr Internal Query Caches - - There are two implementations of cache available for Solr, - LRUCache, based on a synchronized LinkedHashMap, and - FastLRUCache, based on a ConcurrentHashMap. - - FastLRUCache has faster gets and slower puts in single - threaded operation and thus is generally faster than LRUCache - when the hit ratio of the cache is high (> 75%), and may be - faster under other scenarios on multi-cpu systems. - --> - <!-- Filter Cache Cache used by SolrIndexSearcher for filters (DocSets), unordered sets of *all* documents that match a query. When a new searcher is opened, its caches may be prepopulated or "autowarmed" using data from caches in the old searcher. - autowarmCount is the number of items to prepopulate. For - LRUCache, the autowarmed items will be the most recently - accessed items. - + autowarmCount is the number of items to prepopulate. Parameters: - class - the SolrCache implementation LRUCache or - (LRUCache or FastLRUCache) + class - the SolrCache implementation (CaffeineCache) 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. --> - <filterCache class="solr.FastLRUCache" - size="100" - initialSize="100" - autowarmCount="0"/> + <filterCache class="solr.CaffeineCache" + size="512" + initialSize="512" + autowarmCount="128"/> <!-- Query Result Cache Caches results of searches - ordered lists of document ids (DocList) based on a query, a sort, and the range of documents requested. --> - <queryResultCache class="solr.LRUCache" + <queryResultCache class="solr.CaffeineCache" size="512" initialSize="512" autowarmCount="0"/> @@ -463,18 +447,11 @@ document). Since Lucene internal document ids are transient, this cache will not be autowarmed. --> - <documentCache class="solr.LRUCache" + <documentCache class="solr.CaffeineCache" size="512" initialSize="512" autowarmCount="0"/> - <!-- custom cache currently used by block join - <cache name="perSegFilter" - class="solr.search.LRUCache" - size="10" - initialSize="0" - autowarmCount="10" - regenerator="solr.NoOpRegenerator" /> --> <!-- Field Value Cache @@ -482,7 +459,7 @@ by document id. The fieldValueCache is created by default even if not configured here. --> - <fieldValueCache class="solr.FastLRUCache" + <fieldValueCache class="solr.CaffeineCache" size="32" initialSize="0" autowarmCount="0" @@ -497,15 +474,6 @@ be specified as an implementation of solr.CacheRegenerator if autowarming is desired. --> - <!-- - <cache name="myUserCache" - class="solr.LRUCache" - size="4096" - initialSize="1024" - autowarmCount="1024" - regenerator="com.mycompany.MyRegenerator" - /> - --> <!-- Lazy Field Loading @@ -1315,7 +1283,7 @@ in Solr's conf/xslt directory. Changes to xslt files are checked for every xsltCacheLifetimeSeconds. --> - <queryResponseWriter name="xslt" class="solr.XSLTResponseWriter"> + <queryResponseWriter name="xslt" class="solr.scripting.xslt.XSLTResponseWriter"> <int name="xsltCacheLifetimeSeconds">5</int> </queryResponseWriter> |
