index_apis.asciidoc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. [[breaking_20_index_api_changes]]
  2. === Index API changes
  3. ==== Index aliases
  4. Fields used in alias filters no longer have to exist in the mapping at alias
  5. creation time. Previously, alias filters were parsed at alias creation time
  6. and the parsed form was cached in memory. Now, alias filters are parsed at
  7. request time and the fields in filters are resolved from the current mapping.
  8. This also means that index aliases now support `has_parent` and `has_child`
  9. queries.
  10. The <<alias-retrieving, GET alias api>> will now throw an exception if no
  11. matching aliases are found. This change brings the defaults for this API in
  12. line with the other Indices APIs. The <<multi-index>> options can be used on a
  13. request to change this behavior.
  14. ==== File based index templates
  15. Index templates can no longer be configured on disk. Use the
  16. <<indices-templates,`_template`>> API instead.
  17. ==== Analyze API changes
  18. The Analyze API now returns the `position` of the first token as `0`
  19. instead of `1`.
  20. The `prefer_local` parameter has been removed. The `_analyze` API is a light
  21. operation and the caller shouldn't be concerned about whether it executes on
  22. the node that receives the request or another node.
  23. The `text()` method on `AnalyzeRequest` now returns `String[]` instead of
  24. `String`.
  25. ==== Removed `id_cache` from clear cache api
  26. The <<indices-clearcache,clear cache>> API no longer supports the `id_cache`
  27. option. Instead, use the `fielddata` option to clear the cache for the
  28. `_parent` field.