Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Coding...

Zaar Hai haizaar

💭
Coding...
View GitHub Profile
@haizaar
haizaar / 1. Execution results CPython 3.4.2
Last active Aug 29, 2015
dictionary tree traversal with path keeping
View 1. Execution results CPython 3.4.2
inline: 0.388133 seconds
iterate_tree: 0.772798
iterate_tree2: 0.707333
iterate_tree3: 0.564626
iterate_tree3_noyield: 0.498388
iterate_tree3_nofeedback: 0.353944
iterate_tree5: 0.650102
iterate_tree5_noyield: 0.566557
iterate_tree5_nofeedback: 0.435601
iterate_tree6: 0.562908
@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"
            },