2018-11-27 20:40:49 -05:00
|
|
|
--
|
|
|
|
:api: open-index
|
|
|
|
:request: OpenIndexRequest
|
|
|
|
:response: OpenIndexResponse
|
|
|
|
--
|
|
|
|
|
|
|
|
[id="{upid}-{api}"]
|
2018-01-17 05:47:08 -05:00
|
|
|
=== Open Index API
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-01-17 05:47:08 -05:00
|
|
|
==== Open Index Request
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
An +{request}+ requires an `index` argument:
|
2018-01-17 05:47:08 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-01-17 05:47:08 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The index to open
|
|
|
|
|
|
|
|
==== Optional arguments
|
|
|
|
The following arguments can optionally be provided:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-timeout]
|
2018-01-17 05:47:08 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Timeout to wait for the all the nodes to acknowledge the index is opened
|
|
|
|
as a `TimeValue`
|
|
|
|
<2> Timeout to wait for the all the nodes to acknowledge the index is opened
|
|
|
|
as a `String`
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-masterTimeout]
|
2018-01-17 05:47:08 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Timeout to connect to the master node as a `TimeValue`
|
|
|
|
<2> Timeout to connect to the master node as a `String`
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-waitForActiveShards]
|
2018-01-17 05:47:08 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The number of active shard copies to wait for before the open index API
|
2018-02-20 09:58:58 -05:00
|
|
|
returns a response, as an `int`
|
2018-01-17 05:47:08 -05:00
|
|
|
<2> The number of active shard copies to wait for before the open index API
|
2018-02-20 09:58:58 -05:00
|
|
|
returns a response, as an `ActiveShardCount`
|
2018-01-17 05:47:08 -05:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-indicesOptions]
|
2018-01-17 05:47:08 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Setting `IndicesOptions` controls how unavailable indices are resolved and
|
|
|
|
how wildcard expressions are expanded
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
include::../execution.asciidoc[]
|
2018-01-17 05:47:08 -05:00
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
[id="{upid}-{api}-response"]
|
2018-01-17 05:47:08 -05:00
|
|
|
==== Open Index Response
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
The returned +{response}+ allows to retrieve information about the
|
2018-01-17 05:47:08 -05:00
|
|
|
executed operation as follows:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-01-17 05:47:08 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Indicates whether all of the nodes have acknowledged the request
|
|
|
|
<2> Indicates whether the requisite number of shard copies were started for
|
|
|
|
each shard in the index before timing out
|