migrate_1_4.asciidoc 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. [[breaking-changes-1.4]]
  2. == Breaking changes in 1.4
  3. This section discusses the changes that you need to be aware of when migrating
  4. your application from Elasticsearch 1.x to Elasticsearch 1.4.
  5. [float]
  6. === Percolator
  7. In indices created with version `1.4.0` or later, percolation queries can only
  8. refer to fields that already exist in the mappings in that index. There are
  9. two ways to make sure that a field mapping exist:
  10. * Add or update a mapping via the <<indices-create-index,create index>> or
  11. <<indices-put-mapping,put mapping>> apis.
  12. * Percolate a document before registering a query. Percolating a document can
  13. add field mappings dynamically, in the same way as happens when indexing a
  14. document.
  15. [float]
  16. === Aliases
  17. <<indices-aliases,Aliases>> can include <<query-dsl,filters>> which
  18. are automatically applied to any search performed via the alias.
  19. <<filtered,Filtered aliases>> created with version `1.4.0` or later can only
  20. refer to field names which exist in the mappings of the index (or indices)
  21. pointed to by the alias.
  22. Add or update a mapping via the <<indices-create-index,create index>> or
  23. <<indices-put-mapping,put mapping>> apis.
  24. [float]
  25. === Indices APIs
  26. The <<warmer-retrieving, get warmer api>> will return a section for `warmers` even if there are
  27. no warmers. This ensures that the following two examples are equivalent:
  28. [source,js]
  29. --------------------------------------------------
  30. curl -XGET 'http://localhost:9200/_all/_warmers'
  31. curl -XGET 'http://localhost:9200/_warmers'
  32. --------------------------------------------------
  33. The <<alias-retrieving, get alias api>> will return a section for `aliases` even if there are
  34. no aliases. This ensures that the following two examples are equivalent:
  35. [source,js]
  36. --------------------------------------------------
  37. curl -XGET 'http://localhost:9200/_all/_aliases'
  38. curl -XGET 'http://localhost:9200/_aliases'
  39. --------------------------------------------------
  40. The <<indices-get-mapping, get mapping api>> will return a section for `mappings` even if there are
  41. no mappings. This ensures that the following two examples are equivalent:
  42. [source,js]
  43. --------------------------------------------------
  44. curl -XGET 'http://localhost:9200/_all/_mappings'
  45. curl -XGET 'http://localhost:9200/_mappings'
  46. --------------------------------------------------
  47. [float]
  48. === Bulk UDP
  49. Bulk UDP has been deprecated and will be removed in 2.0.
  50. You should use <<docs-bulk,the standard bulk API>> instead.
  51. Each cluster must have an elected master node in order to be fully operational. Once a node loses its elected master
  52. node it will reject some or all operations.
  53. [float]
  54. === Zen discovery
  55. On versions before `1.4.0.Beta1` all operations are rejected when a node loses its elected master. From `1.4.0.Beta1`
  56. only write operations will be rejected by default. Read operations will still be served based on the information available
  57. to the node, which may result in being partial and possibly also stale. If the default is undesired then the
  58. pre `1.4.0.Beta1` behaviour can be enabled, see: <<modules-discovery-zen,no-master-block>>
  59. [float]
  60. === More Like This Field
  61. The More Like This Field query has been deprecated in favor of the <<query-dsl-mlt-query, More Like This Query>>
  62. restrained set to a specific `field`. It will be removed in 2.0.
  63. [float]
  64. === MVEL is deprecated
  65. Groovy is the new default scripting language in Elasticsearch, and is enabled in `sandbox` mode
  66. by default. MVEL has been removed from core, but is available as a plugin:
  67. https://github.com/elasticsearch/elasticsearch-lang-mvel