# What is the field count for the below mapping?

**URL:** <https://discuss.elastic.co/t/what-is-the-field-count-for-the-below-mapping/258280>\
**Category:** Elasticsearch\
**Created:** [December 10, 2020, 1:55pm UTC](https://discuss.elastic.co/t/what-is-the-field-count-for-the-below-mapping/258280 "2020-12-10T13:55:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gokulnath112](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gokulnath112](https://discuss.elastic.co/u/gokulnath112)\
**Post date:** [December 10, 2020, 1:55pm UTC](https://discuss.elastic.co/t/what-is-the-field-count-for-the-below-mapping/258280/1 "2020-12-10T13:55:33Z")

</div>

Hi Team,  
Greetings...!!!. Hope everyone is safe.  
Consider the following mapping for an index and kindly tell me how many fields are there. I have added the keyword mapping for the field " **my\_string**". So my doubt is the field count is 3(my\_integer,my\_string,my\_string.keyword) or 2(my\_integer,my\_string).

"mappings" : {  
"properties" : {  
"my\_integer" : {  
"type" : "long"  
},  
"my\_string" : {  
"type" : "text",  
"fields" : {  
"keyword" : {  
"type" : "keyword",  
"ignore\_above" : 256  
}  
}  
}  
Please bear with me as it is a silly doubt. Thanks in advance

---

<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:** [December 10, 2020, 2:59pm UTC](https://discuss.elastic.co/t/what-is-the-field-count-for-the-below-mapping/258280/2 "2020-12-10T14:59:04Z")

</div>

3 fields.

---

<div class="post-metadata">

**Author:** ![gokulnath112](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gokulnath112](https://discuss.elastic.co/u/gokulnath112)\
**Post date:** [December 11, 2020, 4:14am UTC](https://discuss.elastic.co/t/what-is-the-field-count-for-the-below-mapping/258280/3 "2020-12-11T04:14:43Z")

</div>

Thanks a lot dadoonet.

---

<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 8, 2021, 4:15am UTC](https://discuss.elastic.co/t/what-is-the-field-count-for-the-below-mapping/258280/4 "2021-01-08T04:15:07Z")

</div>

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