For example suppose we have this mapping :
{
"location":{
"dynamic":"false",
"properties":{
"locality":{"type":"text"},
"country":{"type":"text"},
"postalCode":{"type":"text"},
"coordinates":{"type":"geo_point"},
"radius":{"type":"double"}
}
}
}
And this is my query :
GET index_name/location/_search
{
"query": {
"bool": {
"filter": {
"geo_distance": {
"coordinates": [
2.352222,
48.999
],
"distance": $radius <--- *(here I want to access the
value of radius in document)*
}
}
}
}
}
Is there a mean to access a field document value in an Elasticsearch query ?