# "OR" function in Do a search

**URL:** <https://forum.bubble.io/t/or-function-in-do-a-search/182656>\
**Category:** Database\
**Created:** [December 17, 2021, 4:32am UTC](https://forum.bubble.io/t/or-function-in-do-a-search/182656 "2021-12-17T04:32:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![phetxdphet](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/phetxdphet/32/121138_2.png) [@phetxdphet](https://forum.bubble.io/u/phetxdphet)\
**Post date:** [December 17, 2021, 4:32am UTC](https://forum.bubble.io/t/or-function-in-do-a-search/182656/1 "2021-12-17T04:32:22Z")

</div>

Is there a workaround to having an “or” function when doing a search? Inthis case, all these constraints have to be true to return a value, but is there a way I could search for users where “S: Instagram isn’t empty” OR “S: Facebook isn’t empty”?

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/3/7/37d6a4de5b5fd1a29f4b89c8ae0ecf5c256352ad.png)

Many thanks

---

<div class="post-metadata">

**Author:** ![maheshkasindi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/maheshkasindi/32/166723_2.png) [@maheshkasindi](https://forum.bubble.io/u/maheshkasindi)\
**Post date:** [December 17, 2021, 5:26am UTC](https://forum.bubble.io/t/or-function-in-do-a-search/182656/2 "2021-12-17T05:26:25Z")

</div>

You need to use “Filtered” to do that.

Search for users(seller status=yes) :filtered  
Advanced: This users S: Instagram isn’t empty or This users S: Facebook isn’t empty

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [December 17, 2021, 8:46am UTC](https://forum.bubble.io/t/or-function-in-do-a-search/182656/3 "2021-12-17T08:46:21Z")

</div>

Hi there, @phetxdphet… as @maheshkasindi mentioned, you can use an advanced filter, although, those filters can be slow because the data is filtered on the client side. Another option is to merge two searches together with the _merged with_ operator. So, do a search for users where `S: Instagram isn't empty` and merge that with a search for users where `S: Facebook isn't empty`.

Anyway, just food for thought… hope it helps.

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![phetxdphet](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/phetxdphet/32/121138_2.png) [@phetxdphet](https://forum.bubble.io/u/phetxdphet)\
**Post date:** [December 18, 2021, 12:09pm UTC](https://forum.bubble.io/t/or-function-in-do-a-search/182656/4 "2021-12-18T12:09:23Z")

</div>

Thanks for the alternative! Yea I’ll try to not use advanced filters if I can afford to, thanks for help!

@maheshkasindi thanks for the suggestion too! I’ll use those for scenarios where I can’t use the merged with operator!
