Skip to main content
added 4 characters in body; edited title
Source Link
Peter Procházka
  • 9.5k
  • 2
  • 30
  • 71

How can I configure Sitecore 9.0.2 to prefix all Solr index ids?

We have a single Solr instance that we would like to point to two distinct Sitecore 9.0 Update-2 instances to - instance1.example.com and instance2.example.com.

Since they are separate instances, when creating the collections, I've prefixed them with an instance name, for example:

  • instance1_sitecore_core_index

  • instance1_sitecore_master_index

  • instance1_sitecore_web_index

  • instance1_sitecore_marketingdefinitions_master

  • ...

  • instance2_sitecore_core_index

  • instance2_sitecore_master_index

  • instance2_sitecore_web_index

  • instance2_sitecore_marketingdefinitions_master

  • ...

Setting up indexes for multi-site Sitecore suggests duplicating config files, Sitecore.ContentSearch.Solr.Index.Master.config and Sitecore.ContentSearch.Solr.Index.Web.config for example, and then updating the index id with a new name, and I'm concerned that it would still assume that a sitecore_web_index exists.

In addition, doing a search against a base Sitecore 9.0 Update-2 website directory doesn't return all eleven indexes, which suggests it wouldn't capture all the instances.

Is there any way to patch the configurations to have Sitecore treat sitecore_web_index as, for example, instance1_sitecore_web_index, and prefix the other Solr indexes as well?

How can I configure Sitecore 9.0.2 to prefix all Solr index ids?

We have a single Solr instance that we would like to point two distinct Sitecore 9.0 Update-2 instances to - instance1.example.com and instance2.example.com.

Since they are separate instances, when creating the collections I've prefixed them with an instance name, for example:

  • instance1_sitecore_core_index

  • instance1_sitecore_master_index

  • instance1_sitecore_web_index

  • instance1_sitecore_marketingdefinitions_master

  • ...

  • instance2_sitecore_core_index

  • instance2_sitecore_master_index

  • instance2_sitecore_web_index

  • instance2_sitecore_marketingdefinitions_master

  • ...

Setting up indexes for multi-site Sitecore suggests duplicating config files, Sitecore.ContentSearch.Solr.Index.Master.config and Sitecore.ContentSearch.Solr.Index.Web.config for example, and then updating the index id with a new name, and I'm concerned that it would still assume that a sitecore_web_index exists.

In addition, doing a search against a base Sitecore 9.0 Update-2 website directory doesn't return all eleven indexes, which suggests it wouldn't capture all the instances.

Is there any way to patch the configurations to have Sitecore treat sitecore_web_index as, for example, instance1_sitecore_web_index, and prefix the other Solr indexes as well?

How can I configure Sitecore to prefix all Solr index ids?

We have a single Solr instance that we would like to point to two distinct Sitecore 9.0 Update-2 instances to - instance1.example.com and instance2.example.com.

Since they are separate instances, when creating the collections, I've prefixed them with an instance name, for example:

  • instance1_sitecore_core_index

  • instance1_sitecore_master_index

  • instance1_sitecore_web_index

  • instance1_sitecore_marketingdefinitions_master

  • ...

  • instance2_sitecore_core_index

  • instance2_sitecore_master_index

  • instance2_sitecore_web_index

  • instance2_sitecore_marketingdefinitions_master

  • ...

Setting up indexes for multi-site Sitecore suggests duplicating config files, Sitecore.ContentSearch.Solr.Index.Master.config and Sitecore.ContentSearch.Solr.Index.Web.config for example, and then updating the index id with a new name, and I'm concerned that it would still assume that a sitecore_web_index exists.

In addition, doing a search against a base Sitecore 9.0 Update-2 website directory doesn't return all eleven indexes, which suggests it wouldn't capture all the instances.

Is there any way to patch the configurations to have Sitecore treat sitecore_web_index as, for example, instance1_sitecore_web_index, and prefix the other Solr indexes as well?

Source Link
James Skemp
  • 1.4k
  • 9
  • 28

How can I configure Sitecore 9.0.2 to prefix all Solr index ids?

We have a single Solr instance that we would like to point two distinct Sitecore 9.0 Update-2 instances to - instance1.example.com and instance2.example.com.

Since they are separate instances, when creating the collections I've prefixed them with an instance name, for example:

  • instance1_sitecore_core_index

  • instance1_sitecore_master_index

  • instance1_sitecore_web_index

  • instance1_sitecore_marketingdefinitions_master

  • ...

  • instance2_sitecore_core_index

  • instance2_sitecore_master_index

  • instance2_sitecore_web_index

  • instance2_sitecore_marketingdefinitions_master

  • ...

Setting up indexes for multi-site Sitecore suggests duplicating config files, Sitecore.ContentSearch.Solr.Index.Master.config and Sitecore.ContentSearch.Solr.Index.Web.config for example, and then updating the index id with a new name, and I'm concerned that it would still assume that a sitecore_web_index exists.

In addition, doing a search against a base Sitecore 9.0 Update-2 website directory doesn't return all eleven indexes, which suggests it wouldn't capture all the instances.

Is there any way to patch the configurations to have Sitecore treat sitecore_web_index as, for example, instance1_sitecore_web_index, and prefix the other Solr indexes as well?