From b51f0448a9cdeff442aecb1b4bb30e310eb7b29d Mon Sep 17 00:00:00 2001 From: Sebastian Ziebell Date: Tue, 25 Nov 2014 16:46:25 +0100 Subject: [PATCH] Adds documentation for indices.exists_template --- docs/reference/indices/templates.asciidoc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/reference/indices/templates.asciidoc b/docs/reference/indices/templates.asciidoc index b657835b57601..2f74cc273a17b 100644 --- a/docs/reference/indices/templates.asciidoc +++ b/docs/reference/indices/templates.asciidoc @@ -94,6 +94,21 @@ curl -XGET localhost:9200/_template/ -------------------------------------------------- +[float] +[[exists]] +=== Templates exists + +Used to check if the template exists or not. For example: + +[source,js] +----------------------------------------------- +curl -XHEAD localhost:9200/_template/template_1 +----------------------------------------------- + +The HTTP status code indicates if the template with the given name +exists or not. A status code `200` means it exists, a `404` it does not. + + [float] [[multiple-templates]] === Multiple Template Matching