Can I use geo_point and index_name (to rename to the lat and lon fieldnames) together?

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.

--

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.

--