Skip to content

Instantly share code, notes, and snippets.

@udayms
Created April 7, 2015 18:44
Show Gist options
  • Save udayms/f18caeb8ba80ec147733 to your computer and use it in GitHub Desktop.
Save udayms/f18caeb8ba80ec147733 to your computer and use it in GitHub Desktop.
ElasticSearch - Postman Collection to create an Index and insert ~10k records into it.
This file has been truncated, but you can view the full file.
{
"id": "124e573f-bc1b-4d9a-a7ec-c4c17f2095e1",
"name": "Team",
"description": "",
"order": [
"0fa78cfe-0d72-19c6-3ac7-b299a3e95540",
"57194727-54b8-caa3-bb58-c78f0cfcb32f",
"c36dccba-09af-3b85-f3d0-b3bfb925dd59",
"34bea456-2f76-d5ea-f39a-0305ed2bab4e",
"4b5a2548-c9ab-73bb-13d5-e35d256a4e19",
"13c179c6-7c83-73ca-1f0d-05714519883d",
"8b856d41-de50-846e-386d-3145192ce676",
"d0a7790b-3e21-d97b-25f1-6f63f8fa7610",
"71ef791c-d160-5891-ede8-c20d3109bd41",
"c7f24a50-0562-308e-b27f-79ed62f18b19",
"91a0695d-dc06-4b90-1468-497af4096614",
"e41503b5-5486-f699-e2fe-40fbcc4de8f6",
"6378b750-bfbd-43a4-1d38-f0ac79f18dc4",
"773f86eb-5bc8-450e-9944-8637dfcc1694",
"1c925af9-34da-6ab3-d974-4532a34fd8fb"
],
"folders": [],
"timestamp": 1426620896061,
"synced": false,
"owner": 0,
"sharedWithTeam": false,
"subscribed": false,
"remoteLink": "",
"public": false,
"write": true,
"requests": [
{
"id": "0fa78cfe-0d72-19c6-3ac7-b299a3e95540",
"headers": "",
"url": "localhost:9200/team",
"pathVariables": {},
"preRequestScript": "",
"method": "GET",
"collectionId": "124e573f-bc1b-4d9a-a7ec-c4c17f2095e1",
"data": [],
"dataMode": "params",
"name": "Check if Team exists",
"description": "",
"descriptionFormat": "html",
"time": 1426620896061,
"version": 2,
"responses": [],
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"synced": false,
"owner": 0
},
{
"id": "13c179c6-7c83-73ca-1f0d-05714519883d",
"headers": "Client-ID: j3wd479xdi210i2i6m5t5guvr9xm5ui\nAuthorization: OAuth cjfpm7c9jzupzuh0q460kotm9jzw12p\nAccept: application/vnd.twitchtv.v3+json\nContent-Type: application/json\n",
"url": "http://localhost:9200/team/_mapping/member",
"preRequestScript": "",
"pathVariables": {},
"method": "PUT",
"data": [],
"dataMode": "raw",
"version": 2,
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"time": 1428010098370,
"name": "Map Columns - NGram",
"description": "",
"collectionId": "124e573f-bc1b-4d9a-a7ec-c4c17f2095e1",
"responses": [],
"synced": false,
"rawModeData": "{\n\t\"member\": {\n\t \"_all\": {\n \"index_analyzer\": \"nGram_analyzer\",\n \"search_analyzer\": \"whitespace_analyzer\"\n },\n \t\"properties\": {\n \t\"id\": { \"type\": \"string\", \"index\": \"no\", \"include_in_all\": false },\n \t\"name\": { \"type\": \"string\" },\n \"email\": { \"type\": \"string\", \"index\": \"not_analyzed\" },\n \"age\": { \"type\": \"integer\", \"index\": \"no\", \"include_in_all\": false },\n \"phone\": { \"type\": \"string\", \"index\": \"not_analyzed\" },\n \"image\": {\"type\": \"string\", \"index\": \"no\", \"include_in_all\": false},\n \"role\": { \n \"type\": \"multi_field\",\n \"fields\": {\n \"role\": {\"type\": \"string\"},\n \"facets\": {\n \"type\": \"string\",\n \"index\": \"not_analyzed\"\n }\n }\n },\n \"technologies\": {\"type\" : \"string\", \"index\": \"not_analyzed\"}\n }\n }\n}"
},
{
"id": "1c925af9-34da-6ab3-d974-4532a34fd8fb",
"headers": "Client-ID: j3wd479xdi210i2i6m5t5guvr9xm5ui\nAuthorization: OAuth cjfpm7c9jzupzuh0q460kotm9jzw12p\nAccept: application/vnd.twitchtv.v3+json\n",
"url": "http://localhost:9200/team",
"pathVariables": {},
"preRequestScript": "",
"method": "DELETE",
"collectionId": "124e573f-bc1b-4d9a-a7ec-c4c17f2095e1",
"data": [],
"dataMode": "params",
"name": "Delete Team",
"description": "",
"descriptionFormat": "html",
"time": 1426623566945,
"version": 2,
"responses": [],
"currentHelper": "normal",
"helperAttributes": {},
"collectionOwner": 0,
"synced": false,
"owner": 0,
"tests": ""
},
{
"id": "34bea456-2f76-d5ea-f39a-0305ed2bab4e",
"headers": "Content-Type: application/json\n",
"url": "localhost:9200/team/_settings",
"pathVariables": {},
"preRequestScript": "",
"method": "PUT",
"collectionId": "124e573f-bc1b-4d9a-a7ec-c4c17f2095e1",
"data": [],
"dataMode": "raw",
"name": "Mod Settings to add NGram",
"description": "",
"descriptionFormat": "html",
"time": 1426660802078,
"version": 2,
"responses": [],
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"collectionOwner": 0,
"synced": false,
"rawModeData": "{\n \"analysis\": {\n \"filter\": {\n \"nGram_filter\": {\n \"type\": \"nGram\",\n \"min_gram\": 2,\n \"max_gram\": 20,\n \"token_chars\": [\n \"letter\",\n \"digit\",\n \"punctuation\",\n \"symbol\"\n ]\n }\n },\n \"analyzer\": {\n \"nGram_analyzer\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"lowercase\",\n \"asciifolding\",\n \"nGram_filter\"\n ]\n },\n \"whitespace_analyzer\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"lowercase\",\n \"asciifolding\"\n ]\n }\n }\n }\n}",
"owner": 0
},
{
"id": "4b5a2548-c9ab-73bb-13d5-e35d256a4e19",
"headers": "Content-Type: application/json\n",
"url": "localhost:9200/team/_open",
"pathVariables": {},
"preRequestScript": "",
"method": "POST",
"collectionId": "124e573f-bc1b-4d9a-a7ec-c4c17f2095e1",
"data": [],
"dataMode": "raw",
"name": "Open Index",
"description": "",
"descriptionFormat": "html",
"time": 1426661258866,
"version": 2,
"responses": [],
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"collectionOwner": 0,
"synced": false,
"rawModeData": "",
"owner": 0
},
{
"id": "57194727-54b8-caa3-bb58-c78f0cfcb32f",
"headers": "Client-ID: j3wd479xdi210i2i6m5t5guvr9xm5ui\nAuthorization: OAuth cjfpm7c9jzupzuh0q460kotm9jzw12p\nAccept: application/vnd.twitchtv.v3+json\n",
"url": "http://localhost:9200/team",
"pathVariables": {},
"preRequestScript": "",
"method": "PUT",
"collectionId": "124e573f-bc1b-4d9a-a7ec-c4c17f2095e1",
"data": [],
"dataMode": "params",
"name": "Create Team",
"description": "",
"descriptionFormat": "html",
"time": 1426622021351,
"version": 2,
"responses": [],
"currentHelper": "normal",
"helperAttributes": {},
"collectionOwner": 0,
"synced": false,
"owner": 0,
"tests": ""
},
{
"id": "6378b750-bfbd-43a4-1d38-f0ac79f18dc4",
"headers": "",
"url": "localhost:9200/team/_search?pretty=true",
"pathVariables": {},
"preRequestScript": "",
"method": "POST",
"collectionId": "124e573f-bc1b-4d9a-a7ec-c4c17f2095e1",
"data": [],
"dataMode": "raw",
"name": "Search Filtered by selected Facet",
"description": "",
"descriptionFormat": "html",
"time": 1428019398119,
"version": 2,
"responses": [],
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"collectionOwner": 0,
"synced": false,
"rawModeData": "{\n \"size\": 10,\n \"query\": {\n \"filtered\": {\n \"query\": {\n \"match\": {\n \"_all\": {\n \"query\": \"luna\",\n \"operator\": \"and\"\n }\n }\n },\n \"filter\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"role.facets\": \"Drupal Admin\"\n }\n }\n ]\n }\n }\n }\n }\n}'"
},
{
"id": "71ef791c-d160-5891-ede8-c20d3109bd41",
"headers": "Client-ID: j3wd479xdi210i2i6m5t5guvr9xm5ui\nAuthorization: OAuth cjfpm7c9jzupzuh0q460kotm9jzw12p\nAccept: application/vnd.twitchtv.v3+json\n",
"url": "http://localhost:9200/team/member/_bulk",
"pathVariables": {},
"preRequestScript": "",
"method": "PUT",
"collectionId": "124e573f-bc1b-4d9a-a7ec-c4c17f2095e1",
"data": [],
"dataMode": "raw",
"name": "Bulk Add Members - 10K-15k",
"description": "Adding 5000 members to the team index",
"descriptionFormat": "html",
"time": 1427885384567,
"version": 2,
"responses": [],
"tests": "",
"currentHelper": "normal",
"helperAttributes": {},
"collectionOwner": 0,
"synced": false,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment