-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinsomnia.json
1 lines (1 loc) · 25.5 KB
/
insomnia.json
1
{"_type":"export","__export_format":4,"__export_date":"2021-12-08T17:40:22.365Z","__export_source":"insomnia.desktop.app:v2021.6.0","resources":[{"_id":"req_78c3968be34e47009c7470b3c746099a","parentId":"wrk_12cabd0990c2431fa06f1275ba0d0a0f","modified":1632956832575,"created":1632946374814,"url":"{{ _.elasticsearch_host }}","name":"Elasticsearch Installation Details","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1632956240295,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"wrk_12cabd0990c2431fa06f1275ba0d0a0f","parentId":null,"modified":1632946362740,"created":1632946362740,"name":"Painless Car Rental","description":"","scope":"collection","_type":"workspace"},{"_id":"req_5d55f86cc332447daf9efd7045e740f7","parentId":"fld_c83d2d1896f44a74bcba0cee52544f6f","modified":1638984940660,"created":1632955999079,"url":"{{ _.elasticsearch_host }}/{{ _.index }}","name":"Create","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\"mappings\": {\n\t\t\"_doc\": {\n\t\t\t\"properties\": {\n\t\t\t\t\"producer\": {\n\t\t\t\t\t\"type\": \"text\"\n\t\t\t\t},\n\t\t\t\t\"model\": {\n\t\t\t\t\t\"type\": \"text\"\n\t\t\t\t},\n\t\t\t\t\"picture\": {\n\t\t\t\t\t\"type\": \"text\"\n\t\t\t\t},\n\t\t\t\t\"production_year\": {\n\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t},\n\t\t\t\t\"colors\": {\n\t\t\t\t\t\"type\": \"keyword\"\n\t\t\t\t},\n\t\t\t\t\"service_ids\": {\n\t\t\t\t\t\"type\": \"integer\"\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_ad16e83a26714c9a9acb1d41ba4ef1e2"}],"authentication":{},"metaSortKey":-1632956038689,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_c83d2d1896f44a74bcba0cee52544f6f","parentId":"wrk_12cabd0990c2431fa06f1275ba0d0a0f","modified":1632956906541,"created":1632956240245,"name":"Index","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1632956240263.75,"_type":"request_group"},{"_id":"req_106ae444d16c4355b6be1da2c14344f8","parentId":"fld_c83d2d1896f44a74bcba0cee52544f6f","modified":1632956785152,"created":1632956773423,"url":"{{ _.elasticsearch_host }}/{{ _.index }}","name":"Delete","description":"","method":"DELETE","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1632956038676.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_d34eb38e16504d848914222f61a86a55","parentId":"fld_c83d2d1896f44a74bcba0cee52544f6f","modified":1638984945799,"created":1633089831248,"url":"{{ _.elasticsearch_host }}/{{ _.index }}/_bulk","name":"Bulk","description":"","method":"POST","body":{"mimeType":"","text":"{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"1\"}}\n{\"doc\":{\"producer\":\"Ferrari\",\"model\":\"SF90\",\"picture\":\"ferrari-sf90.jpg\",\"production_year\":2021,\"colors\":[\"red\"],\"service_ids\":[2,4,6,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"2\"}}\n{\"doc\":{\"producer\":\"Ferrari\",\"model\":\"Roma\",\"picture\":\"ferrari-roma.jpg\",\"production_year\":2021,\"colors\":[\"silver\"],\"service_ids\":[1,3,5]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"3\"}}\n{\"doc\":{\"producer\":\"Ferrari\",\"model\":\"F8 Spider\",\"picture\":\"ferrari-f8-spider.jpg\",\"production_year\":2021,\"colors\":[\"yellow\"],\"service_ids\":[7,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"4\"}}\n{\"doc\":{\"producer\":\"Ferrari\",\"model\":\"296 GTB\",\"picture\":\"ferrari-296-gtb.jpg\",\"production_year\":2021,\"colors\":[\"black\",\"yellow\"],\"service_ids\":[1,2,5,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"5\"}}\n{\"doc\":{\"producer\":\"Ferrari\",\"model\":\"250 GT California\",\"picture\":\"ferrari-250-gt-california.jpg\",\"production_year\":1961,\"colors\":[\"blue\"],\"service_ids\":[1,4,5]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"6\"}}\n{\"doc\":{\"producer\":\"Ferrari\",\"model\":\"Testarossa\",\"picture\":\"ferrari-testarossa.jpg\",\"production_year\":1988,\"colors\":[\"red\"],\"service_ids\":[5,6,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"7\"}}\n{\"doc\":{\"producer\":\"Lamborghini\",\"model\":\"Huracán\",\"picture\":\"lamborghini-huracan.jpg\",\"production_year\":2021,\"colors\":[\"green\"],\"service_ids\":[1,2,3,4,5,6,7,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"8\"}}\n{\"doc\":{\"producer\":\"Lamborghini\",\"model\":\"SC20\",\"picture\":\"lamborghini-sc20.jpg\",\"production_year\":2020,\"colors\":[\"white\",\"black\",\"blue\"],\"service_ids\":[8,5,4]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"9\"}}\n{\"doc\":{\"producer\":\"Lamborghini\",\"model\":\"Aventador\",\"picture\":\"lamborghini-aventador.jpg\",\"production_year\":2021,\"colors\":[\"black\",\"red\"],\"service_ids\":[6,1,4,7,3]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"10\"}}\n{\"doc\":{\"producer\":\"Lamborghini\",\"model\":\"Diablo\",\"picture\":\"lamborghini-diablo.jpg\",\"production_year\":1990,\"colors\":[\"yellow\"],\"service_ids\":[5,4,7,1]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"11\"}}\n{\"doc\":{\"producer\":\"Lamborghini\",\"model\":\"Countach\",\"picture\":\"lamborghini-countach.jpg\",\"production_year\":1980,\"colors\":[\"white\"],\"service_ids\":[3,8,2]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"12\"}}\n{\"doc\":{\"producer\":\"Lamborghini\",\"model\":\"Murciélago LP670\",\"picture\":\"lamborghini-murcielago-lp670.jpg\",\"production_year\":2007,\"colors\":[\"orange\"],\"service_ids\":[7,3,2,5,1,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"13\"}}\n{\"doc\":{\"producer\":\"Porshe\",\"model\":\"911 SWB\",\"picture\":\"porshe-911-swb.jpg\",\"production_year\":1968,\"colors\":[\"orange\"],\"service_ids\":[6,4,3,2,7,5]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"14\"}}\n{\"doc\":{\"producer\":\"Porshe\",\"model\":\"911 Turbo S\",\"picture\":\"porshe-911-turbo-s.jpg\",\"production_year\":2021,\"colors\":[\"green\"],\"service_ids\":[6,2]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"15\"}}\n{\"doc\":{\"producer\":\"Porshe\",\"model\":\"911 GTS\",\"picture\":\"porshe-911-gts.jpg\",\"production_year\":2017,\"colors\":[\"silver\"],\"service_ids\":[6]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"16\"}}\n{\"doc\":{\"producer\":\"Porshe\",\"model\":\"Macan\",\"picture\":\"porshe-macan.jpg\",\"production_year\":2021,\"colors\":[\"black\"],\"service_ids\":[5,2,3]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"17\"}}\n{\"doc\":{\"producer\":\"McLaren\",\"model\":\"570S\",\"picture\":\"mclaren-570s.jpg\",\"production_year\":2021,\"colors\":[\"orange\",\"black\"],\"service_ids\":[8,2,7,1]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"18\"}}\n{\"doc\":{\"producer\":\"McLaren\",\"model\":\"F1\",\"picture\":\"mclaren-f1.jpg\",\"production_year\":1994,\"colors\":[\"blue\"],\"service_ids\":[4,3,7,6]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"19\"}}\n{\"doc\":{\"producer\":\"McLaren\",\"model\":\"720S\",\"picture\":\"mclaren-720s.jpg\",\"production_year\":2018,\"colors\":[\"blue\",\"orange\",\"black\"],\"service_ids\":[7,2,1,3]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"20\"}}\n{\"doc\":{\"producer\":\"Aston Martin\",\"model\":\"DB7 GT\",\"picture\":\"aston-martin-db7-gt.jpg\",\"production_year\":2003,\"colors\":[\"silver\"],\"service_ids\":[8,7,6,5,4,3,2,1]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"21\"}}\n{\"doc\":{\"producer\":\"Aston Martin\",\"model\":\"DB7 Zagato\",\"picture\":\"aston-martin-db7-zagato.jpg\",\"production_year\":2003,\"colors\":[\"green\"],\"service_ids\":[1,2,3,8,7,6]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"22\"}}\n{\"doc\":{\"producer\":\"Aston Martin\",\"model\":\"DB7 Vantage\",\"picture\":\"aston-martin-db7-vantage.jpg\",\"production_year\":2002,\"colors\":[\"blue\"],\"service_ids\":[2,3]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"23\"}}\n{\"doc\":{\"producer\":\"Ford\",\"model\":\"Mustang RTR\",\"picture\":\"ford-mustang-rtr.jpg\",\"production_year\":2019,\"colors\":[\"black\",\"green\"],\"service_ids\":[4,5,6,7,3,2]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"24\"}}\n{\"doc\":{\"producer\":\"Ford\",\"model\":\"Mustang Boss 302\",\"picture\":\"ford-mustang-boss-302.jpg\",\"production_year\":2013,\"colors\":[\"yellow\",\"black\"],\"service_ids\":[2,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"25\"}}\n{\"doc\":{\"producer\":\"Ford\",\"model\":\"GT\",\"picture\":\"ford-gt.jpg\",\"production_year\":2021,\"colors\":[\"red\",\"white\"],\"service_ids\":[1]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"26\"}}\n{\"doc\":{\"producer\":\"BMW\",\"model\":\"i8 Roadster\",\"picture\":\"bmw-i8-roadster.jpg\",\"production_year\":2014,\"colors\":[\"silver\",\"black\",\"blue\"],\"service_ids\":[4]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"27\"}}\n{\"doc\":{\"producer\":\"BMW\",\"model\":\"i8 Roadster\",\"picture\":\"bmw-i8-roadster-2019.jpg\",\"production_year\":2019,\"colors\":[\"orange\",\"black\"],\"service_ids\":[5,7,1,2,8,3]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"28\"}}\n{\"doc\":{\"producer\":\"Mercedes-Benz\",\"model\":\"GT\",\"picture\":\"mercedes-benz-gt.jpg\",\"production_year\":2020,\"colors\":[\"red\"],\"service_ids\":[1,5]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"29\"}}\n{\"doc\":{\"producer\":\"Mercedes-Benz\",\"model\":\"AMG GT Coupé\",\"picture\":\"mercedes-benz-amg-gt-coupe.jpg\",\"production_year\":2020,\"colors\":[\"green\",\"black\"],\"service_ids\":[5,1,3,2]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"30\"}}\n{\"doc\":{\"producer\":\"Mercedes-McLaren\",\"model\":\"SLR 722 Stirling Moss\",\"picture\":\"mercedes-mclaren-slr-722-stirling-moss.jpg\",\"production_year\":2009,\"colors\":[\"white\",\"red\"],\"service_ids\":[2,4,6,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"31\"}}\n{\"doc\":{\"producer\":\"Mercedes-Benz\",\"model\":\"SLS AMG Coupé\",\"picture\":\"mercedes-benz-sls-amg-coupe.jpg\",\"production_year\":2014,\"colors\":[\"blue\"],\"service_ids\":[1,3,5]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"32\"}}\n{\"doc\":{\"producer\":\"Mazda\",\"model\":\"RX-Vision GT3 Concept\",\"picture\":\"mazda-rx-vision-gt3-concept.jpg\",\"production_year\":2020,\"colors\":[\"red\",\"black\"],\"service_ids\":[7,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"33\"}}\n{\"doc\":{\"producer\":\"Mazda\",\"model\":\"MX-5 Miata\",\"picture\":\"mazda-mx5-miata.jpg\",\"production_year\":2016,\"colors\":[\"white\"],\"service_ids\":[1,2,5,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"34\"}}\n{\"doc\":{\"producer\":\"Mazda\",\"model\":\"MX-5 Z-Sport\",\"picture\":\"mazda-mx5-z-sport.jpg\",\"production_year\":2016,\"colors\":[\"silver\",\"red\"],\"service_ids\":[1,4,5]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"35\"}}\n{\"doc\":{\"producer\":\"Dodge\",\"model\":\"Viper GTS\",\"picture\":\"dodge-viper-gts.jpg\",\"production_year\":1997,\"colors\":[\"blue\",\"white\"],\"service_ids\":[5,6,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"36\"}}\n{\"doc\":{\"producer\":\"Dodge\",\"model\":\"Viper SRT10 Roadster\",\"picture\":\"dodge-viper-srt10-roadster.jpg\",\"production_year\":2017,\"colors\":[\"yellow\",\"black\"],\"service_ids\":[1,2,3,4,5,6,7,8]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"37\"}}\n{\"doc\":{\"producer\":\"Dodge\",\"model\":\"Challenger\",\"picture\":\"dodge-challenger.jpg\",\"production_year\":2015,\"colors\":[\"green\",\"black\"],\"service_ids\":[8,5,4]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"38\"}}\n{\"doc\":{\"producer\":\"Ferrari\",\"model\":\"550 Maranello\",\"picture\":\"ferrari-550-maranello.jpg\",\"production_year\":1999,\"colors\":[\"blue\"],\"service_ids\":[6,1,4,7,3]},\"doc_as_upsert\":true}\n{\"update\":{\"_index\":\"cars\",\"_type\":\"_doc\",\"_id\":\"39\"}}\n{\"doc\":{\"producer\":\"Mitsubishi\",\"model\":\"Lancer Evo X\",\"picture\":\"mitsubishi-lancer-evo-x.jpg\",\"production_year\":2010,\"colors\":[\"red\",\"black\"],\"service_ids\":[5,4,7,1]},\"doc_as_upsert\":true}\n"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_ad16e83a26714c9a9acb1d41ba4ef1e2"}],"authentication":{},"metaSortKey":-1632956038670.25,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_2f329936be364640bdf64ac71d7a5f5b","parentId":"fld_c83d2d1896f44a74bcba0cee52544f6f","modified":1632956480631,"created":1632956465917,"url":"{{ _.elasticsearch_host }}/{{ _.index }}","name":"Mappings","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1632956038664,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_e1e080bdfa3042a1b952a436b445e736","parentId":"fld_c83d2d1896f44a74bcba0cee52544f6f","modified":1632956413413,"created":1632955735770,"url":"{{ _.elasticsearch_host }}/{{ _.index }}/_count","name":"Count","description":"","method":"GET","body":{},"parameters":[],"headers":[],"authentication":{},"metaSortKey":-1632956038639,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_a2d111f902a7431498e1d240bd6e170c","parentId":"fld_848de98705964627b6b99a4ce4965988","modified":1638984923550,"created":1632957008250,"url":"{{ _.elasticsearch_host }}/{{ _.index }}/_doc/39","name":"Create / Update","description":"","method":"PUT","body":{"mimeType":"application/json","text":"{\n\t\t\"producer\": \"Mitsubishi\",\n\t\t\"model\": \"Lancer Evo X\",\n\t\t\"picture\": \"mitsubishi-lancer-evo-x.jpg\",\n\t\t\"production_year\": 2010,\n\t\t\"colors\": [\"red\", \"black\"]\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_b8b7e87af42743c2bb0301fd5431e034"}],"authentication":{},"metaSortKey":-1632957008250,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_848de98705964627b6b99a4ce4965988","parentId":"wrk_12cabd0990c2431fa06f1275ba0d0a0f","modified":1632956911174,"created":1632956847201,"name":"Document","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1632956240257.5,"_type":"request_group"},{"_id":"req_8bf493f90f8d4d01840b092445eb2476","parentId":"fld_e77f4b53ba4244b28812221d85e201b7","modified":1638984922353,"created":1632957408326,"url":"{{ _.elasticsearch_host }}/{{ _.index }}/_search","name":"All (1) // structure","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"query\": {\n\t\t\"function_score\": {\n\t\t\t\"query\": {\n\t\t\t\t\"bool\": {\n\t\t\t\t\t\"must\": [],\n\t\t\t\t\t\"must_not\": [],\n\t\t\t\t\t\"should\": [],\n\t\t\t\t\t\"filter\": []\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"functions\": [],\n\t\t\t\"boost_mode\": \"replace\",\n\t\t\t\"score_mode\": \"sum\",\n\t\t\t\"min_score\": 0\n\t\t}\n\t},\n\t\"sort\": {\n\t\t\"_score\": \"desc\"\n\t}\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_a668f3ed97c9465d9686e2ae42d4cf4c"}],"authentication":{},"metaSortKey":-1632957408326,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"fld_e77f4b53ba4244b28812221d85e201b7","parentId":"wrk_12cabd0990c2431fa06f1275ba0d0a0f","modified":1632957099461,"created":1632957091738,"name":"Search","description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1632956240207.5,"_type":"request_group"},{"_id":"req_c81e645b45294217bffaa255dbf75762","parentId":"fld_e77f4b53ba4244b28812221d85e201b7","modified":1638984916712,"created":1633167372022,"url":"{{ _.elasticsearch_host }}/{{ _.index }}/_search","name":"Functions","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"_source\": true,\n\t\"explain\": false,\n\t\"from\": 0,\n\t\"size\": 3,\n\t\"query\": {\n\t\t\"function_score\": {\n\t\t\t\"query\": {\n\t\t\t\t\"bool\": {\n\t\t\t\t\t\"must\": [],\n\t\t\t\t\t\"must_not\": [],\n\t\t\t\t\t\"should\": [],\n\t\t\t\t\t\"filter\": []\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"functions\": [\n\t\t\t\t{\n\t\t\t\t\t\"script_score\": {\n\t\t\t\t\t\t\"script\": \"_score\"\n\t\t\t\t\t},\n\t\t\t\t\t\"weight\": 10\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"filter\": {\n\t\t\t\t\t\t\"bool\": {\n\t\t\t\t\t\t\t\"must\": [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"match\": {\n\t\t\t\t\t\t\t\t\t\t\"producer\": \"Dodge\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"weight\": 100\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"script_score\": {\n\t\t\t\t\t\t\"script\": {\n\t\t\t\t\t\t\t\"source\": \"\\t\\t\\tif (params.requiredColors.isEmpty()) {\\n \\t\\t\\treturn 0;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (false === doc['colors'].containsAll(params.requiredColors)) {\\n \\t\\t\\treturn 0;\\n\\t\\t\\t}\\n\\n def requiredColorsCount = params.requiredColors.size();\\n\\t\\t\\tdef sum = params.requiredColors\\n\\t\\t\\t\\t.collect( requiredColor -> {\\n\\t\\t\\t\\t\\tif (false === doc['colors'].contains(requiredColor)) {\\t\\n\\t\\t\\t\\t\\t\\treturn 0;\\n\\t\\t\\t\\t\\t}\\n\\n def position = params._source['colors'].indexOf(requiredColor) + 1.0;\\n\\n\\t\\t\\t\\t\\treturn (params.maximumColorsPerDocument + 1.0 - position ) \\/ params.maximumColorsPerDocument;\\n\\t\\t\\t\\t})\\n\\t\\t\\t\\t.sum();\\n\\n\\t\\t\\treturn sum \\/ requiredColorsCount;\",\n\t\t\t\t\t\t\t\"params\": {\n\t\t\t\t\t\t\t\t\"requiredColors\": [],\n\t\t\t\t\t\t\t\t\"maximumColorsPerDocument\": 3\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"weight\": 50\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"boost_mode\": \"replace\",\n\t\t\t\"score_mode\": \"sum\",\n\t\t\t\"min_score\": 0\n\t\t}\n\t},\n\t\"sort\": {\n\t\t\"_score\": \"desc\"\n\t}\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_a668f3ed97c9465d9686e2ae42d4cf4c"}],"authentication":{},"metaSortKey":-1632957308307,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_4946d939634b40f0bf5bc0a78de82df7","parentId":"fld_e77f4b53ba4244b28812221d85e201b7","modified":1638984918214,"created":1633359932970,"url":"{{ _.elasticsearch_host }}/{{ _.index }}/_search","name":"Functions (colors)","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"_source\": true,\n\t\"explain\": true,\n\t\"from\": 3,\n\t\"size\": 3,\n\t\"query\": {\n\t\t\"function_score\": {\n\t\t\t\"query\": {\n\t\t\t\t\"bool\": {\n\t\t\t\t\t\"must\": [],\n\t\t\t\t\t\"must_not\": [],\n\t\t\t\t\t\"should\": [],\n\t\t\t\t\t\"filter\": []\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"functions\": [\n\t\t\t\t{\n\t\t\t\t\t\"script_score\": {\n\t\t\t\t\t\t\"script\": \"_score\"\n\t\t\t\t\t},\n\t\t\t\t\t\"weight\": 1\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"filter\": {\n\t\t\t\t\t\t\"bool\": {\n\t\t\t\t\t\t\t\"must\": [\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\"match\": {\n\t\t\t\t\t\t\t\t\t\t\"producer\": \"Dodge\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"weight\": 100\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"script_score\": {\n\t\t\t\t\t\t\"script\": {\n\t\t\t\t\t\t\t\"source\": \"\\t\\t\\tif (params.requiredColors.isEmpty()) {\\n \\t\\t\\treturn 0;\\n\\t\\t\\t}\\n\\n\\t\\t\\tif (false === doc['colors'].containsAll(params.requiredColors)) {\\n \\t\\t\\treturn 0;\\n\\t\\t\\t}\\n\\n def colorExclusivnessFactor = (params.maximumColorsPerDocument + 1.0 - doc['colors'].size()) \\/ params.maximumColorsPerDocument * 0.25;\\n\\n def requiredColorsCount = params.requiredColors.size();\\n\\t\\t\\tdef positionsFactorSum = params.requiredColors\\n\\t\\t\\t\\t.collect( requiredColor -> {\\n\\t\\t\\t\\t\\tif (false === doc['colors'].contains(requiredColor)) {\\t\\n\\t\\t\\t\\t\\t\\treturn 0;\\n\\t\\t\\t\\t\\t}\\n\\n def position = params._source['colors'].indexOf(requiredColor) + 1.0;\\n\\n\\t\\t\\t\\t\\treturn (params.maximumColorsPerDocument + 1.0 - position) \\/ params.maximumColorsPerDocument;\\n\\t\\t\\t\\t})\\n\\t\\t\\t\\t.sum() * 0.75;\\n\\n def colorPositionFactor = positionsFactorSum \\/ requiredColorsCount;\\n\\n\\t\\t\\treturn (colorExclusivnessFactor + colorPositionFactor);\",\n\t\t\t\t\t\t\t\"params\": {\n\t\t\t\t\t\t\t\t\"requiredColors\": [],\n\t\t\t\t\t\t\t\t\"maximumColorsPerDocument\": 3\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\t\"weight\": 50\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"boost_mode\": \"replace\",\n\t\t\t\"score_mode\": \"sum\",\n\t\t\t\"min_score\": 0\n\t\t}\n\t},\n\t\"sort\": {\n\t\t\"_score\": \"desc\"\n\t}\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_a668f3ed97c9465d9686e2ae42d4cf4c"}],"authentication":{},"metaSortKey":-1632957258297.5,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"req_ff9bf1ed939e48a5911a3df25cc84e51","parentId":"fld_e77f4b53ba4244b28812221d85e201b7","modified":1638984918751,"created":1633085660702,"url":"{{ _.elasticsearch_host }}/{{ _.index }}/_search","name":"Phrase","description":"","method":"POST","body":{"mimeType":"application/json","text":"{\n\t\"_source\": true,\n\t\"explain\": false,\n\t\"from\": 0,\n\t\"size\": 3,\n\t\"query\": {\n\t\t\"function_score\": {\n\t\t\t\"query\": {\n\t\t\t\t\"bool\": {\n\t\t\t\t\t\"must\": [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\"query_string\": {\n\t\t\t\t\t\t\t\t\"query\": \"maclaren\",\n\t\t\t\t\t\t\t\t\"fields\": [\n\t\t\t\t\t\t\t\t\t\"producer\",\n\t\t\t\t\t\t\t\t\t\"model\"\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t],\n\t\t\t\t\t\"must_not\": [],\n\t\t\t\t\t\"should\": [],\n\t\t\t\t\t\"filter\": []\n\t\t\t\t}\n\t\t\t},\n\t\t\t\"functions\": [],\n\t\t\t\"boost_mode\": \"replace\",\n\t\t\t\"score_mode\": \"sum\",\n\t\t\t\"min_score\": 0\n\t\t}\n\t},\n\t\"sort\": {\n\t\t\"_score\": \"desc\"\n\t}\n}"},"parameters":[],"headers":[{"name":"Content-Type","value":"application/json","id":"pair_6779c4a40d7b4d5b907bc1521ce73023"}],"authentication":{},"metaSortKey":-1632957208288,"isPrivate":false,"settingStoreCookies":true,"settingSendCookies":true,"settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingRebuildPath":true,"settingFollowRedirects":"global","_type":"request"},{"_id":"env_f91a63830840f829c9236b3d4131697a09da9600","parentId":"wrk_12cabd0990c2431fa06f1275ba0d0a0f","modified":1632956097328,"created":1632946363165,"name":"Base Environment","data":{},"dataPropertyOrder":{},"color":null,"isPrivate":false,"metaSortKey":1632946363165,"_type":"environment"},{"_id":"jar_f91a63830840f829c9236b3d4131697a09da9600","parentId":"wrk_12cabd0990c2431fa06f1275ba0d0a0f","modified":1632946363169,"created":1632946363169,"name":"Default Jar","cookies":[],"_type":"cookie_jar"},{"_id":"spc_3b0f9e7318ff4f70908ca2d88c436111","parentId":"wrk_12cabd0990c2431fa06f1275ba0d0a0f","modified":1632946362745,"created":1632946362745,"fileName":"Painless Car Rental","contents":"","contentType":"yaml","_type":"api_spec"},{"_id":"env_b3f370dafd964840835a09b7637dc8cc","parentId":"env_f91a63830840f829c9236b3d4131697a09da9600","modified":1632956386928,"created":1632956086502,"name":"LOCAL","data":{"elasticsearch_host":"http://localhost:9200","index":"cars"},"dataPropertyOrder":{"&":["elasticsearch_host","index"]},"color":"#00b30c","isPrivate":true,"metaSortKey":1632956086502,"_type":"environment"}]}