Skip to content

Instantly share code, notes, and snippets.

@dadoonet
Forked from anonymous/gist:5900949
Last active December 19, 2015 05:09
Show Gist options
  • Save dadoonet/5902694 to your computer and use it in GitHub Desktop.
Save dadoonet/5902694 to your computer and use it in GitHub Desktop.
Test locale with multiple formats
curl -XPUT http://localhost:9200/test/ticket/_mappinq? -d '{
"ticket" : {
"properties" : {
"DOC_CREATION_DATE" : {
"type" : "date",
"format" : "yyyy-MM-dd || yyyy-MM-dd HH:mm:ss",
"locale" : "FR"
}
}
}
}
'
curl -XPUT http://localhost:9200/test/ticket/1 -d '
{"DOC_CREATION_DATE" : "2012-05-12"}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment