OpenCms Documentation/More OpenCms Features/Solr search integration

From OpenCms Wiki
Revision as of 17:43, 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 https://github.com/alkacon/opencms-core/pull/614/commits/9f9a52c5fca29101adefa158880eed564ca6e69b is pulled, 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). See https://github.com/alkacon/opencms-core/blob/96d596f34a2ac6568fc0baf37df1b1b507cc310c/src/org/opencms/search/CmsSearchIndex.java#L1599

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox