You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by "Steve Rowe (Confluence)" <co...@apache.org> on 2013/10/01 21:39:00 UTC

[CONF] Apache Solr Reference Guide > Lib Directives in SolrConfig

Space: Apache Solr Reference Guide (https://cwiki.apache.org/confluence/display/solr)
Page: Lib Directives in SolrConfig (https://cwiki.apache.org/confluence/display/solr/Lib+Directives+in+SolrConfig)

Change Comment:
---------------------------------------------------------------------
apache-solr-* -> solr-*

Edited by Steve Rowe:
---------------------------------------------------------------------
Solr allows loading plugins by defining {{<lib/>}} directives in {{solrconfig.xml}}. 

The plugins are loaded in the order they appear in {{solrconfig.xml}}. If there are dependencies, list the lowest level dependency jar first.

Regular expressions can be used to provide control loading jars with dependencies on other jars in the same directory. All directories are resolved as relative to the Solr {{instanceDir}}.

{code:xml|borderStyle=solid|borderColor=#666666}
  <lib dir="../../../contrib/extraction/lib" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-cell-\d.*\.jar" />

  <lib dir="../../../contrib/clustering/lib/" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-clustering-\d.*\.jar" />

  <lib dir="../../../contrib/langid/lib/" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-langid-\d.*\.jar" />

  <lib dir="../../../contrib/velocity/lib" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-velocity-\d.*\.jar" />
{code}

{scrollbar}


Stop watching space: https://cwiki.apache.org/confluence/users/removespacenotification.action?spaceKey=solr
Change email notification preferences: https://cwiki.apache.org/confluence/users/editmyemailsettings.action