Hi
I'm newbie at Elastic, please advice.
I have a schema:
curl -XPOST 10.112.1.2:9200/search -d '
{
"index" : {
"analysis" : {
"analyzer" : {
"mCustom" : {
"type" : "custom",
"tokenizer" : "standard",
"filter" : [ "standard", "lowercase", "kstem", "trim", "mStop",
"mLength" ]
}
},
"filter" : {
"mStop" : {
"type" : "stop",
"stopwords_path" : "/opt/elastic/config/stopwords"
},
"mLength" : {
"type" : "length",
"min" : 2,
"max" : 50
}
}
}
},
"mappings" : {
"storage" : {
"_source" : { "enabled" : true },
"_all" : { enabled : false },
"_id" : { path: "RecordID"},
"properties" : {
"Date" : { "type" : "date", "store" : "true", "index"
: "analyzed", "format" : "yyyy-MM-ddTHH:mm:ss.SSSZ||yyyy-MM-ddTHH:mm:ssZ",
"precision_step:" : 6 },
"Name" : { "type" : "string", "store" : "true", "index"
: "analyzed" },
"RecordID" : { "type" : "long", "store" : "true", "index"
: "not_analyzed" },
"URL" : { "type" : "string", "store" : "true", "index"
: "no" }
}
}
}
}'
My question is: how to define custom multiple data format with T separator?
Is it possible? I need to index at formats "2012-11-28T15:16:17Z"
or "2012-11-28T15:16:17.003Z"
Seems possible, because it fixed at
My formats are the same as "date_time||date_time_no_millis" but I can't use
it because there is a bug
Thanks.
--