# Search key field?

**URL:** <https://discuss.elastic.co/t/search-key-field/5225>\
**Category:** Elasticsearch\
**Created:** [August 23, 2011, 8:25am UTC](https://discuss.elastic.co/t/search-key-field/5225 "2011-08-23T08:25:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrej](https://avatars.discourse-cdn.com/v4/letter/a/d9b06d/32.png) [@Andrej](https://discuss.elastic.co/u/Andrej)\
**Post date:** [August 23, 2011, 8:25am UTC](https://discuss.elastic.co/t/search-key-field/5225/1 "2011-08-23T08:25:56Z")

</div>

Can I run a search query on the key field? If so, how would it be  
analyzed?

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [August 23, 2011, 8:31am UTC](https://discuss.elastic.co/t/search-key-field/5225/2 "2011-08-23T08:31:15Z")

</div>

On Tue, 2011-08-23 at 01:25 -0700, Andrej Rosenheinrich wrote:

> Can I run a search query on the key field? If so, how would it be  
> analyzed?

???

---

<div class="post-metadata">

**Author:** ![Erick\_Tryzelaar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/erick_tryzelaar/32/3036_2.png) [@Erick\_Tryzelaar](https://discuss.elastic.co/u/Erick_Tryzelaar)\
**Post date:** [August 23, 2011, 3:15pm UTC](https://discuss.elastic.co/t/search-key-field/5225/3 "2011-08-23T15:15:59Z")

</div>

On Tue, Aug 23, 2011 at 1:25 AM, Andrej Rosenheinrich  
[andrej.rosenheinrich@unister.de](mailto:andrej.rosenheinrich@unister.de) wrote:

> Can I run a search query on the key field? If so, how would it be  
> analyzed?

ES stores all the fields for an index in the mapping document. Could  
you just grab it and see if your key field exists? Here's the docs for  
that.

> **[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.

---

<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:56am UTC](https://discuss.elastic.co/t/search-key-field/5225/4 "2017-07-06T03:56:15Z")

</div>


