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 Remove JodaCompatibleZonedDateTime (#78417) 2021-09-29 13:01:40 -07:00
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 [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
index.asciidoc Reorganize Painless doc structure (#42303) 2019-05-21 13:47:47 -04:00
painless-api-reference.asciidoc [DOCS] Fixes terminology in the Painless docs (#58179) 2020-06-16 10:44:30 -07:00
painless-contexts.asciidoc [DOCS] Enhance the seats dataset for Painless (#68008) 2021-01-26 14:37:31 -05:00
painless-guide.asciidoc [DOCS] Fixes terminology in the Painless docs (#58179) 2020-06-16 10:44:30 -07:00
painless-lang-spec.asciidoc [DOCS] http -> https, remove outdated plugin docs (#60380) 2020-07-31 15:58:38 -04:00
redirects.asciidoc [DOCS] Add redirect for painless examples anchor 2019-06-25 12:37:21 -04:00