# Mapping is different then discover shows

**URL:** <https://discuss.elastic.co/t/mapping-is-different-then-discover-shows/272330>\
**Category:** Kibana\
**Created:** [May 6, 2021, 6:47pm UTC](https://discuss.elastic.co/t/mapping-is-different-then-discover-shows/272330 "2021-05-06T18:47:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![alidrsn](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@alidrsn](https://discuss.elastic.co/u/alidrsn)\
**Post date:** [May 6, 2021, 6:47pm UTC](https://discuss.elastic.co/t/mapping-is-different-then-discover-shows/272330/1 "2021-05-06T18:47:01Z")

</div>

Hi there,

I am trying to index data which is coming from logstash and ingesting with my ingest-pipeline.

I am using index template to use some mapping fields.

One of them is response\_time.

When i check it from dev tools, it shows me as i expected which integer field. What is the problem? What did i miss ?

Thanks in advance.

However, kibana shows me it is a string field on discover page.

![image](https://us1.discourse-cdn.com/elastic/original/3X/c/c/cccc256a45b0d0ee1d8b0fabec55be96eed151f4.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/9/99a92112961718dfab6ae347bcce29104322d653.png)

![image](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0dc4f2b3ef4a758ee58e27be5f50bf5578ac047e.png)

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [May 7, 2021, 1:28am UTC](https://discuss.elastic.co/t/mapping-is-different-then-discover-shows/272330/2 "2021-05-07T01:28:12Z")

</div>

Your question is not clear to me. Can you rephrase?  
If you want, you can update the mapping to be a different field type

---

<div class="post-metadata">

**Author:** ![alidrsn](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@alidrsn](https://discuss.elastic.co/u/alidrsn)\
**Post date:** [May 7, 2021, 8:47am UTC](https://discuss.elastic.co/t/mapping-is-different-then-discover-shows/272330/3 "2021-05-07T08:47:23Z")

</div>

I am using index templates and mapping to make 'response\_time' integer.

When i checked my index mapping settings from dev tools like,

GET app\_myindex-2021.05.07/\_mapping

it seems as integer.

![image](https://us1.discourse-cdn.com/elastic/original/3X/9/9/99a92112961718dfab6ae347bcce29104322d653.png)

However when i checked indexed data as,

GET app\_myindex-2021.05.07-2021.05.07/\_doc/row\_id

![image](https://us1.discourse-cdn.com/elastic/original/3X/0/7/074ee98215884c3250ca7c2f049bc40f559a0773.png)

And i do not understand why it is not created as integer according to my index template.

Index mapping and the actual data are acting different.

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [May 7, 2021, 9:31am UTC](https://discuss.elastic.co/t/mapping-is-different-then-discover-shows/272330/4 "2021-05-07T09:31:05Z")

</div>

I am a bit lost.  
As far as I know, 95747224 is an integer and presented as one.

---

<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:** [June 4, 2021, 9:31am UTC](https://discuss.elastic.co/t/mapping-is-different-then-discover-shows/272330/5 "2021-06-04T09:31:09Z")

</div>

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