Programmatic approach to creating SOLR indexes as desribed by Sitecore documentation in an automated approach.
The scripts begins by stopping your local SOLR service. Next, it iterates through your indexes copying the original configset to a matching index directory. Within that directory, the managed-schema file is then backed up and modified to use _uniqueid
as the primaryKey and goes on to define the _uniqueid field.
Root install path of SOLR (where the bin and server folders exists)
default: C:\solr
Name of the SOLR service
default: *solr*
List of indexes to create.
default includes:
- sitecore_core_index
- sitecore_master_index
- sitecore_web_index
- sitecore_marketingdefinitions_master
- sitecore_marketingdefinitions_web
- sitecore_marketing_asset_index_master
- sitecore_marketing_asset_index_web
- sitecore_testing_index
- sitecore_suggested_test_index
- sitecore_fxm_master_index
- sitecore_fxm_web_index
Config set to base indexes on
default: _default
(if you're running <= 6.6 you'll need to use basic_configs
)