# Geo\_point type doesn't match

**URL:** https://discuss.elastic.co/t/geo-point-type-doesnt-match/80709
**Category:** Elasticsearch
**Created:** [March 30, 2017, 3:22pm UTC](https://discuss.elastic.co/t/geo-point-type-doesnt-match/80709 "2017-03-30T15:22:57Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![amarchal](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@amarchal](https://discuss.elastic.co/u/amarchal)
#### Post date: [March 30, 2017, 3:22pm UTC](https://discuss.elastic.co/t/geo-point-type-doesnt-match/80709/1 "2017-03-30T15:22:57Z")

</div>

Hello,

I have an issue with geo\_point mapping, it does'nt apply ! geo\_server\_ip.location has a "number" type insted of "geo\_point". 😒

**My logstash filter:**

geoip {  
add\_tag =\> ["GeoIP"]  
source =\> "server\_ip"  
target =\> "geo\_server\_ip"  
}

**my Elastic template:**

"mappings": {  
"logs": {  
"properties": {  
"geo\_server\_ip": {  
"dynamic": true,  
"type": "object",  
"properties": {  
"timezone": {  
"type": "string"  
},  
"ip": {  
"index": "not\_analyzed",  
"type": "ip",  
"doc\_values": true  
},  
"latitude": {  
"type": "double"  
},  
"continent\_code": {  
"type": "string"  
},  
"city\_name": {  
"index": "not\_analyzed",  
"type": "string"  
},  
"country\_code2": {  
"type": "string"  
},  
"country\_name": {  
"index": "not\_analyzed",  
"type": "string"  
},  
**"location": {**  
\*\* "type": "geo\_point"\*\*  
},  
...

This is my fileds and mapping:  
 ![](https://us1.discourse-cdn.com/elastic/original/3X/6/7/67d0fa62b8c256a6c3d7b334d919c391aa3d626f.PNG)  
Any ideas about this case ?

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [March 31, 2017, 7:17am UTC](https://discuss.elastic.co/t/geo-point-type-doesnt-match/80709/2 "2017-03-31T07:17:33Z")

</div>

Hey,

is there an index template for your index naming scheme that configures this appropriately? logstash ships with a standard template, which is only applied for `logstash-` indices... if you renamed you indexes this template will not be applied and you have to put your own.

--Alex

---

<div class="post-metadata">

### Author: ![amarchal](https://avatars.discourse-cdn.com/v4/letter/a/54ee81/32.png) [@amarchal](https://discuss.elastic.co/u/amarchal)
#### Post date: [April 4, 2017, 7:43am UTC](https://discuss.elastic.co/t/geo-point-type-doesnt-match/80709/3 "2017-04-04T07:43:20Z")

</div>

Hello,

This case is resolved, mapping correctly match on april..  
I have to reindex in order avoid conflict mapping.

(index-2017.03 location:float and on index-2017.04 location:geo\_point)

Thanks.

---

<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: [May 2, 2017, 7:43am UTC](https://discuss.elastic.co/t/geo-point-type-doesnt-match/80709/4 "2017-05-02T07:43:27Z")

</div>

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