# How to search for a keyword in a list of words?

**URL:** <https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091>\
**Category:** Questions about Thunkable X\
**Tags:** search\
**Created:** [July 17, 2021, 4:01pm UTC](https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091 "2021-07-17T16:01:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [July 17, 2021, 4:01pm UTC](https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091/1 "2021-07-17T16:01:31Z")

</div>

Hello there, hope you are great!

Let’s say I have a list of my users’ names. An item (user’s name) could be just _first name_ & _last name_ (like **John Smith** ), or a _full name_ (like **John Henry Smith** ). What I want to do is, when the user tries to search for someone, if the keyword is in the name, the list should show it. Here’s an example -

Let’s say, this is my list -

- John Henry Smith
- Jane William Foster
- William Smith
- John Brown

If I simply try to search ‘ **John** ’, it should return both item1 & item4 as they both contain **John**. But here’s where the fun begins - If I search ‘ **John Smith** ’, (since there is no item exactly containing John Smith), it should return me item1, as it contains both **John** and **Smith**. The key is, the search keyword doesn’t have to match exactly with the items.

Is this sorta thing possible? Searching every word of the entered keyword in an item? Any advice/help is appreciated! Thanks!

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 17, 2021, 4:05pm UTC](https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091/2 "2021-07-17T16:05:19Z")

</div>

Try this  
[https://x.thunkable.com/projectPage/600c35d2f153060012143dc8](https://x.thunkable.com/projectPage/600c35d2f153060012143dc8)

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [July 17, 2021, 4:44pm UTC](https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091/3 "2021-07-17T16:44:58Z")

</div>

Hi, @muneer! Thanks a lot for the reply!

In your project, if I search ‘Dr. Williams’ in your list, it doesn’t show me anything, as there’s no _Dr. Williams_ - but _Dr. Ted Williams_. As I said, if the words of the search keyword are present in any item of the list (in any arrangement), the item should show. Is it possible to create something like I am talking about?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 17, 2021, 4:47pm UTC](https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091/4 "2021-07-17T16:47:19Z")

</div>

Yes, it is possible.

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [July 17, 2021, 5:16pm UTC](https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091/5 "2021-07-17T17:16:07Z")

</div>

Thanks! Can you suggest any ideas? 🙂

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [July 17, 2021, 5:31pm UTC](https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091/6 "2021-07-17T17:31:16Z")

</div>

Remix the same project again. I made the requested changes.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [July 18, 2021, 2:22am UTC](https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091/7 "2021-07-18T02:22:49Z")

</div>

Ah, I’ve always wanted a ‘round to nearest contain’ block. Basically it ignores little bits and if the item the text is being compared to matches the search ‘when rounded up’, it returns ‘does contain’ as true.  
@muneer this is the perfect solution!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:19pm UTC](https://community.thunkable.com/t/how-to-search-for-a-keyword-in-a-list-of-words/1401091/8 "2024-11-08T13:19:40Z")

</div>


