Last active
August 29, 2015 14:14
-
-
Save cameronraysmith/501e582935276e66e8d1 to your computer and use it in GitHub Desktop.
elasticsearch-tutorial-postman
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"name":"elasticsearch-tutorial", | |
"timestamp":1422493750562, | |
"requests":[ | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"1b95cc96-2686-fbd1-6bee-2d640cfcdc24", | |
"name":"index employee 1", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/1", | |
"method":"PUT", | |
"headers":"", | |
"data":"{\n \"first_name\" : \"John\",\n \"last_name\" : \"Smith\",\n \"age\" : 25,\n \"about\" : \"I love to go rock climbing\",\n \"interests\": [ \"sports\", \"music\" ]\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"3c824210-88ef-3dfa-f7e8-582fb7eecbc4", | |
"name":"full-text search", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/_search", | |
"method":"POST", | |
"headers":"", | |
"data":"{\n \"query\" : {\n \"match\" : {\n \"about\" : \"rock climbing\"\n }\n }\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"474f2aa7-8e29-486d-d3f0-f2212098c51b", | |
"name":"more-complicated searches", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/_search", | |
"method":"POST", | |
"headers":"", | |
"data":"{\n \"query\" : {\n \"filtered\" : {\n \"filter\" : {\n \"range\" : {\n \"age\" : { \"gt\" : 30 } \n }\n },\n \"query\" : {\n \"match\" : {\n \"last_name\" : \"smith\" \n }\n }\n }\n }\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"475623f0-41d4-c759-4a13-8dc8456f3f97", | |
"name":"phrase search", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/_search", | |
"method":"POST", | |
"headers":"", | |
"data":"{\n \"query\" : {\n \"match_phrase\" : {\n \"about\" : \"rock climbing\"\n }\n }\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"4a3b9c89-639b-e660-0625-d741985715fb", | |
"name":"index employee 3", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/3", | |
"method":"PUT", | |
"headers":"", | |
"data":"{\n \"first_name\" : \"Douglas\",\n \"last_name\" : \"Fir\",\n \"age\" : 35,\n \"about\": \"I like to build cabinets\",\n \"interests\": [ \"forestry\" ]\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"575e5f3a-4356-7823-4d09-d0e895620261", | |
"name":"search lite all docs", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/_search", | |
"method":"GET", | |
"headers":"", | |
"data":"{\n \"first_name\" : \"Douglas\",\n \"last_name\" : \"Fir\",\n \"age\" : 35,\n \"about\": \"I like to build cabinets\",\n \"interests\": [ \"forestry\" ]\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"69426d63-04dc-f9dc-b1b6-15a0c32d7514", | |
"name":"index employee 2", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/2", | |
"method":"PUT", | |
"headers":"", | |
"data":"{\n \"first_name\" : \"Jane\",\n \"last_name\" : \"Smith\",\n \"age\" : 32,\n \"about\" : \"I like to collect rock albums\",\n \"interests\": [ \"music\" ]\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"888df080-c692-fe60-39bd-928adc631f5e", | |
"name":"highlight search", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/_search", | |
"method":"POST", | |
"headers":"", | |
"data":"{\n \"query\" : {\n \"match_phrase\" : {\n \"about\" : \"rock climbing\"\n }\n },\n \"highlight\": {\n \"fields\" : {\n \"about\" : {}\n }\n }\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"d97fbd6d-3df1-8422-9027-949e4a0f621f", | |
"name":"fuzzy like this search", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/_search", | |
"method":"POST", | |
"headers":"", | |
"data":"{\n \"query\" : {\n \"fuzzy_like_this\" : {\n \"fields\" : [\"about\"],\n \"like_text\" : \"climbi rock\",\n \"max_query_terms\" : 12\n \t}\n\t},\n \"highlight\": {\n \"fields\" : {\n \"about\" : {}\n }\n }\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"version":2, | |
"time":1422503953358 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"e24e8f55-214e-6885-86ae-6712315f2abc", | |
"name":"search with query dsl", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/_search", | |
"method":"POST", | |
"headers":"", | |
"data":"{\n \"query\" : {\n \"match\" : {\n \"last_name\" : \"Smith\"\n }\n }\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"ec260810-bfe8-1127-8649-2571ac429d72", | |
"name":"retrieving employee 1", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/1", | |
"method":"GET", | |
"headers":"", | |
"data":"{\n \"first_name\" : \"John\",\n \"last_name\" : \"Smith\",\n \"age\" : 25,\n \"about\" : \"I love to go rock climbing\",\n \"interests\": [ \"sports\", \"music\" ]\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
}, | |
{ | |
"collectionId":"cc49cd93-e2a8-b2f9-1e8b-51926ed66fd4", | |
"id":"ef53b3ca-6844-8fe5-25d7-1f969c63bf51", | |
"name":"search lite last name", | |
"description":"", | |
"url":"http://localhost:9200/megacorp/employee/_search?q=last_name:Smith", | |
"method":"GET", | |
"headers":"", | |
"data":"{\n \"first_name\" : \"Douglas\",\n \"last_name\" : \"Fir\",\n \"age\" : 35,\n \"about\": \"I like to build cabinets\",\n \"interests\": [ \"forestry\" ]\n}", | |
"dataMode":"raw", | |
"timestamp":0, | |
"responses":[ | |
], | |
"version":2 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment