Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Coding...

Zaar Hai haizaar

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

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"
            },