Hi there! How are you doing? :smile: I've got a qu...
# community-help
l
Hi there! How are you doing? 😄 I've got a question. I need to handle 2 collections in 1 filter widget. Could you tell, is it possible? So I have two collections with similar fields. For example: collection_1 : id, category, status ... collection_2 : id, category, status ... Category may have different values. One of the possible values is General. I need: 1. Show General option in the filter 2. When this option is selected, show General items from collection_1, but don't show General items from collection_2 Right now I came up with this solution: I'm displaying filters from collection_1, so the General option is visible there. But when I'm selecting this option, I receive hits from collection_2 with category = General as well. I need only hits with category = General from collection_1 🫠 Please help
k
Are you writing custom code using the JS client or using the instant search adapter?
l
k
@Jason Bosco will be able to help with this later.
l
Thank you very much !
j
@Lina A I don’t think react-instantsearch allows you to combine data from multiple collections in a single filter widget
So you might have to build a custom widget
l
Ohh gotcha. This is actually what I thought. Thank you for confirming that! 🙏