Geodistance exception

i have a object mapped as

lat and lon are inside inmueble.ubicacion.coordenada
coordenada is geopoint type

when i query like

{
"filtered" : {
"query" : {
"match_all" : {}
},
"filter" : {
"geo_distance" : {
"distance" : "12km"
"inmueble.ubicacion.coordenada" : {
"lat" : 40,
"lon" : -70
}
}
}
}
}

i receive an exception

{
"error":"SearchPhaseExecutionException[Failed to execute phase [query],
all shards failed; shardFailures {[uyTF-G_USraZeAIlyewVLg][socprop-ar][3]:
SearchParseException[[socprop-ar][3]: from[-1],size[-1]: Parse Failure
[Failed to parse source [{\r\n "filtered" : {\r\n "query" :
{\r\n "match_all" : {}\r\n },\r\n "filter" :
{\r\n "geo_distance" : {\r\n "distance" :
"12km"\r\n "inmueble.ubicacion.coordenada" : {\r\n
"lat" : 40,\r\n "lon" : -70\r\n
}\r\n }\r\n }\r\n }\r\n}\n]]]; nested:
SearchParseException[[socprop-ar][3]: from[-1],size[-1]: Parse Failure [No
parser for element [filtered]]]; }{[uyTF-G_USraZeAIlyewVLg][socprop-ar][2]:
SearchParseException[[socprop-ar][2]: from[-1],size[-1]: Parse Failure
[Failed to parse source [{\r\n "filtered" : {\r\n "query" :
{\r\n "match_all" : {}\r\n },\r\n "filter" :
{\r\n "geo_distance" : {\r\n "distance" :
"12km"\r\n "inmueble.ubicacion.coordenada" : {\r\n
"lat" : 40,\r\n "lon" : -70\r\n
}\r\n }\r\n }\r\n }\r\n}\n]]]; nested:
SearchParseException[[socprop-ar][2]: from[-1],size[-1]: Parse Failure [No
parser for element [filtered]]]; }{[uyTF-G_USraZeAIlyewVLg][socprop-ar][1]:
SearchParseException[[socprop-ar][1]: from[-1],size[-1]: Parse Failure
[Failed to parse source [{\r\n "filtered" : {\r\n "query" :
{\r\n "match_all" : {}\r\n },\r\n "filter" :
{\r\n "geo_distance" : {\r\n "distance" :
"12km"\r\n "inmueble.ubicacion.coordenada" : {\r\n
"lat" : 40,\r\n "lon" : -70\r\n
}\r\n }\r\n }\r\n }\r\n}\n]]]; nested:
SearchParseException[[socprop-ar][1]: from[-1],size[-1]: Parse Failure [No
parser for element [filtered]]]; }{[uyTF-G_USraZeAIlyewVLg][socprop-ar][0]:
SearchParseException[[socprop-ar][0]: from[-1],size[-1]: Parse Failure
[Failed to parse source [{\r\n "filtered" : {\r\n "query" :
{\r\n "match_all" : {}\r\n },\r\n "filter" :
{\r\n "geo_distance" : {\r\n "distance" :
"12km"\r\n "inmueble.ubicacion.coordenada" : {\r\n
"lat" : 40,\r\n "lon" : -70\r\n
}\r\n }\r\n }\r\n }\r\n}\n]]]; nested:
SearchParseException[[socprop-ar][0]: from[-1],size[-1]: Parse Failure [No
parser for element [filtered]]]; }{[uyTF-G_USraZeAIlyewVLg][socprop-ar][4]:
SearchParseException[[socprop-ar][4]: from[-1],size[-1]: Parse Failure
[Failed to parse source [{\r\n "filtered" : {\r\n "query" :
{\r\n "match_all" : {}\r\n },\r\n "filter" :
{\r\n "geo_distance" : {\r\n "distance" :
"12km"\r\n "inmueble.ubicacion.coordenada" : {\r\n
"lat" : 40,\r\n "lon" : -70\r\n
}\r\n }\r\n }\r\n }\r\n}\n]]]; nested:
SearchParseException[[socprop-ar][4]: from[-1],size[-1]: Parse Failure [No
parser for element [filtered]]]; }]",
"status":400
}

i think the problem is because my geopoint is nested right?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b82dc35b-2dec-418e-848b-4aaece9fbd88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.