|
37 | 37 | --> |
38 | 38 | <luceneMatchVersion>9.8</luceneMatchVersion> |
39 | 39 |
|
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: |
44 | 41 |
|
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. |
59 | 45 | --> |
60 | 46 |
|
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 | | - |
88 | 47 | <!-- Data Directory |
89 | 48 |
|
90 | 49 | Used to specify an alternate directory to hold all index data |
|
259 | 218 | is recommended (see below). |
260 | 219 | "dir" - the target directory for transaction logs, defaults to the |
261 | 220 | 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. |
268 | 221 | --> |
269 | 222 | <updateLog> |
270 | 223 | <str name="dir">${solr.ulog.dir:}</str> |
271 | | - <int name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int> |
272 | 224 | </updateLog> |
273 | 225 |
|
274 | 226 | <!-- AutoCommit |
|
0 commit comments