Upload Solr Configset on Managed Cloud Solr Server
When you are using Sitecore managed cloud and you want to deploy Solr configsset to Solr cloud, there are lots of APIs available here to download, upload, delete, start, stop, etc. In this blog, we are going to discuss a few APIs. There is a GitHub repo is also available with PowerShell script which can be used easily.
Upload New Solr ConfigSet
Below are the steps to upload the Solr config set:
- Download the existing configset from Github.
- Update ACCOUNT, uid, NAME, APIKEY.
- The account will be SitecoreLive
- uid will be a short name provided by Sitecore like ss256325
- NAME will be Sitecore Configset which you want to download
- APIKEY will be the Solr API key provided by Sitecore
- Run PowerShell script in PowerShell console. It will download configset in the same folder.
- Download the existing configset from Github.
- Update ACCOUNT, uid, NAME, APIKEY.
- Account will be SitecoreLive
- uid will be a short name provided by Sitecore like ss256325
- In form object, add name as a configset name from which name you want to create and in files, you can give the name of configset zip.
- APIKEY will be Solr API key provided by Sitecore.
- Run PowerShell script in PowerShell console. It will upload Sitecore configset in /configs folder as mentioned below the image.
- Now you can create a new core using this Sitecore configset.
Delete Sitecore Configset
- Download the existing configset from Github.
- Update parameter in PowerShell script and run PowerShell script. It will delete configset that you have mentioned in PowerShell.
Stop Solr Port
- Download the existing configset from Github.
- Update parameter in PowerShell script and in NODE mention, uid-node number, like 1,2,3, depends on how many nodes you have. Stop nodes one by one.
- Download the existing configset from Github.
- Update parameter in PowerShell script and in “NODE” mention, “uid-node number”, like 1,2,3, depends on how many nodes you have. Start nodes one by one.
Comments