Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

make all examples of refrencing solr jars consistent across the various solrconfig.xml files - new regex will match official version numbers, dev version numbers, and 'nightly' version numbers, but will prevent the JVM from loading the 'src' and 'doc' jars

Chris M. Hostetterd157af54249d
diff --git a/contrib/clustering/example/conf/solrconfig.xml b/contrib/clustering/example/conf/solrconfig.xml
index dff5e38846a..54627d653fe 100644
--- a/contrib/clustering/example/conf/solrconfig.xml
+++ b/contrib/clustering/example/conf/solrconfig.xml
@@ -26,7 +26,7 @@
-->
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
- <lib dir="../../../dist/" regex="apache-solr-clustering-(\d|\.)+-.*\.jar" />
+ <lib dir="../../../dist/" regex="apache-solr-clustering-(nightly|\d).*\.jar" />
<lib dir="../lib" />
<!-- these jars are not inlcuded in the release because of their licenses,
they will be downlodded when 'ant example' is run
diff --git a/example/example-DIH/solr/mail/conf/solrconfig.xml b/example/example-DIH/solr/mail/conf/solrconfig.xml
index 25b93bb9631..5a6d9ebb608 100644
--- a/example/example-DIH/solr/mail/conf/solrconfig.xml
+++ b/example/example-DIH/solr/mail/conf/solrconfig.xml
@@ -27,7 +27,7 @@
<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>
<lib dir="../../../../contrib/dataimporthandler/lib/" regex=".*jar$" />
- <lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-extras.*jar" />
+ <lib dir="../../../../dist/" regex="apache-solr-dataimporthandler-extras-(nightly|\d).*jar" />
<indexDefaults>
<!-- Values here affect all index writers and act as a default unless overridden. -->
diff --git a/example/solr/conf/solrconfig.xml b/example/solr/conf/solrconfig.xml
index c622b501d7b..edefc4ae2f7 100755
--- a/example/solr/conf/solrconfig.xml
+++ b/example/solr/conf/solrconfig.xml
@@ -51,7 +51,7 @@
directory which completely match the regex (anchored on both ends)
will be included.
-->
- <lib dir="../../dist/" regex="apache-solr-cell-.*\.jar" />
+ <lib dir="../../dist/" regex="apache-solr-cell-(nightly|\d).*\.jar" />
<!-- If a dir option (with or without a regex) is used and nothing is found
that matches, it will be ignored
-->