Query Suggestions in SharePoint 2013

Query Suggestions

Query Suggestions are an interesting feature within the SharePoint 2013 search function that provides type-ahead suggestions for users when submitting a query. For example, if you begin by typing “c” then SharePoint might suggest “c sharp corner”. It's almost similar to Google search or you can say the auto-complete feature.

SharePoint automatically creates a query suggestion when users have clicked a search result for a query at least six times. Yeah six times!! For example, if users have entered the query word “ice cream” and then clicked on a search result six times, then “ice cream” automatically becomes a query suggestion.

You can also create query suggestions explicitly. In this article I'll use a simple example to show how you can do that.

Step 1: Login into SharePoint online environment as a site collection admin.

Navigate to Search Administration.

Navigate to Search Administration

Step 2:
  1. Ensure that the Show Search suggestion is checked on.
  2. Click Import from text File

Search suggestion
Step 3:
Open Notepad and type whatever you want to appear as query suggestions. Kindly ensure that you save it in UTF -8 Format.

UTF -8 Format 

Step 4: Choose Browse and Select the file and Click Ok.
 
Browse and Select the file

Step 5: Create a New Search Center site as follows.
 
New Search Center site

Step 6: Enterprise Search Center will be generated automatically.
 
Enterprise Search Center

Step 7: Since I'm setting up a SharePoint Online Environment I have delayed the preparation of the query suggestion job to run and the see the query suggestions based on our input file.
 
SharePoint Online Environment 
SharePoint Online Environment  
SharePoint 

Up Next
    Ebook Download
    View all
    Learn
    View all