OpenSearch/docs/reference/how-to
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
..
disk-usage.asciidoc Add `scaled_float`. #19264 2016-07-18 12:36:23 +02:00
general.asciidoc Fix casing of "Elasticsearch" in how-to docs 2016-07-07 12:33:27 -04:00
indexing-speed.asciidoc Fix documentation typo in How-To docs 2016-06-27 14:49:37 +02:00
search-speed.asciidoc Fix documentation typo in How-To docs 2016-06-27 14:49:37 +02:00