OpenCms Documentation/More OpenCms Features/Solr search integration

From OpenCms Wiki
Revision as of 17:05, 7 November 2018 by Alberto Gallardo (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Indexing content with Solr

Search configuration

The Solr dataDirs (https://lucene.apache.org/solr/guide/7_2/datadir-and-directoryfactory-in-solrconfig.html) will be created under the OpenCms search directory, under corresponding directories named after the indexes names.

Please notice that OpenCms only uses the setting from <directory> in opencms-search.xml to configure the search directory, and that it ignores the solr standard configuration mechanism (e.g. the element <dataDir> in solrconfig.xml) to set the dataDirs. Additionally, if commit#2f4cf314dd8f840e6fc0c5aafa5a81629d64e29f is merged, this setting can also be overridden with the system parameter 'opencms.search.directory`.

Also notice that the value of the element <directory> can be an absolute or a relative path. If it is set as relative, it is interpreted as relative to the WEB-INF directory and not to the solr.solr.home (https://lucene.apache.org/solr/guide/7_2/solr-configuration-files.html#solr-home).

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox