mappings.asciidoc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [[breaking_60_mappings_changes]]
  2. === Mapping changes
  3. ==== Coercion of boolean fields
  4. Previously, Elasticsearch recognized the strings `true`, `false`, `on`, `off`, `yes`, `no`, `0`, `1` as booleans. Elasticsearch 6.0
  5. recognizes only the strings `true` and `false` as booleans and will throw an error otherwise. For backwards compatibility purposes, during the 6.x
  6. series the previous coercion rules will continue to work on pre-6.0 indices. This means that you do not need to change affected existing
  7. mappings immediately. However, it is not possible to create new indices from existing index templates that violate the strict `boolean`
  8. coercion rules.
  9. ==== The `_all` meta field is now disabled by default
  10. On new mappings, the `_all` meta field that contains a copy of the text from
  11. each field is now disabled by default. The `query_string` and
  12. `simple_query_string` queries that previously used `_all` to search will now
  13. check if `_all` is enabled/disabled and switch to executing the query across all
  14. fields if `_all` is disabled. `_all` can no longer be configured for indices
  15. created with Elasticsearch version 6.0 or later.
  16. ==== The `include_in_all` mapping parameter is now disallowed
  17. Since the ++_all++ field is now disabled by default and cannot be configured for
  18. indices created with Elasticsearch 6.0 or later, the `include_in_all` setting is
  19. now disallowed for these indices' mappings.
  20. ==== Unrecognized `match_mapping_type` options not silently ignored
  21. Previously Elasticsearch would silently ignore any dynamic templates that
  22. included a `match_mapping_type` type that was unrecognized. An exception is now
  23. thrown on an unrecognized type.
  24. ==== Synonym Token Filter
  25. In 6.0, Synonym Token Filter tokenize synonyms with whatever
  26. tokenizer and token filters appear before it in the chain.
  27. `tokenizer` and `ignore_case` are deprecated.
  28. These parameters are still left for backwards compatibility
  29. for indices that created before 6.0.
  30. And elasticsearch ignores these properties for new indices.