elastic / elasticsearch

Free and Open, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
68.72k stars 24.41k forks source link

Fix precision loss in synthetic source for `geo_point` #108981

Open lkts opened 2 months ago

lkts commented 2 months ago

Description

Currently synthetic source implementation for geo_point field uses doc values as a source of data. This is not ideal because doc values have less precision than input double coordinates and as a result synthetic source differs from "actual" source. We can fix this by either storing full double values in doc values or adding a stored field that stores point in WKB format specifically for synthetic source purposes.

elasticsearchmachine commented 2 months ago

Pinging @elastic/es-storage-engine (Team:StorageEngine)