# Keyword type and wildcard queries

**URL:** https://discuss.elastic.co/t/keyword-type-and-wildcard-queries/69032
**Category:** Elasticsearch
**Created:** [December 14, 2016, 3:09pm UTC](https://discuss.elastic.co/t/keyword-type-and-wildcard-queries/69032 "2016-12-14T15:09:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![voyager-data](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@voyager-data](https://discuss.elastic.co/u/voyager-data)
#### Post date: [December 14, 2016, 3:09pm UTC](https://discuss.elastic.co/t/keyword-type-and-wildcard-queries/69032/1 "2016-12-14T15:09:13Z")

</div>

The documentation says "Keyword fields are only searchable by their exact value." To be clear, does this mean that a wildcard, regexp, or prefix query will not work on keywords?

---

<div class="post-metadata">

### Author: ![xavierfacq](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/xavierfacq/32/8744_2.png) [@xavierfacq](https://discuss.elastic.co/u/xavierfacq)
#### Post date: [December 14, 2016, 3:36pm UTC](https://discuss.elastic.co/t/keyword-type-and-wildcard-queries/69032/2 "2016-12-14T15:36:27Z")

</div>

Yes you can !

---

<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: [January 11, 2017, 3:36pm UTC](https://discuss.elastic.co/t/keyword-type-and-wildcard-queries/69032/3 "2017-01-11T15:36:40Z")

</div>

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