# Kibana map - No results Found documents

**URL:** https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966
**Category:** Kibana
**Tags:** maps
**Created:** [May 3, 2021, 10:51am UTC](https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966 "2021-05-03T10:51:54Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![rana5](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@rana5](https://discuss.elastic.co/u/rana5)
#### Post date: [May 3, 2021, 10:51am UTC](https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966/1 "2021-05-03T10:51:55Z")

</div>

Hello everyone,  
I am having trouble viewing points in my kibana map, It says No results found , I have made sure of the timestamps and that the data is in geo.point format, so I have no clue what the problem could be. below is an image of the problem and the data in discover.

 ![Screen Shot 2021-05-03 at 1.44.51 PM](https://us1.discourse-cdn.com/elastic/original/3X/7/7/77656765dc8d82708306e89628990517188e44f8.png)  
 ![Screen Shot 2021-05-03 at 1.43.56 PM](https://us1.discourse-cdn.com/elastic/original/3X/a/a/aa5881e3f84c4496e5faed07e541a07d4e96e833.png)

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [May 3, 2021, 12:32pm UTC](https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966/2 "2021-05-03T12:32:14Z")

</div>

The mapping is number and not `geo_point`. You can see that based on the icon as a `#`. The mapping is the important part for Maps to recognize it, not the data itself.

Here is what the icon looks like for geo.

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

---

<div class="post-metadata">

### Author: ![rana5](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@rana5](https://discuss.elastic.co/u/rana5)
#### Post date: [May 3, 2021, 12:54pm UTC](https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966/3 "2021-05-03T12:54:48Z")

</div>

Hello, Thank you for replying the longitude and latitude are numbers however the location itself is a geo\_point, Should I change the lan and lat to be `geo_point` as well?

 ![Screen Shot 2021-05-03 at 3.44.01 PM](https://us1.discourse-cdn.com/elastic/original/3X/8/b/8b146f8c81566dce431c7a7d143677f4e4a286e8.png)  
This is what shows up when I select a field  
 ![Screen Shot 2021-05-03 at 3.50.18 PM](https://us1.discourse-cdn.com/elastic/original/3X/c/c/cc717f5815837c7886642e69306f4dc461b98148.png)

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [May 3, 2021, 12:56pm UTC](https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966/4 "2021-05-03T12:56:29Z")

</div>

Anything you plan on using in Maps needs to have a `geo_point` mapping, yes.

---

<div class="post-metadata">

### Author: ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)
#### Post date: [May 4, 2021, 11:25am UTC](https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966/5 "2021-05-04T11:25:44Z")

</div>

@rana5 you can debug the requests that the Maps app performs using the `Inspect` link.

In 7.12:

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

* * *

In the inspector interface you can get there the exact request the app is doing, along with the results.

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

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

* * *

Finally, you can copy the request and execute it in the Console Dev Tools to check by yourself the results returned by Elasticsearch

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

Hope this helps!

---

<div class="post-metadata">

### Author: ![rana5](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@rana5](https://discuss.elastic.co/u/rana5)
#### Post date: [May 4, 2021, 12:34pm UTC](https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966/6 "2021-05-04T12:34:23Z")

</div>

Hello, Thank you for replying ,I think I figured out the problem but I dont know how to fix it.  
Below is my mapping (I collapsed some fields and omitted others)

```auto
 {
"so-import-2021.01.20":{
"mappings":{
"dynamic":"false",
"dynamic_templates":[],
"date_detection":false,
"properties":{
"destination":{
  "dynamic":"true",
      "properties":{
            "geo":{
             "properties":{
                "city_name":{},
                "continent_name":{},
                "country_iso_code":{},
                "country_name":{},
                "ip":{},
                "location":{
                     "properties":{
                          "lat":{
                              "type":"float"
                            },
                           "lon":{
                              "type":"float"
                            }
                         }
                       },
               "region_iso_code":{},
               "region_name":{},
               "timezone":{}
               }
               },
"ip":{},
"port":{}
}
},
"destination_geo":{
   "dynamic":"true",
     "properties":{
               "ip":{
                   "type":"ip"
               },
               "latitude":{
                  "type":"half_float"
               },
               "location":{
                   "type":"geo_point"
               },
               "longitude":{
                   "type":"half_float"
               }
               }
               },
               }
}
}
}

```

And in the inspect tab it request the `destination_geo.location` (with an underscore) which my data is in `destination.geo.location` (however this field isnt a `geo_point`) Found below:

```auto
{
  "docvalue_fields": [
    "destination_geo.location"
  ],
  "size": 10000,
  "_source": false,
  "script_fields": {},
  "stored_fields": [
    "destination_geo.location"
  ],
  "query": {
    "bool": {
      "must": [],
      "filter": [
        {
          "match_all": {}
        },
        {
          "geo_bounding_box": {
            "destination_geo.location": {
              "top_left": [
                -180,
                89
              ],
              "bottom_right": [
                180,
                -89
              ]
            }
          }
        },
        {
          "range": {
            "@timestamp": {
              "gte": "2020-05-04T12:19:37.918Z",
              "lte": "2021-05-04T12:19:37.918Z",
              "format": "strict_date_optional_time"
            }
          }
        }
      ],
      "should": [],
      "must_not": []
    }
  }
}

```

SO now my question is how Do I update the mapping? I keep getting errors when trying to update it.

---

<div class="post-metadata">

### Author: ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)
#### Post date: [May 4, 2021, 1:47pm UTC](https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966/7 "2021-05-04T13:47:49Z")

</div>

You can't just change mapping unfortunately. So most just do the process below.

Easiest way is to create a new index. Then reindex your data to that index.

Create your index back with the correct mapping. Then reindex your data back to the original with the correct mapping.

Then delete your temporary index.

---

<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 1, 2021, 1:48pm UTC](https://discuss.elastic.co/t/kibana-map-no-results-found-documents/271966/8 "2021-06-01T13:48:01Z")

</div>

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