Skip to content

Instantly share code, notes, and snippets.

View haizaar's full-sized avatar
💭
Coding...

Zaar Hai haizaar

💭
Coding...
View GitHub Profile
@haizaar
haizaar / gist:4125404
Created November 21, 2012 15:22 — forked from clintongormley/gist:4096675
Nested documents

Create an index with a nested mapping:

curl -XPUT 'http://127.0.0.1:9200/test/?pretty=1'  -d '
{
   "mappings" : {
      "test" : {
         "properties" : {
            "title" : {
               "type" : "string"

},