Updating mapping through index template

Hello all,

If i update/insert the mapping in an existing index template the change is
not reflected on the fly.

So my question is, is ES configured to run this way or should the mapping
changes be updated automatically. Else how can i refresh the mapping??

[root@ES1 ~]# curl PUT 'http://localhost:9200/_template/template_1' -d '
{
"template" : "abc",
"mappings" : {
"log" : { "dynamic" : "strict",
"properties" :
{
"@timestamp" : {"type" : "date", "index" : "analyzed" },
"@version" : { "type" : "integer", "index" : "analyzed"},
"type" : {"type" : "string", "index" : "analyzed" },
"timestamp" : {"type" : "date", "index" : "analyzed", "format" :
"yyyy-MM-dd HH:mm:ss,SSS" },
"loglevel" : {"type" : "string", "index" : "analyzed" },
"host" : {"type" : "string", "index" : "analyzed" },
"message" : {"type" : "string", "index" : "analyzed" },
}
}
}
}'
{"acknowledged":true}[root@ES1 ~]# date
Thu Jun 12 09:07:00 EDT 2014
[root@ES1 ~]# curl -XGET 'localhost:9200/abc/log/_mapping'
{}[root@ES1 ~]# date
Thu Jun 12 09:07:04 EDT 2014

Thanks and Regards
Sri

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/2f7fc408-06b5-4dab-8d33-675f4ed982f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I was able to update only once, by deleting the mapping using the ' curl
-XDELETE 'localhost:9200/abc/_all/_mappings' and updating the template to
accept all fields as strings.
Hope to get some help on this soon.

Thanks and Regards
Sri

On Thursday, June 12, 2014 9:19:30 AM UTC-4, sri wrote:

Hello all,

If i update/insert the mapping in an existing index template the change is
not reflected on the fly.

So my question is, is ES configured to run this way or should the mapping
changes be updated automatically. Else how can i refresh the mapping??

[root@ES1 ~]# curl PUT 'http://localhost:9200/_template/template_1' -d '
{
"template" : "abc",
"mappings" : {
"log" : { "dynamic" : "strict",
"properties" :
{
"@timestamp" : {"type" : "date", "index" : "analyzed" },
"@version" : { "type" : "integer", "index" : "analyzed"},
"type" : {"type" : "string", "index" : "analyzed" },
"timestamp" : {"type" : "date", "index" : "analyzed", "format" :
"yyyy-MM-dd HH:mm:ss,SSS" },
"loglevel" : {"type" : "string", "index" : "analyzed" },
"host" : {"type" : "string", "index" : "analyzed" },
"message" : {"type" : "string", "index" : "analyzed" },
}
}
}
}'
{"acknowledged":true}[root@ES1 ~]# date
Thu Jun 12 09:07:00 EDT 2014
[root@ES1 ~]# curl -XGET 'localhost:9200/abc/log/_mapping'
{}[root@ES1 ~]# date
Thu Jun 12 09:07:04 EDT 2014

Thanks and Regards
Sri

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/13ec8715-e47b-4c7c-ae35-bfbedf3c452d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.