From 3a6c6f4b26add5d44a7398add0968521aa279d0d Mon Sep 17 00:00:00 2001 From: Sebastian Ziebell Date: Tue, 25 Nov 2014 16:46:25 +0100 Subject: [PATCH] Docs: Adds documentation for indices.exists_template Closes: #8657 --- 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..e11e7cf52d60c 100644 --- a/docs/reference/indices/templates.asciidoc +++ b/docs/reference/indices/templates.asciidoc @@ -94,6 +94,21 @@ curl -XGET localhost:9200/_template/ -------------------------------------------------- +[float] +[[indices-templates-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