Solr Core Name Prefix

66 views
Skip to first unread message

Peter

unread,
May 17, 2024, 11:30:25 AM5/17/24
to DSpace Technical Support
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"?

Do not quite understand this setting.


Thanks
Peter

Peter

unread,
Jul 13, 2024, 7:17:27 AM7/13/24
to DSpace Technical Support
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.

mw...@iu.edu

unread,
Jul 15, 2024, 8:44:59 AM7/15/24
to dspac...@googlegroups.com
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
signature.asc

Sartaz Ali

unread,
Jul 15, 2024, 11:18:15 AM7/15/24
to dspac...@googlegroups.com
hello user ,

I want to create all dspace 7.6  docker image and how to create docker file for solr ,postgres and  please suggest and reply

--
All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
---
You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/ZpUZxX9UzYptJUN9%40iu.edu.


--
Mr.sartaz Ali
Mobile No.8860402106

DSpace Technical Support

unread,
Jul 15, 2024, 4:41:00 PM7/15/24
to DSpace Technical Support

Hi,

DSpace already has sample Docker images in our codebase which you can use to build your own.  A summary of the available DSpace Docker images can be found at https://wiki.lyrasis.org/display/DSPACE/DSpace+Docker+Images

Tim
Reply all
Reply to author
Forward
0 new messages