Skip to content

Commit

Permalink
Docs: Adds documentation for indices.exists_template
Browse files Browse the repository at this point in the history
Closes: elastic#8657
  • Loading branch information
justahero authored and clintongormley committed Nov 25, 2014
1 parent 366a4f5 commit f1a051e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/reference/indices/templates.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1a051e

Please sign in to comment.