[DOCS] Added wildcard template matching

This commit is contained in:
Clinton Gormley 2013-09-04 20:34:48 +02:00
parent 9f5d0b6e89
commit 047c86e3b2
1 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,13 @@ Index templates are identified by a name (in the above case
curl -XGET localhost:9200/_template/template_1 curl -XGET localhost:9200/_template/template_1
-------------------------------------------------- --------------------------------------------------
You can also match several templates by using wildcards like:
[source,js]
--------------------------------------------------
curl -XGET localhost:9200/_template/temp*
--------------------------------------------------
To get list of all index templates you can use To get list of all index templates you can use
<<cluster-state,Cluster State>> API <<cluster-state,Cluster State>> API
and check for the metadata/templates section of the response. and check for the metadata/templates section of the response.