# What is equivalent query as SQL LIKE clause with Prefix and suffix?

**URL:** <https://discuss.elastic.co/t/what-is-equivalent-query-as-sql-like-clause-with-prefix-and-suffix/105774>\
**Category:** Elasticsearch\
**Created:** [October 30, 2017, 3:06pm UTC](https://discuss.elastic.co/t/what-is-equivalent-query-as-sql-like-clause-with-prefix-and-suffix/105774 "2017-10-30T15:06:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Saxena](https://avatars.discourse-cdn.com/v4/letter/r/7993a0/32.png) [@Rahul\_Saxena](https://discuss.elastic.co/u/Rahul_Saxena)\
**Post date:** [October 30, 2017, 3:06pm UTC](https://discuss.elastic.co/t/what-is-equivalent-query-as-sql-like-clause-with-prefix-and-suffix/105774/1 "2017-10-30T15:06:16Z")

</div>

I want to search from Elastic Search with search box text value having Prefix and Suffix in .net C# using NEST. Suppose I search "apple" it give me output only "apple" and I want output like "apple", "apple mobile", "apple earphone", "apple iPhone 7" etc.

Also if I search "ppl" then also I want output like "apple", "apple mobile", "apple earphone", "apple iPhone 7" etc.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 27, 2017, 3:06pm UTC](https://discuss.elastic.co/t/what-is-equivalent-query-as-sql-like-clause-with-prefix-and-suffix/105774/2 "2017-11-27T15:06:33Z")

</div>

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