Add Query Suggestions via PowerShell
$myquerysuggestions_en = "SharePoint English"
$language_en = "EN-US"
$myquerysuggestions_en = "SharePoint German"
$language_de = "DE-DE"
$sa = Get-SPEnterpriseSearchServiceApplication
foreach ($en_s in $myquerysuggestions_en) {New-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $sa -Language $language_en -Type QuerySuggestionAlwaysSuggest -Name $en_s}
foreach ($en_s in $myquerysuggestions_en) {New-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $sa -Language $language_de -Type QuerySuggestionAlwaysSuggest -Name $de_s}
Comments
- Anonymous
January 01, 2003
<Thanks