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
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?

--

--
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
http://www.elasticsearch.org/guide/reference/api/admin-indices-templates.htmlit 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: https://github.com/elasticsearch/elasticsearch/pull/2534

By now, you can list templates by asking cluster state: http://www.elasticsearch.org/guide/reference/api/admin-cluster-state.html

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

--