Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2013 13:50
Show Gist options
  • Save anonymous/5900949 to your computer and use it in GitHub Desktop.
Save anonymous/5900949 to your computer and use it in GitHub Desktop.
Juste un petit code pour expliquer mon problème.
curl.exe XPUT http://localhost:9200/ticket/_mappinq? -d '
{
"ticket" : {
"properties" : {
"DOC_CREATION_DATE" : {
"type" : "date",
"format" : "yyyy-MM-dd || yyyy-MM-dd HH:mm:ss",
"local" : "US"
}
}
}
}
'
curl.exe -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