When you need to switch your Sitecore instance from Lucene to Solr, you need to disable all Lucene config files and enable the Solr ones.
Step-by-step guide
Insert your steps.
- Open up a powershell window
- Change directory to your instance's App_Config\Include
- Execute the following commands:
1
|
Dir *.Lucene.*.config -Recurse | % { Rename-Item -Path $_.PSPath -NewName $_.Name.replace( ".config" , ".config.disabled" )}
|
1
2
|
Dir *.Solr.*.disabled -Recurse | % { Rename-Item -Path $_.PSPath -NewName $_.Name.replace( ".disabled" , "" )}
Dir *.Solr.*.example -Recurse | % { Rename-Item -Path $_.PSPath -NewName $_.Name.replace( ".example" , "" )}
|
Batch file for easy use: