Add search parameter when using InstantSearch

In instantsearch, I would like to add a parameter to my query, so for example if my user is at I want to only have results where the language is en.

How can i add a restriction like this with the Instantsearch library.


Sure, you will need to use the configure widget:

On the search parameters, you will need to provider the filters parameter:

  filters: 'language:en'

Please don’t forget that you will also need to add the “language” to the list of “attributesForFaceting”:

Let me know how it goes,