# Exact phrase search

**URL:** <https://discuss.elastic.co/t/exact-phrase-search/244765>\
**Category:** Elasticsearch\
**Created:** [August 12, 2020, 5:57pm UTC](https://discuss.elastic.co/t/exact-phrase-search/244765 "2020-08-12T17:57:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmitaS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitas/32/47708_2.png) [@AmitaS](https://discuss.elastic.co/u/AmitaS)\
**Post date:** [August 12, 2020, 5:57pm UTC](https://discuss.elastic.co/t/exact-phrase-search/244765/1 "2020-08-12T17:57:55Z")

</div>

HI,  
I am new to elastic search.i wanted to know how to query for exact search.  
Example if am searching for "charlie"  
and i have "charlie chaplin" ,"charlie walter","charlie","charlie123"

i am expecting result only "charlie"  
i am trying to use terms

```auto
Terms(s=>s.field("fieldname").Terms("charlie"))  

```

it gives me "charlie chaplin","charlie walter" and "charlie" can anyone guide,what i must be doing here?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 13, 2020, 7:48am UTC](https://discuss.elastic.co/t/exact-phrase-search/244765/2 "2020-08-13T07:48:27Z")

</div>

This is fully expected behaviour from an Elasticsearch point of view, as all documents that contain the term `charlie` are returned. As you can see, search engines tend to behave a little bit different compared to other data stores.

In order to understand how a field is indexed and stored and searched I highly recommend you to read [Elasticsearch - The definitive guide](https://www.elastic.co/guide/en/elasticsearch/guide/current/index.html), especially the [Search in Depth](https://www.elastic.co/guide/en/elasticsearch/guide/current/search-in-depth.html)

Despite its age this is still one of the best introductions into this topic.

---

<div class="post-metadata">

**Author:** ![AmitaS](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/amitas/32/47708_2.png) [@AmitaS](https://discuss.elastic.co/u/AmitaS)\
**Post date:** [August 13, 2020, 11:10am UTC](https://discuss.elastic.co/t/exact-phrase-search/244765/3 "2020-08-13T11:10:26Z")

</div>

Thanks will go through it

---

<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:** [September 10, 2020, 11:10am UTC](https://discuss.elastic.co/t/exact-phrase-search/244765/4 "2020-09-10T11:10:53Z")

</div>

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