# Not able to perform exact search

**URL:** <https://discuss.elastic.co/t/not-able-to-perform-exact-search/238654>\
**Category:** Elasticsearch\
**Created:** [June 25, 2020, 11:41am UTC](https://discuss.elastic.co/t/not-able-to-perform-exact-search/238654 "2020-06-25T11:41:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aravinda](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@aravinda](https://discuss.elastic.co/u/aravinda)\
**Post date:** [June 25, 2020, 11:41am UTC](https://discuss.elastic.co/t/not-able-to-perform-exact-search/238654/1 "2020-06-25T11:41:14Z")

</div>

Iam not able to perform the exact search with the below json query.

"query":{  
"match":{  
"fieldName":"metaData.domainName",  
"value" :"Business Resiliency"  
}  
}

Iam getting all the record like "Transaction Resiliency", "Business outlook" etc.. But i need to perform exact match and get all the records which matches the domainName is equal to "Business Resiliency". Please suggest and lookiing for an help.

Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 25, 2020, 12:09pm UTC](https://discuss.elastic.co/t/not-able-to-perform-exact-search/238654/2 "2020-06-25T12:09:25Z")

</div>

Welcome!

If you re using all the default mapping, try this:

```auto
"query":{
  "match":{
    "fieldName":"metaData.domainName.keyword",
    "value" :"Business Resiliency"
  }
}

```

Otherwise, you need to change the mapping and use a `keyword` datatype for `metaData.domainName` or use a `keyword` `analyzer` for the field.

---

<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 23, 2020, 12:09pm UTC](https://discuss.elastic.co/t/not-able-to-perform-exact-search/238654/3 "2020-07-23T12:09:25Z")

</div>

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