One solution is to utilize a rule and pass restrictSearchableAttributes parameter as a query parameter.
To do this, you can use the Manual rule editor in your Algolia dashboard or API. In this example we will use the Manual rule editor for simplicity.
Step 1) Add the rule condition such as below:
Step 2) Assuming that the current searchable attributes are ['name', 'description', 'brand', 'manufacturer'] we are only interested to pull results from the name and brand attribute. Then we can configure to restrict the attributes as such:
More information about restrictSearchableAttributes parameter can be read from this documentation and rule with intent here.