Skip to content

Commit cbee3d2

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 cbee3d2

File tree

1 file changed

+8
-51
lines changed

1 file changed

+8
-51
lines changed

doc/solr-config-9.xml

+8-51
Original file line numberDiff line numberDiff line change
@@ -37,53 +37,17 @@
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.
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.
4747
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" />
59-
-->
60-
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.
48+
If there are other modules that need be listed, you can use a comma-delimeted list
49+
(e.g. "analysis-extras,<other module>").
8350
-->
84-
<!--
85-
<lib path="../a-jar-that-does-not-exist.jar" />
86-
-->
8751

8852
<!-- Data Directory
8953
@@ -259,16 +223,9 @@
259223
is recommended (see below).
260224
"dir" - the target directory for transaction logs, defaults to the
261225
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.
268226
-->
269227
<updateLog>
270228
<str name="dir">${solr.ulog.dir:}</str>
271-
<int name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int>
272229
</updateLog>
273230

274231
<!-- AutoCommit

0 commit comments

Comments
 (0)