# Keyword field type keep getting Mapped as a Multifield

**URL:** <https://discuss.elastic.co/t/keyword-field-type-keep-getting-mapped-as-a-multifield/313267>\
**Category:** Elasticsearch\
**Created:** [August 30, 2022, 4:31pm UTC](https://discuss.elastic.co/t/keyword-field-type-keep-getting-mapped-as-a-multifield/313267 "2022-08-30T16:31:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xef](https://avatars.discourse-cdn.com/v4/letter/x/898d66/32.png) [@xef](https://discuss.elastic.co/u/xef)\
**Post date:** [August 30, 2022, 4:31pm UTC](https://discuss.elastic.co/t/keyword-field-type-keep-getting-mapped-as-a-multifield/313267/1 "2022-08-30T16:31:48Z")

</div>

Hi  
We are tryoing to create an index with a field of type Keyowrd, but elasticsearch keeps creating a mapping for a multifield even though we have specified the field as a **keyowrd**. i..e 2 fields one with field and one with field.keyword.  
This happens on one single index while all others work as expected.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 31, 2022, 4:10am UTC](https://discuss.elastic.co/t/keyword-field-type-keep-getting-mapped-as-a-multifield/313267/2 "2022-08-31T04:10:30Z")

</div>

It'd be useful if you shared the mapping you are using and a sample of the data.

---

<div class="post-metadata">

**Author:** ![xef](https://avatars.discourse-cdn.com/v4/letter/x/898d66/32.png) [@xef](https://discuss.elastic.co/u/xef)\
**Post date:** [August 31, 2022, 2:47pm UTC](https://discuss.elastic.co/t/keyword-field-type-keep-getting-mapped-as-a-multifield/313267/3 "2022-08-31T14:47:51Z")

</div>

Hi  
We checked everything and of course it was an error on our part.  
Sorry.

---

<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:** [September 28, 2022, 2:48pm UTC](https://discuss.elastic.co/t/keyword-field-type-keep-getting-mapped-as-a-multifield/313267/4 "2022-09-28T14:48:44Z")

</div>

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