I am trying to obtain geodistance values for records in cases where
geodistance is not the primary purpose of the search (i.e. do not want it
to affect score/sort not included in a query/filter), but where that
information might be useful anyway.
As outlined in these example cases
https://gist.github.com/alexeiemam/04eda6fff5915f9cef66, script_field can
be used to obtain geodistance on a top level geopoint (example 3), but not
within an object field with geopoint fields (examples 4 and 5). Sorting by
geodistance, however, deals with geopoints within object fields without
issue (examples 1 and 2).
Is there any way to access these distance values outside of sorting?
Are there any known workarounds or suggestions?
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 email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e46093f9-d9a1-41ea-83bc-587219cf44aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.