Filter before query

I understand that after a query is made on the whole index we can filter the results to drill down the results.

What I want to achieve is the opposite, i.e. first limit the scope of the query so that the query then performs on a subset of the index.

The purpose is to first restrict the scope of the query to say a “category” attribute called “laptops”, so that the query is only performed on this subset instead of the whole index, thus perhaps improving performance.

Hi @lubbleapp, Your initial query can also have a filter applied. If you are using the Instantsearch, you can use the configure widget to filter the initial search. If you are using one of our API clients, you also filter the initial search.