indices.asciidoc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. [[breaking_60_indices_changes]]
  2. === Indices changes
  3. ==== Index templates use `index_patterns` instead of `template`
  4. Previously templates expressed the indices that they should match using a glob
  5. style pattern in the `template` field. They should now use the `index_patterns`
  6. field instead. As the name implies you can define multiple glob style patterns
  7. in an array but for convenience defining a single pattern as a bare string is
  8. also supported. So both of these examples are valid:
  9. [source,js]
  10. --------------------------------------------------
  11. PUT _template/template_1
  12. {
  13. "index_patterns": ["te*", "bar*"],
  14. "settings": {
  15. "number_of_shards": 1
  16. }
  17. }
  18. PUT _template/template_2
  19. {
  20. "index_patterns": "te*",
  21. "settings": {
  22. "number_of_shards": 1
  23. }
  24. }
  25. --------------------------------------------------
  26. // CONSOLE
  27. ==== Shadow Replicas have been removed
  28. Shadow replicas don't see enough usage, and have been removed. This includes the
  29. following settings:
  30. - `index.shared_filesystem`
  31. - `index.shadow_replicas`
  32. - `node.add_lock_id_to_custom_path`
  33. ==== Open/Close index API allows wildcard expressions that match no indices by default
  34. The default value of the `allow_no_indices` option for the Open/Close index API
  35. has been changed from `false` to `true` so it is aligned with the behaviour of the
  36. Delete index API. As a result, Open/Close index API don't return an error by
  37. default when a provided wildcard expression doesn't match any closed/open index.
  38. ==== Delete a document
  39. Delete a document from non-existing index has been modified to not create the index.
  40. However if an external versioning is used the index will be created and the document
  41. will be marked for deletion.