Remove Products from certain searches

Hello!

I have a supplier that is being a pain and doesn’t want any other brands products showing up when you search their brand name. Is there a way to remove products from the results when you search for their brand, I was thinking if you search their brand name you only get shown products from a certain category but I don’t know if that is possible?

Thanks
Will

You could use facetFilters for this: https://www.algolia.com/doc/api-reference/api-parameters/facetFilters/

So you could check if the query contains the brand and then set the respective facete manually.

Do you have to extend the magento module to do this?

Yes, i think you have to extend the algolia module.