17 lines
478 B
Plaintext
17 lines
478 B
Plaintext
|
[[java-admin-indices]]
|
||
|
=== Indices Administration
|
||
|
|
||
|
To access indices Java API, you need to call `indices()` method from an <<java-admin,`AdminClient`>>:
|
||
|
|
||
|
[source,java]
|
||
|
--------------------------------------------------
|
||
|
IndicesAdminClient indicesAdminClient = client.admin().indices();
|
||
|
--------------------------------------------------
|
||
|
|
||
|
[NOTE]
|
||
|
In the rest of this guide, we will use `client.admin().indices()`.
|
||
|
|
||
|
include::create-index.asciidoc[]
|
||
|
|
||
|
include::put-mapping.asciidoc[]
|