{"info":{"_postman_id":"55ccce2e-bdec-40f8-80c9-e191383dba0e","name":"elastic-search","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"13360793","collectionId":"55ccce2e-bdec-40f8-80c9-e191383dba0e","publishedId":"VUxKT9He","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-08-28T13:26:29.000Z"},"item":[{"name":"01. 도큐먼트 삽입","id":"e03041f0-f535-431e-9c0a-bc0fd6a36057","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc/1","description":"<h3 id=\"도큐먼트-삽입\">도큐먼트 삽입</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>1.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_doc/{DOCUMENT_ID} \n2.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_doc\n\n</code></pre><p>위 URL을 통해 {INDEX_ID}의 도큐먼트를 추가할 수 있다.</p>\n<ul>\n<li>Body는 JSON 형식으로 <code>column:value</code> 형태로 값을 전달한다.</li>\n<li>최초 데이터 삽입 시 응답 값의 result 필드는 <code>created</code> 이다.</li>\n<li>동일한 {INDEX_ID}로 요청할 시 데이터는 덮어 씌워지며 result 필드는 <code>updated</code>로 표시된다.</li>\n<li>중복 삽입을 방지하기 위한다면 _create URI를 사용한다. (데이터 중복 삽입 방지 (Create) 참조<ul>\n<li>중복 삽입 시 <code>version conflict, document already exists</code> 에러가 발생한다.</li>\n</ul>\n</li>\n</ul>\n<p>DOCUMENT_ID를 생략할 경우 <code>_id</code>가 자동 생성 된다.</p>\n<p>이때 PUT 메서드로는 자동 생성이 불가능 하다.</p>\n","urlObject":{"protocol":"http","port":"9200","path":["my_index","_doc","1"],"host":["es1"],"query":[],"variable":[]}},"response":[{"id":"1d377688-e65c-4f0f-a252-62b4256f5341","name":"도큐먼트 삽입 - 최초 삽입","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"},{"id":"c520ce9a-b275-4895-affb-0538dc109b18","name":"도큐먼트 삽입 - 최초 삽입 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_doc/1\r\n{\r\n  \"name\": \"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"},{"id":"63226e5c-ca5a-4552-a0f9-97c1e94e1993","name":"도큐먼트 삽입 - 중복 삽입","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 1,\n    \"_primary_term\": 1\n}"},{"id":"f96d594b-2fcd-40b7-933e-9f48320e205e","name":"도큐먼트 삽입 - 중복 삽입 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_doc/1\r\n{\r\n  \"name\": \"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 1,\n    \"_primary_term\": 1\n}"},{"id":"0fee4100-4eb5-4cf7-89f8-f7e8fe87f0cc","name":"도큐먼트 중복 삽입 방지 - 성공 케이스","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_create/11"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"11\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 17,\n    \"_primary_term\": 1\n}"},{"id":"54950922-b2c3-440a-b1a0-f5ccb4393bad","name":"도큐먼트 중복 삽입 방지 - 성공 케이스 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_create/1\r\n{\r\n  \"name\":\"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_create/11"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"11\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 17,\n    \"_primary_term\": 1\n}"},{"id":"dec92918-73ad-489d-b692-daa6973d4877","name":"도큐먼트 중복 삽입 방지 - 실패 케이스","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_create/1"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"root_cause\": [\n            {\n                \"type\": \"version_conflict_engine_exception\",\n                \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n                \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n                \"shard\": \"0\",\n                \"index\": \"my_index\"\n            }\n        ],\n        \"type\": \"version_conflict_engine_exception\",\n        \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n        \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n        \"shard\": \"0\",\n        \"index\": \"my_index\"\n    },\n    \"status\": 409\n}"},{"id":"3c1490dd-ea21-4d88-bd44-d86e38166333","name":"도큐먼트 중복 삽입 방지 - 실패 케이스 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_create/1\r\n{\r\n  \"name\":\"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_create/1"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"root_cause\": [\n            {\n                \"type\": \"version_conflict_engine_exception\",\n                \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n                \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n                \"shard\": \"0\",\n                \"index\": \"my_index\"\n            }\n        ],\n        \"type\": \"version_conflict_engine_exception\",\n        \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n        \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n        \"shard\": \"0\",\n        \"index\": \"my_index\"\n    },\n    \"status\": 409\n}"},{"id":"32e362a6-1533-44e0-9ac3-572b07d33975","name":"도큐먼트 삽입 - _id 자동생성","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"TolLYYIBxjwI42ohmQna\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"},{"id":"1bf444df-97c9-4fb4-aff6-e4836647372f","name":"도큐먼트 삽입 - _id 자동생성 (Kibana)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"POST my_index/_doc\r\n{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\":\"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_doc"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"TolLYYIBxjwI42ohmQna\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"}],"_postman_id":"e03041f0-f535-431e-9c0a-bc0fd6a36057"},{"name":"01. 도큐먼트 삽입 Copy","id":"60cfce42-3249-4fca-95fa-06833965165a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc/1","description":"<h3 id=\"도큐먼트-삽입\">도큐먼트 삽입</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>1.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_doc/{DOCUMENT_ID} \n2.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_doc\n\n</code></pre><p>위 URL을 통해 {INDEX_ID}의 도큐먼트를 추가할 수 있다.</p>\n<ul>\n<li>Body는 JSON 형식으로 <code>column:value</code> 형태로 값을 전달한다.</li>\n<li>최초 데이터 삽입 시 응답 값의 result 필드는 <code>created</code> 이다.</li>\n<li>동일한 {INDEX_ID}로 요청할 시 데이터는 덮어 씌워지며 result 필드는 <code>updated</code>로 표시된다.</li>\n<li>중복 삽입을 방지하기 위한다면 _create URI를 사용한다. (데이터 중복 삽입 방지 (Create) 참조<ul>\n<li>중복 삽입 시 <code>version conflict, document already exists</code> 에러가 발생한다.</li>\n</ul>\n</li>\n</ul>\n<p>DOCUMENT_ID를 생략할 경우 <code>_id</code>가 자동 생성 된다.</p>\n<p>이때 PUT 메서드로는 자동 생성이 불가능 하다.</p>\n","urlObject":{"protocol":"http","port":"9200","path":["my_index","_doc","1"],"host":["es1"],"query":[],"variable":[]}},"response":[{"id":"4a34cf9b-e635-46b3-91dd-2b0284d0513f","name":"도큐먼트 삽입 - 최초 삽입","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"},{"id":"0f70fc70-9ccd-43e3-a680-9456cd944b1b","name":"도큐먼트 삽입 - 최초 삽입 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_doc/1\r\n{\r\n  \"name\": \"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"},{"id":"ee236a9f-9d0c-4846-a080-df381a1ec282","name":"도큐먼트 삽입 - 중복 삽입","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 1,\n    \"_primary_term\": 1\n}"},{"id":"23dcc296-16b9-46e3-b8f3-e618f2044fd4","name":"도큐먼트 삽입 - 중복 삽입 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_doc/1\r\n{\r\n  \"name\": \"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 1,\n    \"_primary_term\": 1\n}"},{"id":"d1975492-a749-439a-a076-cb31457add82","name":"도큐먼트 중복 삽입 방지 - 성공 케이스","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_create/11"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"11\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 17,\n    \"_primary_term\": 1\n}"},{"id":"d19c1187-e106-49fe-a2d7-afad916ce09a","name":"도큐먼트 중복 삽입 방지 - 성공 케이스 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_create/1\r\n{\r\n  \"name\":\"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_create/11"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"11\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 17,\n    \"_primary_term\": 1\n}"},{"id":"859e6b39-9381-4cf6-99e1-10295807ddea","name":"도큐먼트 중복 삽입 방지 - 실패 케이스","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_create/1"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"root_cause\": [\n            {\n                \"type\": \"version_conflict_engine_exception\",\n                \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n                \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n                \"shard\": \"0\",\n                \"index\": \"my_index\"\n            }\n        ],\n        \"type\": \"version_conflict_engine_exception\",\n        \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n        \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n        \"shard\": \"0\",\n        \"index\": \"my_index\"\n    },\n    \"status\": 409\n}"},{"id":"3aea8ced-5d40-46cc-8740-b5559714542b","name":"도큐먼트 중복 삽입 방지 - 실패 케이스 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_create/1\r\n{\r\n  \"name\":\"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_create/1"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"root_cause\": [\n            {\n                \"type\": \"version_conflict_engine_exception\",\n                \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n                \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n                \"shard\": \"0\",\n                \"index\": \"my_index\"\n            }\n        ],\n        \"type\": \"version_conflict_engine_exception\",\n        \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n        \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n        \"shard\": \"0\",\n        \"index\": \"my_index\"\n    },\n    \"status\": 409\n}"},{"id":"42f17994-0434-468e-94fb-36d873c09f70","name":"도큐먼트 삽입 - _id 자동생성","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"TolLYYIBxjwI42ohmQna\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"},{"id":"76313872-8e77-4dd0-be5c-e372451719c2","name":"도큐먼트 삽입 - _id 자동생성 (Kibana)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"POST my_index/_doc\r\n{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\":\"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_doc"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"TolLYYIBxjwI42ohmQna\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"}],"_postman_id":"60cfce42-3249-4fca-95fa-06833965165a"},{"name":"01. 도큐먼트 삽입 Copy","id":"68179cf9-734c-449a-a977-cf280441c1b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc/1","description":"<h3 id=\"도큐먼트-삽입\">도큐먼트 삽입</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>1.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_doc/{DOCUMENT_ID} \n2.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_doc\n\n</code></pre><p>위 URL을 통해 {INDEX_ID}의 도큐먼트를 추가할 수 있다.</p>\n<ul>\n<li>Body는 JSON 형식으로 <code>column:value</code> 형태로 값을 전달한다.</li>\n<li>최초 데이터 삽입 시 응답 값의 result 필드는 <code>created</code> 이다.</li>\n<li>동일한 {INDEX_ID}로 요청할 시 데이터는 덮어 씌워지며 result 필드는 <code>updated</code>로 표시된다.</li>\n<li>중복 삽입을 방지하기 위한다면 _create URI를 사용한다. (데이터 중복 삽입 방지 (Create) 참조<ul>\n<li>중복 삽입 시 <code>version conflict, document already exists</code> 에러가 발생한다.</li>\n</ul>\n</li>\n</ul>\n<p>DOCUMENT_ID를 생략할 경우 <code>_id</code>가 자동 생성 된다.</p>\n<p>이때 PUT 메서드로는 자동 생성이 불가능 하다.</p>\n","urlObject":{"protocol":"http","port":"9200","path":["my_index","_doc","1"],"host":["es1"],"query":[],"variable":[]}},"response":[{"id":"1bbbc8c4-118b-441b-a568-428fd30b5c34","name":"도큐먼트 삽입 - 최초 삽입","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"},{"id":"dc9bb82e-2e87-44fc-8c98-02b658f31e3d","name":"도큐먼트 삽입 - 최초 삽입 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_doc/1\r\n{\r\n  \"name\": \"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"},{"id":"0fe2725c-9954-475c-8706-02ad8dceb78e","name":"도큐먼트 삽입 - 중복 삽입","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 1,\n    \"_primary_term\": 1\n}"},{"id":"9f8b376f-ca4b-4487-8ad5-84da4ad6ee5c","name":"도큐먼트 삽입 - 중복 삽입 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_doc/1\r\n{\r\n  \"name\": \"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 1,\n    \"_primary_term\": 1\n}"},{"id":"479f9ed2-c5b0-440b-9463-af208b9e538a","name":"도큐먼트 중복 삽입 방지 - 성공 케이스","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_create/11"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"11\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 17,\n    \"_primary_term\": 1\n}"},{"id":"25a487af-35a1-4909-87c3-2ea3a8dddd96","name":"도큐먼트 중복 삽입 방지 - 성공 케이스 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_create/1\r\n{\r\n  \"name\":\"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_create/11"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"11\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 17,\n    \"_primary_term\": 1\n}"},{"id":"ef0107f2-e9f8-44c9-b509-bf1fb3351850","name":"도큐먼트 중복 삽입 방지 - 실패 케이스","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_create/1"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"root_cause\": [\n            {\n                \"type\": \"version_conflict_engine_exception\",\n                \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n                \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n                \"shard\": \"0\",\n                \"index\": \"my_index\"\n            }\n        ],\n        \"type\": \"version_conflict_engine_exception\",\n        \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n        \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n        \"shard\": \"0\",\n        \"index\": \"my_index\"\n    },\n    \"status\": 409\n}"},{"id":"6aede43b-529d-4ad8-adae-ebf02d9b586d","name":"도큐먼트 중복 삽입 방지 - 실패 케이스 (Kibana)","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"PUT my_index/_create/1\r\n{\r\n  \"name\":\"LEEGICHEOL\",\r\n  \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_create/1"},"code":200,"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"error\": {\n        \"root_cause\": [\n            {\n                \"type\": \"version_conflict_engine_exception\",\n                \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n                \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n                \"shard\": \"0\",\n                \"index\": \"my_index\"\n            }\n        ],\n        \"type\": \"version_conflict_engine_exception\",\n        \"reason\": \"[1]: version conflict, document already exists (current version [10])\",\n        \"index_uuid\": \"xzqxaNWPTHyJ5FyY0tud9A\",\n        \"shard\": \"0\",\n        \"index\": \"my_index\"\n    },\n    \"status\": 409\n}"},{"id":"4a0b1782-9001-41c8-b22a-8d1ffe58800c","name":"도큐먼트 삽입 - _id 자동생성","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\": \"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_doc"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"TolLYYIBxjwI42ohmQna\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"},{"id":"8fef8849-3ff3-4da7-998d-a122b5f06e40","name":"도큐먼트 삽입 - _id 자동생성 (Kibana)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"POST my_index/_doc\r\n{\r\n    \"name\": \"LEEGICHEOL\",\r\n    \"message\":\"Hello ElasticSearch\"\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_doc"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"TolLYYIBxjwI42ohmQna\",\n    \"_version\": 1,\n    \"result\": \"created\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 1,\n        \"failed\": 0\n    },\n    \"_seq_no\": 0,\n    \"_primary_term\": 1\n}"}],"_postman_id":"68179cf9-734c-449a-a977-cf280441c1b1"},{"name":"02. 도큐먼트 수정","id":"24e7084f-0122-44c0-b0fb-d0b31b5b8241","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"doc\": {\r\n        \"name\": \"CHEEOLEE\"\r\n    }   \r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_update/1","description":"<h3 id=\"도큐먼트-수정\">도큐먼트 수정</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_update/{DOCUMENT_ID}\n\n</code></pre><p>위 URL을 통해 {INDEX_ID}의 도큐먼트를 수정 할 수 있다.</p>\n<ul>\n<li>Body는 JSON 형식으로 Column : Value 형태로 값을 전달하면, 해당하는 필드의 데이터가 업데이트 된다.</li>\n<li>이때 Body는 <code>doc</code>으로 감싸져 있어야 한다.</li>\n<li>존재하지 않는 필드를 입력한다면, 신규 필드가 생성된다.</li>\n<li>사실 말이 update이지 내부적으로는 도큐먼트의 전체 내용을 읽고, <code>_doc</code>에서 지정한 수정 내용/신규 필드를 수정하여 새로운 도큐먼트를 만들어 <code>PUT</code>을 하는 방식을 사용한다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"9200","path":["my_index","_update","1"],"host":["es1"],"query":[],"variable":[]}},"response":[{"id":"6c9bf963-381e-45fb-93d3-7e2a2fc5c799","name":"도큐먼트 수정","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"doc\": {\r\n        \"name\": \"CHEEOLEE\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_update/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 2,\n    \"_primary_term\": 1\n}"},{"id":"e0b95611-1653-49e2-893c-397a1514aa94","name":"도큐먼트 수정 (Kibana)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"POST my_index/_update/1\r\n{\r\n    \"doc\": {\r\n        \"name\": \"CHEEOLEE\"\r\n    }\r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_update/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 2,\n    \"_primary_term\": 1\n}"},{"id":"6bc5d225-64f6-4f0c-a0d0-329739578724","name":"도큐먼트 수정 - 없는 필드 추가","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"doc\": {\r\n        \"age\": 27\r\n    }   \r\n}","options":{"raw":{"language":"json"}}},"url":"http://es1:9200/my_index/_update/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 3,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 2,\n    \"_primary_term\": 1\n}"},{"id":"be0d84de-190f-47a1-a8df-9613c447863a","name":"도큐먼트 수정 - 없는 필드 추가 (Kibana)","originalRequest":{"method":"POST","header":[{"key":"","value":"","type":"text"},{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"POST my_index/_update/1\r\n{\r\n    \"doc\": {\r\n        \"age\": 27\r\n    }   \r\n}","options":{"raw":{"language":"text"}}},"url":"http://es1:9200/my_index/_update/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 3,\n    \"result\": \"updated\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 2,\n    \"_primary_term\": 1\n}"}],"_postman_id":"24e7084f-0122-44c0-b0fb-d0b31b5b8241"},{"name":"03. 도큐먼트 조회","id":"022109c6-680e-4709-81b7-c384118f0ec7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/my_index/_doc/100","description":"<h3 id=\"도큐먼트-조회\">도큐먼트 조회</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_doc/{DOCUMENT_ID} \n\n</code></pre><p>위 URL을 통해 {INDEX_ID}의 도큐먼트를 조회 할 수 있다.</p>\n<ul>\n<li><code>_source</code> 항목에 도큐먼트의 내용이 출력 된다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"9200","path":["my_index","_doc","100"],"host":["es3"],"query":[],"variable":[]}},"response":[{"id":"d409ea8c-4eda-4d0c-af44-58a4f5528eca","name":"도큐먼트 조회","originalRequest":{"method":"GET","header":[],"url":"http://es3:9200/test/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 1,\n    \"_seq_no\": 0,\n    \"_primary_term\": 1,\n    \"found\": true,\n    \"_source\": {\n        \"name\": \"LEEGICHEOL\",\n        \"message\": \"Hello ElasticSearch\"\n    }\n}"},{"id":"e6ca33c2-91a4-4418-8fdc-a9c468dbbc81","name":"도큐먼트 조회 (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":"http://es3:9200/test/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 1,\n    \"_seq_no\": 0,\n    \"_primary_term\": 1,\n    \"found\": true,\n    \"_source\": {\n        \"name\": \"LEEGICHEOL\",\n        \"message\": \"Hello ElasticSearch\"\n    }\n}"},{"id":"a1b3bee3-0eaf-45ef-8977-eb7636eedc96","name":"도큐먼트 조회 - 실패 케이스","originalRequest":{"method":"GET","header":[],"url":"http://es3:9200/test/_doc/100"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"100\",\n    \"found\": false\n}"},{"id":"a62a2d1a-5ac4-4d4a-94bc-eddbda0594c2","name":"도큐먼트 조회 - 실패 케이스 (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":"http://es3:9200/test/_doc/100"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"100\",\n    \"found\": false\n}"}],"_postman_id":"022109c6-680e-4709-81b7-c384118f0ec7"},{"name":"04. 인덱스/도큐먼트 삭제","id":"5d9e221e-a8eb-42da-960b-c9dd18a7575b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/my_index","description":"<h3 id=\"도큐먼트-삭제\">도큐먼트 삭제</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>1.http://{HOST_NAME}:{PORT}/{INDEX_NAME}\n2.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_doc/{DOCUMENT_ID}\n\n</code></pre><p>위 URL을 통해 인덱스 또는 도큐먼트를 삭제할 수 있다.</p>\n<ul>\n<li>인덱스를 삭제할 경우 <code>\"acknowledged\" : true</code> 를 리턴한다.</li>\n<li>도큐먼트를 삭제할 경우 <code>\"result\" : \"deleted\"</code> 를 리턴한다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"9200","path":["my_index"],"host":["es3"],"query":[],"variable":[]}},"response":[{"id":"5cc3b9ba-0f9e-46d2-b00d-88bcf55271ed","name":"인덱스 삭제","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/my_index"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"acknowledged\": true\n}"},{"id":"3fce7dfd-2b18-4103-9e3e-fbb0be26c4fc","name":"인덱스 삭제 (Kibana)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"DELETE my_index","options":{"raw":{"language":"text"}}},"url":"http://es3:9200/my_index"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"acknowledged\": true\n}"},{"id":"4f8bb19a-0ca7-4ce6-8a71-1d6058d1de2d","name":"도큐먼트 삭제","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"deleted\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 1,\n    \"_primary_term\": 1\n}"},{"id":"331a45e4-5936-4edd-8c47-de509ec099f8","name":"도큐먼트 삭제 (Kibana)","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"DELETE my_index/_doc/1","options":{"raw":{"language":"text"}}},"url":"http://es3:9200/my_index/_doc/1"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"_index\": \"my_index\",\n    \"_type\": \"_doc\",\n    \"_id\": \"1\",\n    \"_version\": 2,\n    \"result\": \"deleted\",\n    \"_shards\": {\n        \"total\": 2,\n        \"successful\": 2,\n        \"failed\": 0\n    },\n    \"_seq_no\": 1,\n    \"_primary_term\": 1\n}"}],"_postman_id":"5d9e221e-a8eb-42da-960b-c9dd18a7575b"},{"name":"05. Bulk","id":"b33d1d54-9a9b-4798-be13-b9bda70d0a44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"index\":{\"_index\":\"test\", \"_id\":\"1\"}}\r\n{\"field\":\"value one\"}\r\n{\"index\":{\"_index\":\"test\", \"_id\":\"2\"}}\r\n{\"field\":\"value two\"}\r\n{\"delete\":{\"_index\":\"test\", \"_id\":\"2\"}}\r\n{\"create\":{\"_index\":\"test\", \"_id\":\"3\"}}\r\n{\"field\":\"value three\"}\r\n{\"update\":{\"_index\":\"test\", \"_id\":\"1\"}}\r\n{\"doc\":{\"field\":\"value two\"}}\r\n","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/_bulk","description":"<h3 id=\"bulk-삽입\">Bulk 삽입</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>http://{HOST_NAME}:{PORT}/_bulk\n\n</code></pre><p>위 URL을 통해 Bulk 삽입을 할 수 있다.</p>\n<ul>\n<li>대량 데이터를 삽일 할 경우 <code>_bulk api</code>가 더 효율적이다.</li>\n<li>Postman에서 테스트 할 경우 <code>End of file expected.</code> 에러가 발생한다.<ul>\n<li>마지막 라인에 빈 라인 한 줄을 추가하면 정상 작동한다. (\\n)</li>\n</ul>\n</li>\n<li>bulk 삽입을 할 데이터를 json 형태로 파일화 하고, 파일을 불러와 삽입 할 수 있다.<ul>\n<li>cURL 사용 시 파일 명 앞에 <code>@</code>를 붙여야 한다.</li>\n</ul>\n</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>curl -XPOST \"http://localhost:9200/_bulk\" -H 'Content-Type: application/json' --data-binary @bulk.json\n\n</code></pre>","urlObject":{"protocol":"http","port":"9200","path":["_bulk"],"host":["es3"],"query":[],"variable":[]}},"response":[{"id":"ddf1e740-0631-4a89-b74c-af011ade0e32","name":"Bulk","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"index\":{\"_index\":\"test\", \"_id\":\"1\"}}\r\n{\"field\":\"value one\"}\r\n{\"index\":{\"_index\":\"test\", \"_id\":\"2\"}}\r\n{\"field\":\"value two\"}\r\n{\"delete\":{\"_index\":\"test\", \"_id\":\"2\"}}\r\n{\"create\":{\"_index\":\"test\", \"_id\":\"3\"}}\r\n{\"field\":\"value three\"}\r\n{\"update\":{\"_index\":\"test\", \"_id\":\"1\"}}\r\n{\"doc\":{\"field\":\"value two\"}}\r\n","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/_bulk"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""},{"id":"f784a156-0ca8-4b03-9520-a1f0994887d7","name":"Bulk (Kibana)","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"body":{"mode":"raw","raw":"POST _bulk\r\n{\"index\":{\"_index\":\"test\", \"_id\":\"1\"}}\r\n{\"field\":\"value one\"}\r\n{\"index\":{\"_index\":\"test\", \"_id\":\"2\"}}\r\n{\"field\":\"value two\"}\r\n{\"delete\":{\"_index\":\"test\", \"_id\":\"2\"}}\r\n{\"create\":{\"_index\":\"test\", \"_id\":\"3\"}}\r\n{\"field\":\"value three\"}\r\n{\"update\":{\"_index\":\"test\", \"_id\":\"1\"}}\r\n{\"doc\":{\"field\":\"value two\"}}","options":{"raw":{"language":"text"}}},"url":"http://es3:9200/_bulk"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 213,\n    \"errors\": false,\n    \"items\": [\n        {\n            \"index\": {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"1\",\n                \"_version\": 1,\n                \"result\": \"created\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 1,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 0,\n                \"_primary_term\": 1,\n                \"status\": 201\n            }\n        },\n        {\n            \"index\": {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"2\",\n                \"_version\": 1,\n                \"result\": \"created\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 1,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 1,\n                \"_primary_term\": 1,\n                \"status\": 201\n            }\n        },\n        {\n            \"delete\": {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"2\",\n                \"_version\": 2,\n                \"result\": \"deleted\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 1,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 2,\n                \"_primary_term\": 1,\n                \"status\": 200\n            }\n        },\n        {\n            \"create\": {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_version\": 1,\n                \"result\": \"created\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 1,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 3,\n                \"_primary_term\": 1,\n                \"status\": 201\n            }\n        },\n        {\n            \"update\": {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"1\",\n                \"_version\": 2,\n                \"result\": \"updated\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 1,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 4,\n                \"_primary_term\": 1,\n                \"status\": 200\n            }\n        },\n        {\n            \"create\": {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_version\": 1,\n                \"result\": \"created\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 1,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 5,\n                \"_primary_term\": 1,\n                \"status\": 201\n            }\n        }\n    ]\n}"}],"_postman_id":"b33d1d54-9a9b-4798-be13-b9bda70d0a44"},{"name":"06. URI 조회","id":"2b076ab8-3825-4837-a55d-0a2ca922ab15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/test/_search?q=value","description":"<h3 id=\"uri-조회\">URI 조회</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>1.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_search?q={VALUE}\n2.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_search?q={FIELD}:{VALUE}\n\n</code></pre><p>위 URL을 통해 URI 조회를 할 수 있다.</p>\n<ul>\n<li>쿼리 스트링을 사용한 조회 방식이다.</li>\n<li><code>q</code>는 기본 검색 파라미터이다. (query)</li>\n<li><code>{VALUE}</code>는 field의 value값이다.</li>\n<li>응답값의 <code>hits.total.value</code> 값은 검색 결과의 전체 개수이다.</li>\n<li>응답값의 <code>hits.hits: []</code> 값은 검색 결과 중 가장 정확도가 높은 10건을 출력한다.</li>\n<li><code>AND , OR , NOT</code> 과 같은 연산자도 사용할 수 있다. (example 참고)</li>\n<li>1번 URL은 전체 field 중 value를 찾는데 비해 2번 URL과 같이 <code>{FIELD}:{VALUE}</code> 형태로 요청 할 시, 해당 field만을 지정하여 조회한다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"9200","path":["test","_search"],"host":["es3"],"query":[{"key":"q","value":"value"}],"variable":[]}},"response":[{"id":"8e1433f3-0418-4ace-a63c-9a9f1fd4db20","name":"URI 조회","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://es3:9200/test/_search?q=value","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"value"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 3,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 0.08701137,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 0.08701137,\n                \"_source\": {\n                    \"field\": \"value three\"\n                }\n            },\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"1\",\n                \"_score\": 0.08701137,\n                \"_source\": {\n                    \"field\": \"value two\"\n                }\n            },\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 0.08701137,\n                \"_source\": {\n                    \"field\": \"value four\"\n                }\n            }\n        ]\n    }\n}"},{"id":"84e48ace-b134-4769-9b24-af0cf157bacf","name":"URI 조회 (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":{"raw":"http://es3:9200/test/_search?q=value","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"value"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 2,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 0.10536051,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 0.10536051,\n                \"_source\": {\n                    \"field\": \"value three\"\n                }\n            },\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"1\",\n                \"_score\": 0.10536051,\n                \"_source\": {\n                    \"field\": \"value two\"\n                }\n            }\n        ]\n    }\n}"},{"id":"44bf102f-f2e4-4d94-bbcb-ccba7e0677f5","name":"URI 조회 AND","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://es3:9200/test/_search?q=value AND three","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"value AND three"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 1,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1.4733056,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 1.4733056,\n                \"_source\": {\n                    \"field\": \"value three\"\n                }\n            }\n        ]\n    }\n}"},{"id":"3f7ace50-be83-4de0-b44b-dea50a7b413b","name":"URI 조회 AND (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":{"raw":"http://es3:9200/test/_search?q=value AND three","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"value AND three"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 1,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1.3093333,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 1.3093333,\n                \"_source\": {\n                    \"field\": \"value three\"\n                }\n            }\n        ]\n    }\n}"},{"id":"3b60abc9-9bd0-43f7-8e3d-ebfe508f0fe8","name":"URI 조회 OR","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://es3:9200/test/_search?q=three OR four","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"three OR four"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 2,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1.3862942,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 1.3862942,\n                \"_source\": {\n                    \"field\": \"value three\"\n                }\n            },\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 1.3862942,\n                \"_source\": {\n                    \"field\": \"value four\"\n                }\n            }\n        ]\n    }\n}"},{"id":"2dfc9dba-22a3-4c75-8b2c-3be9219899ba","name":"URI 조회 OR (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":{"raw":"http://es3:9200/test/_search?q=three OR four","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"three OR four"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 1,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1.3093333,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 1.3093333,\n                \"_source\": {\n                    \"field\": \"value three\"\n                }\n            }\n        ]\n    }\n}"},{"id":"03314f00-7fe5-44bc-ba0f-42e9d1cee042","name":"URI 조회 NOT","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://es3:9200/test/_search?q=NOT three","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"NOT three"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 2,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 0.0,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"1\",\n                \"_score\": 0.0,\n                \"_source\": {\n                    \"field\": \"value two\"\n                }\n            },\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 0.0,\n                \"_source\": {\n                    \"field\": \"value four\"\n                }\n            }\n        ]\n    }\n}"},{"id":"ef832121-b943-4df1-8ef6-2069f7307c84","name":"URI 조회 NOT (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":{"raw":"http://es3:9200/test/_search?q=NOT three","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"NOT three"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 2,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 0.0,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"1\",\n                \"_score\": 0.0,\n                \"_source\": {\n                    \"field\": \"value two\"\n                }\n            },\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 0.0,\n                \"_source\": {\n                    \"field\": \"value four\"\n                }\n            }\n        ]\n    }\n}"},{"id":"c3c60ccf-c3b2-4b65-97f1-d86e297d37fa","name":"URI 필드 조회","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":{"raw":"http://es3:9200/test/_search?q=field:four","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"field:four"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 1,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1.3862942,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 1.3862942,\n                \"_source\": {\n                    \"field\": \"value four\"\n                }\n            }\n        ]\n    }\n}"},{"id":"fc76eda5-4ceb-44cb-8d3c-51371b49d65e","name":"URI 필드 조회 (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":{"raw":"http://es3:9200/test/_search?q=field:four","protocol":"http","host":["es3"],"port":"9200","path":["test","_search"],"query":[{"key":"q","value":"field:four"}]}},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 1,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1.3862942,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 1.3862942,\n                \"_source\": {\n                    \"field\": \"value four\"\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"2b076ab8-3825-4837-a55d-0a2ca922ab15"},{"name":"07. 데이터 본문 조회","id":"2e6852b9-0121-4027-b6e5-1d8334aaf58a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n    \"query\": {\r\n        \"match\": {\r\n            \"field\": \"three\"\r\n        }\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/test/_search","description":"<h3 id=\"uri-조회\">URI 조회</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>1.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_search?q={VALUE}\n2.http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_search?q={FIELD}:{VALUE}\n\n</code></pre><p>위 URL을 통해 URI 조회를 할 수 있다.</p>\n<ul>\n<li>쿼리 스트링을 사용한 조회 방식이다.</li>\n<li><code>q</code>는 기본 검색 파라미터이다. (query)</li>\n<li><code>{VALUE}</code>는 field의 value값이다.</li>\n<li>응답값의 <code>hits.total.value</code> 값은 검색 결과의 전체 개수이다.</li>\n<li>응답값의 <code>hits.hits: []</code> 값은 검색 결과 중 가장 정확도가 높은 10건을 출력한다.</li>\n<li><code>AND , OR , NOT</code> 과 같은 연산자도 사용할 수 있다. (example 참고)</li>\n<li>1번 URL은 전체 field 중 value를 찾는데 비해 2번 URL과 같이 <code>{FIELD}:{VALUE}</code> 형태로 요청 할 시, 해당 field만을 지정하여 조회한다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"9200","path":["test","_search"],"host":["es3"],"query":[],"variable":[]}},"response":[{"id":"3e737481-9d19-452d-9a76-0255509db16a","name":"데이터 본문 조회 match","originalRequest":{"method":"GET","header":[],"url":"http://es3:9200/test/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 1,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 1,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1.3862942,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 1.3862942,\n                \"_source\": {\n                    \"field\": \"value three\"\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"2e6852b9-0121-4027-b6e5-1d8334aaf58a"},{"name":"08. MultiTenancy","id":"51fda4b2-7fe7-451e-9357-b24b1e584752","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/logs_2022_08*/_search","description":"<h3 id=\"multi-tenancy\">Multi Tenancy</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>1.http://{HOST_NAME}:{PORT}/{INDEX_NAME},{INDEX_NAME},{INDEX_NAME}/_search\n2.http://{HOST_NAME}:{PORT}/{INDEX_NAME}*/_search\n3.http://{HOST_NAME}:{PORT}/_all/_search\n\n</code></pre><p>위 URL을 통해 Multi Tenancy 조회를 할 수 있다.</p>\n<ul>\n<li>Multi Tenancy는 여러 개의 인덱스를 한꺼번에 묶어서 조회하는 방법이다.</li>\n<li>인덱스를 <code>,</code> 로 구분, 또는 <code>*</code>로 여러 인덱스를 조회 할 수 있다.</li>\n<li>3번의 경우 전체 인덱스를 조회 할 수 있으나, 시스템 인덱스까지 조회해 불필요한 데이터까지 접근하기 때문에 되도록 사용하지 않도록 한다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"9200","path":["logs_2022_08*","_search"],"host":["es3"],"query":[],"variable":[]}},"response":[{"id":"57673cb3-512b-4fb5-84ac-3e672b0c068f","name":"MultiTenancy - 1","originalRequest":{"method":"GET","header":[],"url":"http://es3:9200/logs_2022_08_03,logs_2022_08_04,logs_2022_08_05/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"took\" : 4,\n  \"timed_out\" : false,\n  \"_shards\" : {\n    \"total\" : 3,\n    \"successful\" : 3,\n    \"skipped\" : 0,\n    \"failed\" : 0\n  },\n  \"hits\" : {\n    \"total\" : {\n      \"value\" : 3,\n      \"relation\" : \"eq\"\n    },\n    \"max_score\" : 1.0,\n    \"hits\" : [\n      {\n        \"_index\" : \"logs_2022_08_03\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"LEE\"\n        }\n      },\n      {\n        \"_index\" : \"logs_2022_08_04\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"GI\"\n        }\n      },\n      {\n        \"_index\" : \"logs_2022_08_05\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"CHEOL\"\n        }\n      }\n    ]\n  }\n}\n"},{"id":"6415ab1c-6e32-4561-aa88-5a486d84e713","name":"MultiTenancy - 1 (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":"http://es3:9200/logs_2022_08_03,logs_2022_08_04,logs_2022_08_05/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"took\" : 4,\n  \"timed_out\" : false,\n  \"_shards\" : {\n    \"total\" : 3,\n    \"successful\" : 3,\n    \"skipped\" : 0,\n    \"failed\" : 0\n  },\n  \"hits\" : {\n    \"total\" : {\n      \"value\" : 3,\n      \"relation\" : \"eq\"\n    },\n    \"max_score\" : 1.0,\n    \"hits\" : [\n      {\n        \"_index\" : \"logs_2022_08_03\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"LEE\"\n        }\n      },\n      {\n        \"_index\" : \"logs_2022_08_04\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"GI\"\n        }\n      },\n      {\n        \"_index\" : \"logs_2022_08_05\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"CHEOL\"\n        }\n      }\n    ]\n  }\n}\n"},{"id":"269d29e9-0073-4786-813e-071c6d72325d","name":"MultiTenancy - 2","originalRequest":{"method":"GET","header":[],"url":"http://es3:9200/logs_2022_08*/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"took\" : 4,\n  \"timed_out\" : false,\n  \"_shards\" : {\n    \"total\" : 3,\n    \"successful\" : 3,\n    \"skipped\" : 0,\n    \"failed\" : 0\n  },\n  \"hits\" : {\n    \"total\" : {\n      \"value\" : 3,\n      \"relation\" : \"eq\"\n    },\n    \"max_score\" : 1.0,\n    \"hits\" : [\n      {\n        \"_index\" : \"logs_2022_08_03\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"LEE\"\n        }\n      },\n      {\n        \"_index\" : \"logs_2022_08_04\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"GI\"\n        }\n      },\n      {\n        \"_index\" : \"logs_2022_08_05\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"CHEOL\"\n        }\n      }\n    ]\n  }\n}\n"},{"id":"fb59bbad-b502-4c0d-b23d-026403403bdb","name":"MultiTenancy - 2 (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":"http://es3:9200/logs_2022_08*/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"took\" : 4,\n  \"timed_out\" : false,\n  \"_shards\" : {\n    \"total\" : 3,\n    \"successful\" : 3,\n    \"skipped\" : 0,\n    \"failed\" : 0\n  },\n  \"hits\" : {\n    \"total\" : {\n      \"value\" : 3,\n      \"relation\" : \"eq\"\n    },\n    \"max_score\" : 1.0,\n    \"hits\" : [\n      {\n        \"_index\" : \"logs_2022_08_03\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"LEE\"\n        }\n      },\n      {\n        \"_index\" : \"logs_2022_08_04\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"GI\"\n        }\n      },\n      {\n        \"_index\" : \"logs_2022_08_05\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"name\" : \"CHEOL\"\n        }\n      }\n    ]\n  }\n}\n"},{"id":"861a8f8c-0eef-4611-95b8-8071ca6f802f","name":"MultiTenancy - all","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":"http://es3:9200/_all/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 26,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 23,\n        \"successful\": 23,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 1,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1.3862942,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 1.3862942,\n                \"_source\": {\n                    \"field\": \"value three\"\n                }\n            }\n        ]\n    }\n}"},{"id":"69494f78-e2a0-4501-88ca-6ecc41ffc3d0","name":"MultiTenancy - all (Kibana)","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"text/plain","type":"text"}],"url":"http://es3:9200/_all/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 26,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 23,\n        \"successful\": 23,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 1,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1.3862942,\n        \"hits\": [\n            {\n                \"_index\": \"test\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 1.3862942,\n                \"_source\": {\n                    \"field\": \"value three\"\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"51fda4b2-7fe7-451e-9357-b24b1e584752"},{"name":"09. match all","id":"1fb15374-009d-4532-957c-d3b9595e66f7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"match_all\": {\r\n      \r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/my_index/_search","description":"<h3 id=\"match-all\">Match All</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_search\n\n</code></pre><p>위 URL을 통해 match_all 조회를 할 수 있다.</p>\n<ul>\n<li>match_all 조회는 인덱스 내 전체 검색이며, 검색 시 쿼리를 넣지 않는다면, 자동으로 match_all을 적용한다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"9200","path":["my_index","_search"],"host":["es3"],"query":[],"variable":[]}},"response":[{"id":"2d961b61-c7b4-4bd7-b524-d6441cd16b14","name":"match all body","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 5,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 1,\n        \"hits\": [\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"1\",\n                \"_score\": 1,\n                \"_source\": {\n                    \"message\": \"The quick brown fox\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"2\",\n                \"_score\": 1,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the lazy dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 1,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the quick dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 1,\n                \"_source\": {\n                    \"message\": \"Brown fox brown dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"5\",\n                \"_score\": 1,\n                \"_source\": {\n                    \"message\": \"Lazy jumping dog\"\n                }\n            }\n        ]\n    }\n}"},{"id":"920fc354-6bab-4e4f-91ad-aa9539c8961a","name":"match all","originalRequest":{"method":"GET","header":[],"url":""},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"1fb15374-009d-4532-957c-d3b9595e66f7"},{"name":"10. Full Text Query","id":"ab463b1e-0ff9-4dc4-82a7-72eba2edf28a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"\r\n{\r\n  \"query\": {\r\n    \"match\": {\r\n      \"message\": \"dog\"\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/my_index/_search","description":"<h3 id=\"full-text-query\">Full Text Query</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_search\n\n</code></pre><p>위 URL을 통해 Full Text Query를 할 수 있다.</p>\n<ul>\n<li><code>match</code> 쿼리는 가장 일반적인 쿼리 형태이다.<ul>\n<li><code>message</code> 필드의 <code>value</code>가 포함되어 있는 도큐먼트를 조회한다.</li>\n<li><code>match</code> 쿼리는 구분자를(공백) 통해 여러개의 검색 조건을 넣을 수 있는데, 이때 <code>OR</code> 조건으로 조회된다.</li>\n<li><code>AND</code> 조건으로 조회하기 위해서는 <code>operator</code> 옵션을 사용해야 한다.</li>\n</ul>\n</li>\n<li>만약 <code>quick dog</code> 라는 검색어가 두 개의 조건이 아니라, 공백까지 한 문장이라면, <code>match_phrase</code>를 사용한다.<ul>\n<li><code>slop</code> 옵션은 공백으로 구분된 <code>value</code>의 값 사이 얼마 만큼의 단어가 있을지를 결정 할 수 있다. 만약 <code>jumps dog</code> 검색어에 <code>slop</code>이 3이면 <code>The quick brown fox jumps over the lazy dog</code> 이 검색 될 수 있다.</li>\n</ul>\n</li>\n<li><code>query_string</code>은 루씬의 검색 문법이며, syntax를 강력하게 체크한다. 또한 여러 조건을 조합하기 용이한 문법이다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"9200","path":["my_index","_search"],"host":["es3"],"query":[],"variable":[]}},"response":[{"id":"8986e863-acfd-476f-a8db-45b149540211","name":"match","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 4,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 0.35847887,\n        \"hits\": [\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"5\",\n                \"_score\": 0.35847887,\n                \"_source\": {\n                    \"message\": \"Lazy jumping dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 0.32951736,\n                \"_source\": {\n                    \"message\": \"Brown fox brown dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"2\",\n                \"_score\": 0.23470736,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the lazy dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 0.23470736,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the quick dog\"\n                }\n            }\n        ]\n    }\n}"},{"id":"c523cc9f-cd97-43b0-b4d6-75477d1ab8b9","name":"match OR","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 5,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 0.87627405,\n        \"hits\": [\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 0.87627405,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the quick dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"2\",\n                \"_score\": 0.6744513,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the lazy dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"1\",\n                \"_score\": 0.6173784,\n                \"_source\": {\n                    \"message\": \"The quick brown fox\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"5\",\n                \"_score\": 0.35847887,\n                \"_source\": {\n                    \"message\": \"Lazy jumping dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 0.32951736,\n                \"_source\": {\n                    \"message\": \"Brown fox brown dog\"\n                }\n            }\n        ]\n    }\n}"},{"id":"711f01a5-99cf-4f3a-ac08-124537f4433e","name":"match AND","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"took\" : 3,\n  \"timed_out\" : false,\n  \"_shards\" : {\n    \"total\" : 1,\n    \"successful\" : 1,\n    \"skipped\" : 0,\n    \"failed\" : 0\n  },\n  \"hits\" : {\n    \"total\" : {\n      \"value\" : 2,\n      \"relation\" : \"eq\"\n    },\n    \"max_score\" : 0.87627405,\n    \"hits\" : [\n      {\n        \"_index\" : \"my_index\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"3\",\n        \"_score\" : 0.87627405,\n        \"_source\" : {\n          \"message\" : \"The quick brown fox jumps over the quick dog\"\n        }\n      },\n      {\n        \"_index\" : \"my_index\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"2\",\n        \"_score\" : 0.6744513,\n        \"_source\" : {\n          \"message\" : \"The quick brown fox jumps over the lazy dog\"\n        }\n      }\n    ]\n  }\n}\n"},{"id":"100fa9ca-83e1-408b-8082-966171cc09f9","name":"match_phrase","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 4,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 0.35847887,\n        \"hits\": [\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"5\",\n                \"_score\": 0.35847887,\n                \"_source\": {\n                    \"message\": \"Lazy jumping dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 0.32951736,\n                \"_source\": {\n                    \"message\": \"Brown fox brown dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"2\",\n                \"_score\": 0.23470736,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the lazy dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 0.23470736,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the quick dog\"\n                }\n            }\n        ]\n    }\n}"},{"id":"77b55f36-9a32-4344-9d55-91d94deb7948","name":"match_phrase slop","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 4,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 0.35847887,\n        \"hits\": [\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"5\",\n                \"_score\": 0.35847887,\n                \"_source\": {\n                    \"message\": \"Lazy jumping dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 0.32951736,\n                \"_source\": {\n                    \"message\": \"Brown fox brown dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"2\",\n                \"_score\": 0.23470736,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the lazy dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 0.23470736,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the quick dog\"\n                }\n            }\n        ]\n    }\n}"},{"id":"134fe3da-875e-4c49-a60a-750ee3461e2d","name":"query_string","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 2,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 4,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": 0.35847887,\n        \"hits\": [\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"5\",\n                \"_score\": 0.35847887,\n                \"_source\": {\n                    \"message\": \"Lazy jumping dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_score\": 0.32951736,\n                \"_source\": {\n                    \"message\": \"Brown fox brown dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"2\",\n                \"_score\": 0.23470736,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the lazy dog\"\n                }\n            },\n            {\n                \"_index\": \"my_index\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_score\": 0.23470736,\n                \"_source\": {\n                    \"message\": \"The quick brown fox jumps over the quick dog\"\n                }\n            }\n        ]\n    }\n}"}],"_postman_id":"ab463b1e-0ff9-4dc4-82a7-72eba2edf28a"},{"name":"11. Bool Query","id":"b1677c45-8f30-4112-86f2-b7c8819da927","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"bool\": {\r\n      \"must\": [\r\n        {\r\n          \"match\": {\r\n            \"message\": \"quick\"\r\n          }\r\n        },\r\n        {\r\n          \"match_phrase\": {\r\n            \"message\": \"lazy dog\"\r\n          }\r\n        }\r\n      ]\r\n    }\r\n  }\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/my_index/_search","description":"<h3 id=\"bool-query\">Bool Query</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_search\n\n</code></pre><p>위 URL을 통해 Bool Query를 할 수 있다.</p>\n<ul>\n<li>query_string은 여러 조건을 조합하기 용이하지만, 옵션이 한정되어 있다.</li>\n<li>본문 검색에서 여러 쿼리를 조합하기 위해선 bool 쿼리를 사용하도록 한다.</li>\n<li>bool 쿼리의 인자는 다음과 같다.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>인자</strong></th>\n<th><strong>설명</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>must</td>\n<td>쿼리가 참인 도큐먼트 검색</td>\n</tr>\n<tr>\n<td>must_not</td>\n<td>쿼리가 거짓인 도큐먼트 검색</td>\n</tr>\n<tr>\n<td>should</td>\n<td>쿼리 결과 중 should의 쿼리에 해당하는 도큐먼트에 가중치를 줘 우선 순위가 된다. (스코어 ↑)</td>\n</tr>\n<tr>\n<td>filter</td>\n<td>쿼리가 참인 도큐먼트를 검색하나, 스코어를 계산하지 않아 must보다 검색 속도가 빠르고 캐싱이 가능하다.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"http","port":"9200","path":["my_index","_search"],"host":["es3"],"query":[],"variable":[]}},"response":[{"id":"0ec23d18-7eac-4879-94e6-6fba2cc5f93e","name":"bool must","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n  \"took\" : 2,\r\n  \"timed_out\" : false,\r\n  \"_shards\" : {\r\n    \"total\" : 1,\r\n    \"successful\" : 1,\r\n    \"skipped\" : 0,\r\n    \"failed\" : 0\r\n  },\r\n  \"hits\" : {\r\n    \"total\" : {\r\n      \"value\" : 1,\r\n      \"relation\" : \"eq\"\r\n    },\r\n    \"max_score\" : 1.3887084,\r\n    \"hits\" : [\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"2\",\r\n        \"_score\" : 1.3887084,\r\n        \"_source\" : {\r\n          \"message\" : \"The quick brown fox jumps over the lazy dog\"\r\n        }\r\n      }\r\n    ]\r\n  }\r\n}\r\n"},{"id":"d628ce26-e2eb-4f5d-afb8-bfbf3c9b88dd","name":"bool must_not","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n  \"took\" : 2,\r\n  \"timed_out\" : false,\r\n  \"_shards\" : {\r\n    \"total\" : 1,\r\n    \"successful\" : 1,\r\n    \"skipped\" : 0,\r\n    \"failed\" : 0\r\n  },\r\n  \"hits\" : {\r\n    \"total\" : {\r\n      \"value\" : 2,\r\n      \"relation\" : \"eq\"\r\n    },\r\n    \"max_score\" : 0.0,\r\n    \"hits\" : [\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"4\",\r\n        \"_score\" : 0.0,\r\n        \"_source\" : {\r\n          \"message\" : \"Brown fox brown dog\"\r\n        }\r\n      },\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"5\",\r\n        \"_score\" : 0.0,\r\n        \"_source\" : {\r\n          \"message\" : \"Lazy jumping dog\"\r\n        }\r\n      }\r\n    ]\r\n  }\r\n}\r\n"},{"id":"0721a872-6a8a-426d-9127-934f286d3b8c","name":"bool should","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n  \"took\" : 3,\r\n  \"timed_out\" : false,\r\n  \"_shards\" : {\r\n    \"total\" : 1,\r\n    \"successful\" : 1,\r\n    \"skipped\" : 0,\r\n    \"failed\" : 0\r\n  },\r\n  \"hits\" : {\r\n    \"total\" : {\r\n      \"value\" : 3,\r\n      \"relation\" : \"eq\"\r\n    },\r\n    \"max_score\" : 0.9468958,\r\n    \"hits\" : [\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"1\",\r\n        \"_score\" : 0.9468958,\r\n        \"_source\" : {\r\n          \"message\" : \"The quick brown fox\"\r\n        }\r\n      },\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"3\",\r\n        \"_score\" : 0.87627405,\r\n        \"_source\" : {\r\n          \"message\" : \"The quick brown fox jumps over the quick dog\"\r\n        }\r\n      },\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"2\",\r\n        \"_score\" : 0.6744513,\r\n        \"_source\" : {\r\n          \"message\" : \"The quick brown fox jumps over the lazy dog\"\r\n        }\r\n      }\r\n    ]\r\n  }\r\n}\r\n"},{"id":"32dc6416-a005-45c2-9159-74e7706177e1","name":"bool filter","originalRequest":{"method":"GET","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"url":"http://es3:9200/my_index/_search"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":"{\r\n  \"took\" : 1,\r\n  \"timed_out\" : false,\r\n  \"_shards\" : {\r\n    \"total\" : 1,\r\n    \"successful\" : 1,\r\n    \"skipped\" : 0,\r\n    \"failed\" : 0\r\n  },\r\n  \"hits\" : {\r\n    \"total\" : {\r\n      \"value\" : 3,\r\n      \"relation\" : \"eq\"\r\n    },\r\n    \"max_score\" : 0.0,\r\n    \"hits\" : [\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"1\",\r\n        \"_score\" : 0.0,\r\n        \"_source\" : {\r\n          \"message\" : \"The quick brown fox\"\r\n        }\r\n      },\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"2\",\r\n        \"_score\" : 0.0,\r\n        \"_source\" : {\r\n          \"message\" : \"The quick brown fox jumps over the lazy dog\"\r\n        }\r\n      },\r\n      {\r\n        \"_index\" : \"my_index\",\r\n        \"_type\" : \"_doc\",\r\n        \"_id\" : \"3\",\r\n        \"_score\" : 0.0,\r\n        \"_source\" : {\r\n          \"message\" : \"The quick brown fox jumps over the quick dog\"\r\n        }\r\n      }\r\n    ]\r\n  }\r\n}\r\n"}],"_postman_id":"b1677c45-8f30-4112-86f2-b7c8819da927"},{"name":"12. Range Query","id":"f0aececa-c912-4513-8494-ea612889b4dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"range\": {\r\n      \"price\": {\r\n        \"gte\": 700,\r\n        \"lt\": 900\r\n      }\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/my_index/_search","description":"<h3 id=\"range-query\">Range Query</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>http://{HOST_NAME}:{PORT}/{INDEX_NAME}/_search\n\n</code></pre><p>위 URL을 통해 Range Query를 할 수 있다.</p>\n<ul>\n<li>숫자/날짜 형태의 범위 검색을 한다.</li>\n<li>range 쿼리의 인자는 다음과 같다.</li>\n</ul>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>인자</strong></th>\n<th><strong>설명</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>gte</td>\n<td>같거나 큼</td>\n</tr>\n<tr>\n<td>gt</td>\n<td>큼</td>\n</tr>\n<tr>\n<td>lte</td>\n<td>같거나 작음</td>\n</tr>\n<tr>\n<td>lt</td>\n<td>작음</td>\n</tr>\n</tbody>\n</table>\n</div><ul>\n<li>비교 대상 날짜의 formatting이 다른 경우 <code>||</code>를 사용하여 적용할 수 있다.<ul>\n<li>예를 들어 2022-01-01 ~ 2023년 이전 까지의 데이터를 뽑고 싶다면, <code>yyyy-MM-dd||yyyy</code>라고 입력한다. (example Range Query Date Format1 ~ 2 참조)</li>\n</ul>\n</li>\n<li><code>2016-01-01||+6M</code> , <code>now-365d</code> 와 같은 방식으로 비교 인자를 사용 할 수 있다.<ul>\n<li>2016-01-01||+6M : 2016년 1월 1일에서 6개월 후인 날</li>\n<li>now-365d : 오늘보다 365일 전인 날</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"9200","path":["my_index","_search"],"host":["es3"],"query":[],"variable":[]}},"response":[{"id":"5397f8ac-390d-435e-ab0f-f907a5d37851","name":"dummy data","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"index\":{\"_id\":1}}\r\n{\"model\":\"Samsung GalaxyS 5\",\"price\":475,\"date\":\"2014-02-24\"}\r\n{\"index\":{\"_id\":2}}\r\n{\"model\":\"Samsung GalaxyS 6\",\"price\":795,\"date\":\"2015-03-15\"}\r\n{\"index\":{\"_id\":3}}\r\n{\"model\":\"Samsung GalaxyS 7\",\"price\":859,\"date\":\"2016-02-21\"}\r\n{\"index\":{\"_id\":4}}\r\n{\"model\":\"Samsung GalaxyS 8\",\"price\":959,\"date\":\"2017-03-29\"}\r\n{\"index\":{\"_id\":5}}\r\n{\"model\":\"Samsung GalaxyS 9\",\"price\":1059,\"date\":\"2018-02-25\"}\r\n","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/phones/_bulk"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 236,\n    \"errors\": false,\n    \"items\": [\n        {\n            \"index\": {\n                \"_index\": \"phones\",\n                \"_type\": \"_doc\",\n                \"_id\": \"1\",\n                \"_version\": 1,\n                \"result\": \"created\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 2,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 0,\n                \"_primary_term\": 1,\n                \"status\": 201\n            }\n        },\n        {\n            \"index\": {\n                \"_index\": \"phones\",\n                \"_type\": \"_doc\",\n                \"_id\": \"2\",\n                \"_version\": 1,\n                \"result\": \"created\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 2,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 1,\n                \"_primary_term\": 1,\n                \"status\": 201\n            }\n        },\n        {\n            \"index\": {\n                \"_index\": \"phones\",\n                \"_type\": \"_doc\",\n                \"_id\": \"3\",\n                \"_version\": 1,\n                \"result\": \"created\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 2,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 2,\n                \"_primary_term\": 1,\n                \"status\": 201\n            }\n        },\n        {\n            \"index\": {\n                \"_index\": \"phones\",\n                \"_type\": \"_doc\",\n                \"_id\": \"4\",\n                \"_version\": 1,\n                \"result\": \"created\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 2,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 3,\n                \"_primary_term\": 1,\n                \"status\": 201\n            }\n        },\n        {\n            \"index\": {\n                \"_index\": \"phones\",\n                \"_type\": \"_doc\",\n                \"_id\": \"5\",\n                \"_version\": 1,\n                \"result\": \"created\",\n                \"_shards\": {\n                    \"total\": 2,\n                    \"successful\": 2,\n                    \"failed\": 0\n                },\n                \"_seq_no\": 4,\n                \"_primary_term\": 1,\n                \"status\": 201\n            }\n        }\n    ]\n}"},{"id":"ae4b70d2-1fee-4344-8b24-abd8b0dc5372","name":"Range Query Integer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"range\": {\r\n      \"price\": {\r\n        \"gte\": 700,\r\n        \"lt\": 900\r\n      }\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/phones/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n    \"took\": 1,\n    \"timed_out\": false,\n    \"_shards\": {\n        \"total\": 1,\n        \"successful\": 1,\n        \"skipped\": 0,\n        \"failed\": 0\n    },\n    \"hits\": {\n        \"total\": {\n            \"value\": 0,\n            \"relation\": \"eq\"\n        },\n        \"max_score\": null,\n        \"hits\": []\n    }\n}"},{"id":"6eb22d22-fe59-4b93-bd9a-27464df1400a","name":"Range Query Date","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"range\": {\r\n      \"date\": {\r\n        \"gte\": \"2015-01-01\",\r\n        \"lt\": \"2018-12-31\",\r\n        \"format\": \"yyyy-MM-dd\"\r\n      }\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/phones/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"took\" : 2,\n  \"timed_out\" : false,\n  \"_shards\" : {\n    \"total\" : 1,\n    \"successful\" : 1,\n    \"skipped\" : 0,\n    \"failed\" : 0\n  },\n  \"hits\" : {\n    \"total\" : {\n      \"value\" : 4,\n      \"relation\" : \"eq\"\n    },\n    \"max_score\" : 1.0,\n    \"hits\" : [\n      {\n        \"_index\" : \"phones\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"2\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"model\" : \"Samsung GalaxyS 6\",\n          \"price\" : 795,\n          \"date\" : \"2015-03-15\"\n        }\n      },\n      {\n        \"_index\" : \"phones\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"3\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"model\" : \"Samsung GalaxyS 7\",\n          \"price\" : 859,\n          \"date\" : \"2016-02-21\"\n        }\n      },\n      {\n        \"_index\" : \"phones\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"4\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"model\" : \"Samsung GalaxyS 8\",\n          \"price\" : 959,\n          \"date\" : \"2017-03-29\"\n        }\n      },\n      {\n        \"_index\" : \"phones\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"5\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"model\" : \"Samsung GalaxyS 9\",\n          \"price\" : 1059,\n          \"date\" : \"2018-02-25\"\n        }\n      }\n    ]\n  }\n}"},{"id":"40908170-83eb-4c5f-bfb1-3200b917c6e1","name":"Range Query Date Format","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"range\": {\r\n      \"date\": {\r\n        \"gte\": \"2014-01-01\",\r\n        \"lt\": \"2015\",\r\n        \"format\": \"yyyy-MM-dd||yyyy\"\r\n      }\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/phones/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"took\" : 2,\n  \"timed_out\" : false,\n  \"_shards\" : {\n    \"total\" : 1,\n    \"successful\" : 1,\n    \"skipped\" : 0,\n    \"failed\" : 0\n  },\n  \"hits\" : {\n    \"total\" : {\n      \"value\" : 1,\n      \"relation\" : \"eq\"\n    },\n    \"max_score\" : 1.0,\n    \"hits\" : [\n      {\n        \"_index\" : \"phones\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"1\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"model\" : \"Samsung GalaxyS 5\",\n          \"price\" : 475,\n          \"date\" : \"2014-02-24\"\n        }\n      }\n    ]\n  }\n}\n"},{"id":"bb9e711b-4461-4f2a-b736-92298b7fa751","name":"Range Query Date Format2","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"range\": {\r\n      \"date\": {\r\n        \"gte\": \"31/12/2015\",\r\n        \"lt\": \"2018\",\r\n        \"format\": \"dd/MM/yyyy||yyyy\"\r\n      }\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/phones/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"took\" : 2,\n  \"timed_out\" : false,\n  \"_shards\" : {\n    \"total\" : 1,\n    \"successful\" : 1,\n    \"skipped\" : 0,\n    \"failed\" : 0\n  },\n  \"hits\" : {\n    \"total\" : {\n      \"value\" : 2,\n      \"relation\" : \"eq\"\n    },\n    \"max_score\" : 1.0,\n    \"hits\" : [\n      {\n        \"_index\" : \"phones\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"3\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"model\" : \"Samsung GalaxyS 7\",\n          \"price\" : 859,\n          \"date\" : \"2016-02-21\"\n        }\n      },\n      {\n        \"_index\" : \"phones\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"4\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"model\" : \"Samsung GalaxyS 8\",\n          \"price\" : 959,\n          \"date\" : \"2017-03-29\"\n        }\n      }\n    ]\n  }\n}\n"},{"id":"db571e4e-5529-464b-a8b3-61031273befc","name":"Range Query Date Format3","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"query\": {\r\n    \"range\": {\r\n      \"date\": {\r\n        \"gt\": \"2016-01-01||+6M\",\r\n        \"lt\": \"now-365d\"\r\n      }\r\n    }\r\n  }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://es3:9200/phones/_search"},"_postman_previewlanguage":"json","header":[],"cookie":[],"responseTime":null,"body":"{\n  \"took\" : 2,\n  \"timed_out\" : false,\n  \"_shards\" : {\n    \"total\" : 1,\n    \"successful\" : 1,\n    \"skipped\" : 0,\n    \"failed\" : 0\n  },\n  \"hits\" : {\n    \"total\" : {\n      \"value\" : 2,\n      \"relation\" : \"eq\"\n    },\n    \"max_score\" : 1.0,\n    \"hits\" : [\n      {\n        \"_index\" : \"phones\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"3\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"model\" : \"Samsung GalaxyS 7\",\n          \"price\" : 859,\n          \"date\" : \"2016-02-21\"\n        }\n      },\n      {\n        \"_index\" : \"phones\",\n        \"_type\" : \"_doc\",\n        \"_id\" : \"4\",\n        \"_score\" : 1.0,\n        \"_source\" : {\n          \"model\" : \"Samsung GalaxyS 8\",\n          \"price\" : 959,\n          \"date\" : \"2017-03-29\"\n        }\n      }\n    ]\n  }\n}\n"}],"_postman_id":"f0aececa-c912-4513-8494-ea612889b4dc"}]}