On Sat, Jul 13, 2024 at 11:17:27AM +0000, Peter wrote:
> For those who might need it:
>
> Setting
> solr.multicorePrefix = folder_name_
> should reflect core prefixes (which reside, e.g., in [solr]/server/solr/configsets), like:
> folder_name_authority
> folder_name_oai
> folder_name_qaevent
> etc.
> piątek, 17 maja 2024 o 16:30:25 UTC+1 Peter napisał(a):
> Hello,
>
> If I want to connect single Solr instance with multiple DSpace instances, there is a setting to prefix Solr core:
>
> solr.multicorePrefix = xyz
>
> But how does it translate into folder structure for the cores? Should they be placed in subfolders within, e.g., [solr]/server/solr/configsets, with subfolder name reflecting "solr.multicorePrefix"?
I find it helpful to collect the set of cores for each DSpace instance
in a separate folder, but it isn't necessary.
As you have found, the multicore prefix will be pre-pended to the name
of that instance's core folders, so in your original example the cores
will be in [solr]/server/solr/configsets/xyzauthority, xyzoai,
xyzsearch, xyzstatistics.
If you use sub-folders, the names don't matter to Solr. Name them in
a way that is easy for you to associate with their DSpace instances,
or whatever works for you. I name them by the multicorePrefix,
without any trailing separator such as "_".
Solr will search $SOLR_HOME ([solr]/server/solr in your example) and
its sub-folders for folders containing a file named 'core.properties'
(which can be empty). Any such folder will be loaded as a core, and
the simple name of the folder will be the name of the core.
--
Mark H. Wood
Lead Technology Analyst
University Library
Indiana University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
library.indianapolis.iu.edu