# Searching everything from the home screen: tabs, collections or rows of data

**URL:** <https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783>\
**Category:** Ask for Help\
**Created:** [April 22, 2024, 1:46am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783 "2024-04-22T01:46:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [April 22, 2024, 1:46am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/1 "2024-04-22T01:46:54Z")

</div>

Hi guys,  
Has Glide’s in-app search capabilities improved lately? I would like to have a search bar on the home screen that can pull the row data from anywhere in my app/database and present it as a direct search result.

At the moment, from the home screen a user would first find the relevant category → open the category → then search again within the category/collection to find the item that they’re looking for. Too many steps… 🫤

I’ve been reading the threads but I’m still not sure what’s the current status of searching within a Glide app.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 22, 2024, 2:21am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/2 "2024-04-22T02:21:37Z")

</div>

For native search, no, that still ties to collections shown on the screen.

I’m not sure how you build the “category” part, but as long as you have a collection tied to that relevant category (and of course tied to a table), then you can enable searching for that collection.

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [April 22, 2024, 2:50am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/3 "2024-04-22T02:50:07Z")

</div>

I have 2 main tables:

- 1 for businesses
- 1 for activities/events

I grouped the businesses into categories like Sports, Construction, Wellness, etc. using relations. And I display these categories as a collection on the home screen.

I have a search bar for each level.  
Ideally, if the search bar on the home screen can search beyond the category and into the sets of businesses and activities, this would be a huge improvement.

I tried to illustrate it below 😃 . The red search box and results type is what I want, the rest is what I have and those results only direct you to the levels directly below them.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/2/a2adec5452b8d9270522435e85c4fd525552f275.png)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 22, 2024, 3:17am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/4 "2024-04-22T03:17:35Z")

</div>

You could create you own custom search to do this.

Something like this:

- Create a User Specific column to hold the search text. This should be in the table that your Home Screen is attached to. (Normally I’d say put that column in your User Profiles table, but I think your App doesn’t require sign in, yes?)
- In each of the tables that you want to search, add the following columns:  
– A single value column, that fetches the search term from the Home Screen table  
– Now, lets assume you have a Name column in each table, and you want the search to apply to that.  
– Add and if-then-else column:  
— If Name includes search term, then `true`
- Now on your Home Scree, add two collections, and make each of your two tables the source of one of the collections
- Apply a filter to each, where “if-then-else column is checked”

That should do it for you.  
The above is just a fairly simple example of what you can do in terms of custom filtering with data editor logic. For a somewhat more advanced example, check the below video:

https://www.loom.com/embed/4398b34185c9435bacdd51b2332db722

* * *
_If the above video won't play, paste the following URL into a browser:_

```auto
https://www.loom.com/share/4398b34185c9435bacdd51b2332db722

```

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [April 22, 2024, 3:25am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/5 "2024-04-22T03:25:02Z")

</div>

yes, my app has no sign-in.  
Ok, I will try this workflow, thanks a bunch. I’ll let you know if I get it to work. ☺

EDIT:  
@Darren_Murphy I created the columns as you suggested but I’m not seeing an option to place the search bar on the home screen, I’m only seeing the option on the collections themselves.  
I see that in your video, you set up filters and a query… It might take some time for me to understand what you did because I never used filters like this before. 👍

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 22, 2024, 4:09am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/6 "2024-04-22T04:09:09Z")

</div>

You need to use a text entry component to act as your search bar.

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [April 22, 2024, 4:11am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/7 "2024-04-22T04:11:00Z")

</div>

ooohhh. ok!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 22, 2024, 4:17am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/8 "2024-04-22T04:17:15Z")

</div>

> [@Sekayi\_Liburd](#):
>
> @Darren_Murphy I created the columns as you suggested but I’m not seeing an option to place the search bar on the home screen, I’m only seeing the option on the collections themselves.

Yeah, as Jeff said you need to add a Text Entry component for that. Sorry, I skipped that in my instructions.

> [@Sekayi\_Liburd](#):
>
> I see that in your video, you set up filters and a query… It might take some time for me to understand what you did because I never used filters like this before.

That’s fine, I wasn’t suggesting that you try and apply any of that to your current use case. It was more to give you an idea of what is possible.

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [April 22, 2024, 4:23am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/9 "2024-04-22T04:23:45Z")

</div>

Thanks so much Darren! Your demo was really great and definitely eye-opening.  
I have a lot to learn!

I just got your custom search to work in my test app so I’m going to apply it and see if I can point the If-column to my tags. I’m very excited!

EDIT:  
@Darren_Murphy Will I get the search to return multiple results per collection?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 22, 2024, 4:41am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/10 "2024-04-22T04:41:27Z")

</div>

> [@Sekayi\_Liburd](#):
>
> @Darren_Murphy Will I get the search to return multiple results per collection?

Yes, it should return everything that matches.

---

<div class="post-metadata">

**Author:** ![Sekayi\_Liburd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sekayi_liburd/32/77608_2.png) [@Sekayi\_Liburd](https://community.glideapps.com/u/Sekayi_Liburd)\
**Post date:** [April 22, 2024, 4:46am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/11 "2024-04-22T04:46:32Z")

</div>

excellent

EDIT: @Darren_Murphy with this workflow, can I add a single card or text stating “No results found” if there are no rows in the If-then-else columns are checked?

I’m not sure what functions are available for this since it takes into account the data from 2 different tables and I don’t want multiple “No results found” statements.

2nd Edit: For now I decided to count the results and display as a text. This formula from @Jeff_Hager helped me greatly because I needed to weed out the expired activities…

> [@If Then Else with two or more criteria!](https://community.glideapps.com/t/if-then-else-with-two-or-more-criteria/19971/18):
>
> IF Column A is empty  
> THEN false
> 
> ELSE
> 
> IF Column B is empty  
> THEN false
> 
> ELSE
> 
> true

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 29, 2024, 4:46am UTC](https://community.glideapps.com/t/searching-everything-from-the-home-screen-tabs-collections-or-rows-of-data/72783/12 "2024-04-29T04:46:51Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
