# Kuery exact match

**URL:** https://discuss.elastic.co/t/kuery-exact-match/136145
**Category:** Kibana
**Created:** [June 15, 2018, 9:23pm UTC](https://discuss.elastic.co/t/kuery-exact-match/136145 "2018-06-15T21:23:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![GregoryB-T](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregoryb-t/32/28564_2.png) [@GregoryB-T](https://discuss.elastic.co/u/GregoryB-T)
#### Post date: [June 15, 2018, 9:23pm UTC](https://discuss.elastic.co/t/kuery-exact-match/136145/1 "2018-06-15T21:23:15Z")

</div>

Hi ,

is it possible with the kuery language to do an exact match on a field ?

By example :  
to match "url":"[http://myDomaine.com/](http://myDomaine.com/)" but exclude all the [http://myDomaine.com/\*](http://myDomaine.com/*) possibility

Thanks and Regards

---

<div class="post-metadata">

### Author: ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)
#### Post date: [June 18, 2018, 1:10pm UTC](https://discuss.elastic.co/t/kuery-exact-match/136145/2 "2018-06-18T13:10:26Z")

</div>

Hmm, I'm not sure, maybe @Bargs can answer this one?

---

<div class="post-metadata">

### Author: ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)
#### Post date: [June 18, 2018, 7:59pm UTC](https://discuss.elastic.co/t/kuery-exact-match/136145/3 "2018-06-18T19:59:36Z")

</div>

Exact matches are easier to query for if your field is mapped as a `keyword`. It looks like your `url` field is a `text` field. Do you have a `url.keyword` field? (Elasticsearch would create this multi field by default) If so you should be able to do search for an exact match with it e.g. `url.keyword:"http://mydomain.com/"`

---

<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 16, 2018, 7:59pm UTC](https://discuss.elastic.co/t/kuery-exact-match/136145/4 "2018-07-16T19:59:54Z")

</div>

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