Thursday, July 2, 2015

How to solve results from a result source is showing default results after import of a search schema

If you like me use CSOM to import search configuration xml files between environments in site collections you might run into an issue where after an import, all web parts or API calls using a custom Result Source suddenly show results from the default Local SharePoint Results result source instead of the custom one.

The search-is-down developer solution is to restart Search Host Controller on the query servers to make sure they are up to speed on result sources in your system. The better production search-is-up solution require you to open up each result source, click Save, and wait for 10-20 seconds for settings to go live. Both ways ensures search results will appear as expected again.