Query spelling suggestions are words that appear below the search box as a user types a query. SharePoint automatically creates a query suggestion when you’ve clicked a search result for a query at least six times. For example, if you’ve entered the query word “coffee” and then clicked a search result six times, “coffee” automatically becomes a query suggestion.
Automatic query suggestions are generated daily for each result source and each site collection, so the query suggestions can be different for different result sources and site collections.
You can also manually create your own lists of query suggestions and import them to SharePoint. Manual query suggestions apply to all result sources and to all site collections.
To create query suggestions for multiple languages, you’ll need to create a separate file for each language. The language determines how the query suggestions are processed internally in the search system. All manual query suggestions are always displayed for all languages. Add each phrase as a separate line in the text file that you create, and save the file in UTF-8 encoding.
Query suggestions are turned on by default. To turn them off, go to Search Suggestions and uncheck Show search suggestions.
To create query suggestions in SharePoint search
- Sign in to the Office 365 Admin Center as a search administrator.
- Choose Admin > SharePoint > search > Query Suggestion Settings.
- Open a text editor of your choice, and enter a list of terms that you want the system to always suggest to users. Only add one term per line to the text file, and don't mix languages in the text file.
- Save the text file to a location that’s accessible from SharePoint Online.
- To import a list of query suggestions to SharePoint search, go to Always suggest phrases > Import from text file. When you import query suggestions, any existing ones will be overwritten.
- Browse to the file that you want to import.
- Go to Language for suggestion phrases, and select the processing language of your query suggestions. It should match the language of the terms in the text file.
- Choose Save Settings.
Top of Page
You can edit a list of query suggestions that you’ve manually created. To edit a list that you've already imported in to SharePoint, choose Export to text file, update the text file with your changes, and then re-import it. After you’ve uploaded your query suggestions file, it might take a few hours until your query suggestions are displayed. You can check that they’re working properly by entering a phrase from your list of query suggestions in the search box. The query suggestion should appear below the search box.
To get rid of a list of query terms, you have to overwrite it. Do this by importing an empty text file.
You can also prevent terms from appearing in the search box. To do this, create a text file with the query terms that you never want users to see below the search box, and then import it to Never suggest phrases.
Top of Page