index_apis.asciidoc 1.4 KB

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