Skip to content

Commit 6d7d44f

Browse files
author
Saman Ghannadzadeh
committed
Make solr-config-9.xml compatible with Solr 9.8.0
Changes: * remove `numVersionBuckets` which is obsolete and ignored' * remove `<lib ..>`, and instead leave a comment for user to enable modules
1 parent 7f9cb31 commit 6d7d44f

File tree

1 file changed

+6
-52
lines changed

1 file changed

+6
-52
lines changed

doc/solr-config-9.xml

+6-52
Original file line numberDiff line numberDiff line change
@@ -37,54 +37,15 @@
3737
-->
3838
<luceneMatchVersion>9.8</luceneMatchVersion>
3939

40-
<!-- <lib/> directives can be used to instruct Solr to load any Jars
41-
identified and use them to resolve any "plugins" specified in
42-
your solrconfig.xml or schema.xml (ie: Analyzers, Request
43-
Handlers, etc...).
40+
<!-- You need to add enable the use of the `analysis-extras` module, by either:
4441
45-
All directories and paths are resolved relative to the
46-
instanceDir.
47-
48-
Please note that <lib/> directives are processed in the order
49-
that they appear in your solrconfig.xml file, and are "stacked"
50-
on top of each other when building a ClassLoader - so if you have
51-
plugin jars with dependencies on other jars, the "lower level"
52-
dependency jars should be loaded first.
53-
54-
If a "./lib" directory exists in your instanceDir, all files
55-
found in it are included as if you had used the following
56-
syntax...
57-
58-
<lib dir="./lib" />
42+
* modifying the "solr.modules" parameter in solr.xml to include "analysis-extras",
43+
e.g. set: <str name="modules">${solr.modules:analysis-extras}</str>
44+
* adding "-Dsolr.modules=analysis-extras" to the solr start command line;
45+
* setting the "SOLR_MODULES=analysis-extras" environment variable before starting
46+
solr.
5947
-->
6048

61-
<!-- A 'dir' option by itself adds any files found in the directory
62-
to the classpath, this is useful for including all jars in a
63-
directory.
64-
65-
When a 'regex' is specified in addition to a 'dir', only the
66-
files in that directory which completely match the regex
67-
(anchored on both ends) will be included.
68-
69-
If a 'dir' option (with or without a regex) is used and nothing
70-
is found that matches, a warning will be logged.
71-
72-
The example below can be used to load a Solr Module along
73-
with their external dependencies.
74-
-->
75-
<!-- <lib dir="${solr.install.dir:../../../..}/modules/ltr/lib" regex=".*\.jar" /> -->
76-
77-
<!-- Load ICU analyser -->
78-
<lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" regex="icu4j-.*\.jar"/>
79-
<lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" regex="lucene-analysis-icu-.*\.jar"/>
80-
<!-- an exact 'path' can be used instead of a 'dir' to specify a
81-
specific jar file. This will cause a serious error to be logged
82-
if it can't be loaded.
83-
-->
84-
<!--
85-
<lib path="../a-jar-that-does-not-exist.jar" />
86-
-->
87-
8849
<!-- Data Directory
8950
9051
Used to specify an alternate directory to hold all index data
@@ -259,16 +220,9 @@
259220
is recommended (see below).
260221
"dir" - the target directory for transaction logs, defaults to the
261222
solr data directory.
262-
"numVersionBuckets" - sets the number of buckets used to keep
263-
track of max version values when checking for re-ordered
264-
updates; increase this value to reduce the cost of
265-
synchronizing access to version buckets during high-volume
266-
indexing, this requires 8 bytes (long) * numVersionBuckets
267-
of heap space per Solr core.
268223
-->
269224
<updateLog>
270225
<str name="dir">${solr.ulog.dir:}</str>
271-
<int name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int>
272226
</updateLog>
273227

274228
<!-- AutoCommit

0 commit comments

Comments
 (0)