Query Suggestions helps users by suggesting queries they can select from, to autocomplete their search.
In your Search experience, you can configure Query Suggestions for both Universal prompts, and Vertical prompts.
- Universal Prompts: Appear as a drop-down list as soon as the user clicks into the search bar into universal search and helps guide them to utilize the search capacity more fully.
- Vertical Prompts: Will be triggered when a user starts typing in the vertical page search bar.
To add Query Suggestions in the UI:
- Click Search in the navigation bar and click on the desired Search experience.
- Click Query Suggestions.
- Click Universal Prompts or Vertical Prompts depending on which Query Suggestions you’d like to add.
- Click + Add A Universal Prompt and enter your desired Query Suggestion in the textbox.
- Click Save.
To add Query Suggestions using the JSON Editor:
- Click Edit as JSON in the navigation bar to open your Search Configuration file.
-
Within a
querySuggestions
object add the array of values within theuniversalprompts
andverticalprompts
objects depending on which Query Suggestions you’d like to add.
It should look something like this:
"querySuggestions": {
"popularQueriesBlacklistedTerms": [],
"universalPrompts": [
"Restaurants near me",
"Do you offer delivery?",
"Events",
"Do you sell gift cards?",
"Community stories",
"Open jobs"
],
"verticalPrompts": {
"communityStories": [
"[[name]]"
],
"events": [
"[[name]]"
],
"faqs": [
"[[name]]"
],
"jobs": [
"open jobs in [[c_jobDepartment]]"
],
"restaurants": [
"Restaurants near me",
"Restaurants in [[address.city]]"
]
}
}
}
For more information on Query Suggestions, best practices, and use cases, visit the Query Suggestions Hitchhikers training module.
Comments
0 comments
Article is closed for comments.