|
@@ -111,19 +111,12 @@ the data as both a `keyword` _and_ a numeric data type.
|
|
|
|
|
|
The following parameters are accepted by numeric types:
|
|
|
|
|
|
-[horizontal]
|
|
|
-
|
|
|
<<coerce,`coerce`>>::
|
|
|
|
|
|
Try to convert strings to numbers and truncate fractions for integers.
|
|
|
Accepts `true` (default) and `false`. Not applicable for `unsigned_long`.
|
|
|
Note that this cannot be set if the `script` parameter is used.
|
|
|
|
|
|
-include::keyword.asciidoc[tag=dimension]
|
|
|
-+
|
|
|
-Of the numeric field types, only `byte`, `short`, `integer`, and `long` fields
|
|
|
-support this parameter.
|
|
|
-
|
|
|
<<doc-values,`doc_values`>>::
|
|
|
|
|
|
Should the field be stored on disk in a column-stride fashion, so that it
|
|
@@ -140,6 +133,10 @@ support this parameter.
|
|
|
|
|
|
Should the field be searchable? Accepts `true` (default) and `false`.
|
|
|
|
|
|
+<<mapping-field-meta,`meta`>>::
|
|
|
+
|
|
|
+ Metadata about the field.
|
|
|
+
|
|
|
<<null-value,`null_value`>>::
|
|
|
|
|
|
Accepts a numeric value of the same `type` as the field which is
|
|
@@ -173,9 +170,25 @@ support this parameter.
|
|
|
the <<mapping-source-field,`_source`>> field. Accepts `true` or `false`
|
|
|
(default).
|
|
|
|
|
|
-<<mapping-field-meta,`meta`>>::
|
|
|
-
|
|
|
- Metadata about the field.
|
|
|
+include::keyword.asciidoc[tag=dimension]
|
|
|
++
|
|
|
+Of the numeric field types, only `byte`, `short`, `integer`, `long`, and
|
|
|
+`unsigned_long` fields support this parameter.
|
|
|
++
|
|
|
+A numeric field can't be both a time series dimension and a time series metric.
|
|
|
+
|
|
|
+// tag::time_series_metric[]
|
|
|
+`time_series_metric`::
|
|
|
+(Optional, string) For internal use by Elastic only. Marks the field as a time
|
|
|
+series metric. The value is the metric type. Defaults to `null` (Not a time
|
|
|
+series metric).
|
|
|
+// end::time_series_metric[]
|
|
|
++
|
|
|
+For numeric fields, this parameter accepts `gauge` and `counter`. You can't
|
|
|
+update this parameter for existing fields.
|
|
|
++
|
|
|
+For a numeric time series metric, the `doc_values` parameter must be `true`. A
|
|
|
+numeric field can't be both a time series dimension and a time series metric.
|
|
|
|
|
|
[[scaled-float-params]]
|
|
|
==== Parameters for `scaled_float`
|