# Search as you type

**URL:** <https://forum.radzen.com/t/search-as-you-type/12267>\
**Category:** Blazor Server\
**Created:** [November 19, 2022, 7:53pm UTC](https://forum.radzen.com/t/search-as-you-type/12267 "2022-11-19T19:53:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveg1466](https://forum.radzen.com/user_avatar/forum.radzen.com/daveg1466/32/18767_2.png) [@daveg1466](https://forum.radzen.com/u/daveg1466)\
**Post date:** [November 19, 2022, 7:53pm UTC](https://forum.radzen.com/t/search-as-you-type/12267/1 "2022-11-19T19:53:00Z")

</div>

I am heavily implementing the search as you type feature of the CRUD pages, which is a fantastic feature! My question is this...is it possible to change it to search for "Like" items. I know there is a %% for filtering for like values, but I can't figure out how to incorporate it in the search as you type feature. If it's not possible in the feature, I totally understand, just thought I would pose the question.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 20, 2022, 10:17am UTC](https://forum.radzen.com/t/search-as-you-type/12267/2 "2022-11-20T10:17:44Z")

</div>

By default search as you type in CRUD pages is implemented using Contains():

 ![image](https://forum.radzen.com/uploads/default/original/2X/0/02e65e8304b18096c88864853b0fb2dd139bd682.png)

you can change it to some other built-in operation:

 ![image](https://forum.radzen.com/uploads/default/original/2X/1/1012185f6854e2417f4d8d33a903e5f7c24227fb.png)

or you can create your own custom method with custom SQL to perform desired filter:

 ![image](https://forum.radzen.com/uploads/default/original/2X/0/0bf115d0f66302722418ca247891ce7e7abd7ad9.png)

 ![image](https://forum.radzen.com/uploads/default/original/2X/9/9c894e7f6859eb513c5ea65dba17926ee9fbd2ba.png)

 ![image](https://forum.radzen.com/uploads/default/original/2X/f/fa2fcfb60c11b4c0dd241c72ef942d2cd5c59ca8.jpeg)

 ![image](https://forum.radzen.com/uploads/default/original/2X/4/4b3503ee46c55a1cd05b8e3293b57bc770cf4dfe.png)

---

<div class="post-metadata">

**Author:** ![daveg1466](https://forum.radzen.com/user_avatar/forum.radzen.com/daveg1466/32/18767_2.png) [@daveg1466](https://forum.radzen.com/u/daveg1466)\
**Post date:** [November 20, 2022, 6:21pm UTC](https://forum.radzen.com/t/search-as-you-type/12267/3 "2022-11-20T18:21:18Z")

</div>

Yes, that I can do, but what I am looking for is to see if there is a way to search for items similar to search text. ie...someone searches for shawn, but types shaun or is looking for jon but types in john and I can get all similar items listed.

---

<div class="post-metadata">

**Author:** ![daveg1466](https://forum.radzen.com/user_avatar/forum.radzen.com/daveg1466/32/18767_2.png) [@daveg1466](https://forum.radzen.com/u/daveg1466)\
**Post date:** [November 20, 2022, 6:21pm UTC](https://forum.radzen.com/t/search-as-you-type/12267/4 "2022-11-20T18:21:47Z")

</div>

If not, not the end of the world, just posing the question.

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [November 20, 2022, 7:10pm UTC](https://forum.radzen.com/t/search-as-you-type/12267/5 "2022-11-20T19:10:21Z")

</div>

> [@daveg1466](#):
>
> someone searches for shawn, but types shaun or is looking for jon but types in john and I can get all similar items listed.

I’m afraid I’ve never heard of such SQL query/functionality before.

---

<div class="post-metadata">

**Author:** ![daveg1466](https://forum.radzen.com/user_avatar/forum.radzen.com/daveg1466/32/18767_2.png) [@daveg1466](https://forum.radzen.com/u/daveg1466)\
**Post date:** [November 20, 2022, 8:36pm UTC](https://forum.radzen.com/t/search-as-you-type/12267/6 "2022-11-20T20:36:49Z")

</div>

It was a query from a client, just wanted to check, I hadn't either....

---

<div class="post-metadata">

**Author:** ![GallusRoboticus](https://forum.radzen.com/letter_avatar_proxy/v4/letter/g/47e85d/32.png) [@GallusRoboticus](https://forum.radzen.com/u/GallusRoboticus)\
**Post date:** [November 21, 2022, 6:27pm UTC](https://forum.radzen.com/t/search-as-you-type/12267/7 "2022-11-21T18:27:23Z")

</div>

You might be able to achieve this in SQL using a `SOUNDEX()` function. For the example you have given: `SOUNDEX('shawn')` & `SOUNDEX('shaun')` will both return the same value. If you include this in a custom method as enchev suggests you should be able to use that to filter on certain columns. You could also use the `DIFFERENCE()` function to compare the soundex value for two strings.
