# Searching for specific words that are in choice component?

**URL:** <https://community.glideapps.com/t/searching-for-specific-words-that-are-in-choice-component/65151>\
**Category:** Ask for Help\
**Created:** [August 18, 2023, 10:34am UTC](https://community.glideapps.com/t/searching-for-specific-words-that-are-in-choice-component/65151 "2023-08-18T10:34:10Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yunus\_Emre\_Karahan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yunus_emre_karahan/32/61337_2.png) [@Yunus\_Emre\_Karahan](https://community.glideapps.com/u/Yunus_Emre_Karahan)\
**Post date:** [August 18, 2023, 10:34am UTC](https://community.glideapps.com/t/searching-for-specific-words-that-are-in-choice-component/65151/1 "2023-08-18T10:34:11Z")

</div>

I have a list of different types of wall constructions:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/f/8f82cea1241f1ed40b8947062a103da274be93a9.png)

When trying to search for a specific type of wall construction, the end user would write something like:  
“Hul 30”

It seems like Glide only allows exact matches in the search bar of choice components.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/b/2b71c80b174b7153a220c42aab91642b6d1cb8df.png)

I tried making a split text column right next to the full length text descriptions, but I don’t know if it’s possible to implement the tags in a choice component.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/5/e54cac6e20021941a3dea177338f157d18fcbf89.jpeg)

Do you guys know any way I can make search possible like this on a choice component in a form?

---

<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:** [August 19, 2023, 12:54am UTC](https://community.glideapps.com/t/searching-for-specific-words-that-are-in-choice-component/65151/2 "2023-08-19T00:54:30Z")

</div>

> [@Yunus\_Emre\_Karahan](#):
>
> It seems like Glide only allows exact matches in the search bar of choice components.

Yeah, because “Hul” and “30” are not close to each other in your options. If they write “Hul ydervæg - 30” then it would work.

I assume you’re using this inside a form, so it’s a bit more difficult. I was thinking if you can point the search to a user-specific column, then write some JS to know the matching percentage between the search term and your strings. Maybe just show choices that have more than 75% match, for example.

---

<div class="post-metadata">

**Author:** ![Yunus\_Emre\_Karahan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yunus_emre_karahan/32/61337_2.png) [@Yunus\_Emre\_Karahan](https://community.glideapps.com/u/Yunus_Emre_Karahan)\
**Post date:** [August 21, 2023, 5:44am UTC](https://community.glideapps.com/t/searching-for-specific-words-that-are-in-choice-component/65151/3 "2023-08-21T05:44:25Z")

</div>

Hmmm. That’s quite the workaround for me.

I’ll see if ChatGPT can help with the JS.

---

<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:** [August 21, 2023, 6:19am UTC](https://community.glideapps.com/t/searching-for-specific-words-that-are-in-choice-component/65151/4 "2023-08-21T06:19:14Z")

</div>

Just a thought, would it make sense to split those into two separate choices?

I don’t speak the language, so I have no idea what “Hul ydervaeg” means, but if that’s some sort of category, perhaps they could select that first, and then offer a second choice that’s filtered by their first selection?

---

<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:** [August 22, 2023, 1:20am UTC](https://community.glideapps.com/t/searching-for-specific-words-that-are-in-choice-component/65151/5 "2023-08-22T01:20:46Z")

</div>

Seems like a construction-related thing. I had it translated as “Cavity wall - 35 cm brick - uninsulated cavity”.

You got a good point that maybe there’s a chance to separate it into 2-3 choice components.

---

<div class="post-metadata">

**Author:** ![Yunus\_Emre\_Karahan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yunus_emre_karahan/32/61337_2.png) [@Yunus\_Emre\_Karahan](https://community.glideapps.com/u/Yunus_Emre_Karahan)\
**Post date:** [August 23, 2023, 8:05am UTC](https://community.glideapps.com/t/searching-for-specific-words-that-are-in-choice-component/65151/6 "2023-08-23T08:05:57Z")

</div>

This would be a solution, but it eliminates the purpose for my intended use of the search bar.

The idea is to either choose a predefined wall type or create your own. I’d like to be able to search through all of the predefined walls by simply searching for terms that is included in the wall.

This could be a good function to add to the settings of a choice component. EDIT: To elaborate on this I’d like to give an example:

It could be as simple as giving you a choice to how the search is functioning:

- Show all results containing the input text? I think it’s called a Substring Search?
- Show results with consecutive words? I think its called a Phrase Search?

---

<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:** [August 23, 2023, 11:13pm UTC](https://community.glideapps.com/t/searching-for-specific-words-that-are-in-choice-component/65151/7 "2023-08-23T23:13:06Z")

</div>

I think if you want to do it within the current capabilities of Glide, you would have to:

- Create a user-specific column.

- Point a text entry to that column.

- Use a split text column to split that entry value by a space character.

- On your list of choices, also create a split text column to split by a space character.

- Create a relation between the two split text column so you can get partial matches.
