How are search constraints applied and how do they work?

Example:

If I am searching for “food” in Bubble’s search,

and I am using multiple constraints such as

category=fruit

color=yellow

name=“banana”

will the search show me only bananas or will it also show me other fruit?

What I am trying to ask is if search constraints are separate or do they work together to filter down and make a search more highly specific as you add constraints to a search?

Hi @aphz88,

Constraints on a search or a filter are processed with AND – so category = fruit AND color = yellow AND name = banana. This will give you food with all three of the values, so yellow, fruit, bananas. You have also the option of ignoring any constraint that has a dynamic value included, but comes up empty at runtime.



Looking to improve your Bubble™ skills?

Let me turn
:thinking: :tired_face: :confounded:

into
:grinning: :sunglasses: :woman_student:

Coaching and Development at https://uniqueideas.com or schedule a free intro session :gift:

Ken Truesdale
LinkedIn

1 Like

Thank you for your response and clarification.

So do you mean that the search would only show food that satisfies every single value that is specified by the constraints? So if there are 3 constraints, all 3 have to be satisfied for the search to find them? The search won’t show items that happen to fulfill only one of the constraints that are set?

That is correct.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.