You're viewing version 2.9 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
Cartesian field types
Cartesian field types facilitate indexing and searching of points and shapes in a two-dimensional Cartesian coordinate system. Cartesian field types are similar to geographic field types, except they represent points and shapes on the Cartesian plane, which is not based on the Earth-fixed terrestrial reference system. Calculating distances on a plane is more efficient than calculating distances on a sphere, so distance sorting is faster for Cartesian field types.
Cartesian field types work well for spatial applications like virtual reality, computer-aided design (CAD), and amusement park and sporting venue mapping.
The coordinates for the Cartesian field types are single-precision floating-point values. For information about the range and precision of floating-point values, see Numeric field types.
The following table lists all Cartesian field types that OpenSearch supports.
Field Data type | Description |
---|---|
xy_point | A point in a two-dimensional Cartesian coordinate system, specified by x and y coordinates. |
xy_shape | A shape, such as a polygon or a collection of xy points, in a two-dimensional Cartesian coordinate system. |
Currently, OpenSearch supports indexing and searching of Cartesian field types but not aggregations on Cartesian field types. If you’d like to see aggregations implemented, open a GitHub issue.