# How to find some key which is not in mapping?

**URL:** <https://discuss.elastic.co/t/how-to-find-some-key-which-is-not-in-mapping/160724>\
**Category:** Elasticsearch\
**Created:** [December 13, 2018, 11:42am UTC](https://discuss.elastic.co/t/how-to-find-some-key-which-is-not-in-mapping/160724 "2018-12-13T11:42:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![inandi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inandi/32/40801_2.png) [@inandi](https://discuss.elastic.co/u/inandi)\
**Post date:** [December 13, 2018, 11:42am UTC](https://discuss.elastic.co/t/how-to-find-some-key-which-is-not-in-mapping/160724/1 "2018-12-13T11:42:33Z")

</div>

Here is my sample data

```
{
          "geo_type" : "GPS_LOCATION",
          "happenon" : 1544439593,
          "country" : "IND",
          "idapp" : "81",
}

```

my template is

```
{
   "index_patterns": [
     "index*"
   ],
   "settings": {
     "index": {
       "number_of_shards": "2",
       "number_of_replicas": "1"
     }
   },
   "mappings": {
     "ping": {
       "dynamic": "false",
       "properties": {
          "happenon": {
           "type": "date",
           "format": "epoch_second"
         }        
       }
     }
   },
   "aliases": {}
}

```

I want to run a query for **geo\_type** field. Right now i geeting this

```
{
  "took": 0,
  "timed_out": false,
  "_shards": {
    "total": 2,
    "successful": 2,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": 0,
    "max_score": null,
    "hits": []
  }
}

```

Thanks @inandi

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [December 13, 2018, 11:50am UTC](https://discuss.elastic.co/t/how-to-find-some-key-which-is-not-in-mapping/160724/2 "2018-12-13T11:50:48Z")

</div>

> [@inandi](#):
>
> I want to run a query for **geo\_type** field.

You need to index it. With your `dynamic:false` setting you effectively asked to ignore the geo\_type and other fields [when it comes to indexing.](https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html)

---

<div class="post-metadata">

**Author:** ![inandi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inandi/32/40801_2.png) [@inandi](https://discuss.elastic.co/u/inandi)\
**Post date:** [December 13, 2018, 11:54am UTC](https://discuss.elastic.co/t/how-to-find-some-key-which-is-not-in-mapping/160724/3 "2018-12-13T11:54:09Z")

</div>

yes thanks now i noticed. One more thing can i do something without re-index everything like updating that particular field. I guess not..

---

<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 10, 2019, 12:02pm UTC](https://discuss.elastic.co/t/how-to-find-some-key-which-is-not-in-mapping/160724/4 "2019-01-10T12:02:35Z")

</div>

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