Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2013 13:50

Revisions

  1. @invalid-email-address Anonymous created this gist Jul 1, 2013.
    17 changes: 17 additions & 0 deletions gistfile1.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    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"}
    '