PowerShell Script to Transfer Search Configuration

I was working with a client a little while back and we needed an easy way to setup search on the dev and test SharePoint environments. What I came up with to resolve that issue was the following script that will take a source and destination URL and it will transfer the search settings from the one environment to the other. I am publishing this with the consent of and at the request of this client because he thought it was cool enough to share. I have not used this in a while but I do remember that there were some interesting error messages that came up when trying to migrate the schema because of duplicate properties but there is an option to exclude that if you are getting those errors. Enjoy.

I tried embedding the scriptlet itself but some of the xml was getting lost so here is a zip of the ps1 file.

TransferSearchConfiguration-SPKnight

SharePoint Search and PowerShell Automation Script

I was working at a client where we had to rebuild their search service to try and alleviate some issues that they were experiencing and as part of this I came to the realization that manually creating managed properties has got to stop. The problem is that there is no easy way to move service scoped properties from one server to another. Also as a developer, the fact that this is not easily deployed bugs me. I want to be able to deploy the properties consistently. I don’t want to have to go back and create them again and wait for another full crawl because I missed one or typed the name in wrong. What’s worse is there is no way of  putting this configuration into version control to create a baseline configuration. Continue reading “SharePoint Search and PowerShell Automation Script”

SharePoint Saturday Portland Slides

Thanks for an awesome event. I have posted the slides to slideshare since they are rather large. Display templates are attached to this post.

I am working on getting the video onto YouTube so stay posted. It does look like however that my camera ran out of space near the end of the presentation.

Feel free to contact me if you have any questions.

Slides

SearchDisplayTemplates