[[java-docs-reindex]] === Reindex API See {ref}/docs-reindex.html[reindex API]. ["source","java",subs="attributes,callouts,macros"] -------------------------------------------------- include-tagged::{client-reindex-tests}/ReindexDocumentationIT.java[reindex1] -------------------------------------------------- <1> Optionally a query can provided to filter what documents should be re-indexed from the source to the target index.