Hi All,
I am currently engaged
in an upgrade project and encountered an issue during the configuration of Solr
for the development environment. The existing system contains an excessive
number of search indexes that are not displayed in the index manager. This prompted
me to manually create cores for Solr. During this process, I discovered over
150 indexes, each corresponding to specific brands. To streamline this task, I
decided to automate the process rather than continue with manual creation.
Despite extensive research,
I was unable to find any available PowerShell scripts to accomplish this task.
Therefore, I decided to develop one myself. This script is designed to
facilitate the setup of Solr indexes across multiple environments, including
development, QA, UAT, and production. Additionally, it could be beneficial to
the community for those undertaking similar tasks.
Below is the PowerShell
script. Please feel free to test it by passing the desired index names. Even if
it is not immediately necessary, having it on hand could be advantageous.
Reference code: https://github.com/gaurarun777/SitecorePowerShell/blob/main/SolrCoreCreation.ps1
I hope you enjoy this
Sitecore blog. Stay tuned for more Sitecore related articles.
Till that happy
Sitecoring :)
Please leave your comments or share this article if it’s useful for you.
No comments:
Post a Comment