Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

New Post: Search Service with multiple Content Sources causes errors on AutoSPInstaller reruns.

$
0
0
Hi, I have a Sharepoint 2013 installation where I have added a couple of Content Sources in addition to "Local Sharepoint sites".

When running AutoSPInstaller the script tries to set the start addresses of all the Content Sources, and I get the following errors (with proper server names instead of ....) for Set-SPEnterpriseSearchCrawlContentSource: "Protocol for the start-address: http://..../ doesn't match the content source type." and "Object http://..../ already exists.".

It is caused because the line 4156 in my version of AutoSPInstallerFunctions.ps1 assumes that you only have one Content Source:
Get-SPEnterpriseSearchServiceApplication | Get-SPEnterpriseSearchCrawlContentSource | Set-SPEnterpriseSearchCrawlContentSource -StartAddresses $crawlStartAddresses
Get-SPEnterpriseSearchCrawlContentSource retrieves all content sources, and then the script tries to set the StartAddresses of all content sources to $crawlStartAddresses.

I suggest changing the line to in order to accomodate for multiple Content Sources
Get-SPEnterpriseSearchServiceApplication | Get-SPEnterpriseSearchCrawlContentSource | Where-Object {$_.Name -eq "Local SharePoint sites"} | Set-SPEnterpriseSearchCrawlContentSource -StartAddresses $crawlStartAddresses
Is this the right place for such a suggestion, and does it look ok?

Thanks, Gunnar

Viewing all articles
Browse latest Browse all 2279

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>