indices_exists.asciidoc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --
  2. :api: indices-exists
  3. :request: GetIndexRequest
  4. :response: boolean
  5. --
  6. [id="{upid}-{api}"]
  7. === Index Exists API
  8. [id="{upid}-{api}-request"]
  9. ==== Index Exists Request
  10. The high-level REST client uses a +{request}+ for Index Exists API. The index name (or indices' names) are required.
  11. ["source","java",subs="attributes,callouts,macros"]
  12. --------------------------------------------------
  13. include-tagged::{doc-tests-file}[{api}-request]
  14. --------------------------------------------------
  15. <1> Index
  16. [[java-rest-high-indices-exists-optional-args]]
  17. ==== Optional arguments
  18. Index exists API also accepts following optional arguments, through a +{request}+:
  19. ["source","java",subs="attributes,callouts,macros"]
  20. --------------------------------------------------
  21. include-tagged::{doc-tests-file}[{api}-request-optionals]
  22. --------------------------------------------------
  23. <1> Whether to return local information or retrieve the state from master node
  24. <2> Return result in a format suitable for humans
  25. <3> Whether to return all default setting for each of the indices
  26. <4> Controls how unavailable indices are resolved and how wildcard expressions are expanded
  27. include::../execution.asciidoc[]
  28. [id="{upid}-{api}-response"]
  29. ==== Response
  30. The response is a +{response}+ value, indicating whether the index (or indices) exist.