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 [email protected].
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.

Reply via email to