2018-11-27 20:40:49 -05:00
|
|
|
--
|
|
|
|
:api: indices-exists
|
|
|
|
:request: GetIndexRequest
|
|
|
|
:response: boolean
|
|
|
|
--
|
|
|
|
|
|
|
|
[id="{upid}-{api}"]
|
2018-02-02 05:25:36 -05:00
|
|
|
=== Indices Exists API
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-02-02 05:25:36 -05:00
|
|
|
==== Indices Exists Request
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
The high-level REST client uses a +{request}+ for Indices Exists API. The index name (or indices' names) are required.
|
2018-02-02 05:25:36 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-02-02 05:25:36 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Index
|
|
|
|
|
|
|
|
[[java-rest-high-indices-exists-optional-args]]
|
|
|
|
==== Optional arguments
|
2018-11-27 20:40:49 -05:00
|
|
|
Indices Exists API also accepts following optional arguments, through a +{request}+:
|
2018-02-02 05:25:36 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-optionals]
|
2018-02-02 05:25:36 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Whether to return local information or retrieve the state from master node
|
|
|
|
<2> Return result in a format suitable for humans
|
|
|
|
<3> Whether to return all default setting for each of the indices
|
2018-04-17 12:18:21 -04:00
|
|
|
<4> Controls how unavailable indices are resolved and how wildcard expressions are expanded
|
2018-02-02 05:25:36 -05:00
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
include::../execution.asciidoc[]
|
2018-02-02 05:46:05 -05:00
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
[id="{upid}-{api}-response"]
|
2018-02-02 05:25:36 -05:00
|
|
|
==== Response
|
2018-11-27 20:40:49 -05:00
|
|
|
The response is a +{response}+ value, indicating whether the index (or indices) exist.
|