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 / 1. Execution results CPython 3.4.2
Last active August 29, 2015 14:17
dictionary tree traversal with path keeping
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 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"

},