diff --git a/docs/reference/aggregations/search-aggregations-metrics-max-aggregation.md b/docs/reference/aggregations/search-aggregations-metrics-max-aggregation.md index 9c2776976b973..7082ee3ac4ebc 100644 --- a/docs/reference/aggregations/search-aggregations-metrics-max-aggregation.md +++ b/docs/reference/aggregations/search-aggregations-metrics-max-aggregation.md @@ -10,7 +10,7 @@ mapped_pages: A `single-value` metrics aggregation that keeps track and returns the maximum value among the numeric values extracted from the aggregated documents. ::::{note} -The `min` and `max` aggregation operate on the `double` representation of the data. As a consequence, the result may be approximate when running on longs whose absolute value is greater than `2^53`. +The `min` and `max` aggregation operate on the `double` representation of the data. As a consequence, the result may be approximate when running on longs whose absolute value is greater than `2`^`53`^. :::: diff --git a/docs/reference/aggregations/search-aggregations-metrics-min-aggregation.md b/docs/reference/aggregations/search-aggregations-metrics-min-aggregation.md index 2c313a3d2dbef..2e16a2bcde6b9 100644 --- a/docs/reference/aggregations/search-aggregations-metrics-min-aggregation.md +++ b/docs/reference/aggregations/search-aggregations-metrics-min-aggregation.md @@ -10,7 +10,7 @@ mapped_pages: A `single-value` metrics aggregation that keeps track and returns the minimum value among numeric values extracted from the aggregated documents. ::::{note} -The `min` and `max` aggregation operate on the `double` representation of the data. As a consequence, the result may be approximate when running on longs whose absolute value is greater than `2^53`. +The `min` and `max` aggregation operate on the `double` representation of the data. As a consequence, the result may be approximate when running on longs whose absolute value is greater than `2`^`53`^. :::: diff --git a/docs/reference/elasticsearch/mapping-reference/number.md b/docs/reference/elasticsearch/mapping-reference/number.md index 79e8d9afed0a8..0ec553db48d66 100644 --- a/docs/reference/elasticsearch/mapping-reference/number.md +++ b/docs/reference/elasticsearch/mapping-reference/number.md @@ -10,10 +10,10 @@ mapped_pages: The following numeric types are supported: `long` -: A signed 64-bit integer with a minimum value of `-263` and a maximum value of `263-1`. +: A signed 64-bit integer with a minimum value of `-2`^`63`^ and a maximum value of `2`^`63`^`-1`. `integer` -: A signed 32-bit integer with a minimum value of `-231` and a maximum value of `231-1`. +: A signed 32-bit integer with a minimum value of `-2`^`31`^ and a maximum value of `2`^`31`^`-1`. `short` : A signed 16-bit integer with a minimum value of `-32,768` and a maximum value of `32,767`. @@ -34,7 +34,7 @@ The following numeric types are supported: : A floating point number that is backed by a `long`, scaled by a fixed `double` scaling factor. `unsigned_long` -: An unsigned 64-bit integer with a minimum value of 0 and a maximum value of `264-1`. +: An unsigned 64-bit integer with a minimum value of 0 and a maximum value of `2`^`64`^`-1`. Below is an example of configuring a mapping with numeric fields: @@ -75,9 +75,9 @@ $$$floating_point$$$ | Type | Minimum value | Maximum value | Significant
bits / digits | Example precision loss | | --- | --- | --- | --- | --- | -| `double` | `2-1074` | `(2-2-52)·21023` | `53` / `15.95` | `1.2345678912345678`→
`1.234567891234568` | -| `float` | `2-149` | `(2-2-23)·2127` | `24` / `7.22` | `1.23456789`→
`1.2345679` | -| `half_float` | `2-24` | `65504` | `11` / `3.31` | `1.2345`→
`1.234375` | +| `double` | `2`^`-1074`^ | `(2-2`^`-52`^`)·2`^`1023`^ | `53` / `15.95` | `1.2345678912345678`→
`1.234567891234568` | +| `float` | `2`^`-149`^ | `(2-2`^`-23`^`)·2`^`127`^ | `24` / `7.22` | `1.23456789`→
`1.2345679` | +| `half_float` | `2`^`-24`^ | `65504` | `11` / `3.31` | `1.2345`→
`1.234375` | ::::{admonition} Mapping numeric identifiers :class: tip diff --git a/docs/reference/elasticsearch/mapping-reference/range.md b/docs/reference/elasticsearch/mapping-reference/range.md index 3699d7bd68ba2..3b727cdac3d54 100644 --- a/docs/reference/elasticsearch/mapping-reference/range.md +++ b/docs/reference/elasticsearch/mapping-reference/range.md @@ -12,13 +12,13 @@ Range field types represent a continuous range of values between an upper and lo The following range types are supported: `integer_range` -: A range of signed 32-bit integers with a minimum value of `-231` and maximum of `231-1`. +: A range of signed 32-bit integers with a minimum value of `-2`^`31`^ and maximum of `2`^`31`^`-1`. `float_range` : A range of single-precision 32-bit IEEE 754 floating point values. `long_range` -: A range of signed 64-bit integers with a minimum value of `-263` and maximum of `263-1`. +: A range of signed 64-bit integers with a minimum value of `-2`^`63`^ and maximum of `2`^`63`^`-1`. `double_range` : A range of double-precision 64-bit IEEE 754 floating point values. diff --git a/docs/reference/elasticsearch/mapping-reference/unsigned-long.md b/docs/reference/elasticsearch/mapping-reference/unsigned-long.md index 7b8b89b3f4908..12589cab85ca8 100644 --- a/docs/reference/elasticsearch/mapping-reference/unsigned-long.md +++ b/docs/reference/elasticsearch/mapping-reference/unsigned-long.md @@ -7,7 +7,7 @@ mapped_pages: # Unsigned long field type [unsigned-long] -Unsigned long is a numeric field type that represents an unsigned 64-bit integer with a minimum value of 0 and a maximum value of `264-1` (from 0 to 18446744073709551615 inclusive). +Unsigned long is a numeric field type that represents an unsigned 64-bit integer with a minimum value of 0 and a maximum value of `2`^`64`^`-1` (from 0 to 18446744073709551615 inclusive). ```console PUT my_index diff --git a/docs/reference/query-languages/query-dsl/query-dsl-mlt-query.md b/docs/reference/query-languages/query-dsl/query-dsl-mlt-query.md index 74f04c4f02d35..e6f5825689af0 100644 --- a/docs/reference/query-languages/query-dsl/query-dsl-mlt-query.md +++ b/docs/reference/query-languages/query-dsl/query-dsl-mlt-query.md @@ -150,7 +150,7 @@ The only required parameter is `like`, all other parameters have sensible defaul : The minimum document frequency below which the terms will be ignored from the input document. Defaults to `5`. `max_doc_freq` -: The maximum document frequency above which the terms will be ignored from the input document. This could be useful in order to ignore highly frequent words such as stop words. Defaults to unbounded (`Integer.MAX_VALUE`, which is `2^31-1` or 2147483647). +: The maximum document frequency above which the terms will be ignored from the input document. This could be useful in order to ignore highly frequent words such as stop words. Defaults to unbounded (`Integer.MAX_VALUE`, which is `2`^`31`^`-1` or 2147483647). `min_word_length` : The minimum word length below which the terms will be ignored. Defaults to `0`. diff --git a/docs/reference/scripting-languages/painless/painless-types.md b/docs/reference/scripting-languages/painless/painless-types.md index dc0f6f436b012..84d8a842dd3dc 100644 --- a/docs/reference/scripting-languages/painless/painless-types.md +++ b/docs/reference/scripting-languages/painless/painless-types.md @@ -28,10 +28,10 @@ The following primitive types are available. The corresponding reference type is : 16-bit, unsigned, Unicode character. Range: [`0`, `65535`]. Default: `0` or `\u0000`. `int` (`Integer`) -: 32-bit, signed, two’s complement integer. Range: [`-2^31`, `2^31-1`]. Default: `0`. +: 32-bit, signed, two’s complement integer. Range: [`-2`^`31`^, `2`^`31`^`-1`]. Default: `0`. `long` (`Long`) -: 64-bit, signed, two’s complement integer. Range: [`-2^63`, `2^63-1`]. Default: `0`. +: 64-bit, signed, two’s complement integer. Range: [`-2`^`63`^, `2`^`63`^`-1`]. Default: `0`. `float (`Float`)` : 32-bit, signed, single-precision, IEEE 754 floating point number. Default `0.0`. diff --git a/docs/reference/text-analysis/analysis-length-tokenfilter.md b/docs/reference/text-analysis/analysis-length-tokenfilter.md index 5e1ce91585cba..136dadd267986 100644 --- a/docs/reference/text-analysis/analysis-length-tokenfilter.md +++ b/docs/reference/text-analysis/analysis-length-tokenfilter.md @@ -70,7 +70,7 @@ PUT length_example : (Optional, integer) Minimum character length of a token. Shorter tokens are excluded from the output. Defaults to `0`. `max` -: (Optional, integer) Maximum character length of a token. Longer tokens are excluded from the output. Defaults to `Integer.MAX_VALUE`, which is `2^31-1` or `2147483647`. +: (Optional, integer) Maximum character length of a token. Longer tokens are excluded from the output. Defaults to `Integer.MAX_VALUE`, which is `2`^`31`^`-1` or `2147483647`. ## Customize [analysis-length-tokenfilter-customize]