elasticsearch/docs/painless
Nik Everett 3bcee8eaa0
Format runtime geo_points (#85449)
This formats the result of the `fields` section of the `_search` API for
runtime `geo_point` fields using the `format` parameter like we do for
non-runtime `geo_point` fields. This changes the default format for
those fields from `lat, lon` to `geojson` with the option to get `wkt`
or any other format we support.

The fix does so by preserving the `double, double` nature of the
`geo_point` rather than encoding it immediately in the script. Callers can
use the results. The field fetchers use the `double, double` natively,
preserving as much precision as possible. The queries quantize the points
exactly like lucene indexing does. And like the script did before this Pr.

Closes #85245
2022-07-27 13:11:07 -04:00
..
painless-api-reference
painless-contexts Added documentation on GeoJSON format for points and geo-points (#86066) 2022-04-28 10:41:07 +02:00
painless-guide Format runtime geo_points (#85449) 2022-07-27 13:11:07 -04:00
painless-lang-spec
index.asciidoc
painless-api-reference.asciidoc
painless-contexts.asciidoc
painless-guide.asciidoc
painless-lang-spec.asciidoc
redirects.asciidoc