List installed templates

From the api
docs http://www.elasticsearch.org/guide/reference/api/admin-indices-templates.html
it seems that you cannot get a list of templates that are active.
I just couldn't remember whether I had set a template or not (which I found
out of course by "guessing" the template name and doing a get request for
it)...

Is it there? I tried GET /_template, but that's a 404.

So I found it after al in the /_cluster/state, but maybe the /_template
could be mapped to the map of templates?

--

IMHO it makes sense to have it. You should open an issue for it.

Le 10 janvier 2013 à 14:49, Jaap Taal jaap@q42.nl a écrit :

From the api docs
Elasticsearch Platform — Find real-time answers at scale | Elastic
it seems that you cannot get a list of templates that are active.
I just couldn't remember whether I had set a template or not (which I found
out of course by "guessing" the template name and doing a get request for
it)...

Is it there? I tried GET /_template, but that's a 404.

So I found it after al in the /_cluster/state, but maybe the /_template could
be mapped to the map of templates?

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

Created the issue:

On Thursday, January 10, 2013 2:49:58 PM UTC+1, Jaap Taal wrote:

From the api docs
Elasticsearch Platform — Find real-time answers at scale | Elastic seems that you cannot get a list of templates that are active.
I just couldn't remember whether I had set a template or not (which I
found out of course by "guessing" the template name and doing a get request
for it)...

Is it there? I tried GET /_template, but that's a 404.

So I found it after al in the /_cluster/state, but maybe the /_template
could be mapped to the map of templates?

--

Hi,

On Thursday, January 10, 2013 2:49:58 PM UTC+1, Jaap Taal wrote:

Is it there? I tried GET /_template, but that's a 404.

I've looked for this one today, so yes the REST endpoint is* *surprisingly
missing.

Benoît

--

PR is on the way: Support for REST get ALL templates. Fix #2532 by dadoonet · Pull Request #2534 · elastic/elasticsearch · GitHub

By now, you can list templates by asking cluster state: Elasticsearch Platform — Find real-time answers at scale | Elastic

HTH

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 14 janv. 2013 à 18:01, Benoît benoit.intrw@gmail.com a écrit :

Hi,

On Thursday, January 10, 2013 2:49:58 PM UTC+1, Jaap Taal wrote:

Is it there? I tried GET /_template, but that's a 404.
I've looked for this one today, so yes the REST endpoint is surprisingly missing.

Benoît

--