Coveo Hive Search Box Suggestions Limit
Hi guys, I have woking my coveo searchbox https://docs.coveo.com/en/2329/coveo-for-sitecore-v5/inserting-and-configuring-a-global-search-box-using-the-coveo-for-sitecore-hive-framework and also I can see suggestions when I strat typing in the search bar.
Is there a way to limit the number of suggestions? How many suggestions is the default limit?
I think you can add the numberOfSuggestions option on your SearchBox component.
Here are two options to add data-attributes not fronted in Coveo for Sitecore Hive:
document.getElementById("YOUR_SEARCH_BOX_ID").dataset.numberOfSuggestions = 5;
This code can be added in the Custom Initialization Scripts or simply by adding a rendering that contains this code in a script tag.