How to set the amount of Popular Searches in frontend

Hey everyone, i want to set the amount of popular searches from now 10 down to 5 inside the search flyout for frontend. how can i do that ?

help is appreciated !
thanks

@samuel.dillenburg welcome to the community!

Are you following this guide? If so, you’ll want to change this underlying configuration value:

  hitsPerPage: algoliaConfig.autocomplete.nbOfQueriesSuggestions

Otherwise, find out where you are loading your Query Suggestions plugin and see if this is being set manually or is set via a configuration value like the example above. We always use the hitsPerPage attribute to set the amount of items that should be returned.

Happy to help further, let us know! Thanks!