Thanks for your suggestion,
Such request exist since a long time, see:
opened 04:19PM - 19 Jul 17 UTC
closed 03:26PM - 24 May 18 UTC
>bug
:Analytics/Geo
It will be really confortable to allow call to arcDistance from GeoPoint. Indeed… actually we can only call them from GeoPoints (and that will use only the first point).
In the current situation, the script is necessary... it allows me to generate fields for debugging my DSL ! I will remove it in production.
It is to debug another query, that use distance_feature (That I can't make it work):
Hi,
Imagine I have 3 queries:
"distance_feature": { ... time... }
"distance_feature": { ... location... }
"dis_max" : { ... }
Currently, to combine it I do this:
"query" : {
"bool" : {
"must" : [
"distance_feature": { ... time... },
"distance_feature": { ... location... },
"dis_max" : { ... },
]
}
}
The problem is that the score of computes as a sum, and I'm looking for a way to "multiply" instead.
I have try with function score, but I can't put them there, right ?
Do y…
My sorting is based on multiples criterions... not only the distance.
But anyway, I suspect that I should use it in my query... (I don't like this, but maybe there are no other choices).