One of the new features in SharePoint 2010 and FAST Search for SharePoint is keyword suggestions when users type their query.
By default SharePoint will add new seach suggestion when the search term was searched for and result was clicked on 6 times in a year.
You can however define a list of initial search suggestions using PowerShell.
1. Open SharePoint 2010 Management Shell
2. Create a new keyword suggestion by executing:
New-SPEnterpriseSearchLanguageResourcePhrase -Language en-us -Type QuerySuggestionAlwaysSuggest -SearchApplication "FastQuery" -Name "my keyword"
In here the FastQuery is the service application name for my query server and the keyword I’m is “my keyword”
3. When you’re done adding the new keyword suggestions – refresh the list so that SharePoint picks up the changes by calling “Prepare query suggestions” timer job.
Get-SPTimerJob "Prepare query suggestions" | Start-SPTimerJob
You can also get the list of already existing keyword suggestions by using this command:
Get-SPEnterpriseSearchLanguageResourcePhrase -Language en-us -Type QuerySuggestionAlwaysSuggest -SearchApplication "FASTQuery"
To remove the keywords you added, use this command:
Remove-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication "FASTQuery" -Type QuerySuggestionBlockList -Language en-us
Enjoy!
