Top Trending
Top Trending Queries
- By default, this feature is disabled.
- To view Top Trending queries, you can enable the feature by going to the facet.js file found in your plugin folder and making the following changes:
- Add the line:
"showTopQueriesTrending": true
- Modify
"topQuery"
to true. - Provide the API key to your server, which can be found in the Admin tab of your SearchBlox admin console.
- Change
“limit”
to set the number of top trending queries you want to see. - Save the facet.js file
- Add the line:
"showTopQueriesTrending": true,
"topQuery": true,
"topQueryFields":{
"apikey":"123456789",
"col":"",
"limit":"5"
},
- Open the link: http://localhost:8080/searchblox/plugin_name/index.html
- You can see that the top trending queries are shown in the search box.
Updated almost 4 years ago
What’s Next