Monday, February 28, 2011

Search suggestions in SharePoint 2010

One of the new features for end users with SharePoint 2010 is that suggestions are provided while you are typing a search query - for a complete list of enhancements - check out – What’s new in Enterprise search(SharePoint Server 2010) . Now if you want to force these suggestions for demo scenario’s you can use some powershell scripts – the next code sample is meant to be used in a setup with Fast Search 2010:

$SearchApp = Get-SPEnterpriseSearchServiceApplication "FAST Query SSA"
New-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $SearchApp -Language En-Us -Type QuerySuggestionAlwaysSuggest -Name "SharePoint"
New-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $SearchApp -Language En-Us -Type QuerySuggestionAlwaysSuggest -Name "SharePoint Server 2010"
Start-SPTimerJob -Identity "Prepare Query Suggestions"

No comments:

Post a Comment