elasticsearch/docs/reference/mapping/params
Luca Cavanna d45b19db18
Add support for dots in field names for metrics usecases (#86166)
This PR adds support for a new mapping parameter to the configuration of the object mapper (root as well as individual fields), that makes it possible to store metrics data where it's common to have fields with dots in their names in the following format:

```
{
  "metrics.time" : 10,
  "metrics.time.min" : 1,
  "metrics.time.max" : 500
}
```

Instead of expanding dotted paths the their corresponding object structure, objects can be configured to preserve dots in field names, in which case they can only hold leaf sub-fields and no further objects.

The mapping parameter is called subobjects and controls whether an object can hold other objects (defaults to true) or not. The following example shows how it can be configured in the mappings:

```
{
  "mappings" : {
    "properties" : {
      "metrics" : {
        "type" : "object", 
        "subobjects" : false
      }
    }
  }
}
```

Closes #63530
2022-05-17 16:34:39 +02:00
..
analyzer.asciidoc [DOCS] Replace put with create or update in API names (#70330) 2021-03-15 14:49:44 -04:00
coerce.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
copy-to.asciidoc Enhance error message for copy-to (#72820) 2021-05-11 13:27:45 +02:00
doc-values.asciidoc Add extra section on doc-value-only fields to documentation (#84209) 2022-02-22 11:46:10 +01:00
dynamic.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
eager-global-ordinals.asciidoc Revert 74559 (Avoid global ordinals in composite) (#78846) (#80498) 2021-11-08 17:11:46 +01:00
enabled.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
format.asciidoc Fixed documentation for built in date formats. (#83036) 2022-01-26 14:22:02 -05:00
ignore-above.asciidoc [DOCS] Replace put with create or update in API names (#70330) 2021-03-15 14:49:44 -04:00
ignore-malformed.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
index-options.asciidoc Update dense_vector docs with kNN indexing options (#80306) 2021-11-04 11:44:13 -07:00
index-phrases.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
index-prefixes.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
index.asciidoc Allow docvalues-only search on number types (#82409) 2022-01-13 16:23:01 +01:00
meta.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
multi-fields.asciidoc [DOCS] Clarify multi-field relationship to parent field (#76244) 2021-08-09 11:43:06 -04:00
normalizer.asciidoc Add pre-configured “lowercase” normalizer (#53882) 2020-04-03 10:12:06 +01:00
norms.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
null-value.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
position-increment-gap.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
properties.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
search-analyzer.asciidoc [DOCS] Replace put with create or update in API names (#70330) 2021-03-15 14:49:44 -04:00
similarity.asciidoc Update dense_vector docs with kNN indexing options (#80306) 2021-11-04 11:44:13 -07:00
store.asciidoc [DOCS] Fix double spaces (#71082) 2021-03-31 09:57:47 -04:00
subobjects.asciidoc Add support for dots in field names for metrics usecases (#86166) 2022-05-17 16:34:39 +02:00
term-vector.asciidoc [DOCS] Update my-index examples (#60132) 2020-07-27 14:46:39 -04:00