[DOCS] Added wildcard template matching
This commit is contained in:
parent
9f5d0b6e89
commit
047c86e3b2
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue