Compartilhar via


Adding Query Suggestions to FAST 2010 for SharePoint 2010

One of the really cool new features of SharePoint 2010 and Enterprise search is to easily add Query Suggestions so that when users start to type their query they will get a drop down below the search box with suggestion that they can click on to instantly issue the query to the search engine.  

The first thing I want to do is check is what Query Suggestion might already be associated with my FAST Query Search Service Application. To do that I’ll run the following command from the SharePoint 2010 Management Shell:

image

If you have not added any before this should return no results.  I can also verify this by going to my FAST Search Center and typing in a key word. In our sample here I will type Adatum as our keyword:

image

Now lets go and add Adatum as a query suggestion to our FAST Query Service Application. Again, from the SharePoint 2010 Management Shell I type in the following commands:

image

In order for the Query Suggestion to show up immediately we will need to execute the timer job “Prepare query suggestions”.

image

Now we can go back to our FAST Search Center and start typing Adatum into the search box we will see that the Query Suggestion we just added now appears.

image

Comments

  • Anonymous
    August 14, 2010
    Thank you for putting this ! very helpful ! I tried , the terms are added and also was able to run the job, but they dont appear in search center. I have query suggestion checked on search  center. PS C:Userssvc.mossdev> Get-SPEnterpriseSearchLanguageResourcePhrase -Language en-us -Type QuerySuggestionAlwaysSuggest -SearchApplication $searchapp WARNING: column "Mapping" does not fit into the display and was removed. Phrase               Type                           Culture    Author ------               ----                           -------    ------ account            QuerySuggestionAlwaysSuggest   en-US      USsvc.mossdev account adjustmen... QuerySuggestionAlwaysSuggest   en-US      USsvc.mossdev

  • Anonymous
    August 14, 2010
    May be it takes time, but after running following two lines the autosuggest appeared. $timer=Get-SPTimerJob|? {$_.Name -eq "Prepare Query Suggestions"} $timer.RunNow()

  • Anonymous
    October 14, 2010
    Can i know how to upload bulk query suggestions rather than one by one???

  • Anonymous
    October 14, 2010
    Can i know how to upload bulk query suggestions for example a file of suggestion rather  one by one???

  • Anonymous
    November 13, 2010
    How does the OOTB query suggestion works? It adds the manual suggestion without any problem, but i have problem with the OOTB. as I understands it supposed to add a query suggestion after 6 times that the query has been searched and one result from the result collection was selected. Can you please let me know how should it work? thanks.

  • Anonymous
    January 12, 2011
    How and where can i configure that 6 times click property.Can we reduce that 6 times per click. I have tried with that 6 times click thing but its not working :-( Hope you microsoft guys are not sleeping ..Please reply as project is at cruial mode.

  • Anonymous
    April 12, 2011
    Bulk upload can be done by putting the keywords in text or csv file and use below command. get-content "C:InstallSearchSuggestions.csv" | foreach-object {   New-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication "Fast Query" -Language en-US -Type QuerySuggestionAlwaysSuggest -Name $_ }