# Kibana and Elasticsearch not having same mapping

**URL:** https://discuss.elastic.co/t/kibana-and-elasticsearch-not-having-same-mapping/28921
**Category:** Kibana
**Created:** [September 9, 2015, 11:29am UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-having-same-mapping/28921 "2015-09-09T11:29:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Aditya\_Patel](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Aditya\_Patel](https://discuss.elastic.co/u/Aditya_Patel)
#### Post date: [September 9, 2015, 11:29am UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-having-same-mapping/28921/1 "2015-09-09T11:29:22Z")

</div>

Hi,

I am currently using python to insert data into elasticsearch , before inserting it into elasticsearch and the same mapping is displayed when i run the curl request.

curl localhost:9200/index1/table1/\_mapping  
{"index":{"mappings":{"table1":{"properties":{"id":{"type":"long"},"bucket":{"type":"string","index":"not\_analyzed"},"countries":{"type":"string"},"name\_id":{"type":"string"},"name":{"type":"string","index":"not\_analyzed"},"

I pasted part of mapping but what i wanted to point out is that my "name" field is not\_analyzed. Thus when i use aggs it gives me distinct results when i am running the curl requests from terminal or via python.

But the same field "name" in my kibana setting is showcased as analyzed and grouping some variables which is incorrect in my case. I have deleted and reloaded the index but it's not working.

---

<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: [September 10, 2015, 9:48am UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-having-same-mapping/28921/2 "2015-09-10T09:48:44Z")

</div>

Is there a template that could be causing this?

---

<div class="post-metadata">

### Author: ![Aditya\_Patel](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Aditya\_Patel](https://discuss.elastic.co/u/Aditya_Patel)
#### Post date: [September 10, 2015, 10:06am UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-having-same-mapping/28921/3 "2015-09-10T10:06:43Z")

</div>

Hi Mark,

Thanks again for the reply. 😄

How can i check where the template is stored?

-Aditya

---

<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: [September 10, 2015, 10:22pm UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-having-same-mapping/28921/4 "2015-09-10T22:22:23Z")

</div>

`localhost:9200/_template` will return all the templates.

---

<div class="post-metadata">

### Author: ![Aditya\_Patel](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Aditya\_Patel](https://discuss.elastic.co/u/Aditya_Patel)
#### Post date: [September 11, 2015, 8:17am UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-having-same-mapping/28921/5 "2015-09-11T08:17:01Z")

</div>

Hi Mark,

Thanks !

```
I got the following output:
{
  "logstash" : {
    "order" : 0,
    "template" : "logstash-*",
    "settings" : {
      "index.refresh_interval" : "5s"
    },
    "mappings" : {
      "_default_" : {
        "dynamic_templates" : [ {
          "message_field" : {
            "mapping" : {
              "index" : "analyzed",
              "omit_norms" : true,
              "type" : "string"
            },
            "match_mapping_type" : "string",
            "match" : "message"
          }
        }, {
          "string_fields" : {
            "mapping" : {
              "index" : "analyzed",
              "omit_norms" : true,
              "type" : "string",
              "fields" : {
                "raw" : {
                  "ignore_above" : 256,
                  "index" : "not_analyzed",
                  "type" : "string"
                }
              }
            },
            "match_mapping_type" : "string",
            "match" : "*"
          }
        } ],
        "_all" : {
          "omit_norms" : true,
          "enabled" : true
        },
        "properties" : {
          "geoip" : {
            "dynamic" : true,
            "type" : "object",
            "properties" : {
              "location" : {
                "type" : "geo_point"
              }
            }
          },
          "@version" : {
            "index" : "not_analyzed",
            "type" : "string"
          }
        }
      }
    },
    "aliases" : { }
  }
}

```

It didn't mention indexes which were not starting with logstash

---

<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, 2:13pm UTC](https://discuss.elastic.co/t/kibana-and-elasticsearch-not-having-same-mapping/28921/6 "2017-07-06T14:13:17Z")

</div>


