# Tag based search

**URL:** <https://forum.adalo.com/t/tag-based-search/9463>\
**Category:** Database\
**Created:** [February 20, 2021, 8:46pm UTC](https://forum.adalo.com/t/tag-based-search/9463 "2021-02-20T20:46:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![axme](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/axme/32/21594_2.png) [@axme](https://forum.adalo.com/u/axme)\
**Post date:** [February 20, 2021, 8:46pm UTC](https://forum.adalo.com/t/tag-based-search/9463/1 "2021-02-20T20:46:03Z")

</div>

Hi everyone,

I’m making an app in which users can search other users on a property called “age”, i.e. return all users who have age \> 30. Now obviously this is easy by simply creating a list and filter it on users → age → get 30.

However, we’re also categorizing users based on tags. So, a user can assign him/herself various tags, such as “cheese” or “ham”. Let’s refer to these as the relation “user tags” in which one user can have multiple tags, and tags can belong to multiple users. Besides the “age” property, we’d also like to filter users based on selected tags, which are encoded in a “query” object. This query object has many tags, and tags can belong to many queries, let’s call these “query\_tags”. Essentially, we’d like to perform the query: give me all users which have a user\_tags property that is contained within the query\_tags, or in other words: yield all users that have at least one user\_tag that exists inside query\_tags.

We were not able to use the “contains” mechanism for some reason (it did not accept, maybe because our relation structure is off? Did anyone else experience a similar scenario and was able to solve it?

Love to hear your thoughts.

---

<div class="post-metadata">

**Author:** ![naossoan](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@naossoan](https://forum.adalo.com/u/naossoan)\
**Post date:** [March 4, 2021, 1:38am UTC](https://forum.adalo.com/t/tag-based-search/9463/2 "2021-03-04T01:38:17Z")

</div>

Did you figure out how to do this?

I’m trying to figure out how to create a search feature within my app to display a list of users which contain the search term which sounds similar to what you’re trying to do.

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [March 4, 2021, 2:59am UTC](https://forum.adalo.com/t/tag-based-search/9463/3 "2021-03-04T02:59:53Z")

</div>

Hi @axme and @naossoan ,

Take a look at this

> **[tag based search](https://previewer.adalo.com/b8e8238d-71df-4ceb-acfa-245afa74ba4b)**
>
> Built with Adalo

Cheers.

---

<div class="post-metadata">

**Author:** ![naossoan](https://avatars.discourse-cdn.com/v4/letter/n/a3d4f5/32.png) [@naossoan](https://forum.adalo.com/u/naossoan)\
**Post date:** [March 6, 2021, 8:45pm UTC](https://forum.adalo.com/t/tag-based-search/9463/4 "2021-03-06T20:45:17Z")

</div>

Uh…It doesn’t do anything.

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [March 6, 2021, 10:12pm UTC](https://forum.adalo.com/t/tag-based-search/9463/5 "2021-03-06T22:12:40Z")

</div>

![Screen Shot 2021-03-07 at 5.11.37 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/9ffa0d465e07e9c62fde353dcf8600f84500038f.png)

It looks something to me.

Treat this as baseline that require further efforts.

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [March 7, 2021, 12:44am UTC](https://forum.adalo.com/t/tag-based-search/9463/6 "2021-03-07T00:44:45Z")

</div>

I have updated to include multi-select dropdown component.

It is not perfect, but with more instructions on how to use it, or splitting more screen, it could serve the needs, unfortunately not the wants.

---

<div class="post-metadata">

**Author:** ![catalanic](https://avatars.discourse-cdn.com/v4/letter/c/7993a0/32.png) [@catalanic](https://forum.adalo.com/u/catalanic)\
**Post date:** [December 23, 2021, 2:46pm UTC](https://forum.adalo.com/t/tag-based-search/9463/7 "2021-12-23T14:46:20Z")

</div>

where you able to build this?
