Search based on matching preferences of two types of users

Hi,
I am developing a simple app to match the preferences of restaurant chefs and suppliers. I am quite new to bubble and I have no coding experience from before.

So this is a brief of how the app should work:

The app will have two different signups and hence, two different profiles - one for “supplier” and one for the “chef”.

Supplier 1 will fill in his preferences in his profile:
The kind of meat he has in his shop: 1. lamb 2. bacon

Supplier 2 will fill in his preferences in his profile too:
The kind of meat he has in his shop: 1. beef 2. bacon

The Chef will fill in his information in his profile:
The kind of meat he usually purchases: 1. beef

Finally, when the Chef hits search on his own homepage to look for potential new suppliers, he should ONLY be shown the result that contains Supplier 2 (because it matches perfectly with items he wants to buy).

How do I make the search button to only show results that displays supplier 2?

Please help me with this issue. Thanks a lot :slight_smile:

If every Supplier (datatype) has a list of Meats (also a datatype), you can have a repeating group that does a Search for Suppliers with the constraint Meats contains Beef (this could be based on a dropdown menu where the chef selects the type of meat he wants.

Thanks a lot pnodseth. I just figured it out. Your insight was helpful. Thank you :slight_smile: