OpenCms Documentation/More OpenCms Features/Solr search integration
(Add notices about solr dataDir configuration) |
m (Update commit link) |
||
(One intermediate revision by one user not shown) | |||
Line 7: | Line 7: | ||
Please notice that OpenCms '''only uses the setting from''' <tt><directory></tt> '''in''' <tt>opencms-search.xml</tt> '''to configure the ''search directory''''', and that it ignores the solr standard configuration mechanism (e.g. the element <tt><dataDir></tt> in <tt>solrconfig.xml</tt>) to set the ''dataDirs''. Additionally, if | Please notice that OpenCms '''only uses the setting from''' <tt><directory></tt> '''in''' <tt>opencms-search.xml</tt> '''to configure the ''search directory''''', and that it ignores the solr standard configuration mechanism (e.g. the element <tt><dataDir></tt> in <tt>solrconfig.xml</tt>) to set the ''dataDirs''. Additionally, if | ||
− | commit | + | commit <nowiki>https://github.com/alkacon/opencms-core/pull/614/commits/9f9a52c5fca29101adefa158880eed564ca6e69b</nowiki> is pulled, this setting can also be overridden with the system parameter 'opencms.search.directory`. |
− | Also notice that the value of the element <tt><directory></tt> can be an absolute or a relative path. If it is set as relative, it is interpreted as '''relative to the <tt>WEB-INF</tt>''' directory and not to the <tt>solr.solr.home</tt> (<nowiki>https://lucene.apache.org/solr/guide/7_2/solr-configuration-files.html#solr-home</nowiki>). | + | Also notice that the value of the element <tt><directory></tt> can be an absolute or a relative path. If it is set as relative, it is interpreted as '''relative to the <tt>WEB-INF</tt>''' directory and not to the <tt>solr.solr.home</tt> (<nowiki>https://lucene.apache.org/solr/guide/7_2/solr-configuration-files.html#solr-home</nowiki>). See <nowiki>https://github.com/alkacon/opencms-core/blob/96d596f34a2ac6568fc0baf37df1b1b507cc310c/src/org/opencms/search/CmsSearchIndex.java#L1599</nowiki> |
Latest revision as of 17:43, 7 November 2018
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