Use rules only in specific index of a multi index search


I’m using a multi-index search in my shopify store which is working fine (the multi-indexes are products, collections and blogs).

I have enabled collection mode for instant search but I need to display blogs that are related to the collection.

In the shopify collection page, algolia uses rules to display only the products contained in the collection but I need to add to that the blogs which are not in collections so i would like to change rules on this index search to have, for example, blogs with tags equal to the collection handle.

Can I use different rules for each index, and how ?


I already tried to use the clearRules on the index widget, the function doesn’t exist, I also tried to add a searchFunction in the index widget options, but the function isn’t fired …

Do you have any other idea ?