# Need to get Exact match

**URL:** <https://discuss.elastic.co/t/need-to-get-exact-match/7118>\
**Category:** Elasticsearch\
**Created:** [March 26, 2012, 6:22am UTC](https://discuss.elastic.co/t/need-to-get-exact-match/7118 "2012-03-26T06:22:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rqueen](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@rqueen](https://discuss.elastic.co/u/rqueen)\
**Post date:** [March 26, 2012, 6:22am UTC](https://discuss.elastic.co/t/need-to-get-exact-match/7118/1 "2012-03-26T06:22:48Z")

</div>

Hi friends,  
I want to get exact matches which is like in  
[http://elasticsearch-users.115913.n3.nabble.com/Matching-a-document-against-a-keyword-exact-quot-substring-quot-match-between-document-and-keywords-td3686656.html](http://elasticsearch-users.115913.n3.nabble.com/Matching-a-document-against-a-keyword-exact-quot-substring-quot-match-between-document-and-keywords-td3686656.html)

Is anybody deal with similar functionality Please help me

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [March 26, 2012, 8:23am UTC](https://discuss.elastic.co/t/need-to-get-exact-match/7118/2 "2012-03-26T08:23:05Z")

</div>

One way i can think of is to use the terms query.  
Break your string into tokens and put them in an array and use -

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Thanks  
Vineeth

On Mon, Mar 26, 2012 at 11:52 AM, lucky [lakshmi27.u@gmail.com](mailto:lakshmi27.u@gmail.com) wrote:

> Hi friends,  
> I want to get exact matches which is like in
> 
> [http://elasticsearch-users.115913.n3.nabble.com/Matching-a-document-against-a-keyword-exact-quot-substring-quot-match-between-document-and-keywords-td3686656.html](http://elasticsearch-users.115913.n3.nabble.com/Matching-a-document-against-a-keyword-exact-quot-substring-quot-match-between-document-and-keywords-td3686656.html)
> 
> Is anybody deal with similar functionality Please help me

---

<div class="post-metadata">

**Author:** ![rqueen](https://avatars.discourse-cdn.com/v4/letter/r/8dc957/32.png) [@rqueen](https://discuss.elastic.co/u/rqueen)\
**Post date:** [March 26, 2012, 10:42am UTC](https://discuss.elastic.co/t/need-to-get-exact-match/7118/3 "2012-03-26T10:42:36Z")

</div>

I don't want to send by break words.Is there any other alternatives

On Mon, Mar 26, 2012 at 1:53 PM, Vineeth Mohan [vineethmohan@algotree.com](mailto:vineethmohan@algotree.com)wrote:

> One way i can think of is to use the terms query.  
> Break your string into tokens and put them in an array and use -  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/terms-query.html)
> 
> Thanks  
> Vineeth
> 
> On Mon, Mar 26, 2012 at 11:52 AM, lucky [lakshmi27.u@gmail.com](mailto:lakshmi27.u@gmail.com) wrote:
> 
> > Hi friends,  
> > I want to get exact matches which is like in
> > 
> > [http://elasticsearch-users.115913.n3.nabble.com/Matching-a-document-against-a-keyword-exact-quot-substring-quot-match-between-document-and-keywords-td3686656.html](http://elasticsearch-users.115913.n3.nabble.com/Matching-a-document-against-a-keyword-exact-quot-substring-quot-match-between-document-and-keywords-td3686656.html)
> > 
> > Is anybody deal with similar functionality Please help me

---

<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:** [July 6, 2017, 3:34am UTC](https://discuss.elastic.co/t/need-to-get-exact-match/7118/4 "2017-07-06T03:34:50Z")

</div>


