# Kibana returns 0 hits for for map with geo\_point

**URL:** <https://discuss.elastic.co/t/kibana-returns-0-hits-for-for-map-with-geo-point/187438>\
**Category:** Kibana\
**Created:** [June 25, 2019, 10:21pm UTC](https://discuss.elastic.co/t/kibana-returns-0-hits-for-for-map-with-geo-point/187438 "2019-06-25T22:21:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rj-reilly](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rj-reilly/32/24568_2.png) [@rj-reilly](https://discuss.elastic.co/u/rj-reilly)\
**Post date:** [June 25, 2019, 10:21pm UTC](https://discuss.elastic.co/t/kibana-returns-0-hits-for-for-map-with-geo-point/187438/1 "2019-06-25T22:21:36Z")

</div>

Hi, I am using the default logstash

```
  geoip {
     source => "client"
 } 

```

to ingest my geo ip, I have set the mapping which is here:

[https://pastebin.com/wNJ5LT2g](https://pastebin.com/wNJ5LT2g)  
as you can see location is set to geo\_point

In my documents I see

```
"geoip" : {
"ip" : "108.171.131.166",
"longitude" : -97.822,
"country_name" : "United States",
"country_code3" : "US",
"latitude" : 37.751,
"continent_code" : "NA",
"location" : {
"lon" : -97.822,
"lat" : 37.751
},

```

but when I try to use the map, I add the layer it finds my location field as the geospatial field but I get zero hits

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

the only way i get hits from the query was to remove the bounding box which it obvioulsy needs to search the lat/long.  
TIA  
rr

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [June 25, 2019, 11:28pm UTC](https://discuss.elastic.co/t/kibana-returns-0-hits-for-for-map-with-geo-point/187438/2 "2019-06-25T23:28:11Z")

</div>

The example document shows `location` as a nested field under `geoip`. The mapping for `geoip.location` is not a "geo\_point". See line 152 in your pastebin.

There is another `location` field at the root (not nested) which is "geo\_point" (line 248). Do you see any latitude and longitude values in that field in your documents?

---

<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 23, 2019, 11:28pm UTC](https://discuss.elastic.co/t/kibana-returns-0-hits-for-for-map-with-geo-point/187438/3 "2019-07-23T23:28:14Z")

</div>

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