You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2012/09/13 23:08:00 UTC
svn commit: r1384529 -
/lucene/dev/trunk/solr/example/solr/collection1/conf/solrconfig.xml
Author: hossman
Date: Thu Sep 13 21:07:59 2012
New Revision: 1384529
URL: http://svn.apache.org/viewvc?rev=1384529&view=rev
Log:
SOLR-3625: better info in example conigs about <lib/> and how order might matter
Modified:
lucene/dev/trunk/solr/example/solr/collection1/conf/solrconfig.xml
Modified: lucene/dev/trunk/solr/example/solr/collection1/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/collection1/conf/solrconfig.xml?rev=1384529&r1=1384528&r2=1384529&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/collection1/conf/solrconfig.xml (original)
+++ lucene/dev/trunk/solr/example/solr/collection1/conf/solrconfig.xml Thu Sep 13 21:07:59 2012
@@ -37,7 +37,7 @@
-->
<luceneMatchVersion>LUCENE_50</luceneMatchVersion>
- <!-- lib directives can be used to instruct Solr to load an Jars
+ <!-- <lib/> directives can be used to instruct Solr to load an Jars
identified and use them to resolve any "plugins" specified in
your solrconfig.xml or schema.xml (ie: Analyzers, Request
Handlers, etc...).
@@ -45,6 +45,12 @@
All directories and paths are resolved relative to the
instanceDir.
+ Please note that <lib/> directives are processed in the order
+ that they appear in your solrconfig.xml file, and are "stacked"
+ on top of each other when building a ClassLoader - so if you have
+ plugin jars with dependencies on other jars, the "lower level"
+ dependency jars should be loaded first.
+
If a "./lib" directory exists in your instanceDir, all files
found in it are included as if you had used the following
syntax...
@@ -55,26 +61,25 @@
<!-- A 'dir' option by itself adds any files found in the directory
to the classpath, this is useful for including all jars in a
directory.
- -->
- <!--
- <lib dir="../add-everything-found-in-this-dir-to-the-classpath" />
- -->
- <!-- When a 'regex' is specified in addition to a 'dir', only the
+ When a 'regex' is specified in addition to a 'dir', only the
files in that directory which completely match the regex
(anchored on both ends) will be included.
+
+ The examples below can be used to load some solr-contribs along
+ with their external dependencies.
-->
- <lib dir="../../../dist/" regex="apache-solr-cell-\d.*\.jar" />
<lib dir="../../../contrib/extraction/lib" regex=".*\.jar" />
+ <lib dir="../../../dist/" regex="apache-solr-cell-\d.*\.jar" />
- <lib dir="../../../dist/" regex="apache-solr-clustering-\d.*\.jar" />
<lib dir="../../../contrib/clustering/lib/" regex=".*\.jar" />
+ <lib dir="../../../dist/" regex="apache-solr-clustering-\d.*\.jar" />
- <lib dir="../../../dist/" regex="apache-solr-langid-\d.*\.jar" />
<lib dir="../../../contrib/langid/lib/" regex=".*\.jar" />
+ <lib dir="../../../dist/" regex="apache-solr-langid-\d.*\.jar" />
- <lib dir="../../../dist/" regex="apache-solr-velocity-\d.*\.jar" />
<lib dir="../../../contrib/velocity/lib" regex=".*\.jar" />
+ <lib dir="../../../dist/" regex="apache-solr-velocity-\d.*\.jar" />
<!-- If a 'dir' option (with or without a regex) is used and nothing
is found that matches, it will be ignored
@@ -82,8 +87,8 @@
<lib dir="/total/crap/dir/ignored" />
<!-- an exact 'path' can be used instead of a 'dir' to specify a
- specific file. This will cause a serious error to be logged if
- it can't be loaded.
+ specific jar file. This will cause a serious error to be logged
+ if it can't be loaded.
-->
<!--
<lib path="../a-jar-that-does-not-exist.jar" />