# Geo\_point in nested has the 'path' attribute added to it

**URL:** <https://discuss.elastic.co/t/geo-point-in-nested-has-the-path-attribute-added-to-it/15984>\
**Category:** Elasticsearch\
**Created:** [February 24, 2014, 9:02am UTC](https://discuss.elastic.co/t/geo-point-in-nested-has-the-path-attribute-added-to-it/15984 "2014-02-24T09:02:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tim_s/32/958_2.png) [@Tim\_S](https://discuss.elastic.co/u/Tim_S)\
**Post date:** [February 24, 2014, 9:02am UTC](https://discuss.elastic.co/t/geo-point-in-nested-has-the-path-attribute-added-to-it/15984/1 "2014-02-24T09:02:11Z")

</div>

I was writing some tests to check if my mappings were being deployed  
correctly, and came across this: if you have a geo\_point field inside a  
nested object, it will inherit the 'path' attribute from the nested object.

I.e. if you create an index like this:

curl -XPOST 'localhost:9200/test' -d '{  
"mappings" : {  
"type1" : {  
"properties" : {  
"geoInOuter" : {  
"type" : "geo\_point"  
},  
"obj1" : {  
"type" : "nested",  
"path" : "just\_name",  
"properties" : {  
"geoInNested" : {  
"type" : "geo\_point"  
}  
}  
}  
}  
}  
}  
}'

and then ask for the mapping back, like this  
curl -XGET 'localhost:9200/test/\_mapping'

the response will be this:

{  
"test" : {  
"mappings" : {  
"type1" : {  
"properties" : {  
"geoInOuter" : {  
"type" : "geo\_point"  
},  
"obj1" : {  
"type" : "nested",  
"path" : "just\_name",  
"properties" : {  
"geoInNested" : {  
"type" : "geo\_point",  
"path" : "just\_name"  
}  
}  
}  
}  
}  
}  
}  
}

Notice the extra 'path' attribute on the 'geoInNested' field.

Is this deliberate? In which case what affect does the path attribute have  
on a geo point field? Or is this a bug?

Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d60a0c7c-afb0-42f7-bfc0-19577189e34a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d60a0c7c-afb0-42f7-bfc0-19577189e34a%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:47am UTC](https://discuss.elastic.co/t/geo-point-in-nested-has-the-path-attribute-added-to-it/15984/2 "2017-07-06T01:47:53Z")

</div>

Closed on July 6, 2017, 1:47am UTC


