Using a template file in config/templates is not letting me specify a custom analyzer

Hi there,

I'm attempting to use a template file on disk to provide settings for my
indices and I'm finding that specifying a custom analyzer isn't working.

I've created a gist: https://gist.github.com/4474368 which gives the
template file, the curl command, error message and log contents for the
error. I think I've got a similar problem
to https://groups.google.com/d/topic/elasticsearch/DHYbvtrFNI8/discussion

If I POST contents of the template file (without the template definition
etc.) the mapping and custom analyzer work as expected.

Is this a bug or have I made a mistake?

--

I am not sure why it works with POST, but in the example that you posted,
you are missing "index" element in the "settings". Try
this: add_doc.sh · GitHub

On Monday, January 7, 2013 6:45:06 AM UTC-5, Neil Prosser wrote:

Hi there,

I'm attempting to use a template file on disk to provide settings for my
indices and I'm finding that specifying a custom analyzer isn't working.

I've created a gist: Using an Elasticsearch template file from $ES_HOME/config/templates does not allow me to specify a custom analyzer. · GitHub which gives the
template file, the curl command, error message and log contents for the
error. I think I've got a similar problem to
https://groups.google.com/d/topic/elasticsearch/DHYbvtrFNI8/discussion

If I POST contents of the template file (without the template definition
etc.) the mapping and custom analyzer work as expected.

Is this a bug or have I made a mistake?

--

Damn! I knew there'd be something stupid. I assumed that since it worked
when I POSTed it it was all good.

Thanks for spotting that. It works as expected now.

On Tuesday, 8 January 2013 03:28:58 UTC, Igor Motov wrote:

I am not sure why it works with POST, but in the example that you posted,
you are missing "index" element in the "settings". Try this:
add_doc.sh · GitHub

On Monday, January 7, 2013 6:45:06 AM UTC-5, Neil Prosser wrote:

Hi there,

I'm attempting to use a template file on disk to provide settings for my
indices and I'm finding that specifying a custom analyzer isn't working.

I've created a gist: Using an Elasticsearch template file from $ES_HOME/config/templates does not allow me to specify a custom analyzer. · GitHub which gives the
template file, the curl command, error message and log contents for the
error. I think I've got a similar problem to
https://groups.google.com/d/topic/elasticsearch/DHYbvtrFNI8/discussion

If I POST contents of the template file (without the template definition
etc.) the mapping and custom analyzer work as expected.

Is this a bug or have I made a mistake?

--