Add documentation for Java API refresh API

Closes #10942.
This commit is contained in:
David Pilato 2015-12-30 19:08:47 +01:00
parent 20d198fd07
commit 76c3797fd2
2 changed files with 21 additions and 0 deletions

View File

@ -15,5 +15,7 @@ include::create-index.asciidoc[]
include::put-mapping.asciidoc[]
include::refresh.asciidoc[]
include::get-settings.asciidoc[]
include::update-settings.asciidoc[]

View File

@ -0,0 +1,19 @@
[[java-admin-indices-refresh]]
==== Refresh
The refresh API allows to explicitly refresh one or more index:
[source,java]
--------------------------------------------------
client.admin().indices().prepareRefresh().get(); <1>
client.admin().indices()
.prepareRefresh("twitter") <2>
.get();
client.admin().indices()
.prepareRefresh("twitter", "company") <3>
.get();
--------------------------------------------------
<1> Refresh all indices
<2> Refresh one index
<3> Refresh many indices