OpenSearch/docs/reference/mapping
Adrien Grand 398d70b567 Add `scaled_float`. #19264
This is a tentative to revive #15939 motivated by elastic/beats#1941.
Half-floats are a pretty bad option for storing percentages. They would likely
require 2 bytes all the time while they don't need more than one byte.

So this PR exposes a new `scaled_float` type that requires a `scaling_factor`
and internally indexes `value*scaling_factor` in a long field. Compared to the
original PR it exposes a lower-level API so that the trade-offs are clearer and
avoids any reference to fixed precision that might imply that this type is more
accurate (actually it is *less* accurate).

In addition to being more space-efficient for some use-cases that beats is
interested in, this is also faster that `half_float` unless we can improve the
efficiency of decoding half-float bits (which is currently done using software)
or until Java gets first-class support for half-floats.
2016-07-18 12:36:23 +02:00
..
dynamic Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
fields Fix docs example for the _id field, the field is not accessible in scripts 2016-06-29 15:25:51 +02:00
params Remove wait_for_status=yellow from the docs 2016-07-15 16:02:07 -04:00
types Add `scaled_float`. #19264 2016-07-18 12:36:23 +02:00
dynamic-mapping.asciidoc Renamed all AUTOSENSE snippets to CONSOLE (#18210) 2016-05-09 15:42:23 +02:00
fields.asciidoc Fix doc build. 2016-06-22 09:34:49 +02:00
params.asciidoc Removed docs for precision_step - no longer used 2016-06-21 15:19:12 +02:00
types.asciidoc Add new IPv6 types to docs where it's supported 2016-04-26 11:38:49 -07:00