Jase
(Jase)
November 27, 2012, 7:38am
1
I have data that includes a field that looks like this:
location: {
degreesLatitude: value
degreesLongitude: value
}
and I'd like to map it to a geo_point type in ES. I've been trying
something like this but the sub properties never make it into the ES
mappings.
"location":{
"type" : "geo_point",
"properties" : {
"degreesLatitude" : {
"type" : "double" ,
"index_name" : "lat"
},
"degreesLongitude" : {
"type" : "double" ,
"index_name" : "lon"
}
}
}
can anyone tell me if this should work? or how I can achieve my goal?
thanks.
--
Igor_Motov
(Igor Motov)
November 27, 2012, 1:04pm
2
At the moment, the names "lat" and "lon" are hardcoded in the parser that
parses incoming documents, so you will probably have to change your data.
On Tuesday, November 27, 2012 2:38:05 AM UTC-5, Jase wrote:
I have data that includes a field that looks like this:
location: {
degreesLatitude: value
degreesLongitude: value
}
and I'd like to map it to a geo_point type in ES. I've been trying
something like this but the sub properties never make it into the ES
mappings.
"location":{
"type" : "geo_point",
"properties" : {
"degreesLatitude" : {
"type" : "double" ,
"index_name" : "lat"
},
"degreesLongitude" : {
"type" : "double" ,
"index_name" : "lon"
}
}
}
can anyone tell me if this should work? or how I can achieve my goal?
thanks.
--