Hi
I tried the request today and got back an "{"acknowledged":true}". Then I
tried
curl -XGET localhost:9200/_template/logstashdate
{"logstashdate":{"order":1,"template":"logstash-*","settings":{},"mappings":{},"aliases":{}}}
As you can see the properties have been completely ignored. I suspect I
should have included those into the mapping field, something like what is
done with the default template. Next I am planning to try this one:
curl -XPUT localhost:9200/_template/logstashdate -d '
{
"order": 1,
"template" : "logstash-*",
"mappings": {
"_default_": {
"properties" : {
"log_date" : {
"type" : "string",
"index" : "not_analyzed"
}
}
}
}
}
I am mostly guessing there, as the documentation is mostly example based
and I did not find the relevant one.
--
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/49f241d0-131e-4c4f-b78e-ca17f55878d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.