\",\n \"roles\" : [ \"remote1\" ]\n}"},
{"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":79},"digest":"72a3668ddc95d9aec47cc679d1e7afc5","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"cluster_one\": {\n \"seeds\": [\n \"35.238.149.1:9300\"\n ],\n \"skip_unavailable\": true\n },\n \"cluster_two\": {\n \"seeds\": [\n \"35.238.149.2:9300\"\n ],\n \"skip_unavailable\": false\n },\n \"cluster_three\": { <1>\n \"seeds\": [\n \"35.238.149.3:9300\"\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"esql/esql-across-clusters.asciidoc","line":194},"digest":"0bee07a581c5776e068f6f4efad5a399","lang":"console","found":["python","js"],"source":"POST /_query/async?format=json\n{\n \"query\": \"\"\"\n FROM my-index-000001,cluster_one:my-index-000001,cluster_two:my-index*\n | STATS COUNT(http.response.status_code) BY user.id\n | LIMIT 2\n \"\"\",\n \"include_ccs_metadata\": true\n}"},
{"source_location":{"file":"esql/esql-across-clusters.asciidoc","line":211},"digest":"7fc3fe9d39722f0910778e745d6d09d1","lang":"console-result","found":[],"source":"{\n \"is_running\": false,\n \"took\": 42, <1>\n \"is_partial\": false, <7>\n \"columns\" : [\n {\n \"name\" : \"COUNT(http.response.status_code)\",\n \"type\" : \"long\"\n },\n {\n \"name\" : \"user.id\",\n \"type\" : \"keyword\"\n }\n ],\n \"values\" : [\n [4, \"elkbee\"],\n [1, \"kimchy\"]\n ],\n \"_clusters\": { <2>\n \"total\": 3,\n \"successful\": 3,\n \"running\": 0,\n \"skipped\": 0,\n \"partial\": 0,\n \"failed\": 0,\n \"details\": { <3>\n \"(local)\": { <4>\n \"status\": \"successful\",\n \"indices\": \"blogs\",\n \"took\": 41, <5>\n \"_shards\": { <6>\n \"total\": 13,\n \"successful\": 13,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_one\": {\n \"status\": \"successful\",\n \"indices\": \"cluster_one:my-index-000001\",\n \"took\": 38,\n \"_shards\": {\n \"total\": 4,\n \"successful\": 4,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_two\": {\n \"status\": \"successful\",\n \"indices\": \"cluster_two:my-index*\",\n \"took\": 40,\n \"_shards\": {\n \"total\": 18,\n \"successful\": 18,\n \"skipped\": 1,\n \"failed\": 0\n }\n }\n }\n }\n}"},
{"source_location":{"file":"esql/esql-across-clusters.asciidoc","line":302},"digest":"5bba213a7f543190139d1a69ab2ed076","lang":"console","found":["python","js"],"source":"POST /_query/async?format=json\n{\n \"query\": \"\"\"\n FROM cluster_one:my-index*,cluster_two:logs*\n | STATS COUNT(http.response.status_code) BY user.id\n | LIMIT 2\n \"\"\",\n \"include_ccs_metadata\": true\n}"},
{"source_location":{"file":"esql/esql-across-clusters.asciidoc","line":319},"digest":"3f97bc4effc2a853f5d664dd344837c0","lang":"console-result","found":[],"source":"{\n \"is_running\": false,\n \"took\": 55,\n \"is_partial\": false,\n \"columns\": [\n ... // not shown\n ],\n \"values\": [\n ... // not shown\n ],\n \"_clusters\": {\n \"total\": 2,\n \"successful\": 2,\n \"running\": 0,\n \"skipped\": 0,\n \"partial\": 0,\n \"failed\": 0,\n \"details\": {\n \"cluster_one\": {\n \"status\": \"successful\",\n \"indices\": \"cluster_one:my-index*\",\n \"took\": 38,\n \"_shards\": {\n \"total\": 4,\n \"successful\": 4,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_two\": {\n \"status\": \"skipped\", <1>\n \"indices\": \"cluster_two:logs*\",\n \"took\": 0,\n \"_shards\": {\n \"total\": 0, <2>\n \"successful\": 0,\n \"skipped\": 0,\n \"failed\": 0\n }\n }\n }\n }\n}"},
{"source_location":{"file":"esql/task-management.asciidoc","line":11},"digest":"49c40b51da2469a6e00fea8fa6fbf56e","lang":"console","found":["python","ruby","js"],"source":"GET /_tasks?pretty&detailed&group_by=parents&human&actions=*data/read/esql"},
{"source_location":{"file":"esql/task-management.asciidoc","line":31},"digest":"473c8ddd4e4b7814a64e5fe40d9d6dca","lang":"console","found":["python","ruby","js"],"source":"POST _tasks/2j8UKw1bRO283PMwDugNNg:5326/_cancel"},
{"source_location":{"file":"sql/getting-started.asciidoc","line":9},"digest":"0a46ac2968a574ce145f197f10d30152","lang":"console","found":["python","ruby","js"],"source":"PUT /library/_bulk?refresh\n{\"index\":{\"_id\": \"Leviathan Wakes\"}}\n{\"name\": \"Leviathan Wakes\", \"author\": \"James S.A. Corey\", \"release_date\": \"2011-06-02\", \"page_count\": 561}\n{\"index\":{\"_id\": \"Hyperion\"}}\n{\"name\": \"Hyperion\", \"author\": \"Dan Simmons\", \"release_date\": \"1989-05-26\", \"page_count\": 482}\n{\"index\":{\"_id\": \"Dune\"}}\n{\"name\": \"Dune\", \"author\": \"Frank Herbert\", \"release_date\": \"1965-06-01\", \"page_count\": 604}"},
{"source_location":{"file":"sql/getting-started.asciidoc","line":22},"digest":"dd3b263e9fa4226e59bedfc957d399d2","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=txt\n{\n \"query\": \"SELECT * FROM library WHERE release_date < '2000-01-01'\"\n}"},
{"source_location":{"file":"rest-api/security/create-roles.asciidoc","line":173},"digest":"3fe4264ace04405989141c43aadfff81","lang":"console","found":["python","js"],"source":"POST /_security/role/cli_or_drivers_minimal\n{\n \"cluster\": [\"cluster:monitor/main\"],\n \"indices\": [\n {\n \"names\": [\"test\"],\n \"privileges\": [\"read\", \"indices:admin/get\"]\n }\n ]\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":21},"digest":"b00f3bc0e47905aaa2124d6a025c75d4","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=txt\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC LIMIT 5\"\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":118},"digest":"a97aace57c6442bbb90e1e14effbcda3","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=csv\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":143},"digest":"50096ee0ca53fe8a88450ebb2a50f285","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=csv&delimiter=%3b\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":168},"digest":"d11ea753a5d86f7e630fd69a069948b1","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=json\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":180},"digest":"b670ae25504198d206bcb799c578c3b8","lang":"console-result","found":[],"source":"{\n \"columns\": [\n {\"name\": \"author\", \"type\": \"text\"},\n {\"name\": \"name\", \"type\": \"text\"},\n {\"name\": \"page_count\", \"type\": \"short\"},\n {\"name\": \"release_date\", \"type\": \"datetime\"}\n ],\n \"rows\": [\n [\"Peter F. Hamilton\", \"Pandora's Star\", 768, \"2004-03-02T00:00:00.000Z\"],\n [\"Vernor Vinge\", \"A Fire Upon the Deep\", 613, \"1992-06-01T00:00:00.000Z\"],\n [\"Frank Herbert\", \"Dune\", 604, \"1965-06-01T00:00:00.000Z\"],\n [\"Alastair Reynolds\", \"Revelation Space\", 585, \"2000-03-15T00:00:00.000Z\"],\n [\"James S.A. Corey\", \"Leviathan Wakes\", 561, \"2011-06-02T00:00:00.000Z\"]\n ],\n \"cursor\": \"sDXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAAEWWWdrRlVfSS1TbDYtcW9lc1FJNmlYdw==:BAFmBmF1dGhvcgFmBG5hbWUBZgpwYWdlX2NvdW50AWYMcmVsZWFzZV9kYXRl+v///w8=\"\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":203},"digest":"32cd57666bc80b8cf793d06fa1086669","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=tsv\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":229},"digest":"c554a1791f29bbbcddda84c64deaba6f","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=txt\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":256},"digest":"050b3947025fee403232b8e6e9112dab","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=yaml\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":311},"digest":"582da02c09e0597b4396c87e33571e7b","lang":"console","found":["python","js"],"source":"POST /_sql?format=json\n{\n \"cursor\": \"sDXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAAEWYUpOYklQMHhRUEtld3RsNnFtYU1hQQ==:BAFmBGRhdGUBZgVsaWtlcwFzB21lc3NhZ2UBZgR1c2Vy9f///w8=\"\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":323},"digest":"b50e17e8fa5b2179bb49afb3382c5042","lang":"console-result","found":[],"source":"{\n \"rows\" : [\n [\"Dan Simmons\", \"Hyperion\", 482, \"1989-05-26T00:00:00.000Z\"],\n [\"Iain M. Banks\", \"Consider Phlebas\", 471, \"1987-04-23T00:00:00.000Z\"],\n [\"Neal Stephenson\", \"Snow Crash\", 470, \"1992-06-01T00:00:00.000Z\"],\n [\"Frank Herbert\", \"God Emperor of Dune\", 454, \"1981-05-28T00:00:00.000Z\"],\n [\"Frank Herbert\", \"Children of Dune\", 408, \"1976-04-21T00:00:00.000Z\"]\n ],\n \"cursor\" : \"sDXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAAEWODRMaXBUaVlRN21iTlRyWHZWYUdrdw==:BAFmBmF1dGhvcgFmBG5hbWUBZgpwYWdlX2NvdW50AWYMcmVsZWFzZV9kYXRl9f///w8=\"\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":348},"digest":"f5e50fe8a60467adb2c5ee9e0f2d88da","lang":"console","found":["python","js"],"source":"POST /_sql/close\n{\n \"cursor\": \"sDXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAAEWYUpOYklQMHhRUEtld3RsNnFtYU1hQQ==:BAFmBGRhdGUBZgVsaWtlcwFzB21lc3NhZ2UBZgR1c2Vy9f///w8=\"\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":360},"digest":"3f112f8abf3ad01a2cfb4d4773f987fc","lang":"console-result","found":[],"source":"{\n \"succeeded\" : true\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":375},"digest":"e697ef947f3fb7835f7fadb9125b1043","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=txt\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"filter\": {\n \"range\": {\n \"page_count\": {\n \"gte\" : 100,\n \"lte\" : 200\n }\n }\n },\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":409},"digest":"f235544a883fd04bed2dc369b0c450f3","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=txt\n{\n \"query\": \"SELECT * FROM library\",\n \"filter\": {\n \"terms\": {\n \"_routing\": [\"abc\"]\n }\n }\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":433},"digest":"0a3186bf20b5359393406fc0cb433313","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=json\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5,\n \"columnar\": true\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":446},"digest":"878ff5d73af41a7f96bd067a0da57224","lang":"console-result","found":[],"source":"{\n \"columns\": [\n {\"name\": \"author\", \"type\": \"text\"},\n {\"name\": \"name\", \"type\": \"text\"},\n {\"name\": \"page_count\", \"type\": \"short\"},\n {\"name\": \"release_date\", \"type\": \"datetime\"}\n ],\n \"values\": [\n [\"Peter F. Hamilton\", \"Vernor Vinge\", \"Frank Herbert\", \"Alastair Reynolds\", \"James S.A. Corey\"],\n [\"Pandora's Star\", \"A Fire Upon the Deep\", \"Dune\", \"Revelation Space\", \"Leviathan Wakes\"],\n [768, 613, 604, 585, 561],\n [\"2004-03-02T00:00:00.000Z\", \"1992-06-01T00:00:00.000Z\", \"1965-06-01T00:00:00.000Z\", \"2000-03-15T00:00:00.000Z\", \"2011-06-02T00:00:00.000Z\"]\n ],\n \"cursor\": \"sDXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAAEWWWdrRlVfSS1TbDYtcW9lc1FJNmlYdw==:BAFmBmF1dGhvcgFmBG5hbWUBZgpwYWdlX2NvdW50AWYMcmVsZWFzZV9kYXRl+v///w8=\"\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":469},"digest":"5d5b06468c54308f52c212cca5d58fef","lang":"console","found":["python","js"],"source":"POST /_sql?format=json\n{\n \"cursor\": \"sDXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAAEWWWdrRlVfSS1TbDYtcW9lc1FJNmlYdw==:BAFmBmF1dGhvcgFmBG5hbWUBZgpwYWdlX2NvdW50AWYMcmVsZWFzZV9kYXRl+v///w8=\",\n \"columnar\": true\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":482},"digest":"9152b97bf168296dff891a6dcd4a3251","lang":"console-result","found":[],"source":"{\n \"values\": [\n [\"Dan Simmons\", \"Iain M. Banks\", \"Neal Stephenson\", \"Frank Herbert\", \"Frank Herbert\"],\n [\"Hyperion\", \"Consider Phlebas\", \"Snow Crash\", \"God Emperor of Dune\", \"Children of Dune\"],\n [482, 471, 470, 454, 408],\n [\"1989-05-26T00:00:00.000Z\", \"1987-04-23T00:00:00.000Z\", \"1992-06-01T00:00:00.000Z\", \"1981-05-28T00:00:00.000Z\", \"1976-04-21T00:00:00.000Z\"]\n ],\n \"cursor\": \"46ToAwFzQERYRjFaWEo1UVc1a1JtVjBZMmdCQUFBQUFBQUFBQUVXWjBaNlFXbzNOV0pVY21Wa1NUZDJhV2t3V2xwblp3PT3/////DwQBZgZhdXRob3IBBHRleHQAAAFmBG5hbWUBBHRleHQAAAFmCnBhZ2VfY291bnQBBGxvbmcBAAFmDHJlbGVhc2VfZGF0ZQEIZGF0ZXRpbWUBAAEP\"\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":502},"digest":"172d150e56a225155a62c7b18bf8da67","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=txt\n{\n\t\"query\": \"SELECT YEAR(release_date) AS year FROM library WHERE page_count > 300 AND author = 'Frank Herbert' GROUP BY year HAVING COUNT(*) > 0\"\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":513},"digest":"d9e0cba8e150681d861f5fd1545514e2","lang":"console","found":["python","ruby","js"],"source":"POST /_sql?format=txt\n{\n\t\"query\": \"SELECT YEAR(release_date) AS year FROM library WHERE page_count > ? AND author = ? GROUP BY year HAVING COUNT(*) > ?\",\n\t\"params\": [300, \"Frank Herbert\", 0]\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":535},"digest":"85ae90b63ecba9d2bad16144b054c0a1","lang":"console","found":["python","ruby","js"],"source":"POST _sql?format=txt\n{\n \"runtime_mappings\": {\n \"release_day_of_week\": {\n \"type\": \"keyword\",\n \"script\": \"\"\"\n emit(doc['release_date'].value.dayOfWeekEnum.toString())\n \"\"\"\n }\n },\n \"query\": \"\"\"\n SELECT * FROM library WHERE page_count > 300 AND author = 'Frank Herbert'\n \"\"\"\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":574},"digest":"b17143780e9904bfc1e1c53436497fa1","lang":"console","found":["python","ruby","js"],"source":"POST _sql?format=json\n{\n \"wait_for_completion_timeout\": \"2s\",\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":598},"digest":"4697d0b9250bc536ec6a74c8b32d8c79","lang":"console-result","found":[],"source":"{\n \"id\": \"FnR0TDhyWUVmUmVtWXRWZER4MXZiNFEad2F5UDk2ZVdTVHV1S0xDUy00SklUdzozMTU=\",\n \"is_partial\": true,\n \"is_running\": true,\n \"rows\": [ ]\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":615},"digest":"9887f65af249bbf09190b1153ea2597b","lang":"console","found":["python","ruby","js"],"source":"GET _sql/async/status/FnR0TDhyWUVmUmVtWXRWZER4MXZiNFEad2F5UDk2ZVdTVHV1S0xDUy00SklUdzozMTU="},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":624},"digest":"372445369c220db781bfeba64e3539fa","lang":"console-result","found":[],"source":"{\n \"id\": \"FnR0TDhyWUVmUmVtWXRWZER4MXZiNFEad2F5UDk2ZVdTVHV1S0xDUy00SklUdzozMTU=\",\n \"is_running\": false,\n \"is_partial\": false,\n \"expiration_time_in_millis\": 1611690295000,\n \"completion_status\": 200\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":643},"digest":"2a44d254e6e32abe97515fd2eb34705d","lang":"console","found":["python","ruby","js"],"source":"GET _sql/async/FnR0TDhyWUVmUmVtWXRWZER4MXZiNFEad2F5UDk2ZVdTVHV1S0xDUy00SklUdzozMTU=?wait_for_completion_timeout=2s&format=json"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":657},"digest":"f9f541ae23a184301913f07e62d1afd3","lang":"console","found":["python","ruby","js"],"source":"POST _sql?format=json\n{\n \"keep_alive\": \"2d\",\n \"wait_for_completion_timeout\": \"2s\",\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":673},"digest":"1313c540fef7e7c18a066f07789673fc","lang":"console","found":["python","ruby","js"],"source":"GET _sql/async/FmdMX2pIang3UWhLRU5QS0lqdlppYncaMUpYQ05oSkpTc3kwZ21EdC1tbFJXQToxOTI=?keep_alive=5d&wait_for_completion_timeout=2s&format=json"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":683},"digest":"6a50c1c53673fe9cc3cbda38a2853cdd","lang":"console","found":["python","ruby","js"],"source":"DELETE _sql/async/delete/FmdMX2pIang3UWhLRU5QS0lqdlppYncaMUpYQ05oSkpTc3kwZ21EdC1tbFJXQToxOTI="},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":696},"digest":"f1508a2221152842894819e762e63491","lang":"console","found":["python","ruby","js"],"source":"POST _sql?format=json\n{\n \"keep_on_completion\": true,\n \"wait_for_completion_timeout\": \"2s\",\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 5\n}"},
{"source_location":{"file":"sql/endpoints/rest.asciidoc","line":712},"digest":"eddcb848d124e244f1a143c53ca6e3b1","lang":"console-result","found":[],"source":"{\n \"id\": \"Fnc5UllQdUVWU0NxRFNMbWxNYXplaFEaMUpYQ05oSkpTc3kwZ21EdC1tbFJXQTo0NzA=\",\n \"is_partial\": false,\n \"is_running\": false,\n \"rows\": ...,\n \"columns\": ...,\n \"cursor\": ...\n}"},
{"source_location":{"file":"sql/endpoints/translate.asciidoc","line":9},"digest":"64a6fb4bcb8cfea139a0e5d3765c063a","lang":"console","found":["python","ruby","js"],"source":"POST /_sql/translate\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 10\n}"},
{"source_location":{"file":"sql/endpoints/translate.asciidoc","line":21},"digest":"42f04a31e7cd459740273c19612b344f","lang":"console-result","found":[],"source":"{\n \"size\": 10,\n \"_source\": false,\n \"fields\": [\n {\n \"field\": \"author\"\n },\n {\n \"field\": \"name\"\n },\n {\n \"field\": \"page_count\"\n },\n {\n \"field\": \"release_date\",\n \"format\": \"strict_date_optional_time_nanos\"\n }\n ],\n \"sort\": [\n {\n \"page_count\": {\n \"order\": \"desc\",\n \"missing\": \"_first\",\n \"unmapped_type\": \"short\"\n }\n }\n ],\n \"track_total_hits\": -1\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":52},"digest":"5df3226fdc8f1f66ae92ba2f527af8c0","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1\n{\n \"my_field\": 5\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":67},"digest":"599454613ac699d447537e79e65ae35a","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_search\n{\n \"script_fields\": {\n \"my_doubled_field\": {\n \"script\": { <1>\n \"source\": \"doc['my_field'].value * params['multiplier']\", <2>\n \"params\": {\n \"multiplier\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":143},"digest":"305c4cfb2ad4b58b4c319ffbf32336cc","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_search\n{\n \"script_fields\": {\n \"my_doubled_field\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"doc['my_field'].value * params.get('multiplier');\",\n \"params\": {\n \"multiplier\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":165},"digest":"bfb1aa83da8e3f414d50b5ed7894ed33","lang":"console","found":["python","js"],"source":"GET my-index-000001/_search\n{\n \"script_fields\": {\n \"my_doubled_field\": {\n \"script\": {\n \"source\": \"field('my_field').get(null) * params['multiplier']\",\n \"params\": {\n \"multiplier\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":220},"digest":"099006ab11b52ea99693401dceee8bad","lang":"console","found":["python","ruby","js"],"source":"POST _scripts/calculate-score\n{\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"Math.log(_score * 2) + params['my_modifier']\"\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":234},"digest":"08e08feb514b24006e13f258d617d873","lang":"console","found":["python","ruby","js"],"source":"GET _scripts/calculate-score"},
{"source_location":{"file":"scripting/using.asciidoc","line":243},"digest":"0b615ff4ef5a8847ee8109b2fd11619a","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\": {\n \"match\": {\n \"message\": \"some message\"\n }\n },\n \"script\": {\n \"id\": \"calculate-score\", <1>\n \"params\": {\n \"my_modifier\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":271},"digest":"4061fd5ba7221ca85805ed14d59a6bc5","lang":"console","found":["python","ruby","js"],"source":"DELETE _scripts/calculate-score"},
{"source_location":{"file":"scripting/using.asciidoc","line":287},"digest":"0a758d9dec74d9e942cf41a06499234f","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1\n{\n \"counter\" : 1,\n \"tags\" : [\"red\"]\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":299},"digest":"77c50f982906718ecc59aa708aed728f","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update/1\n{\n \"script\" : {\n \"source\": \"ctx._source.counter += params.count\",\n \"lang\": \"painless\",\n \"params\" : {\n \"count\" : 4\n }\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":317},"digest":"1c3e3c4f2d268f1826a9b417e1868a58","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update/1\n{\n \"script\": {\n \"source\": \"ctx._source.tags.add(params['tag'])\",\n \"lang\": \"painless\",\n \"params\": {\n \"tag\": \"blue\"\n }\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":338},"digest":"468f7ec42cdd8287cdea3ec1cea4a514","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update/1\n{\n \"script\": {\n \"source\": \"if (ctx._source.tags.contains(params['tag'])) { ctx._source.tags.remove(ctx._source.tags.indexOf(params['tag'])) }\",\n \"lang\": \"painless\",\n \"params\": {\n \"tag\": \"blue\"\n }\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":356},"digest":"3341d3bbb53052447a37c92a04c14b70","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update/1\n{\n \"script\" : \"ctx._source.new_field = 'value_of_new_field'\"\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":367},"digest":"febb71d774e0a1fc67454213d7448c53","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update/1\n{\n \"script\" : \"ctx._source.remove('new_field')\"\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":380},"digest":"582c4b05401dbc190b19411282d85310","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update/1\n{\n \"script\": {\n \"source\": \"if (ctx._source.tags.contains(params['tag'])) { ctx.op = 'delete' } else { ctx.op = 'none' }\",\n \"lang\": \"painless\",\n \"params\": {\n \"tag\": \"green\"\n }\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":441},"digest":"3b606631284877f9bca15051630995ad","lang":"console","found":["python","ruby","js"],"source":"GET /my_test_scores/_search\n{\n \"query\": {\n \"term\": {\n \"grad_year\": \"2099\"\n }\n },\n \"sort\": [\n {\n \"_script\": {\n \"type\": \"number\",\n \"script\": {\n \"source\": \"doc['math_score'].value + doc['verbal_score'].value\"\n },\n \"order\": \"desc\"\n }\n }\n ]\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":472},"digest":"dda949d20d07a9edbe64cefc623df945","lang":"console","found":["python","ruby","js"],"source":"PUT /my_test_scores/_mapping\n{\n \"properties\": {\n \"total_score\": {\n \"type\": \"long\"\n }\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":489},"digest":"295b3aaeb223612afdd991744dc9c873","lang":"console","found":["python","ruby","js"],"source":"PUT _ingest/pipeline/my_test_scores_pipeline\n{\n \"description\": \"Calculates the total test score\",\n \"processors\": [\n {\n \"script\": {\n \"source\": \"ctx.total_score = (ctx.math_score + ctx.verbal_score)\"\n }\n }\n ]\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":508},"digest":"f70ff57c80cdbce3f1e7c63ee307c92d","lang":"console","found":["python","ruby","js"],"source":"POST /_reindex\n{\n \"source\": {\n \"index\": \"my_test_scores\"\n },\n \"dest\": {\n \"index\": \"my_test_scores_2\",\n \"pipeline\": \"my_test_scores_pipeline\"\n }\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":525},"digest":"c23e32775340d7bc6f46820313014d8a","lang":"console","found":["python","ruby","js"],"source":"POST /my_test_scores_2/_doc/?pipeline=my_test_scores_pipeline\n{\n \"student\": \"kimchy\",\n \"grad_year\": \"2099\",\n \"math_score\": 1200,\n \"verbal_score\": 800\n}"},
{"source_location":{"file":"scripting/using.asciidoc","line":542},"digest":"9a743b6575c6fe5acdf46024a7fda8a1","lang":"console","found":["python","ruby","js"],"source":"GET /my_test_scores_2/_search\n{\n \"query\": {\n \"term\": {\n \"grad_year\": \"2099\"\n }\n },\n \"sort\": [\n {\n \"total_score\": {\n \"order\": \"desc\"\n }\n }\n ]\n}"},
{"source_location":{"file":"scripting/dissect-syntax.asciidoc","line":89},"digest":"d681b643da0d7f0a384f627b6d56111b","lang":"console","found":["python","ruby","js"],"source":"PUT my-index\n{\n \"mappings\": {\n \"properties\": {\n \"message\": {\n \"type\": \"wildcard\"\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/dissect-syntax.asciidoc","line":115},"digest":"277fefe2b623af61f8274f73efc97aed","lang":"console","found":["python","js"],"source":"POST /_scripts/painless/_execute\n{\n \"script\": {\n \"source\": \"\"\"\n String response=dissect('%{clientip} %{ident} %{auth} [%{@timestamp}] \"%{verb} %{request} HTTP/%{httpversion}\" %{response} %{size}').extract(doc[\"message\"].value)?.response;\n if (response != null) emit(Integer.parseInt(response)); <1>\n \"\"\"\n },\n \"context\": \"long_field\", <2>\n \"context_setup\": {\n \"index\": \"my-index\",\n \"document\": { <3>\n \"message\": \"\"\"247.37.0.0 - - [30/Apr/2020:14:31:22 -0500] \"GET /images/hm_nbg.jpg HTTP/1.0\" 304 0\"\"\"\n }\n }\n}"},
{"source_location":{"file":"scripting/dissect-syntax.asciidoc","line":141},"digest":"63341f00bfd88f810b8431464bfaa7d4","lang":"console-result","found":[],"source":"{\n \"result\" : [\n 304\n ]\n}"},
{"source_location":{"file":"scripting/dissect-syntax.asciidoc","line":162},"digest":"bd7fa2f122ab861cd00e0b9154d120b3","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index/\n{\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"format\": \"strict_date_optional_time||epoch_second\",\n \"type\": \"date\"\n },\n \"message\": {\n \"type\": \"wildcard\"\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/dissect-syntax.asciidoc","line":183},"digest":"efa146bf81a9351ba42b92a6decbcfee","lang":"console","found":["python","js"],"source":"PUT my-index/_mappings\n{\n \"runtime\": {\n \"http.response\": {\n \"type\": \"long\",\n \"script\": \"\"\"\n String response=dissect('%{clientip} %{ident} %{auth} [%{@timestamp}] \"%{verb} %{request} HTTP/%{httpversion}\" %{response} %{size}').extract(doc[\"message\"].value)?.response;\n if (response != null) emit(Integer.parseInt(response));\n \"\"\"\n }\n }\n}"},
{"source_location":{"file":"scripting/dissect-syntax.asciidoc","line":204},"digest":"2eebaeb3983a04ef7a9201c1f4d40dc1","lang":"console","found":["python","ruby","js"],"source":"POST /my-index/_bulk?refresh=true\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:30:17-05:00\",\"message\":\"40.135.0.0 - - [30/Apr/2020:14:30:17 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:30:53-05:00\",\"message\":\"232.0.0.0 - - [30/Apr/2020:14:30:53 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:12-05:00\",\"message\":\"26.1.0.0 - - [30/Apr/2020:14:31:12 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:19-05:00\",\"message\":\"247.37.0.0 - - [30/Apr/2020:14:31:19 -0500] \\\"GET /french/splash_inet.html HTTP/1.0\\\" 200 3781\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:22-05:00\",\"message\":\"247.37.0.0 - - [30/Apr/2020:14:31:22 -0500] \\\"GET /images/hm_nbg.jpg HTTP/1.0\\\" 304 0\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:27-05:00\",\"message\":\"252.0.0.0 - - [30/Apr/2020:14:31:27 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:28-05:00\",\"message\":\"not a valid apache log\"}"},
{"source_location":{"file":"scripting/dissect-syntax.asciidoc","line":228},"digest":"cc7f1c74ede6810e2c9db19256d6b653","lang":"console","found":["python","ruby","js"],"source":"GET my-index/_search\n{\n \"query\": {\n \"match\": {\n \"http.response\": \"304\"\n }\n },\n \"fields\" : [\"http.response\"]\n}"},
{"source_location":{"file":"scripting/dissect-syntax.asciidoc","line":250},"digest":"79cb85efd5e4c435e73b253cb9feabb1","lang":"console","found":["python","js"],"source":"GET my-index/_search\n{\n \"runtime_mappings\": {\n \"http.response\": {\n \"type\": \"long\",\n \"script\": \"\"\"\n String response=dissect('%{clientip} %{ident} %{auth} [%{@timestamp}] \"%{verb} %{request} HTTP/%{httpversion}\" %{response} %{size}').extract(doc[\"message\"].value)?.response;\n if (response != null) emit(Integer.parseInt(response));\n \"\"\"\n }\n },\n \"query\": {\n \"match\": {\n \"http.response\": \"304\"\n }\n },\n \"fields\" : [\"http.response\"]\n}"},
{"source_location":{"file":"scripting/dissect-syntax.asciidoc","line":274},"digest":"15706be181f9078d8dc3ca9b11986ac8","lang":"console-result","found":[],"source":"{\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index\",\n \"_id\" : \"D47UqXkBByC8cgZrkbOm\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"timestamp\" : \"2020-04-30T14:31:22-05:00\",\n \"message\" : \"247.37.0.0 - - [30/Apr/2020:14:31:22 -0500] \\\"GET /images/hm_nbg.jpg HTTP/1.0\\\" 304 0\"\n },\n \"fields\" : {\n \"http.response\" : [\n 304\n ]\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"scripting/grok-syntax.asciidoc","line":102},"digest":"bd7fa2f122ab861cd00e0b9154d120b3","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index/\n{\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"format\": \"strict_date_optional_time||epoch_second\",\n \"type\": \"date\"\n },\n \"message\": {\n \"type\": \"wildcard\"\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/grok-syntax.asciidoc","line":123},"digest":"d06a649bc38aa9a6433b64efa78d8cb5","lang":"console","found":["python","ruby","js"],"source":"POST /my-index/_bulk?refresh\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:30:17-05:00\",\"message\":\"40.135.0.0 - - [30/Apr/2020:14:30:17 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:30:53-05:00\",\"message\":\"232.0.0.0 - - [30/Apr/2020:14:30:53 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:12-05:00\",\"message\":\"26.1.0.0 - - [30/Apr/2020:14:31:12 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:19-05:00\",\"message\":\"247.37.0.0 - - [30/Apr/2020:14:31:19 -0500] \\\"GET /french/splash_inet.html HTTP/1.0\\\" 200 3781\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:22-05:00\",\"message\":\"247.37.0.0 - - [30/Apr/2020:14:31:22 -0500] \\\"GET /images/hm_nbg.jpg HTTP/1.0\\\" 304 0\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:27-05:00\",\"message\":\"252.0.0.0 - - [30/Apr/2020:14:31:27 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:28-05:00\",\"message\":\"not a valid apache log\"}"},
{"source_location":{"file":"scripting/grok-syntax.asciidoc","line":150},"digest":"09ce0ec993c494ac01f01ef9815fcc4b","lang":"console","found":["python","js"],"source":"PUT my-index/_mappings\n{\n \"runtime\": {\n \"http.clientip\": {\n \"type\": \"ip\",\n \"script\": \"\"\"\n String clientip=grok('%{COMMONAPACHELOG}').extract(doc[\"message\"].value)?.clientip;\n if (clientip != null) emit(clientip);\n \"\"\"\n }\n }\n}"},
{"source_location":{"file":"scripting/grok-syntax.asciidoc","line":176},"digest":"4527d9bb12cf738111a188af235d5d4c","lang":"console","found":["python","js"],"source":"GET my-index/_search\n{\n \"runtime_mappings\": {\n \"http.clientip\": {\n \"type\": \"ip\",\n \"script\": \"\"\"\n String clientip=grok('%{COMMONAPACHELOG}').extract(doc[\"message\"].value)?.clientip;\n if (clientip != null) emit(clientip);\n \"\"\"\n }\n },\n \"query\": {\n \"match\": {\n \"http.clientip\": \"40.135.0.0\"\n }\n },\n \"fields\" : [\"http.clientip\"]\n}"},
{"source_location":{"file":"scripting/grok-syntax.asciidoc","line":205},"digest":"0091fc75271b1fbbd4269622a4881e8b","lang":"console","found":["python","ruby","js"],"source":"GET my-index/_search\n{\n \"query\": {\n \"match\": {\n \"http.clientip\": \"40.135.0.0\"\n }\n },\n \"fields\" : [\"http.clientip\"]\n}"},
{"source_location":{"file":"scripting/grok-syntax.asciidoc","line":224},"digest":"9b58eaca581c1f32605fcacdfa5cd58e","lang":"console-result","found":[],"source":"{\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index\",\n \"_id\" : \"1iN2a3kBw4xTzEDqyYE0\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"timestamp\" : \"2020-04-30T14:30:17-05:00\",\n \"message\" : \"40.135.0.0 - - [30/Apr/2020:14:30:17 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"\n },\n \"fields\" : {\n \"http.clientip\" : [\n \"40.135.0.0\"\n ]\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":29},"digest":"bd7fa2f122ab861cd00e0b9154d120b3","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index/\n{\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"format\": \"strict_date_optional_time||epoch_second\",\n \"type\": \"date\"\n },\n \"message\": {\n \"type\": \"wildcard\"\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":52},"digest":"d06a649bc38aa9a6433b64efa78d8cb5","lang":"console","found":["python","ruby","js"],"source":"POST /my-index/_bulk?refresh\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:30:17-05:00\",\"message\":\"40.135.0.0 - - [30/Apr/2020:14:30:17 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:30:53-05:00\",\"message\":\"232.0.0.0 - - [30/Apr/2020:14:30:53 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:12-05:00\",\"message\":\"26.1.0.0 - - [30/Apr/2020:14:31:12 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:19-05:00\",\"message\":\"247.37.0.0 - - [30/Apr/2020:14:31:19 -0500] \\\"GET /french/splash_inet.html HTTP/1.0\\\" 200 3781\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:22-05:00\",\"message\":\"247.37.0.0 - - [30/Apr/2020:14:31:22 -0500] \\\"GET /images/hm_nbg.jpg HTTP/1.0\\\" 304 0\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:27-05:00\",\"message\":\"252.0.0.0 - - [30/Apr/2020:14:31:27 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{\"index\":{}}\n{\"timestamp\":\"2020-04-30T14:31:28-05:00\",\"message\":\"not a valid apache log\"}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":84},"digest":"0adbce828234ca221e3d03b184296407","lang":"console","found":["python","js"],"source":"PUT my-index/_mappings\n{\n \"runtime\": {\n \"http.clientip\": {\n \"type\": \"ip\",\n \"script\": \"\"\"\n String clientip=grok('%{COMMONAPACHELOG}').extract(doc[\"message\"].value)?.clientip;\n if (clientip != null) emit(clientip); <1>\n \"\"\"\n }\n }\n}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":107},"digest":"0091fc75271b1fbbd4269622a4881e8b","lang":"console","found":["python","ruby","js"],"source":"GET my-index/_search\n{\n \"query\": {\n \"match\": {\n \"http.clientip\": \"40.135.0.0\"\n }\n },\n \"fields\" : [\"http.clientip\"]\n}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":125},"digest":"13f015769493c2dc4e56ea54945b1975","lang":"console-result","found":[],"source":"{\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index\",\n \"_id\" : \"Rq-ex3gBA_A0V6dYGLQ7\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"timestamp\" : \"2020-04-30T14:30:17-05:00\",\n \"message\" : \"40.135.0.0 - - [30/Apr/2020:14:30:17 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"\n },\n \"fields\" : {\n \"http.clientip\" : [\n \"40.135.0.0\"\n ]\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":173},"digest":"efa146bf81a9351ba42b92a6decbcfee","lang":"console","found":["python","js"],"source":"PUT my-index/_mappings\n{\n \"runtime\": {\n \"http.response\": {\n \"type\": \"long\",\n \"script\": \"\"\"\n String response=dissect('%{clientip} %{ident} %{auth} [%{@timestamp}] \"%{verb} %{request} HTTP/%{httpversion}\" %{response} %{size}').extract(doc[\"message\"].value)?.response;\n if (response != null) emit(Integer.parseInt(response));\n \"\"\"\n }\n }\n}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":193},"digest":"cc7f1c74ede6810e2c9db19256d6b653","lang":"console","found":["python","ruby","js"],"source":"GET my-index/_search\n{\n \"query\": {\n \"match\": {\n \"http.response\": \"304\"\n }\n },\n \"fields\" : [\"http.response\"]\n}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":210},"digest":"58c609ca1fdd8fd7970decc6c9d2a2ca","lang":"console-result","found":[],"source":"{\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index\",\n \"_id\" : \"Sq-ex3gBA_A0V6dYGLQ7\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"timestamp\" : \"2020-04-30T14:31:22-05:00\",\n \"message\" : \"247.37.0.0 - - [30/Apr/2020:14:31:22 -0500] \\\"GET /images/hm_nbg.jpg HTTP/1.0\\\" 304 0\"\n },\n \"fields\" : {\n \"http.response\" : [\n 304\n ]\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":260},"digest":"376fbc965e1b093f6dbc198a94c83aa9","lang":"console","found":["python","ruby","js"],"source":"POST /my-index/_bulk?refresh\n{\"index\":{}}\n{\"gc\": \"[2021-04-27T16:16:34.699+0000][82460][gc,heap,exit] class space used 266K, capacity 384K, committed 384K, reserved 1048576K\"}\n{\"index\":{}}\n{\"gc\": \"[2021-03-24T20:27:24.184+0000][90239][gc,heap,exit] class space used 15255K, capacity 16726K, committed 16844K, reserved 1048576K\"}\n{\"index\":{}}\n{\"gc\": \"[2021-03-24T20:27:24.184+0000][90239][gc,heap,exit] Metaspace used 115409K, capacity 119541K, committed 120248K, reserved 1153024K\"}\n{\"index\":{}}\n{\"gc\": \"[2021-04-19T15:03:21.735+0000][84408][gc,heap,exit] class space used 14503K, capacity 15894K, committed 15948K, reserved 1048576K\"}\n{\"index\":{}}\n{\"gc\": \"[2021-04-19T15:03:21.735+0000][84408][gc,heap,exit] Metaspace used 107719K, capacity 111775K, committed 112724K, reserved 1146880K\"}\n{\"index\":{}}\n{\"gc\": \"[2021-04-27T16:16:34.699+0000][82460][gc,heap,exit] class space used 266K, capacity 367K, committed 384K, reserved 1048576K\"}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":324},"digest":"ec44999b6618ac6bbacb23eb08c0fa88","lang":"console","found":["python","js"],"source":"GET my-index/_search\n{\n \"runtime_mappings\": {\n \"gc_size\": {\n \"type\": \"keyword\",\n \"script\": \"\"\"\n Map gc=dissect('[%{@timestamp}][%{code}][%{desc}] %{ident} used %{usize}, capacity %{csize}, committed %{comsize}, reserved %{rsize}').extract(doc[\"gc.keyword\"].value);\n if (gc != null) emit(\"used\" + ' ' + gc.usize + ', ' + \"capacity\" + ' ' + gc.csize + ', ' + \"committed\" + ' ' + gc.comsize);\n \"\"\"\n }\n },\n \"size\": 1,\n \"aggs\": {\n \"sizes\": {\n \"terms\": {\n \"field\": \"gc_size\",\n \"size\": 10\n }\n }\n },\n \"fields\" : [\"gc_size\"]\n}"},
{"source_location":{"file":"scripting/common-script-uses.asciidoc","line":354},"digest":"eff000517234247970b198b74ceef29f","lang":"console-result","found":[],"source":"{\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\" : 6,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index\",\n \"_id\" : \"GXx3H3kBKGE42WRNlddJ\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"gc\" : \"[2021-04-27T16:16:34.699+0000][82460][gc,heap,exit] class space used 266K, capacity 384K, committed 384K, reserved 1048576K\"\n },\n \"fields\" : {\n \"gc_size\" : [\n \"used 266K, capacity 384K, committed 384K\"\n ]\n }\n }\n ]\n },\n \"aggregations\" : {\n \"sizes\" : {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\" : [\n {\n \"key\" : \"used 107719K, capacity 111775K, committed 112724K\",\n \"doc_count\" : 1\n },\n {\n \"key\" : \"used 115409K, capacity 119541K, committed 120248K\",\n \"doc_count\" : 1\n },\n {\n \"key\" : \"used 14503K, capacity 15894K, committed 15948K\",\n \"doc_count\" : 1\n },\n {\n \"key\" : \"used 15255K, capacity 16726K, committed 16844K\",\n \"doc_count\" : 1\n },\n {\n \"key\" : \"used 266K, capacity 367K, committed 384K\",\n \"doc_count\" : 1\n },\n {\n \"key\" : \"used 266K, capacity 384K, committed 384K\",\n \"doc_count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"scripting/fields.asciidoc","line":50},"digest":"6326f5c6fd2a6e6b1aff9a643b94f455","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"text\": \"quick brown fox\",\n \"popularity\": 1\n}\n\nPUT my-index-000001/_doc/2?refresh\n{\n \"text\": \"quick fox\",\n \"popularity\": 5\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"function_score\": {\n \"query\": {\n \"match\": {\n \"text\": \"quick brown fox\"\n }\n },\n \"script_score\": {\n \"script\": {\n \"lang\": \"expression\",\n \"source\": \"_score * doc['popularity']\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/fields.asciidoc","line":92},"digest":"49a19615ebe2c013b8321152163478ab","lang":"console","found":["python","js"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"text\": \"quick brown fox\"\n}\n\nPUT my-index-000001/_doc/2?refresh\n{\n \"text\": \"quick fox\"\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\": { <1>\n \"match\": {\n \"text\": \"quick brown fox\"\n }\n },\n \"script\": {\n \"source\": \"_termStats.termFreq().getAverage()\" <2>\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/fields.asciidoc","line":167},"digest":"ab24bfdfd8c1c7b3044b21a3b4684370","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"cost_price\": 100\n}\n\nGET my-index-000001/_search\n{\n \"script_fields\": {\n \"sales_price\": {\n \"script\": {\n \"lang\": \"expression\",\n \"source\": \"doc['cost_price'] * markup\",\n \"params\": {\n \"markup\": 0.2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/fields.asciidoc","line":244},"digest":"99160b7c3c3fc1fac98aeb426dbcb3cb","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"first_name\": {\n \"type\": \"text\"\n },\n \"last_name\": {\n \"type\": \"text\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1?refresh\n{\n \"first_name\": \"Barry\",\n \"last_name\": \"White\"\n}\n\nGET my-index-000001/_search\n{\n \"script_fields\": {\n \"full_name\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"params._source.first_name + ' ' + params._source.last_name\"\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/fields.asciidoc","line":287},"digest":"c186ecf6f799ddff7add1abdecea5821","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"full_name\": {\n \"type\": \"text\",\n \"store\": true\n },\n \"title\": {\n \"type\": \"text\",\n \"store\": true\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1?refresh\n{\n \"full_name\": \"Alice Ball\",\n \"title\": \"Professor\"\n}\n\nGET my-index-000001/_search\n{\n \"script_fields\": {\n \"name_with_title\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"params._fields['title'].value + ' ' + params._fields['full_name'].value\"\n }\n }\n }\n}"},
{"source_location":{"file":"scripting/engine.asciidoc","line":28},"digest":"d9de409a4a197ce7cbe3714e07155d34","lang":"console","found":["python","js"],"source":"POST /_search\n{\n \"query\": {\n \"function_score\": {\n \"query\": {\n \"match\": {\n \"body\": \"foo\"\n }\n },\n \"functions\": [\n {\n \"script_score\": {\n \"script\": {\n \"source\": \"pure_df\",\n \"lang\" : \"expert_scripts\",\n \"params\": {\n \"field\": \"body\",\n \"term\": \"foo\"\n }\n }\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":36},"digest":"01da9e0620e48270617fc248e6415cac","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search\n{\n \"aggs\": {\n \"my-agg-name\": {\n \"terms\": {\n \"field\": \"my-field\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":54},"digest":"3e921e509db090744ce28d80b6a7ac8e","lang":"console-result","found":[],"source":"{\n \"took\": 78,\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.0,\n \"hits\": [...]\n },\n \"aggregations\": {\n \"my-agg-name\": { <1>\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": []\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":95},"digest":"98f43710cedd28a464e8abf4b09bcc9a","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"now-1d/d\",\n \"lt\": \"now/d\"\n }\n }\n },\n \"aggs\": {\n \"my-agg-name\": {\n \"terms\": {\n \"field\": \"my-field\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":126},"digest":"c96669604d0e66a097ddf3093b025ccd","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my-agg-name\": {\n \"terms\": {\n \"field\": \"my-field\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":149},"digest":"c733f20641b20e124f26198534755d6d","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search\n{\n \"aggs\": {\n \"my-first-agg-name\": {\n \"terms\": {\n \"field\": \"my-field\"\n }\n },\n \"my-second-agg-name\": {\n \"avg\": {\n \"field\": \"my-other-field\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":180},"digest":"7404c6e809fee5d7eb9678a82a872806","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search\n{\n \"aggs\": {\n \"my-agg-name\": {\n \"terms\": {\n \"field\": \"my-field\"\n },\n \"aggs\": {\n \"my-sub-agg-name\": {\n \"avg\": {\n \"field\": \"my-other-field\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":207},"digest":"bee98b1f5bebbc28b77affe7f2231883","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"my-agg-name\": { <1>\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"foo\",\n \"doc_count\": 5,\n \"my-sub-agg-name\": { <2>\n \"value\": 75.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":241},"digest":"fa946228e946da256d40264c8b070a1a","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search\n{\n \"aggs\": {\n \"my-agg-name\": {\n \"terms\": {\n \"field\": \"my-field\"\n },\n \"meta\": {\n \"my-metadata-field\": \"foo\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":262},"digest":"cf959dcbc91405429c5a7c96faee146b","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"my-agg-name\": {\n \"meta\": {\n \"my-metadata-field\": \"foo\"\n },\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": []\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":287},"digest":"aa699ff3234f54d091575a38e859a627","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search?typed_keys\n{\n \"aggs\": {\n \"my-agg-name\": {\n \"histogram\": {\n \"field\": \"my-field\",\n \"interval\": 1000\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":314},"digest":"7b71495937ac2d036de8b1c3b6767ff4","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"histogram#my-agg-name\": { <1>\n \"buckets\": []\n }\n }\n}"},
{"source_location":{"file":"aggregations.asciidoc","line":337},"digest":"91ed08faaed54cb5ace9a295af937439","lang":"console","found":["python","js"],"source":"GET /my-index-000001/_search?size=0\n{\n \"runtime_mappings\": {\n \"message.length\": {\n \"type\": \"long\",\n \"script\": \"emit(doc['message.keyword'].value.length())\"\n }\n },\n \"aggs\": {\n \"message_length\": {\n \"histogram\": {\n \"interval\": 10,\n \"field\": \"message.length\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/adjacency-matrix-aggregation.asciidoc","line":36},"digest":"2ba15c066d55a9b26d49b09471151cb4","lang":"console","found":["python","ruby","js"],"source":"PUT emails/_bulk?refresh\n{ \"index\" : { \"_id\" : 1 } }\n{ \"accounts\" : [\"hillary\", \"sidney\"]}\n{ \"index\" : { \"_id\" : 2 } }\n{ \"accounts\" : [\"hillary\", \"donald\"]}\n{ \"index\" : { \"_id\" : 3 } }\n{ \"accounts\" : [\"vladimir\", \"donald\"]}\n\nGET emails/_search\n{\n \"size\": 0,\n \"aggs\" : {\n \"interactions\" : {\n \"adjacency_matrix\" : {\n \"filters\" : {\n \"grpA\" : { \"terms\" : { \"accounts\" : [\"hillary\", \"sidney\"] }},\n \"grpB\" : { \"terms\" : { \"accounts\" : [\"donald\", \"mitt\"] }},\n \"grpC\" : { \"terms\" : { \"accounts\" : [\"vladimir\", \"nigel\"] }}\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/adjacency-matrix-aggregation.asciidoc","line":67},"digest":"c1f8e4dbfebddcfa68163f094929ff74","lang":"console-result","found":[],"source":"{\n \"took\": 9,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"interactions\": {\n \"buckets\": [\n {\n \"key\":\"grpA\",\n \"doc_count\": 2\n },\n {\n \"key\":\"grpA&grpB\",\n \"doc_count\": 1\n },\n {\n \"key\":\"grpB\",\n \"doc_count\": 2\n },\n {\n \"key\":\"grpB&grpC\",\n \"doc_count\": 1\n },\n {\n \"key\":\"grpC\",\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/autodatehistogram-aggregation.asciidoc","line":17},"digest":"a45244aa3adbf3c793fede100786d1f5","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sales_over_time\": {\n \"auto_date_histogram\": {\n \"field\": \"date\",\n \"buckets\": 10\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/autodatehistogram-aggregation.asciidoc","line":43},"digest":"79b43a1bf02fb5b38f54b8d5aa5dab53","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sales_over_time\": {\n \"auto_date_histogram\": {\n \"field\": \"date\",\n \"buckets\": 5,\n \"format\": \"yyyy-MM-dd\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/autodatehistogram-aggregation.asciidoc","line":64},"digest":"403cb84ab2ac82540f1190e205740872","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"sales_over_time\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015-01-01\",\n \"key\": 1420070400000,\n \"doc_count\": 3\n },\n {\n \"key_as_string\": \"2015-02-01\",\n \"key\": 1422748800000,\n \"doc_count\": 2\n },\n {\n \"key_as_string\": \"2015-03-01\",\n \"key\": 1425168000000,\n \"doc_count\": 2\n }\n ],\n \"interval\": \"1M\"\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/autodatehistogram-aggregation.asciidoc","line":124},"digest":"769f75829a8e6670aa4cf83d0d737046","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"date\": \"2015-10-01T00:30:00Z\"\n}\n\nPUT my-index-000001/_doc/2?refresh\n{\n \"date\": \"2015-10-01T01:30:00Z\"\n}\n\nPUT my-index-000001/_doc/3?refresh\n{\n \"date\": \"2015-10-01T02:30:00Z\"\n}\n\nGET my-index-000001/_search?size=0\n{\n \"aggs\": {\n \"by_day\": {\n \"auto_date_histogram\": {\n \"field\": \"date\",\n \"buckets\" : 3\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/autodatehistogram-aggregation.asciidoc","line":157},"digest":"861de90753e4d31aaba4aa57fc95400a","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"by_day\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015-10-01T00:00:00.000Z\",\n \"key\": 1443657600000,\n \"doc_count\": 1\n },\n {\n \"key_as_string\": \"2015-10-01T01:00:00.000Z\",\n \"key\": 1443661200000,\n \"doc_count\": 1\n },\n {\n \"key_as_string\": \"2015-10-01T02:00:00.000Z\",\n \"key\": 1443664800000,\n \"doc_count\": 1\n }\n ],\n \"interval\": \"1h\"\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/autodatehistogram-aggregation.asciidoc","line":190},"digest":"fc5a81f34d416e4b45ca8a859dd3b8f1","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_search?size=0\n{\n \"aggs\": {\n \"by_day\": {\n \"auto_date_histogram\": {\n \"field\": \"date\",\n \"buckets\" : 3,\n \"time_zone\": \"-01:00\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/autodatehistogram-aggregation.asciidoc","line":212},"digest":"7a23b07f42ed52868b374883e4be1348","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"by_day\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015-09-30T23:00:00.000-01:00\", <1>\n \"key\": 1443657600000,\n \"doc_count\": 1\n },\n {\n \"key_as_string\": \"2015-10-01T00:00:00.000-01:00\",\n \"key\": 1443661200000,\n \"doc_count\": 1\n },\n {\n \"key_as_string\": \"2015-10-01T01:00:00.000-01:00\",\n \"key\": 1443664800000,\n \"doc_count\": 1\n }\n ],\n \"interval\": \"1h\"\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/autodatehistogram-aggregation.asciidoc","line":270},"digest":"afcacd742d18bf220e02f0bc6891526d","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sale_date\": {\n \"auto_date_histogram\": {\n \"field\": \"date\",\n \"buckets\": 10,\n \"minimum_interval\": \"minute\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/autodatehistogram-aggregation.asciidoc","line":293},"digest":"59726e3c90e1218487a781508788c243","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sale_date\": {\n \"auto_date_histogram\": {\n \"field\": \"date\",\n \"buckets\": 10,\n \"missing\": \"2000/01/01\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/categorize-text-aggregation.asciidoc","line":158},"digest":"8b652e3205a5e9e0187f56ce3c36ae4e","lang":"console","found":["python","js"],"source":"POST log-messages/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"categories\": {\n \"categorize_text\": {\n \"field\": \"message\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/categorize-text-aggregation.asciidoc","line":175},"digest":"b314af9078a8b18c2e44fbaff6b52980","lang":"console-result","found":[],"source":"{\n \"aggregations\" : {\n \"categories\" : {\n \"buckets\" : [\n {\n \"doc_count\" : 3,\n \"key\" : \"Node shutting down\",\n \"regex\" : \".*?Node.+?shutting.+?down.*?\",\n \"max_matching_length\" : 49\n },\n {\n \"doc_count\" : 1,\n \"key\" : \"Node starting up\",\n \"regex\" : \".*?Node.+?starting.+?up.*?\",\n \"max_matching_length\" : 47\n },\n {\n \"doc_count\" : 1,\n \"key\" : \"User foo_325 logging on\",\n \"regex\" : \".*?User.+?foo_325.+?logging.+?on.*?\",\n \"max_matching_length\" : 52\n },\n {\n \"doc_count\" : 1,\n \"key\" : \"User foo_864 logged off\",\n \"regex\" : \".*?User.+?foo_864.+?logged.+?off.*?\",\n \"max_matching_length\" : 52\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/categorize-text-aggregation.asciidoc","line":213},"digest":"6742a8cd0b7b4c1c325ce2f22faf6cb4","lang":"console","found":["python","js"],"source":"POST log-messages/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"categories\": {\n \"categorize_text\": {\n \"field\": \"message\",\n \"categorization_filters\": [\"\\\\w+\\\\_\\\\d{3}\"] <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/categorize-text-aggregation.asciidoc","line":235},"digest":"547973e7d5ba9f5b775211fbb3574cf8","lang":"console-result","found":[],"source":"{\n \"aggregations\" : {\n \"categories\" : {\n \"buckets\" : [\n {\n \"doc_count\" : 3,\n \"key\" : \"Node shutting down\",\n \"regex\" : \".*?Node.+?shutting.+?down.*?\",\n \"max_matching_length\" : 49\n },\n {\n \"doc_count\" : 1,\n \"key\" : \"Node starting up\",\n \"regex\" : \".*?Node.+?starting.+?up.*?\",\n \"max_matching_length\" : 47\n },\n {\n \"doc_count\" : 1,\n \"key\" : \"User logged off\",\n \"regex\" : \".*?User.+?logged.+?off.*?\",\n \"max_matching_length\" : 52\n },\n {\n \"doc_count\" : 1,\n \"key\" : \"User logging on\",\n \"regex\" : \".*?User.+?logging.+?on.*?\",\n \"max_matching_length\" : 52\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/categorize-text-aggregation.asciidoc","line":282},"digest":"4c77d12039fe2445c9251e33979071ac","lang":"console","found":["python","js"],"source":"POST log-messages/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"categories\": {\n \"categorize_text\": {\n \"field\": \"message\",\n \"categorization_filters\": [\"\\\\w+\\\\_\\\\d{3}\"], <1>\n \"similarity_threshold\": 11 <2>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/categorize-text-aggregation.asciidoc","line":307},"digest":"925180ac710ca1cbc0ce098a70a21b9e","lang":"console-result","found":[],"source":"{\n \"aggregations\" : {\n \"categories\" : {\n \"buckets\" : [\n {\n \"doc_count\" : 4,\n \"key\" : \"Node\",\n \"regex\" : \".*?Node.*?\",\n \"max_matching_length\" : 49\n },\n {\n \"doc_count\" : 2,\n \"key\" : \"User\",\n \"regex\" : \".*?User.*?\",\n \"max_matching_length\" : 52\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/categorize-text-aggregation.asciidoc","line":334},"digest":"d1299b9ae1e621d2fdd0b8644c142ace","lang":"console","found":["python","js"],"source":"POST log-messages/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"daily\": {\n \"date_histogram\": {\n \"field\": \"time\",\n \"fixed_interval\": \"1d\"\n },\n \"aggs\": {\n \"categories\": {\n \"categorize_text\": {\n \"field\": \"message\",\n \"categorization_filters\": [\"\\\\w+\\\\_\\\\d{3}\"]\n },\n \"aggs\": {\n \"hit\": {\n \"top_hits\": {\n \"size\": 1,\n \"sort\": [\"time\"],\n \"_source\": \"message\"\n }\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/categorize-text-aggregation.asciidoc","line":367},"digest":"574dd6b7b0af0b15a99789c9a517a4a8","lang":"console-result","found":[],"source":"{\n \"aggregations\" : {\n \"daily\" : {\n \"buckets\" : [\n {\n \"key_as_string\" : \"2016-02-07T00:00:00.000Z\",\n \"key\" : 1454803200000,\n \"doc_count\" : 3,\n \"categories\" : {\n \"buckets\" : [\n {\n \"doc_count\" : 2,\n \"key\" : \"Node shutting down\",\n \"regex\" : \".*?Node.+?shutting.+?down.*?\",\n \"max_matching_length\" : 49,\n \"hit\" : {\n \"hits\" : {\n \"total\" : {\n \"value\" : 2,\n \"relation\" : \"eq\"\n },\n \"max_score\" : null,\n \"hits\" : [\n {\n \"_index\" : \"log-messages\",\n \"_id\" : \"1\",\n \"_score\" : null,\n \"_source\" : {\n \"message\" : \"2016-02-07T00:00:00+0000 Node 3 shutting down\"\n },\n \"sort\" : [\n 1454803260000\n ]\n }\n ]\n }\n }\n },\n {\n \"doc_count\" : 1,\n \"key\" : \"Node starting up\",\n \"regex\" : \".*?Node.+?starting.+?up.*?\",\n \"max_matching_length\" : 47,\n \"hit\" : {\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : null,\n \"hits\" : [\n {\n \"_index\" : \"log-messages\",\n \"_id\" : \"2\",\n \"_score\" : null,\n \"_source\" : {\n \"message\" : \"2016-02-07T00:00:00+0000 Node 5 starting up\"\n },\n \"sort\" : [\n 1454803320000\n ]\n }\n ]\n }\n }\n }\n ]\n }\n },\n {\n \"key_as_string\" : \"2016-02-08T00:00:00.000Z\",\n \"key\" : 1454889600000,\n \"doc_count\" : 3,\n \"categories\" : {\n \"buckets\" : [\n {\n \"doc_count\" : 1,\n \"key\" : \"Node shutting down\",\n \"regex\" : \".*?Node.+?shutting.+?down.*?\",\n \"max_matching_length\" : 49,\n \"hit\" : {\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : null,\n \"hits\" : [\n {\n \"_index\" : \"log-messages\",\n \"_id\" : \"4\",\n \"_score\" : null,\n \"_source\" : {\n \"message\" : \"2016-02-08T00:00:00+0000 Node 5 shutting down\"\n },\n \"sort\" : [\n 1454889660000\n ]\n }\n ]\n }\n }\n },\n {\n \"doc_count\" : 1,\n \"key\" : \"User logged off\",\n \"regex\" : \".*?User.+?logged.+?off.*?\",\n \"max_matching_length\" : 52,\n \"hit\" : {\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : null,\n \"hits\" : [\n {\n \"_index\" : \"log-messages\",\n \"_id\" : \"6\",\n \"_score\" : null,\n \"_source\" : {\n \"message\" : \"2016-02-08T00:00:00+0000 User foo_864 logged off\"\n },\n \"sort\" : [\n 1454889840000\n ]\n }\n ]\n }\n }\n },\n {\n \"doc_count\" : 1,\n \"key\" : \"User logging on\",\n \"regex\" : \".*?User.+?logging.+?on.*?\",\n \"max_matching_length\" : 52,\n \"hit\" : {\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : null,\n \"hits\" : [\n {\n \"_index\" : \"log-messages\",\n \"_id\" : \"5\",\n \"_score\" : null,\n \"_source\" : {\n \"message\" : \"2016-02-08T00:00:00+0000 User foo_325 logging on\"\n },\n \"sort\" : [\n 1454889720000\n ]\n }\n ]\n }\n }\n }\n ]\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/children-aggregation.asciidoc","line":16},"digest":"9399cbbd133ec2b7aad2820fa617ae3a","lang":"console","found":["python","ruby","js"],"source":"PUT child_example\n{\n \"mappings\": {\n \"properties\": {\n \"join\": {\n \"type\": \"join\",\n \"relations\": {\n \"question\": \"answer\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/children-aggregation.asciidoc","line":39},"digest":"dfdf82b8d99436582f150117695190b3","lang":"console","found":["python","ruby","js"],"source":"PUT child_example/_doc/1\n{\n \"join\": {\n \"name\": \"question\"\n },\n \"body\": \"I have Windows 2003 server and i bought a new Windows 2008 server...\",\n \"title\": \"Whats the best way to file transfer my site from server to a newer one?\",\n \"tags\": [\n \"windows-server-2003\",\n \"windows-server-2008\",\n \"file-transfer\"\n ]\n}"},
{"source_location":{"file":"aggregations/bucket/children-aggregation.asciidoc","line":59},"digest":"e9fe3b53b5b6e1ff9566b5237c0fa513","lang":"console","found":["python","ruby","js"],"source":"PUT child_example/_doc/2?routing=1\n{\n \"join\": {\n \"name\": \"answer\",\n \"parent\": \"1\"\n },\n \"owner\": {\n \"location\": \"Norfolk, United Kingdom\",\n \"display_name\": \"Sam\",\n \"id\": 48\n },\n \"body\": \"
Unfortunately you're pretty much limited to FTP...\",\n \"creation_date\": \"2009-05-04T13:45:37.030\"\n}\n\nPUT child_example/_doc/3?routing=1&refresh\n{\n \"join\": {\n \"name\": \"answer\",\n \"parent\": \"1\"\n },\n \"owner\": {\n \"location\": \"Norfolk, United Kingdom\",\n \"display_name\": \"Troll\",\n \"id\": 49\n },\n \"body\": \"
Use Linux...\",\n \"creation_date\": \"2009-05-05T13:45:37.030\"\n}"},
{"source_location":{"file":"aggregations/bucket/children-aggregation.asciidoc","line":95},"digest":"d5132d34ae922fa8e898889b627a1405","lang":"console","found":["python","ruby","js"],"source":"POST child_example/_search?size=0\n{\n \"aggs\": {\n \"top-tags\": {\n \"terms\": {\n \"field\": \"tags.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"to-answers\": {\n \"children\": {\n \"type\" : \"answer\" <1>\n },\n \"aggs\": {\n \"top-names\": {\n \"terms\": {\n \"field\": \"owner.display_name.keyword\",\n \"size\": 10\n }\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/children-aggregation.asciidoc","line":132},"digest":"31a7e249ea2a328e8eccc76800219af0","lang":"console-result","found":[],"source":"{\n \"took\": 25,\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\": null,\n \"hits\": []\n },\n \"aggregations\": {\n \"top-tags\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"file-transfer\",\n \"doc_count\": 1, <1>\n \"to-answers\": {\n \"doc_count\": 2, <2>\n \"top-names\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"Sam\",\n \"doc_count\": 1\n },\n {\n \"key\": \"Troll\",\n \"doc_count\": 1\n }\n ]\n }\n }\n },\n {\n \"key\": \"windows-server-2003\",\n \"doc_count\": 1, <1>\n \"to-answers\": {\n \"doc_count\": 2, <2>\n \"top-names\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"Sam\",\n \"doc_count\": 1\n },\n {\n \"key\": \"Troll\",\n \"doc_count\": 1\n }\n ]\n }\n }\n },\n {\n \"key\": \"windows-server-2008\",\n \"doc_count\": 1, <1>\n \"to-answers\": {\n \"doc_count\": 2, <2>\n \"top-names\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"Sam\",\n \"doc_count\": 1\n },\n {\n \"key\": \"Troll\",\n \"doc_count\": 1\n }\n ]\n }\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":131},"digest":"0a9173f3b22716c78653976dc4799eae","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"product\": { \"terms\": { \"field\": \"product\" } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":151},"digest":"b09f155602f9b2a6c40fe7c4a5436b7a","lang":"console","found":["python","js"],"source":"GET /_search\n{\n \"runtime_mappings\": {\n \"day_of_week\": {\n \"type\": \"keyword\",\n \"script\": \"\"\"\n emit(doc['timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ENGLISH))\n \"\"\"\n }\n },\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n {\n \"dow\": {\n \"terms\": { \"field\": \"day_of_week\" }\n }\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":226},"digest":"b7bb5503e64bd869b2ac1c46c434a079","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"histo\": { \"histogram\": { \"field\": \"price\", \"interval\": 5 } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":246},"digest":"a0d53dcb3df938fc0a01d248571a41e4","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"runtime_mappings\": {\n \"price.discounted\": {\n \"type\": \"double\",\n \"script\": \"\"\"\n double price = doc['price'].value;\n if (doc['product'].value == 'mad max') {\n price *= 0.8;\n }\n emit(price);\n \"\"\"\n }\n },\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n {\n \"price\": {\n \"histogram\": {\n \"interval\": 5,\n \"field\": \"price.discounted\"\n }\n }\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":315},"digest":"132ea3d5a0ffb6b5203e356e8329f679","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"date\": { \"date_histogram\": { \"field\": \"timestamp\", \"calendar_interval\": \"1d\" } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":345},"digest":"afd90d268187f995dc002abc189f818d","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n {\n \"date\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"calendar_interval\": \"1d\",\n \"format\": \"yyyy-MM-dd\" <1>\n }\n }\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":386},"digest":"ab3c36b70459093beafbfd3a7ae75b9b","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"date\": \"2015-10-01T05:30:00Z\"\n}\n\nPUT my-index-000001/_doc/2?refresh\n{\n \"date\": \"2015-10-01T06:30:00Z\"\n}\n\nGET my-index-000001/_search?size=0\n{\n \"aggs\": {\n \"my_buckets\": {\n \"composite\" : {\n \"sources\" : [\n {\n \"date\": {\n \"date_histogram\" : {\n \"field\": \"date\",\n \"calendar_interval\": \"day\",\n \"offset\": \"+6h\",\n \"format\": \"iso8601\"\n }\n }\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":423},"digest":"6577459aef49b998e80e45ec34277965","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"my_buckets\": {\n \"after_key\": { \"date\": \"2015-10-01T06:00:00.000Z\" },\n \"buckets\": [\n {\n \"key\": { \"date\": \"2015-09-30T06:00:00.000Z\" },\n \"doc_count\": 1\n },\n {\n \"key\": { \"date\": \"2015-10-01T06:00:00.000Z\" },\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":458},"digest":"e16a353e619b935c5c70769b1b9fa100","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"tile\": { \"geotile_grid\": { \"field\": \"location\", \"precision\": 8 } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":491},"digest":"c2d7c36daac8608d2515c549b2c82436","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n {\n \"tile\": {\n \"geotile_grid\": {\n \"field\": \"location\",\n \"precision\": 22,\n \"bounds\": {\n \"top_left\": \"POINT (4.9 52.4)\",\n \"bottom_right\": \"POINT (5.0 52.3)\"\n }\n }\n }\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":525},"digest":"2643b8c512cb3f3449259cdf498c6ab5","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"date\": { \"date_histogram\": { \"field\": \"timestamp\", \"calendar_interval\": \"1d\" } } },\n { \"product\": { \"terms\": { \"field\": \"product\" } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":548},"digest":"569f10fee671632017c722fd983009d4","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"shop\": { \"terms\": { \"field\": \"shop\" } } },\n { \"product\": { \"terms\": { \"field\": \"product\" } } },\n { \"date\": { \"date_histogram\": { \"field\": \"timestamp\", \"calendar_interval\": \"1d\" } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":579},"digest":"7e20b6e15e409b02a5e452ceddf1e1e0","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"date\": { \"date_histogram\": { \"field\": \"timestamp\", \"calendar_interval\": \"1d\", \"order\": \"desc\" } } },\n { \"product\": { \"terms\": { \"field\": \"product\", \"order\": \"asc\" } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":607},"digest":"852b394d78b8c79ee0055b5501981a4b","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [{\n \"product_name\": {\n \"terms\": {\n \"field\": \"product\",\n \"missing_bucket\": true,\n \"missing_order\": \"last\"\n }\n }\n }]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":658},"digest":"7d1cbcb545aa19260073dbb2b7ef5074","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"size\": 2,\n \"sources\": [\n { \"date\": { \"date_histogram\": { \"field\": \"timestamp\", \"calendar_interval\": \"1d\" } } },\n { \"product\": { \"terms\": { \"field\": \"product\" } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":680},"digest":"b5b0ebf4f65f59b05f9b868f7e28c9f3","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"my_buckets\": {\n \"after_key\": {\n \"date\": 1494288000000,\n \"product\": \"mad max\"\n },\n \"buckets\": [\n {\n \"key\": {\n \"date\": 1494201600000,\n \"product\": \"rocky\"\n },\n \"doc_count\": 1\n },\n {\n \"key\": {\n \"date\": 1494288000000,\n \"product\": \"mad max\"\n },\n \"doc_count\": 2\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":716},"digest":"d880630b6f7dc634c4078293f9cd3d80","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"size\": 2,\n \"sources\": [\n { \"date\": { \"date_histogram\": { \"field\": \"timestamp\", \"calendar_interval\": \"1d\", \"order\": \"desc\" } } },\n { \"product\": { \"terms\": { \"field\": \"product\", \"order\": \"asc\" } } }\n ],\n \"after\": { \"date\": 1494288000000, \"product\": \"mad max\" } <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":748},"digest":"5e2f7097eb299de553d0fa0087d70a59","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"index\": {\n \"sort.field\": [ \"username\", \"timestamp\" ], <1>\n \"sort.order\": [ \"asc\", \"desc\" ] <2>\n }\n },\n \"mappings\": {\n \"properties\": {\n \"username\": {\n \"type\": \"keyword\",\n \"doc_values\": true\n },\n \"timestamp\": {\n \"type\": \"date\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":777},"digest":"7659f2f2b0fbe8584b855a01638b95ed","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"user_name\": { \"terms\": { \"field\": \"user_name\" } } } <1>\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":796},"digest":"2abfe0d3f5593d23d2dfa608b1e2532a","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"user_name\": { \"terms\": { \"field\": \"user_name\" } } }, <1>\n { \"date\": { \"date_histogram\": { \"field\": \"timestamp\", \"calendar_interval\": \"1d\", \"order\": \"desc\" } } } <2>\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":821},"digest":"4bb7bcfebca682fb9c9e3e47bfd5ef6f","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"track_total_hits\": false,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"user_name\": { \"terms\": { \"field\": \"user_name\" } } },\n { \"date\": { \"date_histogram\": { \"field\": \"timestamp\", \"calendar_interval\": \"1d\", \"order\": \"desc\" } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":860},"digest":"402092585940953420404c2884a47e59","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_buckets\": {\n \"composite\": {\n \"sources\": [\n { \"date\": { \"date_histogram\": { \"field\": \"timestamp\", \"calendar_interval\": \"1d\", \"order\": \"desc\" } } },\n { \"product\": { \"terms\": { \"field\": \"product\" } } }\n ]\n },\n \"aggregations\": {\n \"the_avg\": {\n \"avg\": { \"field\": \"price\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/composite-aggregation.asciidoc","line":886},"digest":"3c21391b29c8fc931fa3eb25360a2e4c","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"my_buckets\": {\n \"after_key\": {\n \"date\": 1494201600000,\n \"product\": \"rocky\"\n },\n \"buckets\": [\n {\n \"key\": {\n \"date\": 1494460800000,\n \"product\": \"apocalypse now\"\n },\n \"doc_count\": 1,\n \"the_avg\": {\n \"value\": 10.0\n }\n },\n {\n \"key\": {\n \"date\": 1494374400000,\n \"product\": \"mad max\"\n },\n \"doc_count\": 1,\n \"the_avg\": {\n \"value\": 27.0\n }\n },\n {\n \"key\": {\n \"date\": 1494288000000,\n \"product\": \"mad max\"\n },\n \"doc_count\": 2,\n \"the_avg\": {\n \"value\": 22.5\n }\n },\n {\n \"key\": {\n \"date\": 1494201600000,\n \"product\": \"rocky\"\n },\n \"doc_count\": 1,\n \"the_avg\": {\n \"value\": 10.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":103},"digest":"af44cc7fb0c435d4497c77baf904bf5e","lang":"console","found":["python","ruby","go","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sales_over_time\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":122},"digest":"f5815d573cee0447910c9668003887b8","lang":"console","found":["python","ruby","go","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sales_over_time\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"2d\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":198},"digest":"095d60b2cfc5004c97efc49f27287262","lang":"console","found":["python","ruby","go","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sales_over_time\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"fixed_interval\": \"30d\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":216},"digest":"f43d551aaaad73d979adf1b86533e6a3","lang":"console","found":["python","ruby","go","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sales_over_time\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"fixed_interval\": \"2w\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":288},"digest":"9bfdda207b701028a3439e495e800c02","lang":"console","found":["python","ruby","go","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sales_over_time\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\",\n \"format\": \"yyyy-MM-dd\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":309},"digest":"d0d2ea04227608e0392fa51721f2d479","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"sales_over_time\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015-01-01\",\n \"key\": 1420070400000,\n \"doc_count\": 3\n },\n {\n \"key_as_string\": \"2015-02-01\",\n \"key\": 1422748800000,\n \"doc_count\": 2\n },\n {\n \"key_as_string\": \"2015-03-01\",\n \"key\": 1425168000000,\n \"doc_count\": 2\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":367},"digest":"9a02bd47c000a3d9a8911233c37c890f","lang":"console","found":["python","ruby","go","js"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"date\": \"2015-10-01T00:30:00Z\"\n}\n\nPUT my-index-000001/_doc/2?refresh\n{\n \"date\": \"2015-10-01T01:30:00Z\"\n}\n\nGET my-index-000001/_search?size=0\n{\n \"aggs\": {\n \"by_day\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"day\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":396},"digest":"c58f9b02f68576dc466750382a93a10e","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"by_day\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015-10-01T00:00:00.000Z\",\n \"key\": 1443657600000,\n \"doc_count\": 2\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":418},"digest":"e6b972611c0ec8ab4c240f33f323d85b","lang":"console","found":["python","ruby","go","js"],"source":"GET my-index-000001/_search?size=0\n{\n \"aggs\": {\n \"by_day\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"day\",\n \"time_zone\": \"-01:00\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":438},"digest":"7505fd151b95c187a78278008393156b","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"by_day\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015-09-30T00:00:00.000-01:00\", <1>\n \"key\": 1443574800000,\n \"doc_count\": 1\n },\n {\n \"key_as_string\": \"2015-10-01T00:00:00.000-01:00\", <1>\n \"key\": 1443661200000,\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":489},"digest":"51b40610ae05730b4c6afd25647d7ae0","lang":"console","found":["python","ruby","go","js"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"date\": \"2015-10-01T05:30:00Z\"\n}\n\nPUT my-index-000001/_doc/2?refresh\n{\n \"date\": \"2015-10-01T06:30:00Z\"\n}\n\nGET my-index-000001/_search?size=0\n{\n \"aggs\": {\n \"by_day\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"day\",\n \"offset\": \"+6h\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":520},"digest":"c53ad8df37e9f98b893b66fd3abbc6e7","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"by_day\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015-09-30T06:00:00.000Z\",\n \"key\": 1443592800000,\n \"doc_count\": 1\n },\n {\n \"key_as_string\": \"2015-10-01T06:00:00.000Z\",\n \"key\": 1443679200000,\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":569},"digest":"5203560189ccab7122c03500147701ef","lang":"console","found":[],"source":"\"buckets\": [\n { \"key_as_string\": \"2022-01-20\", \"key\": 1642636800000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-02-20\", \"key\": 1645315200000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-03-20\", \"key\": 1647734400000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-04-20\", \"key\": 1650412800000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-05-20\", \"key\": 1653004800000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-06-20\", \"key\": 1655683200000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-07-20\", \"key\": 1658275200000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-08-20\", \"key\": 1660953600000, \"doc_count\": 1 }\n]"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":589},"digest":"a84ffbaa4ffa68b22f6fe42d3b4f8dd5","lang":"console","found":[],"source":"\"buckets\": [\n { \"key_as_string\": \"2021-12-29\", \"key\": 1640736000000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-01-29\", \"key\": 1643414400000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-03-01\", \"key\": 1646092800000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-03-29\", \"key\": 1648512000000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-04-29\", \"key\": 1651190400000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-05-29\", \"key\": 1653782400000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-06-29\", \"key\": 1656460800000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-07-29\", \"key\": 1659052800000, \"doc_count\": 1 }\n]"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":611},"digest":"ba59a3b9a0a2694704b2bf9c6ad4a8cf","lang":"console","found":[],"source":"\"buckets\": [\n { \"key_as_string\": \"2022-01-20\", \"key\": 1642636800000, \"doc_count\": 1 },\n { \"key_as_string\": \"2022-02-20\", \"key\": 1645315200000, \"doc_count\": 2 },\n { \"key_as_string\": \"2022-04-20\", \"key\": 1650412800000, \"doc_count\": 2 },\n { \"key_as_string\": \"2022-06-20\", \"key\": 1655683200000, \"doc_count\": 2 },\n { \"key_as_string\": \"2022-08-20\", \"key\": 1660953600000, \"doc_count\": 1 }\n]"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":643},"digest":"ecc57597f6b791d1151ad79d9f4ce67b","lang":"console","found":["python","ruby","go","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sales_over_time\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\",\n \"format\": \"yyyy-MM-dd\",\n \"keyed\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":663},"digest":"63545a21eee0283a62022b279d49084b","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"sales_over_time\": {\n \"buckets\": {\n \"2015-01-01\": {\n \"key_as_string\": \"2015-01-01\",\n \"key\": 1420070400000,\n \"doc_count\": 3\n },\n \"2015-02-01\": {\n \"key_as_string\": \"2015-02-01\",\n \"key\": 1422748800000,\n \"doc_count\": 2\n },\n \"2015-03-01\": {\n \"key_as_string\": \"2015-03-01\",\n \"key\": 1425168000000,\n \"doc_count\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":699},"digest":"ef779b87b3b0fb6e6bae9c8875e3a1cf","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"runtime_mappings\": {\n \"date.promoted_is_tomorrow\": {\n \"type\": \"date\",\n \"script\": \"\"\"\n long date = doc['date'].value.toInstant().toEpochMilli();\n if (doc['promoted'].value) {\n date += 86400;\n }\n emit(date);\n \"\"\"\n }\n },\n \"aggs\": {\n \"sales_over_time\": {\n \"date_histogram\": {\n \"field\": \"date.promoted_is_tomorrow\",\n \"calendar_interval\": \"1M\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":782},"digest":"316cd43feb3b86396483903af1a048b1","lang":"console","found":["python","ruby","go","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"sale_date\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"year\",\n \"missing\": \"2000/01/01\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":816},"digest":"24a037008e0fc2550ecb6a5d36c04a93","lang":"console","found":["python","js"],"source":"POST /sales/_search?size=0\n{\n \"runtime_mappings\": {\n \"date.day_of_week\": {\n \"type\": \"keyword\",\n \"script\": \"emit(doc['date'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ENGLISH))\"\n }\n },\n \"aggs\": {\n \"day_of_week\": {\n \"terms\": { \"field\": \"date.day_of_week\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/datehistogram-aggregation.asciidoc","line":837},"digest":"44e366126f16d01ac06d1f30afb9e0c3","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"day_of_week\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"Sunday\",\n \"doc_count\": 4\n },\n {\n \"key\": \"Thursday\",\n \"doc_count\": 3\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/daterange-aggregation.asciidoc","line":19},"digest":"c464ed2001d66a1446f37659dc9efc2a","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"range\": {\n \"date_range\": {\n \"field\": \"date\",\n \"format\": \"MM-yyyy\",\n \"ranges\": [\n { \"to\": \"now-10M/M\" }, <1>\n { \"from\": \"now-10M/M\" } <2>\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/daterange-aggregation.asciidoc","line":48},"digest":"62db391ba838b472750763708a4c6c93","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"range\": {\n \"buckets\": [\n {\n \"to\": 1.4436576E12,\n \"to_as_string\": \"10-2015\",\n \"doc_count\": 7,\n \"key\": \"*-10-2015\"\n },\n {\n \"from\": 1.4436576E12,\n \"from_as_string\": \"10-2015\",\n \"doc_count\": 0,\n \"key\": \"10-2015-*\"\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/daterange-aggregation.asciidoc","line":85},"digest":"a6ef8cd8c8218d547727ffc5485bfbd7","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"range\": {\n \"date_range\": {\n \"field\": \"date\",\n \"missing\": \"1976/11/30\",\n \"ranges\": [\n {\n \"key\": \"Older\",\n \"to\": \"2016/02/01\"\n }, <1>\n {\n \"key\": \"Newer\",\n \"from\": \"2016/02/01\",\n \"to\" : \"now/d\"\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/daterange-aggregation.asciidoc","line":276},"digest":"901d66919e584515717bf78ab5ca2cbb","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"range\": {\n \"date_range\": {\n \"field\": \"date\",\n \"time_zone\": \"CET\",\n \"ranges\": [\n { \"to\": \"2016/02/01\" }, <1>\n { \"from\": \"2016/02/01\", \"to\" : \"now/d\" }, <2>\n { \"from\": \"now/d\" }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/daterange-aggregation.asciidoc","line":305},"digest":"ece01f9382e450f669c0e0925e5b30e5","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"range\": {\n \"date_range\": {\n \"field\": \"date\",\n \"format\": \"MM-yyy\",\n \"ranges\": [\n { \"to\": \"now-10M/M\" },\n { \"from\": \"now-10M/M\" }\n ],\n \"keyed\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/daterange-aggregation.asciidoc","line":328},"digest":"e08740e1125019aaeaf013e243edecf4","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"range\": {\n \"buckets\": {\n \"*-10-2015\": {\n \"to\": 1.4436576E12,\n \"to_as_string\": \"10-2015\",\n \"doc_count\": 7\n },\n \"10-2015-*\": {\n \"from\": 1.4436576E12,\n \"from_as_string\": \"10-2015\",\n \"doc_count\": 0\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/daterange-aggregation.asciidoc","line":354},"digest":"74678f8bbc7e4fc1885719d1cf63ac67","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"range\": {\n \"date_range\": {\n \"field\": \"date\",\n \"format\": \"MM-yyy\",\n \"ranges\": [\n { \"from\": \"01-2015\", \"to\": \"03-2015\", \"key\": \"quarter_01\" },\n { \"from\": \"03-2015\", \"to\": \"06-2015\", \"key\": \"quarter_02\" }\n ],\n \"keyed\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/daterange-aggregation.asciidoc","line":377},"digest":"d1538ecbc2b1cf0e3690207b72cf6d43","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"range\": {\n \"buckets\": {\n \"quarter_01\": {\n \"from\": 1.4200704E12,\n \"from_as_string\": \"01-2015\",\n \"to\": 1.425168E12,\n \"to_as_string\": \"03-2015\",\n \"doc_count\": 5\n },\n \"quarter_02\": {\n \"from\": 1.425168E12,\n \"from_as_string\": \"03-2015\",\n \"to\": 1.4331168E12,\n \"to_as_string\": \"06-2015\",\n \"doc_count\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/diversified-sampler-aggregation.asciidoc","line":33},"digest":"b5e5cd4eccc40d7c5f2a1fcb654bd4a4","lang":"console","found":["python","ruby","js"],"source":"POST /stackoverflow/_search?size=0\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"tags:elasticsearch\"\n }\n },\n \"aggs\": {\n \"my_unbiased_sample\": {\n \"diversified_sampler\": {\n \"shard_size\": 200,\n \"field\": \"author\"\n },\n \"aggs\": {\n \"keywords\": {\n \"significant_terms\": {\n \"field\": \"tags\",\n \"exclude\": [ \"elasticsearch\" ]\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/diversified-sampler-aggregation.asciidoc","line":64},"digest":"6ea75e3e525d53ef9d8eb97b6fe4a751","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"my_unbiased_sample\": {\n \"doc_count\": 151, <1>\n \"keywords\": { <2>\n \"doc_count\": 151,\n \"bg_count\": 650,\n \"buckets\": [\n {\n \"key\": \"kibana\",\n \"doc_count\": 150,\n \"score\": 2.213,\n \"bg_count\": 200\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/diversified-sampler-aggregation.asciidoc","line":99},"digest":"c639036b87d02fb864e27c4ca29ef833","lang":"console","found":["python","ruby","js"],"source":"POST /stackoverflow/_search?size=0\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"tags:kibana\"\n }\n },\n \"runtime_mappings\": {\n \"tags.hash\": {\n \"type\": \"long\",\n \"script\": \"emit(doc['tags'].hashCode())\"\n }\n },\n \"aggs\": {\n \"my_unbiased_sample\": {\n \"diversified_sampler\": {\n \"shard_size\": 200,\n \"max_docs_per_value\": 3,\n \"field\": \"tags.hash\"\n },\n \"aggs\": {\n \"keywords\": {\n \"significant_terms\": {\n \"field\": \"tags\",\n \"exclude\": [ \"kibana\" ]\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/diversified-sampler-aggregation.asciidoc","line":137},"digest":"fcc7d095a0eb53a6e4d07c3e5beb590a","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"my_unbiased_sample\": {\n \"doc_count\": 6,\n \"keywords\": {\n \"doc_count\": 6,\n \"bg_count\": 650,\n \"buckets\": [\n {\n \"key\": \"logstash\",\n \"doc_count\": 3,\n \"score\": 2.213,\n \"bg_count\": 50\n },\n {\n \"key\": \"elasticsearch\",\n \"doc_count\": 3,\n \"score\": 1.34,\n \"bg_count\": 200\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filter-aggregation.asciidoc","line":13},"digest":"6b1e837a8469eca2d03d5c36f5910f34","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0&filter_path=aggregations\n{\n \"aggs\": {\n \"avg_price\": { \"avg\": { \"field\": \"price\" } },\n \"t_shirts\": {\n \"filter\": { \"term\": { \"type\": \"t-shirt\" } },\n \"aggs\": {\n \"avg_price\": { \"avg\": { \"field\": \"price\" } }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filter-aggregation.asciidoc","line":35},"digest":"51fcc1c016cc830f9066cf1670f901ce","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"avg_price\": { \"value\": 140.71428571428572 },\n \"t_shirts\": {\n \"doc_count\": 3,\n \"avg_price\": { \"value\": 128.33333333333334 }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filter-aggregation.asciidoc","line":58},"digest":"0163af36c8472ac0c5160c8b716f5b26","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0&filter_path=aggregations\n{\n \"query\": { \"term\": { \"type\": \"t-shirt\" } },\n \"aggs\": {\n \"avg_price\": { \"avg\": { \"field\": \"price\" } }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filter-aggregation.asciidoc","line":83},"digest":"d7f42d1b906dc406be1819d17c625d5f","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0&filter_path=aggregations\n{\n \"aggs\": {\n \"t_shirts\": {\n \"filter\": { \"term\": { \"type\": \"t-shirt\" } },\n \"aggs\": {\n \"avg_price\": { \"avg\": { \"field\": \"price\" } }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filter-aggregation.asciidoc","line":122},"digest":"3544f17cb97b613a2f733707c676f759","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0&filter_path=aggregations\n{\n \"aggs\": {\n \"f\": {\n \"filters\": {\n \"filters\": {\n \"hats\": { \"term\": { \"type\": \"hat\" } },\n \"t_shirts\": { \"term\": { \"type\": \"t-shirt\" } }\n }\n },\n \"aggs\": {\n \"avg_price\": { \"avg\": { \"field\": \"price\" } }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filter-aggregation.asciidoc","line":167},"digest":"0e3b4a48a3450cd99c95ec46d4701b58","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0&filter_path=aggregations\n{\n \"aggs\": {\n \"hats\": {\n \"filter\": { \"term\": { \"type\": \"hat\" } },\n \"aggs\": {\n \"avg_price\": { \"avg\": { \"field\": \"price\" } }\n }\n },\n \"t_shirts\": {\n \"filter\": { \"term\": { \"type\": \"t-shirt\" } },\n \"aggs\": {\n \"avg_price\": { \"avg\": { \"field\": \"price\" } }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filters-aggregation.asciidoc","line":13},"digest":"188e6208cccb13027a5c1c95440841ee","lang":"console","found":["python","ruby","js"],"source":"PUT /logs/_bulk?refresh\n{ \"index\" : { \"_id\" : 1 } }\n{ \"body\" : \"warning: page could not be rendered\" }\n{ \"index\" : { \"_id\" : 2 } }\n{ \"body\" : \"authentication error\" }\n{ \"index\" : { \"_id\" : 3 } }\n{ \"body\" : \"warning: connection timed out\" }\n\nGET logs/_search\n{\n \"size\": 0,\n \"aggs\" : {\n \"messages\" : {\n \"filters\" : {\n \"filters\" : {\n \"errors\" : { \"match\" : { \"body\" : \"error\" }},\n \"warnings\" : { \"match\" : { \"body\" : \"warning\" }}\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filters-aggregation.asciidoc","line":45},"digest":"9024c429b700eef896a8f12aa96b1dd3","lang":"console-result","found":[],"source":"{\n \"took\": 9,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"messages\": {\n \"buckets\": {\n \"errors\": {\n \"doc_count\": 1\n },\n \"warnings\": {\n \"doc_count\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filters-aggregation.asciidoc","line":76},"digest":"3cd2f7f9096a8e8180f27b6c30e71840","lang":"console","found":["python","ruby","js"],"source":"GET logs/_search\n{\n \"size\": 0,\n \"aggs\" : {\n \"messages\" : {\n \"filters\" : {\n \"filters\" : [\n { \"match\" : { \"body\" : \"error\" }},\n { \"match\" : { \"body\" : \"warning\" }}\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filters-aggregation.asciidoc","line":98},"digest":"be0d6421c3fa5bed737f55c6f44ca5d5","lang":"console-result","found":[],"source":"{\n \"took\": 4,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"messages\": {\n \"buckets\": [\n {\n \"doc_count\": 1\n },\n {\n \"doc_count\": 2\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filters-aggregation.asciidoc","line":138},"digest":"21bb03ca9123de3237c1c76934f9f172","lang":"console","found":["python","ruby","js"],"source":"PUT logs/_doc/4?refresh\n{\n \"body\": \"info: user Bob logged out\"\n}\n\nGET logs/_search\n{\n \"size\": 0,\n \"aggs\" : {\n \"messages\" : {\n \"filters\" : {\n \"other_bucket_key\": \"other_messages\",\n \"filters\" : {\n \"errors\" : { \"match\" : { \"body\" : \"error\" }},\n \"warnings\" : { \"match\" : { \"body\" : \"warning\" }}\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filters-aggregation.asciidoc","line":165},"digest":"8f7dede7e1320bde1a4ebbf22da9a9a8","lang":"console-result","found":[],"source":"{\n \"took\": 3,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"messages\": {\n \"buckets\": {\n \"errors\": {\n \"doc_count\": 1\n },\n \"warnings\": {\n \"doc_count\": 2\n },\n \"other_messages\": {\n \"doc_count\": 1\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filters-aggregation.asciidoc","line":208},"digest":"d8fa7ca2ec8dbfa034603ea566e33f5b","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0&filter_path=aggregations\n{\n \"aggs\": {\n \"the_filter\": {\n \"filters\": {\n \"keyed\": false,\n \"filters\": {\n \"t-shirt\": { \"term\": { \"type\": \"t-shirt\" } },\n \"hat\": { \"term\": { \"type\": \"hat\" } }\n }\n },\n \"aggs\": {\n \"avg_price\": { \"avg\": { \"field\": \"price\" } },\n \"sort_by_avg_price\": {\n \"bucket_sort\": { \"sort\": { \"avg_price\": \"asc\" } }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/filters-aggregation.asciidoc","line":235},"digest":"df687b4de647f273584699f946c57b23","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"the_filter\": {\n \"buckets\": [\n {\n \"key\": \"t-shirt\",\n \"doc_count\": 3,\n \"avg_price\": { \"value\": 128.33333333333334 }\n },\n {\n \"key\": \"hat\",\n \"doc_count\": 3,\n \"avg_price\": { \"value\": 150.0 }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/frequent-item-sets-aggregation.asciidoc","line":144},"digest":"2493c25e1ef944bc4de0f726470bcdec","lang":"console","found":["python","js"],"source":"POST /kibana_sample_data_ecommerce/_async_search\n{\n \"size\":0,\n \"aggs\":{\n \"my_agg\":{\n \"frequent_item_sets\":{\n \"minimum_set_size\":3,\n \"fields\":[\n {\n \"field\":\"category.keyword\"\n },\n {\n \"field\":\"geoip.city_name\",\n \"exclude\":\"other\"\n }\n ],\n \"size\":3\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/frequent-item-sets-aggregation.asciidoc","line":173},"digest":"e95ba581b298cd7bb598374afbfed315","lang":"console","found":["python","js"],"source":"GET /_async_search/"},
{"source_location":{"file":"aggregations/bucket/frequent-item-sets-aggregation.asciidoc","line":181},"digest":"c65efa6d34f819e43f0bc6cb2173c6f8","lang":"console-result","found":[],"source":"(...)\n\"aggregations\" : {\n \"my_agg\" : {\n \"buckets\" : [ <1>\n {\n \"key\" : { <2>\n \"category.keyword\" : [\n \"Women's Clothing\",\n \"Women's Shoes\"\n ],\n \"geoip.city_name\" : [\n \"New York\"\n ]\n },\n \"doc_count\" : 217, <3>\n \"support\" : 0.04641711229946524 <4>\n },\n {\n \"key\" : {\n \"category.keyword\" : [\n \"Women's Clothing\",\n \"Women's Accessories\"\n ],\n \"geoip.city_name\" : [\n \"New York\"\n ]\n },\n \"doc_count\" : 135,\n \"support\" : 0.028877005347593583\n },\n {\n \"key\" : {\n \"category.keyword\" : [\n \"Men's Clothing\",\n \"Men's Shoes\"\n ],\n \"geoip.city_name\" : [\n \"Cairo\"\n ]\n },\n \"doc_count\" : 123,\n \"support\" : 0.026310160427807486\n }\n ],\n (...)\n }\n}"},
{"source_location":{"file":"aggregations/bucket/frequent-item-sets-aggregation.asciidoc","line":257},"digest":"cac74a85c6b352a6e23d8673abae126f","lang":"console","found":["python","js"],"source":"POST /kibana_sample_data_ecommerce/_async_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_agg\": {\n \"frequent_item_sets\": {\n \"minimum_set_size\": 3,\n \"fields\": [\n { \"field\": \"category.keyword\" },\n { \"field\": \"geoip.city_name\" }\n ],\n \"size\": 3,\n \"filter\": {\n \"term\": {\n \"geoip.continent_name\": \"Europe\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/frequent-item-sets-aggregation.asciidoc","line":301},"digest":"aadf36ae37460a735e06b953b4cee494","lang":"console","found":["python","js"],"source":"GET kibana_sample_data_ecommerce/_search\n{\n \"runtime_mappings\": {\n \"price_range\": {\n \"type\": \"keyword\",\n \"script\": {\n \"source\": \"\"\"\n def bucket_start = (long) Math.floor(doc['taxful_total_price'].value / 50) * 50;\n def bucket_end = bucket_start + 50;\n emit(bucket_start.toString() + \"-\" + bucket_end.toString());\n \"\"\"\n }\n }\n },\n \"size\": 0,\n \"aggs\": {\n \"my_agg\": {\n \"frequent_item_sets\": {\n \"minimum_set_size\": 4,\n \"fields\": [\n {\n \"field\": \"category.keyword\"\n },\n {\n \"field\": \"price_range\"\n },\n {\n \"field\": \"geoip.city_name\"\n }\n ],\n \"size\": 3\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/frequent-item-sets-aggregation.asciidoc","line":343},"digest":"ebfc820d2606c0a52f7843023839306f","lang":"console-result","found":[],"source":"(...)\n\"aggregations\" : {\n \"my_agg\" : {\n \"buckets\" : [\n {\n \"key\" : {\n \"category.keyword\" : [\n \"Women's Clothing\",\n \"Women's Shoes\"\n ],\n \"price_range\" : [\n \"50-100\"\n ],\n \"geoip.city_name\" : [\n \"New York\"\n ]\n },\n \"doc_count\" : 100,\n \"support\" : 0.0213903743315508\n },\n {\n \"key\" : {\n \"category.keyword\" : [\n \"Women's Clothing\",\n \"Women's Shoes\"\n ],\n \"price_range\" : [\n \"50-100\"\n ],\n \"geoip.city_name\" : [\n \"Dubai\"\n ]\n },\n \"doc_count\" : 59,\n \"support\" : 0.012620320855614974\n },\n {\n \"key\" : {\n \"category.keyword\" : [\n \"Men's Clothing\",\n \"Men's Shoes\"\n ],\n \"price_range\" : [\n \"50-100\"\n ],\n \"geoip.city_name\" : [\n \"Marrakesh\"\n ]\n },\n \"doc_count\" : 53,\n \"support\" : 0.011336898395721925\n }\n ],\n (...)\n }\n }"},
{"source_location":{"file":"aggregations/bucket/geodistance-aggregation.asciidoc","line":10},"digest":"ba07330ed3291b3970f4eb01dacd8086","lang":"console","found":["python","ruby","js"],"source":"PUT /museums\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}\n\nPOST /museums/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"location\": \"POINT (4.912350 52.374081)\", \"name\": \"NEMO Science Museum\"}\n{\"index\":{\"_id\":2}}\n{\"location\": \"POINT (4.901618 52.369219)\", \"name\": \"Museum Het Rembrandthuis\"}\n{\"index\":{\"_id\":3}}\n{\"location\": \"POINT (4.914722 52.371667)\", \"name\": \"Nederlands Scheepvaartmuseum\"}\n{\"index\":{\"_id\":4}}\n{\"location\": \"POINT (4.405200 51.222900)\", \"name\": \"Letterenhuis\"}\n{\"index\":{\"_id\":5}}\n{\"location\": \"POINT (2.336389 48.861111)\", \"name\": \"Musée du Louvre\"}\n{\"index\":{\"_id\":6}}\n{\"location\": \"POINT (2.327000 48.860000)\", \"name\": \"Musée d'Orsay\"}\n\nPOST /museums/_search?size=0\n{\n \"aggs\": {\n \"rings_around_amsterdam\": {\n \"geo_distance\": {\n \"field\": \"location\",\n \"origin\": \"POINT (4.894 52.3760)\",\n \"ranges\": [\n { \"to\": 100000 },\n { \"from\": 100000, \"to\": 300000 },\n { \"from\": 300000 }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geodistance-aggregation.asciidoc","line":57},"digest":"b19c37d5cae3c6311ac3693ae0c4b902","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"rings_around_amsterdam\": {\n \"buckets\": [\n {\n \"key\": \"*-100000.0\",\n \"from\": 0.0,\n \"to\": 100000.0,\n \"doc_count\": 3\n },\n {\n \"key\": \"100000.0-300000.0\",\n \"from\": 100000.0,\n \"to\": 300000.0,\n \"doc_count\": 1\n },\n {\n \"key\": \"300000.0-*\",\n \"from\": 300000.0,\n \"doc_count\": 2\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geodistance-aggregation.asciidoc","line":96},"digest":"ab29bfbd35ee482cf54052b03d62cd31","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggs\": {\n \"rings\": {\n \"geo_distance\": {\n \"field\": \"location\",\n \"origin\": \"POINT (4.894 52.3760)\",\n \"unit\": \"km\", <1>\n \"ranges\": [\n { \"to\": 100 },\n { \"from\": 100, \"to\": 300 },\n { \"from\": 300 }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geodistance-aggregation.asciidoc","line":122},"digest":"bc4d308069af23929a49d856f6bc3008","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggs\": {\n \"rings\": {\n \"geo_distance\": {\n \"field\": \"location\",\n \"origin\": \"POINT (4.894 52.3760)\",\n \"unit\": \"km\",\n \"distance_type\": \"plane\",\n \"ranges\": [\n { \"to\": 100 },\n { \"from\": 100, \"to\": 300 },\n { \"from\": 300 }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geodistance-aggregation.asciidoc","line":149},"digest":"65c671fbecdb5b0d75c13d63f87e36f0","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggs\": {\n \"rings_around_amsterdam\": {\n \"geo_distance\": {\n \"field\": \"location\",\n \"origin\": \"POINT (4.894 52.3760)\",\n \"ranges\": [\n { \"to\": 100000 },\n { \"from\": 100000, \"to\": 300000 },\n { \"from\": 300000 }\n ],\n \"keyed\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geodistance-aggregation.asciidoc","line":173},"digest":"80c504892d76d3577b7b27f56023bf01","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"rings_around_amsterdam\": {\n \"buckets\": {\n \"*-100000.0\": {\n \"from\": 0.0,\n \"to\": 100000.0,\n \"doc_count\": 3\n },\n \"100000.0-300000.0\": {\n \"from\": 100000.0,\n \"to\": 300000.0,\n \"doc_count\": 1\n },\n \"300000.0-*\": {\n \"from\": 300000.0,\n \"doc_count\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geodistance-aggregation.asciidoc","line":203},"digest":"ed01d27b8f80bb4ea54bf4e32b8d6258","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggs\": {\n \"rings_around_amsterdam\": {\n \"geo_distance\": {\n \"field\": \"location\",\n \"origin\": \"POINT (4.894 52.3760)\",\n \"ranges\": [\n { \"to\": 100000, \"key\": \"first_ring\" },\n { \"from\": 100000, \"to\": 300000, \"key\": \"second_ring\" },\n { \"from\": 300000, \"key\": \"third_ring\" }\n ],\n \"keyed\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geodistance-aggregation.asciidoc","line":227},"digest":"2aa9d5ea66657a4057d782a27b753df2","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"rings_around_amsterdam\": {\n \"buckets\": {\n \"first_ring\": {\n \"from\": 0.0,\n \"to\": 100000.0,\n \"doc_count\": 3\n },\n \"second_ring\": {\n \"from\": 100000.0,\n \"to\": 300000.0,\n \"doc_count\": 1\n },\n \"third_ring\": {\n \"from\": 300000.0,\n \"doc_count\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohashgrid-aggregation.asciidoc","line":27},"digest":"db879dcf70abc4a9a14063a9a2d8d6f5","lang":"console","found":["python","ruby","js"],"source":"PUT /museums\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}\n\nPOST /museums/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"location\": \"POINT (4.912350 52.374081)\", \"name\": \"NEMO Science Museum\"}\n{\"index\":{\"_id\":2}}\n{\"location\": \"POINT (4.901618 52.369219)\", \"name\": \"Museum Het Rembrandthuis\"}\n{\"index\":{\"_id\":3}}\n{\"location\": \"POINT (4.914722 52.371667)\", \"name\": \"Nederlands Scheepvaartmuseum\"}\n{\"index\":{\"_id\":4}}\n{\"location\": \"POINT (4.405200 51.222900)\", \"name\": \"Letterenhuis\"}\n{\"index\":{\"_id\":5}}\n{\"location\": \"POINT (2.336389 48.861111)\", \"name\": \"Musée du Louvre\"}\n{\"index\":{\"_id\":6}}\n{\"location\": \"POINT (2.327000 48.860000)\", \"name\": \"Musée d'Orsay\"}\n\nPOST /museums/_search?size=0\n{\n \"aggregations\": {\n \"large-grid\": {\n \"geohash_grid\": {\n \"field\": \"location\",\n \"precision\": 3\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohashgrid-aggregation.asciidoc","line":69},"digest":"d9656af3576a5a4d7beb39f6e12d6734","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"large-grid\": {\n \"buckets\": [\n {\n \"key\": \"u17\",\n \"doc_count\": 3\n },\n {\n \"key\": \"u09\",\n \"doc_count\": 2\n },\n {\n \"key\": \"u15\",\n \"doc_count\": 1\n }\n ]\n }\n}\n}"},
{"source_location":{"file":"aggregations/bucket/geohashgrid-aggregation.asciidoc","line":99},"digest":"3eca58ef7592b3a857ea3a9898de5997","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggregations\": {\n \"zoomed-in\": {\n \"filter\": {\n \"geo_bounding_box\": {\n \"location\": {\n \"top_left\": \"POINT (4.9 52.4)\",\n \"bottom_right\": \"POINT (5.0 52.3)\"\n }\n }\n },\n \"aggregations\": {\n \"zoom1\": {\n \"geohash_grid\": {\n \"field\": \"location\",\n \"precision\": 8\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohashgrid-aggregation.asciidoc","line":130},"digest":"a1879930c1dac36a57d7f094a680420b","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggregations\": {\n \"zoomed-in\": {\n \"filter\": {\n \"geo_bounding_box\": {\n \"location\": {\n \"top_left\": \"u17\",\n \"bottom_right\": \"u17\"\n }\n }\n },\n \"aggregations\": {\n \"zoom1\": {\n \"geohash_grid\": {\n \"field\": \"location\",\n \"precision\": 8\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohashgrid-aggregation.asciidoc","line":158},"digest":"4fe2c10dafa80dc20df3df44fcc550b1","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"zoomed-in\": {\n \"doc_count\": 3,\n \"zoom1\": {\n \"buckets\": [\n {\n \"key\": \"u173zy3j\",\n \"doc_count\": 1\n },\n {\n \"key\": \"u173zvfz\",\n \"doc_count\": 1\n },\n {\n \"key\": \"u173zt90\",\n \"doc_count\": 1\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohashgrid-aggregation.asciidoc","line":212},"digest":"4ca5bc2c2b2f64d15b9c16370ae97a39","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggregations\": {\n \"tiles-in-bounds\": {\n \"geohash_grid\": {\n \"field\": \"location\",\n \"precision\": 8,\n \"bounds\": {\n \"top_left\": \"POINT (4.21875 53.4375)\",\n \"bottom_right\": \"POINT (5.625 52.03125)\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohashgrid-aggregation.asciidoc","line":232},"digest":"e8140d06d9e3d68015487b571e88fa67","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"tiles-in-bounds\": {\n \"buckets\": [\n {\n \"key\": \"u173zy3j\",\n \"doc_count\": 1\n },\n {\n \"key\": \"u173zvfz\",\n \"doc_count\": 1\n },\n {\n \"key\": \"u173zt90\",\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohexgrid-aggregation.asciidoc","line":29},"digest":"2063713516847eef5d1dbf4ca1e877b0","lang":"console","found":["python","ruby","js"],"source":"PUT /museums\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}\n\nPOST /museums/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"location\": \"POINT (4.912350 52.374081)\", \"name\": \"NEMO Science Museum\"}\n{\"index\":{\"_id\":2}}\n{\"location\": \"POINT (4.901618 52.369219)\", \"name\": \"Museum Het Rembrandthuis\"}\n{\"index\":{\"_id\":3}}\n{\"location\": \"POINT (4.914722 52.371667)\", \"name\": \"Nederlands Scheepvaartmuseum\"}\n{\"index\":{\"_id\":4}}\n{\"location\": \"POINT (4.405200 51.222900)\", \"name\": \"Letterenhuis\"}\n{\"index\":{\"_id\":5}}\n{\"location\": \"POINT (2.336389 48.861111)\", \"name\": \"Musée du Louvre\"}\n{\"index\":{\"_id\":6}}\n{\"location\": \"POINT (2.327000 48.860000)\", \"name\": \"Musée d'Orsay\"}\n\nPOST /museums/_search?size=0\n{\n \"aggregations\": {\n \"large-grid\": {\n \"geohex_grid\": {\n \"field\": \"location\",\n \"precision\": 4\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohexgrid-aggregation.asciidoc","line":71},"digest":"e351306130c398ec3504f5d6dcf782f7","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"large-grid\": {\n \"buckets\": [\n {\n \"key\": \"841969dffffffff\",\n \"doc_count\": 3\n },\n {\n \"key\": \"841fb47ffffffff\",\n \"doc_count\": 2\n },\n {\n \"key\": \"841fa4dffffffff\",\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohexgrid-aggregation.asciidoc","line":105},"digest":"a412fe22a74900c72434391ed75139dc","lang":"console","found":["python","js"],"source":"POST /museums/_search?size=0\n{\n \"aggregations\": {\n \"zoomed-in\": {\n \"filter\": {\n \"geo_bounding_box\": {\n \"location\": {\n \"top_left\": \"POINT (4.9 52.4)\",\n \"bottom_right\": \"POINT (5.0 52.3)\"\n }\n }\n },\n \"aggregations\": {\n \"zoom1\": {\n \"geohex_grid\": {\n \"field\": \"location\",\n \"precision\": 12\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohexgrid-aggregation.asciidoc","line":135},"digest":"a397957b465915826a36475956e0f0ec","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"zoomed-in\": {\n \"doc_count\": 3,\n \"zoom1\": {\n \"buckets\": [\n {\n \"key\": \"8c1969c9b2617ff\",\n \"doc_count\": 1\n },\n {\n \"key\": \"8c1969526d753ff\",\n \"doc_count\": 1\n },\n {\n \"key\": \"8c1969526d26dff\",\n \"doc_count\": 1\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohexgrid-aggregation.asciidoc","line":176},"digest":"a9d44463dcea3cb0ea4c8f8460cea524","lang":"console","found":["python","js"],"source":"POST /museums/_search?size=0\n{\n \"aggregations\": {\n \"tiles-in-bounds\": {\n \"geohex_grid\": {\n \"field\": \"location\",\n \"precision\": 12,\n \"bounds\": {\n \"top_left\": \"POINT (4.9 52.4)\",\n \"bottom_right\": \"POINT (5.0 52.3)\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geohexgrid-aggregation.asciidoc","line":198},"digest":"37815f39dcfeaaaa0b8557bd8e83c6b4","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"tiles-in-bounds\": {\n \"buckets\": [\n {\n \"key\": \"8c1969c9b2617ff\",\n \"doc_count\": 1\n },\n {\n \"key\": \"8c1969526d753ff\",\n \"doc_count\": 1\n },\n {\n \"key\": \"8c1969526d26dff\",\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geotilegrid-aggregation.asciidoc","line":38},"digest":"935ee7c1b86ba9592604834bb673c7a3","lang":"console","found":["python","ruby","js"],"source":"PUT /museums\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}\n\nPOST /museums/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"location\": \"POINT (4.912350 52.374081)\", \"name\": \"NEMO Science Museum\"}\n{\"index\":{\"_id\":2}}\n{\"location\": \"POINT (4.901618 52.369219)\", \"name\": \"Museum Het Rembrandthuis\"}\n{\"index\":{\"_id\":3}}\n{\"location\": \"POINT (4.914722 52.371667)\", \"name\": \"Nederlands Scheepvaartmuseum\"}\n{\"index\":{\"_id\":4}}\n{\"location\": \"POINT (4.405200 51.222900)\", \"name\": \"Letterenhuis\"}\n{\"index\":{\"_id\":5}}\n{\"location\": \"POINT (2.336389 48.861111)\", \"name\": \"Musée du Louvre\"}\n{\"index\":{\"_id\":6}}\n{\"location\": \"POINT (2.327000 48.860000)\", \"name\": \"Musée d'Orsay\"}\n\nPOST /museums/_search?size=0\n{\n \"aggregations\": {\n \"large-grid\": {\n \"geotile_grid\": {\n \"field\": \"location\",\n \"precision\": 8\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geotilegrid-aggregation.asciidoc","line":80},"digest":"1c43fa3eaca8c1ae0f854c35dea15e39","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"large-grid\": {\n \"buckets\": [\n {\n \"key\": \"8/131/84\",\n \"doc_count\": 3\n },\n {\n \"key\": \"8/129/88\",\n \"doc_count\": 2\n },\n {\n \"key\": \"8/131/85\",\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geotilegrid-aggregation.asciidoc","line":114},"digest":"4659f639d71a54df571260ee5798dbb3","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggregations\": {\n \"zoomed-in\": {\n \"filter\": {\n \"geo_bounding_box\": {\n \"location\": {\n \"top_left\": \"POINT (4.9 52.4)\",\n \"bottom_right\": \"POINT (5.0 52.3)\"\n }\n }\n },\n \"aggregations\": {\n \"zoom1\": {\n \"geotile_grid\": {\n \"field\": \"location\",\n \"precision\": 22\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geotilegrid-aggregation.asciidoc","line":144},"digest":"01a7976b0db92e756137671985f994fd","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"zoomed-in\": {\n \"doc_count\": 3,\n \"zoom1\": {\n \"buckets\": [\n {\n \"key\": \"22/2154412/1378379\",\n \"doc_count\": 1\n },\n {\n \"key\": \"22/2154385/1378332\",\n \"doc_count\": 1\n },\n {\n \"key\": \"22/2154259/1378425\",\n \"doc_count\": 1\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geotilegrid-aggregation.asciidoc","line":185},"digest":"641009f2147e1ca56215c701f45c970b","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggregations\": {\n \"tiles-in-bounds\": {\n \"geotile_grid\": {\n \"field\": \"location\",\n \"precision\": 22,\n \"bounds\": {\n \"top_left\": \"POINT (4.9 52.4)\",\n \"bottom_right\": \"POINT (5.0 52.3)\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/geotilegrid-aggregation.asciidoc","line":207},"digest":"1510c4a39ef24b188e334212cc5ad9c3","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"tiles-in-bounds\": {\n \"buckets\": [\n {\n \"key\": \"22/2154412/1378379\",\n \"doc_count\": 1\n },\n {\n \"key\": \"22/2154385/1378332\",\n \"doc_count\": 1\n },\n {\n \"key\": \"22/2154259/1378425\",\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/global-aggregation.asciidoc","line":18},"digest":"21a226d91d8edd209f6a821064e83918","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"query\": {\n \"match\": { \"type\": \"t-shirt\" }\n },\n \"aggs\": {\n \"all_products\": {\n \"global\": {}, <1>\n \"aggs\": { <2>\n \"avg_price\": { \"avg\": { \"field\": \"price\" } }\n }\n },\n \"t_shirts\": { \"avg\": { \"field\": \"price\" } }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/global-aggregation.asciidoc","line":48},"digest":"37d770752407ebc0241ee249621be2c6","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"all_products\": {\n \"doc_count\": 7, <1>\n \"avg_price\": {\n \"value\": 140.71428571428572 <2>\n }\n },\n \"t_shirts\": {\n \"value\": 128.33333333333334 <3>\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":31},"digest":"1ff9b263b7c3e83278bb6a776a51590a","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"prices\": {\n \"histogram\": {\n \"field\": \"price\",\n \"interval\": 50\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":49},"digest":"b761545543d0742130cce7f8f3193955","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"prices\": {\n \"buckets\": [\n {\n \"key\": 0.0,\n \"doc_count\": 1\n },\n {\n \"key\": 50.0,\n \"doc_count\": 1\n },\n {\n \"key\": 100.0,\n \"doc_count\": 0\n },\n {\n \"key\": 150.0,\n \"doc_count\": 2\n },\n {\n \"key\": 200.0,\n \"doc_count\": 3\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":89},"digest":"0da477cb8a7883539ce3ae7ac1e9c5cb","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"prices\": {\n \"histogram\": {\n \"field\": \"price\",\n \"interval\": 50,\n \"min_doc_count\": 1\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":108},"digest":"fdc4905125360c0adb81c577ea8e1981","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"prices\": {\n \"buckets\": [\n {\n \"key\": 0.0,\n \"doc_count\": 1\n },\n {\n \"key\": 50.0,\n \"doc_count\": 1\n },\n {\n \"key\": 150.0,\n \"doc_count\": 2\n },\n {\n \"key\": 200.0,\n \"doc_count\": 3\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":164},"digest":"745864ef2427188241a4702b94ea57be","lang":"console","found":["python","js"],"source":"POST /sales/_search?size=0\n{\n \"query\": {\n \"constant_score\": { \"filter\": { \"range\": { \"price\": { \"lte\": \"500\" } } } }\n },\n \"aggs\": {\n \"prices\": {\n \"histogram\": {\n \"field\": \"price\",\n \"interval\": 50,\n \"extended_bounds\": {\n \"min\": 0,\n \"max\": 500\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":201},"digest":"f7b20e4bb8366f6d2e4486f3bf4211bc","lang":"console","found":["python","js"],"source":"POST /sales/_search?size=0\n{\n \"query\": {\n \"constant_score\": { \"filter\": { \"range\": { \"price\": { \"lte\": \"500\" } } } }\n },\n \"aggs\": {\n \"prices\": {\n \"histogram\": {\n \"field\": \"price\",\n \"interval\": 50,\n \"hard_bounds\": {\n \"min\": 100,\n \"max\": 200\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":248},"digest":"b7ad394975863a8f5ee29627c3ab738b","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"prices\": {\n \"histogram\": {\n \"field\": \"price\",\n \"interval\": 50,\n \"keyed\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":267},"digest":"fec66098a3609319236458bb42122b0f","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"prices\": {\n \"buckets\": {\n \"0.0\": {\n \"key\": 0.0,\n \"doc_count\": 1\n },\n \"50.0\": {\n \"key\": 50.0,\n \"doc_count\": 1\n },\n \"100.0\": {\n \"key\": 100.0,\n \"doc_count\": 0\n },\n \"150.0\": {\n \"key\": 150.0,\n \"doc_count\": 2\n },\n \"200.0\": {\n \"key\": 200.0,\n \"doc_count\": 3\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":307},"digest":"69582847099ee62ed34feddfaba83ef6","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"quantity\": {\n \"histogram\": {\n \"field\": \"quantity\",\n \"interval\": 10,\n \"missing\": 0 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":334},"digest":"1ed77bf308fa4ab328b36060e412f500","lang":"console","found":["python","ruby","js"],"source":"PUT metrics_index\n{\n \"mappings\": {\n \"properties\": {\n \"network\": {\n \"properties\": {\n \"name\": {\n \"type\": \"keyword\"\n }\n }\n },\n \"latency_histo\": {\n \"type\": \"histogram\"\n }\n }\n }\n}\n\nPUT metrics_index/_doc/1?refresh\n{\n \"network.name\" : \"net-1\",\n \"latency_histo\" : {\n \"values\" : [1, 3, 8, 12, 15],\n \"counts\" : [3, 7, 23, 12, 6]\n }\n}\n\nPUT metrics_index/_doc/2?refresh\n{\n \"network.name\" : \"net-2\",\n \"latency_histo\" : {\n \"values\" : [1, 6, 8, 12, 14],\n \"counts\" : [8, 17, 8, 7, 6]\n }\n}\n\nPOST /metrics_index/_search?size=0\n{\n \"aggs\": {\n \"latency_buckets\": {\n \"histogram\": {\n \"field\": \"latency_histo\",\n \"interval\": 5\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/histogram-aggregation.asciidoc","line":389},"digest":"7e9af9f1782268b9809f96651b7043b3","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"latency_buckets\": {\n \"buckets\": [\n {\n \"key\": 0.0,\n \"doc_count\": 18\n },\n {\n \"key\": 5.0,\n \"doc_count\": 48\n },\n {\n \"key\": 10.0,\n \"doc_count\": 25\n },\n {\n \"key\": 15.0,\n \"doc_count\": 6\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":14},"digest":"7c5aed55a2a1dce4b63c18e1ce8146ff","lang":"console","found":["python","ruby","js"],"source":"PUT network-traffic\n{\n \"mappings\": {\n \"properties\": {\n \"ipv4\": { \"type\": \"ip\" },\n \"ipv6\": { \"type\": \"ip\" }\n }\n }\n}\n\nPOST /network-traffic/_bulk?refresh\n{\"index\":{\"_id\":0}}\n{\"ipv4\":\"192.168.1.10\",\"ipv6\":\"2001:db8:a4f8:112a:6001:0:12:7f10\"}\n{\"index\":{\"_id\":1}}\n{\"ipv4\":\"192.168.1.12\",\"ipv6\":\"2001:db8:a4f8:112a:6001:0:12:7f12\"}\n{\"index\":{\"_id\":2}}\n{ \"ipv4\":\"192.168.1.33\",\"ipv6\":\"2001:db8:a4f8:112a:6001:0:12:7f33\"}\n{\"index\":{\"_id\":3}}\n{\"ipv4\":\"192.168.1.10\",\"ipv6\":\"2001:db8:a4f8:112a:6001:0:12:7f10\"}\n{\"index\":{\"_id\":4}}\n{\"ipv4\":\"192.168.2.41\",\"ipv6\":\"2001:db8:a4f8:112c:6001:0:12:7f41\"}\n{\"index\":{\"_id\":5}}\n{\"ipv4\":\"192.168.2.10\",\"ipv6\":\"2001:db8:a4f8:112c:6001:0:12:7f10\"}\n{\"index\":{\"_id\":6}}\n{\"ipv4\":\"192.168.2.23\",\"ipv6\":\"2001:db8:a4f8:112c:6001:0:12:7f23\"}\n{\"index\":{\"_id\":7}}\n{\"ipv4\":\"192.168.3.201\",\"ipv6\":\"2001:db8:a4f8:114f:6001:0:12:7201\"}\n{\"index\":{\"_id\":8}}\n{\"ipv4\":\"192.168.3.107\",\"ipv6\":\"2001:db8:a4f8:114f:6001:0:12:7307\"}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":50},"digest":"5a754dcc854b9154296550a0b581cb9d","lang":"console","found":["python","ruby","js"],"source":"GET /network-traffic/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"ipv4-subnets\": {\n \"ip_prefix\": {\n \"field\": \"ipv4\",\n \"prefix_length\": 24\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":69},"digest":"9d413061e61b51498e7d21f68bddc8b3","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"ipv4-subnets\": {\n \"buckets\": [\n {\n \"key\": \"192.168.1.0\",\n \"is_ipv6\": false,\n \"doc_count\": 4,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n },\n {\n \"key\": \"192.168.2.0\",\n \"is_ipv6\": false,\n \"doc_count\": 3,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n },\n {\n \"key\": \"192.168.3.0\",\n \"is_ipv6\": false,\n \"doc_count\": 2,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":107},"digest":"851f9754dbefc099c54c5423ca4565c0","lang":"console","found":["python","ruby","js"],"source":"GET /network-traffic/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"ipv6-subnets\": {\n \"ip_prefix\": {\n \"field\": \"ipv6\",\n \"prefix_length\": 64,\n \"is_ipv6\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":127},"digest":"6a16b05416d7fe2681cf39faf2eb47dd","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"ipv6-subnets\": {\n \"buckets\": [\n {\n \"key\": \"2001:db8:a4f8:112a::\",\n \"is_ipv6\": true,\n \"doc_count\": 4,\n \"prefix_length\": 64\n },\n {\n \"key\": \"2001:db8:a4f8:112c::\",\n \"is_ipv6\": true,\n \"doc_count\": 3,\n \"prefix_length\": 64\n },\n {\n \"key\": \"2001:db8:a4f8:114f::\",\n \"is_ipv6\": true,\n \"doc_count\": 2,\n \"prefix_length\": 64\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":219},"digest":"4c803b088c1915a7b0634d5cafabe606","lang":"console","found":["python","ruby","js"],"source":"GET /network-traffic/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"ipv4-subnets\": {\n \"ip_prefix\": {\n \"field\": \"ipv4\",\n \"prefix_length\": 24,\n \"keyed\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":239},"digest":"302d8b2499946dc3cf6e8f2b2a411ff0","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"ipv4-subnets\": {\n \"buckets\": {\n \"192.168.1.0\": {\n \"is_ipv6\": false,\n \"doc_count\": 4,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n },\n \"192.168.2.0\": {\n \"is_ipv6\": false,\n \"doc_count\": 3,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n },\n \"192.168.3.0\": {\n \"is_ipv6\": false,\n \"doc_count\": 2,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":279},"digest":"97da68c09c9f1a97a21780fd404e213a","lang":"console","found":["python","ruby","js"],"source":"GET /network-traffic/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"ipv4-subnets\": {\n \"ip_prefix\": {\n \"field\": \"ipv4\",\n \"prefix_length\": 24,\n \"append_prefix_length\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":299},"digest":"046cb749b74dc843528feac0fbd1d879","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"ipv4-subnets\": {\n \"buckets\": [\n {\n \"key\": \"192.168.1.0/24\",\n \"is_ipv6\": false,\n \"doc_count\": 4,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n },\n {\n \"key\": \"192.168.2.0/24\",\n \"is_ipv6\": false,\n \"doc_count\": 3,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n },\n {\n \"key\": \"192.168.3.0/24\",\n \"is_ipv6\": false,\n \"doc_count\": 2,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":340},"digest":"26419320085434680142567d5fda9c35","lang":"console","found":["python","ruby","js"],"source":"GET /network-traffic/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"ipv4-subnets\": {\n \"ip_prefix\": {\n \"field\": \"ipv4\",\n \"prefix_length\": 24,\n \"min_doc_count\": 3\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/ipprefix-aggregation.asciidoc","line":360},"digest":"f60009e1a7f4aa91603049cb5cd9ba63","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"ipv4-subnets\": {\n \"buckets\": [\n {\n \"key\": \"192.168.1.0\",\n \"is_ipv6\": false,\n \"doc_count\": 4,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n },\n {\n \"key\": \"192.168.2.0\",\n \"is_ipv6\": false,\n \"doc_count\": 3,\n \"prefix_length\": 24,\n \"netmask\": \"255.255.255.0\"\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/iprange-aggregation.asciidoc","line":12},"digest":"97916243f245478b735471a9e37f33d1","lang":"console","found":["python","ruby","js"],"source":"GET /ip_addresses/_search\n{\n \"size\": 10,\n \"aggs\": {\n \"ip_ranges\": {\n \"ip_range\": {\n \"field\": \"ip\",\n \"ranges\": [\n { \"to\": \"10.0.0.5\" },\n { \"from\": \"10.0.0.5\" }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/iprange-aggregation.asciidoc","line":34},"digest":"93036b3fa99464ffd6384d29db5fa5b7","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"ip_ranges\": {\n \"buckets\": [\n {\n \"key\": \"*-10.0.0.5\",\n \"to\": \"10.0.0.5\",\n \"doc_count\": 10\n },\n {\n \"key\": \"10.0.0.5-*\",\n \"from\": \"10.0.0.5\",\n \"doc_count\": 260\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/iprange-aggregation.asciidoc","line":61},"digest":"dec2af498a7e5892e8fcd09ae779c8f0","lang":"console","found":["python","ruby","js"],"source":"GET /ip_addresses/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"ip_ranges\": {\n \"ip_range\": {\n \"field\": \"ip\",\n \"ranges\": [\n { \"mask\": \"10.0.0.0/25\" },\n { \"mask\": \"10.0.0.127/25\" }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/iprange-aggregation.asciidoc","line":83},"digest":"a055d8d483ba2294c5094bf39b84183f","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"ip_ranges\": {\n \"buckets\": [\n {\n \"key\": \"10.0.0.0/25\",\n \"from\": \"10.0.0.0\",\n \"to\": \"10.0.0.128\",\n \"doc_count\": 128\n },\n {\n \"key\": \"10.0.0.127/25\",\n \"from\": \"10.0.0.0\",\n \"to\": \"10.0.0.128\",\n \"doc_count\": 128\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/iprange-aggregation.asciidoc","line":114},"digest":"a3d13833714f9bb918e5e0f62a49bd0e","lang":"console","found":["python","ruby","js"],"source":"GET /ip_addresses/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"ip_ranges\": {\n \"ip_range\": {\n \"field\": \"ip\",\n \"ranges\": [\n { \"to\": \"10.0.0.5\" },\n { \"from\": \"10.0.0.5\" }\n ],\n \"keyed\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/iprange-aggregation.asciidoc","line":137},"digest":"b450cd2b82334b7b841236dc0dfb655b","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"ip_ranges\": {\n \"buckets\": {\n \"*-10.0.0.5\": {\n \"to\": \"10.0.0.5\",\n \"doc_count\": 10\n },\n \"10.0.0.5-*\": {\n \"from\": \"10.0.0.5\",\n \"doc_count\": 260\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/iprange-aggregation.asciidoc","line":162},"digest":"a799477dff04578b200788a63f9cff71","lang":"console","found":["python","ruby","js"],"source":"GET /ip_addresses/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"ip_ranges\": {\n \"ip_range\": {\n \"field\": \"ip\",\n \"ranges\": [\n { \"key\": \"infinity\", \"to\": \"10.0.0.5\" },\n { \"key\": \"and-beyond\", \"from\": \"10.0.0.5\" }\n ],\n \"keyed\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/iprange-aggregation.asciidoc","line":185},"digest":"25598b2889a04a2d2f0a27761cd349c2","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"ip_ranges\": {\n \"buckets\": {\n \"infinity\": {\n \"to\": \"10.0.0.5\",\n \"doc_count\": 10\n },\n \"and-beyond\": {\n \"from\": \"10.0.0.5\",\n \"doc_count\": 260\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/missing-aggregation.asciidoc","line":12},"digest":"8b5bc6e217b0d33e4c88d84f5c1a0712","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"products_without_a_price\": {\n \"missing\": { \"field\": \"price\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/missing-aggregation.asciidoc","line":29},"digest":"0bd0e0af805fc7919308e237d4c9bf59","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"products_without_a_price\": {\n \"doc_count\": 0\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/multi-terms-aggregation.asciidoc","line":61},"digest":"d35a4d78a8b70c9e4d636efb0a92be9d","lang":"console","found":["python","ruby","js"],"source":"GET /products/_search\n{\n \"aggs\": {\n \"genres_and_products\": {\n \"multi_terms\": {\n \"terms\": [{\n \"field\": \"genre\" <1>\n }, {\n \"field\": \"product\"\n }]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/multi-terms-aggregation.asciidoc","line":85},"digest":"480e7bb42de45b25be5a63aedcfdec12","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"genres_and_products\" : {\n \"doc_count_error_upper_bound\" : 0, <1>\n \"sum_other_doc_count\" : 0, <2>\n \"buckets\" : [ <3>\n {\n \"key\" : [ <4>\n \"rock\",\n \"Product A\"\n ],\n \"key_as_string\" : \"rock|Product A\",\n \"doc_count\" : 2\n },\n {\n \"key\" : [\n \"electronic\",\n \"Product B\"\n ],\n \"key_as_string\" : \"electronic|Product B\",\n \"doc_count\" : 1\n },\n {\n \"key\" : [\n \"jazz\",\n \"Product B\"\n ],\n \"key_as_string\" : \"jazz|Product B\",\n \"doc_count\" : 1\n },\n {\n \"key\" : [\n \"rock\",\n \"Product B\"\n ],\n \"key_as_string\" : \"rock|Product B\",\n \"doc_count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/multi-terms-aggregation.asciidoc","line":172},"digest":"ec8f176ebf436d5719bdeca4a9ea8220","lang":"console","found":["python","ruby","js"],"source":"GET /products/_search\n{\n \"runtime_mappings\": {\n \"genre.length\": {\n \"type\": \"long\",\n \"script\": \"emit(doc['genre'].value.length())\"\n }\n },\n \"aggs\": {\n \"genres_and_products\": {\n \"multi_terms\": {\n \"terms\": [\n {\n \"field\": \"genre.length\"\n },\n {\n \"field\": \"product\"\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/multi-terms-aggregation.asciidoc","line":202},"digest":"1fd186529287d0ffbc7d6154bd59d166","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"genres_and_products\" : {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\" : [\n {\n \"key\" : [\n 4,\n \"Product A\"\n ],\n \"key_as_string\" : \"4|Product A\",\n \"doc_count\" : 2\n },\n {\n \"key\" : [\n 4,\n \"Product B\"\n ],\n \"key_as_string\" : \"4|Product B\",\n \"doc_count\" : 2\n },\n {\n \"key\" : [\n 10,\n \"Product B\"\n ],\n \"key_as_string\" : \"10|Product B\",\n \"doc_count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/multi-terms-aggregation.asciidoc","line":248},"digest":"e82c33def91faddcfeed7b02cd258605","lang":"console","found":["python","ruby","js"],"source":"GET /products/_search\n{\n \"aggs\": {\n \"genres_and_products\": {\n \"multi_terms\": {\n \"terms\": [\n {\n \"field\": \"genre\"\n },\n {\n \"field\": \"product\",\n \"missing\": \"Product Z\"\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/multi-terms-aggregation.asciidoc","line":273},"digest":"386e857f087f568ee7f8b31069c0a252","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"genres_and_products\" : {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\" : [\n {\n \"key\" : [\n \"rock\",\n \"Product A\"\n ],\n \"key_as_string\" : \"rock|Product A\",\n \"doc_count\" : 2\n },\n {\n \"key\" : [\n \"electronic\",\n \"Product B\"\n ],\n \"key_as_string\" : \"electronic|Product B\",\n \"doc_count\" : 1\n },\n {\n \"key\" : [\n \"electronic\",\n \"Product Z\"\n ],\n \"key_as_string\" : \"electronic|Product Z\", <1>\n \"doc_count\" : 1\n },\n {\n \"key\" : [\n \"jazz\",\n \"Product B\"\n ],\n \"key_as_string\" : \"jazz|Product B\",\n \"doc_count\" : 1\n },\n {\n \"key\" : [\n \"rock\",\n \"Product B\"\n ],\n \"key_as_string\" : \"rock|Product B\",\n \"doc_count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/multi-terms-aggregation.asciidoc","line":342},"digest":"73f9271dee9b8539b6aa7e17f323c623","lang":"console","found":["python","ruby","js"],"source":"GET /products/_search\n{\n \"aggs\": {\n \"genres_and_products\": {\n \"multi_terms\": {\n \"terms\": [\n {\n \"field\": \"genre\"\n },\n {\n \"field\": \"product\"\n }\n ],\n \"order\": {\n \"total_quantity\": \"desc\"\n }\n },\n \"aggs\": {\n \"total_quantity\": {\n \"sum\": {\n \"field\": \"quantity\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/multi-terms-aggregation.asciidoc","line":374},"digest":"c886b3e2502fee78cb98eef8d94f63a5","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"genres_and_products\" : {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\" : [\n {\n \"key\" : [\n \"jazz\",\n \"Product B\"\n ],\n \"key_as_string\" : \"jazz|Product B\",\n \"doc_count\" : 1,\n \"total_quantity\" : {\n \"value\" : 10.0\n }\n },\n {\n \"key\" : [\n \"rock\",\n \"Product A\"\n ],\n \"key_as_string\" : \"rock|Product A\",\n \"doc_count\" : 2,\n \"total_quantity\" : {\n \"value\" : 9.0\n }\n },\n {\n \"key\" : [\n \"electronic\",\n \"Product B\"\n ],\n \"key_as_string\" : \"electronic|Product B\",\n \"doc_count\" : 1,\n \"total_quantity\" : {\n \"value\" : 3.0\n }\n },\n {\n \"key\" : [\n \"rock\",\n \"Product B\"\n ],\n \"key_as_string\" : \"rock|Product B\",\n \"doc_count\" : 1,\n \"total_quantity\" : {\n \"value\" : 1.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/nested-aggregation.asciidoc","line":13},"digest":"a1e5884051755b5a5f4d7549f319f4c7","lang":"console","found":["python","ruby","js"],"source":"PUT /products\n{\n \"mappings\": {\n \"properties\": {\n \"resellers\": { <1>\n \"type\": \"nested\",\n \"properties\": {\n \"reseller\": {\n \"type\": \"keyword\"\n },\n \"price\": {\n \"type\": \"double\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/nested-aggregation.asciidoc","line":38},"digest":"515e1104d136082e826d1b32af011759","lang":"console","found":["python","ruby","js"],"source":"PUT /products/_doc/0?refresh\n{\n \"name\": \"LED TV\", <1>\n \"resellers\": [\n {\n \"reseller\": \"companyA\",\n \"price\": 350\n },\n {\n \"reseller\": \"companyB\",\n \"price\": 500\n }\n ]\n}"},
{"source_location":{"file":"aggregations/bucket/nested-aggregation.asciidoc","line":62},"digest":"fc75ea748e5f49b8ab292e453ab641a6","lang":"console","found":["python","ruby","js"],"source":"GET /products/_search?size=0\n{\n \"query\": {\n \"match\": {\n \"name\": \"led tv\"\n }\n },\n \"aggs\": {\n \"resellers\": {\n \"nested\": {\n \"path\": \"resellers\"\n },\n \"aggs\": {\n \"min_price\": {\n \"min\": {\n \"field\": \"resellers.price\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/nested-aggregation.asciidoc","line":95},"digest":"6de17b54328921cba989e129cca8eb30","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"resellers\": {\n \"doc_count\": 2,\n \"min_price\": {\n \"value\": 350.0\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/nested-aggregation.asciidoc","line":114},"digest":"cf5dab4334783ca9b8942eab68fb7174","lang":"console","found":["python","ruby","js"],"source":"GET /products/_search?size=0\n{\n \"query\": {\n \"match\": {\n \"name\": \"led tv\"\n }\n },\n \"aggs\": {\n \"resellers\": {\n \"nested\": {\n \"path\": \"resellers\"\n },\n \"aggs\": {\n \"filter_reseller\": {\n \"filter\": {\n \"bool\": {\n \"filter\": [\n {\n \"term\": {\n \"resellers.reseller\": \"companyB\"\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"min_price\": {\n \"min\": {\n \"field\": \"resellers.price\"\n }\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/nested-aggregation.asciidoc","line":159},"digest":"b5d9ab124a0712dbaaaab7f6cbe99a00","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"resellers\": {\n \"doc_count\": 2,\n \"filter_reseller\": {\n \"doc_count\": 1,\n \"min_price\": {\n \"value\": 500.0\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/parent-aggregation.asciidoc","line":16},"digest":"1db086021e83205b6eab3b7765911cc2","lang":"console","found":["python","ruby","js"],"source":"PUT parent_example\n{\n \"mappings\": {\n \"properties\": {\n \"join\": {\n \"type\": \"join\",\n \"relations\": {\n \"question\": \"answer\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/parent-aggregation.asciidoc","line":39},"digest":"c9afa715021f2e6450e72ac73271960c","lang":"console","found":["python","ruby","js"],"source":"PUT parent_example/_doc/1\n{\n \"join\": {\n \"name\": \"question\"\n },\n \"body\": \"I have Windows 2003 server and i bought a new Windows 2008 server...\",\n \"title\": \"Whats the best way to file transfer my site from server to a newer one?\",\n \"tags\": [\n \"windows-server-2003\",\n \"windows-server-2008\",\n \"file-transfer\"\n ]\n}"},
{"source_location":{"file":"aggregations/bucket/parent-aggregation.asciidoc","line":59},"digest":"d8310e5606c61e7a6e64a90838b1a830","lang":"console","found":["python","ruby","js"],"source":"PUT parent_example/_doc/2?routing=1\n{\n \"join\": {\n \"name\": \"answer\",\n \"parent\": \"1\"\n },\n \"owner\": {\n \"location\": \"Norfolk, United Kingdom\",\n \"display_name\": \"Sam\",\n \"id\": 48\n },\n \"body\": \"
Unfortunately you're pretty much limited to FTP...\",\n \"creation_date\": \"2009-05-04T13:45:37.030\"\n}\n\nPUT parent_example/_doc/3?routing=1&refresh\n{\n \"join\": {\n \"name\": \"answer\",\n \"parent\": \"1\"\n },\n \"owner\": {\n \"location\": \"Norfolk, United Kingdom\",\n \"display_name\": \"Troll\",\n \"id\": 49\n },\n \"body\": \"
Use Linux...\",\n \"creation_date\": \"2009-05-05T13:45:37.030\"\n}"},
{"source_location":{"file":"aggregations/bucket/parent-aggregation.asciidoc","line":95},"digest":"686bc640b877de845c46bef372a9866c","lang":"console","found":["python","ruby","js"],"source":"POST parent_example/_search?size=0\n{\n \"aggs\": {\n \"top-names\": {\n \"terms\": {\n \"field\": \"owner.display_name.keyword\",\n \"size\": 10\n },\n \"aggs\": {\n \"to-questions\": {\n \"parent\": {\n \"type\" : \"answer\" <1>\n },\n \"aggs\": {\n \"top-tags\": {\n \"terms\": {\n \"field\": \"tags.keyword\",\n \"size\": 10\n }\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/parent-aggregation.asciidoc","line":132},"digest":"cc544f17f55e9cce00a7b680e3129e6b","lang":"console-result","found":[],"source":"{\n \"took\": 9,\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\": null,\n \"hits\": []\n },\n \"aggregations\": {\n \"top-names\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"Sam\",\n \"doc_count\": 1, <1>\n \"to-questions\": {\n \"doc_count\": 1, <2>\n \"top-tags\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"file-transfer\",\n \"doc_count\": 1\n },\n {\n \"key\": \"windows-server-2003\",\n \"doc_count\": 1\n },\n {\n \"key\": \"windows-server-2008\",\n \"doc_count\": 1\n }\n ]\n }\n }\n },\n {\n \"key\": \"Troll\",\n \"doc_count\": 1,\n \"to-questions\": {\n \"doc_count\": 1,\n \"top-tags\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"file-transfer\",\n \"doc_count\": 1\n },\n {\n \"key\": \"windows-server-2003\",\n \"doc_count\": 1\n },\n {\n \"key\": \"windows-server-2008\",\n \"doc_count\": 1\n }\n ]\n }\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/random-sampler-aggregation.asciidoc","line":25},"digest":"8fe128323a944765f525c76d85af7a2f","lang":"console","found":["python","ruby","js"],"source":"GET kibana_sample_data_ecommerce/_search?size=0&track_total_hits=false\n{\n \"aggregations\": {\n \"sampling\": {\n \"random_sampler\": {\n \"probability\": 0.1\n },\n \"aggs\": {\n \"price_percentiles\": {\n \"percentiles\": {\n \"field\": \"taxful_total_price\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":13},"digest":"ef8f30e85e12e9a5a8817d28977598e4","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search\n{\n \"aggs\": {\n \"price_ranges\": {\n \"range\": {\n \"field\": \"price\",\n \"ranges\": [\n { \"to\": 100.0 },\n { \"from\": 100.0, \"to\": 200.0 },\n { \"from\": 200.0 }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":36},"digest":"60d4c98b4e6ebdd9696bb66e3efc0d66","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"price_ranges\": {\n \"buckets\": [\n {\n \"key\": \"*-100.0\",\n \"to\": 100.0,\n \"doc_count\": 2\n },\n {\n \"key\": \"100.0-200.0\",\n \"from\": 100.0,\n \"to\": 200.0,\n \"doc_count\": 2\n },\n {\n \"key\": \"200.0-*\",\n \"from\": 200.0,\n \"doc_count\": 3\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":70},"digest":"88195d87a350e7fff200131f410c3e88","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search\n{\n \"aggs\": {\n \"price_ranges\": {\n \"range\": {\n \"field\": \"price\",\n \"keyed\": true,\n \"ranges\": [\n { \"to\": 100 },\n { \"from\": 100, \"to\": 200 },\n { \"from\": 200 }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":94},"digest":"b6bb60d286c070461c3b14f166a868fc","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"price_ranges\": {\n \"buckets\": {\n \"*-100.0\": {\n \"to\": 100.0,\n \"doc_count\": 2\n },\n \"100.0-200.0\": {\n \"from\": 100.0,\n \"to\": 200.0,\n \"doc_count\": 2\n },\n \"200.0-*\": {\n \"from\": 200.0,\n \"doc_count\": 3\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":123},"digest":"71de08a2d962c66f0c60677eff23f8d1","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search\n{\n \"aggs\": {\n \"price_ranges\": {\n \"range\": {\n \"field\": \"price\",\n \"keyed\": true,\n \"ranges\": [\n { \"key\": \"cheap\", \"to\": 100 },\n { \"key\": \"average\", \"from\": 100, \"to\": 200 },\n { \"key\": \"expensive\", \"from\": 200 }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":147},"digest":"28bc5d0b224ca2b79d5b6476aec55281","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"price_ranges\": {\n \"buckets\": {\n \"cheap\": {\n \"to\": 100.0,\n \"doc_count\": 2\n },\n \"average\": {\n \"from\": 100.0,\n \"to\": 200.0,\n \"doc_count\": 2\n },\n \"expensive\": {\n \"from\": 200.0,\n \"doc_count\": 3\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":180},"digest":"e12f2d2ddca387630e7855a6db952da2","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search\n{\n \"runtime_mappings\": {\n \"price.euros\": {\n \"type\": \"double\",\n \"script\": {\n \"source\": \"\"\"\n emit(doc['price'].value * params.conversion_rate)\n \"\"\",\n \"params\": {\n \"conversion_rate\": 0.835526591\n }\n }\n }\n },\n \"aggs\": {\n \"price_ranges\": {\n \"range\": {\n \"field\": \"price.euros\",\n \"ranges\": [\n { \"to\": 100 },\n { \"from\": 100, \"to\": 200 },\n { \"from\": 200 }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":250},"digest":"22ef90a7fb057728d2115f0c6f551819","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search\n{\n \"aggs\": {\n \"price_ranges\": {\n \"range\": {\n \"field\": \"price\",\n \"ranges\": [\n { \"to\": 100 },\n { \"from\": 100, \"to\": 200 },\n { \"from\": 200 }\n ]\n },\n \"aggs\": {\n \"price_stats\": {\n \"stats\": { \"field\": \"price\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":278},"digest":"a1638e5183344dadbe748f97763d360a","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"price_ranges\": {\n \"buckets\": [\n {\n \"key\": \"*-100.0\",\n \"to\": 100.0,\n \"doc_count\": 2,\n \"price_stats\": {\n \"count\": 2,\n \"min\": 10.0,\n \"max\": 50.0,\n \"avg\": 30.0,\n \"sum\": 60.0\n }\n },\n {\n \"key\": \"100.0-200.0\",\n \"from\": 100.0,\n \"to\": 200.0,\n \"doc_count\": 2,\n \"price_stats\": {\n \"count\": 2,\n \"min\": 150.0,\n \"max\": 175.0,\n \"avg\": 162.5,\n \"sum\": 325.0\n }\n },\n {\n \"key\": \"200.0-*\",\n \"from\": 200.0,\n \"doc_count\": 3,\n \"price_stats\": {\n \"count\": 3,\n \"min\": 200.0,\n \"max\": 200.0,\n \"avg\": 200.0,\n \"sum\": 600.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":340},"digest":"a63e0d0504e0c9313814b7f4e2641353","lang":"console","found":["python","ruby","js"],"source":"PUT metrics_index\n{\n \"mappings\": {\n \"properties\": {\n \"network\": {\n \"properties\": {\n \"name\": {\n \"type\": \"keyword\"\n }\n }\n },\n \"latency_histo\": {\n \"type\": \"histogram\"\n }\n }\n }\n}\n\nPUT metrics_index/_doc/1?refresh\n{\n \"network.name\" : \"net-1\",\n \"latency_histo\" : {\n \"values\" : [1, 3, 8, 12, 15],\n \"counts\" : [3, 7, 23, 12, 6]\n }\n}\n\nPUT metrics_index/_doc/2?refresh\n{\n \"network.name\" : \"net-2\",\n \"latency_histo\" : {\n \"values\" : [1, 6, 8, 12, 14],\n \"counts\" : [8, 17, 8, 7, 6]\n }\n}\n\nGET metrics_index/_search?size=0&filter_path=aggregations\n{\n \"aggs\": {\n \"latency_ranges\": {\n \"range\": {\n \"field\": \"latency_histo\",\n \"ranges\": [\n {\"to\": 2},\n {\"from\": 2, \"to\": 3},\n {\"from\": 3, \"to\": 10},\n {\"from\": 10}\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-aggregation.asciidoc","line":399},"digest":"27864a8d245c7a9839bae3ba429ba945","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"latency_ranges\": {\n \"buckets\": [\n {\n \"key\": \"*-2.0\",\n \"to\": 2.0,\n \"doc_count\": 11\n },\n {\n \"key\": \"2.0-3.0\",\n \"from\": 2.0,\n \"to\": 3.0,\n \"doc_count\": 0\n },\n {\n \"key\": \"3.0-10.0\",\n \"from\": 3.0,\n \"to\": 10.0,\n \"doc_count\": 55\n },\n {\n \"key\": \"10.0-*\",\n \"from\": 10.0,\n \"doc_count\": 31\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/rare-terms-aggregation.asciidoc","line":92},"digest":"3ffe9952786ab258bb6ab928b03148a2","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"rare_terms\": {\n \"field\": \"genre\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/rare-terms-aggregation.asciidoc","line":109},"digest":"1f97cb9123db24e364ca20f98ea31e43","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"genres\": {\n \"buckets\": [\n {\n \"key\": \"swing\",\n \"doc_count\": 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/rare-terms-aggregation.asciidoc","line":130},"digest":"f5013174f77868da4dc40cdd745d4ea4","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"rare_terms\": {\n \"field\": \"genre\",\n \"max_doc_count\": 2\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/rare-terms-aggregation.asciidoc","line":148},"digest":"ba63e98b6d618cfc7f6c17ee7f478af3","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"genres\": {\n \"buckets\": [\n {\n \"key\": \"swing\",\n \"doc_count\": 1\n },\n {\n \"key\": \"jazz\",\n \"doc_count\": 2\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/rare-terms-aggregation.asciidoc","line":280},"digest":"df103a3df9b353357e72f9180ef421a1","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"rare_terms\": {\n \"field\": \"genre\",\n \"include\": \"swi*\",\n \"exclude\": \"electro*\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/rare-terms-aggregation.asciidoc","line":308},"digest":"b691d41f84b5b46e9051b51db22a46af","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"rare_terms\": {\n \"field\": \"genre\",\n \"include\": [ \"swing\", \"rock\" ],\n \"exclude\": [ \"jazz\" ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/rare-terms-aggregation.asciidoc","line":331},"digest":"4f67b5f5c040f611bd2560a5d38ea6f5","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"rare_terms\": {\n \"field\": \"genre\",\n \"missing\": \"N/A\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/reverse-nested-aggregation.asciidoc","line":22},"digest":"16239fe9f0b0dcfd5ea64c08c6fed21d","lang":"console","found":["python","ruby","js"],"source":"PUT /issues\n{\n \"mappings\": {\n \"properties\": {\n \"tags\": { \"type\": \"keyword\" },\n \"comments\": { <1>\n \"type\": \"nested\",\n \"properties\": {\n \"username\": { \"type\": \"keyword\" },\n \"comment\": { \"type\": \"text\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/reverse-nested-aggregation.asciidoc","line":57},"digest":"aee26dd62fbb6d614a0798f3344c0598","lang":"console","found":["python","ruby","js"],"source":"GET /issues/_search\n{\n \"query\": {\n \"match_all\": {}\n },\n \"aggs\": {\n \"comments\": {\n \"nested\": {\n \"path\": \"comments\"\n },\n \"aggs\": {\n \"top_usernames\": {\n \"terms\": {\n \"field\": \"comments.username\"\n },\n \"aggs\": {\n \"comment_to_issue\": {\n \"reverse_nested\": {}, <1>\n \"aggs\": {\n \"top_tags_per_comment\": {\n \"terms\": {\n \"field\": \"tags\"\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/reverse-nested-aggregation.asciidoc","line":105},"digest":"0a6d93e9cde7a4b1968057176a824c33","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"comments\": {\n \"doc_count\": 1,\n \"top_usernames\": {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\": [\n {\n \"key\": \"username_1\",\n \"doc_count\": 1,\n \"comment_to_issue\": {\n \"doc_count\": 1,\n \"top_tags_per_comment\": {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\": [\n {\n \"key\": \"tag_1\",\n \"doc_count\": 1\n }\n ...\n ]\n }\n }\n }\n ...\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/sampler-aggregation.asciidoc","line":22},"digest":"e8bb5c57bdeff22be8e5f39a99dfe70e","lang":"console","found":["python","ruby","js"],"source":"POST /stackoverflow/_search?size=0\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"tags:kibana OR tags:javascript\"\n }\n },\n \"aggs\": {\n \"sample\": {\n \"sampler\": {\n \"shard_size\": 200\n },\n \"aggs\": {\n \"keywords\": {\n \"significant_terms\": {\n \"field\": \"tags\",\n \"exclude\": [ \"kibana\", \"javascript\" ]\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/sampler-aggregation.asciidoc","line":52},"digest":"9beb32c87d4e795c0c80585c1605f000","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"sample\": {\n \"doc_count\": 200, <1>\n \"keywords\": {\n \"doc_count\": 200,\n \"bg_count\": 650,\n \"buckets\": [\n {\n \"key\": \"elasticsearch\",\n \"doc_count\": 150,\n \"score\": 1.078125,\n \"bg_count\": 200\n },\n {\n \"key\": \"logstash\",\n \"doc_count\": 50,\n \"score\": 0.5625,\n \"bg_count\": 50\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/sampler-aggregation.asciidoc","line":91},"digest":"91cbeeda86b4e4e393fc79d4e3a4a781","lang":"console","found":["python","ruby","js"],"source":"POST /stackoverflow/_search?size=0\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"tags:kibana OR tags:javascript\"\n }\n },\n \"aggs\": {\n \"low_quality_keywords\": {\n \"significant_terms\": {\n \"field\": \"tags\",\n \"size\": 3,\n \"exclude\": [ \"kibana\", \"javascript\" ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/sampler-aggregation.asciidoc","line":115},"digest":"c85ebd29ebd25fe47626a0a3196fdfa9","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"low_quality_keywords\": {\n \"doc_count\": 600,\n \"bg_count\": 650,\n \"buckets\": [\n {\n \"key\": \"angular\",\n \"doc_count\": 200,\n \"score\": 0.02777,\n \"bg_count\": 200\n },\n {\n \"key\": \"jquery\",\n \"doc_count\": 200,\n \"score\": 0.02777,\n \"bg_count\": 200\n },\n {\n \"key\": \"logstash\",\n \"doc_count\": 50,\n \"score\": 0.0069,\n \"bg_count\": 50\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significantterms-aggregation.asciidoc","line":70},"digest":"8731188553e14134b0a533010318f91a","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"query\": {\n \"terms\": { \"force\": [ \"British Transport Police\" ] }\n },\n \"aggregations\": {\n \"significant_crime_types\": {\n \"significant_terms\": { \"field\": \"crime_type\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significantterms-aggregation.asciidoc","line":88},"digest":"838d7f706af23e5b5dd8ad791d741a19","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"significant_crime_types\": {\n \"doc_count\": 47347,\n \"bg_count\": 5064554,\n \"buckets\": [\n {\n \"key\": \"Bicycle theft\",\n \"doc_count\": 3640,\n \"score\": 0.371235374214817,\n \"bg_count\": 66799\n }\n ...\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significantterms-aggregation.asciidoc","line":130},"digest":"37ae7c3e4d6d954487ec4185fe7d9ec8","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggregations\": {\n \"forces\": {\n \"terms\": { \"field\": \"force\" },\n \"aggregations\": {\n \"significant_crime_types\": {\n \"significant_terms\": { \"field\": \"crime_type\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significantterms-aggregation.asciidoc","line":150},"digest":"e084e62bff969d42d542681f4b2dc5ee","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"forces\": {\n \"doc_count_error_upper_bound\": 1375,\n \"sum_other_doc_count\": 7879845,\n \"buckets\": [\n {\n \"key\": \"Metropolitan Police Service\",\n \"doc_count\": 894038,\n \"significant_crime_types\": {\n \"doc_count\": 894038,\n \"bg_count\": 5064554,\n \"buckets\": [\n {\n \"key\": \"Robbery\",\n \"doc_count\": 27617,\n \"score\": 0.0599,\n \"bg_count\": 53182\n }\n ...\n ]\n }\n },\n {\n \"key\": \"British Transport Police\",\n \"doc_count\": 47347,\n \"significant_crime_types\": {\n \"doc_count\": 47347,\n \"bg_count\": 5064554,\n \"buckets\": [\n {\n \"key\": \"Bicycle theft\",\n \"doc_count\": 3640,\n \"score\": 0.371,\n \"bg_count\": 66799\n }\n ...\n ]\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significantterms-aggregation.asciidoc","line":207},"digest":"e7e95022867c72a6563137f066dd2973","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"hotspots\": {\n \"geohash_grid\": {\n \"field\": \"location\",\n \"precision\": 5\n },\n \"aggs\": {\n \"significant_crime_types\": {\n \"significant_terms\": { \"field\": \"crime_type\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significantterms-aggregation.asciidoc","line":412},"digest":"377af0ea9b19c113f224d8150890b41b","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"filter\": [\n {\n \"term\": {\n \"event.outcome\": \"failure\"\n }\n },\n {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"2021-02-01\",\n \"lt\": \"2021-02-04\"\n }\n }\n },\n {\n \"term\": {\n \"service.name\": {\n \"value\": \"frontend-node\"\n }\n }\n }\n ]\n }\n },\n \"aggs\": {\n \"failure_p_value\": {\n \"significant_terms\": {\n \"field\": \"user_agent.version\",\n \"background_filter\": {\n \"bool\": {\n \"must_not\": [\n {\n \"term\": {\n \"event.outcome\": \"failure\"\n }\n }\n ],\n \"filter\": [\n {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"2021-02-01\",\n \"lt\": \"2021-02-04\"\n }\n }\n },\n {\n \"term\": {\n \"service.name\": {\n \"value\": \"frontend-node\"\n }\n }\n }\n ]\n }\n },\n \"p_value\": {\"background_is_superset\": false, \"normalize_above\": 1000}\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significantterms-aggregation.asciidoc","line":560},"digest":"540aefc39303c925a4efff71ebe2f002","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"tags\": {\n \"significant_terms\": {\n \"field\": \"tag\",\n \"min_doc_count\": 10\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significantterms-aggregation.asciidoc","line":602},"digest":"ea313059c18d6edbd28c3f743a5e7c1c","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"query\": {\n \"match\": {\n \"city\": \"madrid\"\n }\n },\n \"aggs\": {\n \"tags\": {\n \"significant_terms\": {\n \"field\": \"tag\",\n \"background_filter\": {\n \"term\": { \"text\": \"spain\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significantterms-aggregation.asciidoc","line":660},"digest":"a3f19f3787cb331f230cdac67ff578e8","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"tags\": {\n \"significant_terms\": {\n \"field\": \"tags\",\n \"execution_hint\": \"map\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significanttext-aggregation.asciidoc","line":39},"digest":"e99c45a47dc0ba7440aea8a9a99c84fa","lang":"console","found":["python","ruby","js"],"source":"GET news/_search\n{\n \"query\": {\n \"match\": { \"content\": \"Bird flu\" }\n },\n \"aggregations\": {\n \"my_sample\": {\n \"sampler\": {\n \"shard_size\": 100\n },\n \"aggregations\": {\n \"keywords\": {\n \"significant_text\": { \"field\": \"content\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significanttext-aggregation.asciidoc","line":65},"digest":"adabe4ea803f7bed66405f1783047825","lang":"console-result","found":[],"source":"{\n \"took\": 9,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\" : {\n \"my_sample\": {\n \"doc_count\": 100,\n \"keywords\" : {\n \"doc_count\": 100,\n \"buckets\" : [\n {\n \"key\": \"h5n1\",\n \"doc_count\": 4,\n \"score\": 4.71235374214817,\n \"bg_count\": 5\n }\n ...\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significanttext-aggregation.asciidoc","line":153},"digest":"d44ecc69090c0b2bc08a6cbc2e3467c5","lang":"console","found":["python","ruby","js"],"source":"GET news/_search\n{\n \"query\": {\n \"simple_query_string\": {\n \"query\": \"+elasticsearch +pozmantier\"\n }\n },\n \"_source\": [\n \"title\",\n \"source\"\n ],\n \"highlight\": {\n \"fields\": {\n \"content\": {}\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significanttext-aggregation.asciidoc","line":221},"digest":"805f5550b90e75aa5cc82b90d8c6c242","lang":"console","found":["python","ruby","js"],"source":"GET news/_search\n{\n \"query\": {\n \"match\": {\n \"content\": \"elasticsearch\"\n }\n },\n \"aggs\": {\n \"sample\": {\n \"sampler\": {\n \"shard_size\": 100\n },\n \"aggs\": {\n \"keywords\": {\n \"significant_text\": {\n \"field\": \"content\",\n \"filter_duplicate_text\": true\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significanttext-aggregation.asciidoc","line":417},"digest":"60a9aa5dcde9023901f6ff27231a10c4","lang":"console","found":["python","ruby","js"],"source":"GET news/_search\n{\n \"query\": {\n \"match\": {\n \"content\": \"madrid\"\n }\n },\n \"aggs\": {\n \"tags\": {\n \"significant_text\": {\n \"field\": \"content\",\n \"background_filter\": {\n \"term\": { \"content\": \"spain\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/significanttext-aggregation.asciidoc","line":455},"digest":"3f20459d358611793272f63dc596e889","lang":"console","found":["python","ruby","js"],"source":"GET news/_search\n{\n \"query\": {\n \"match\": {\n \"custom_all\": \"elasticsearch\"\n }\n },\n \"aggs\": {\n \"tags\": {\n \"significant_text\": {\n \"field\": \"custom_all\",\n \"source_fields\": [ \"content\", \"title\" ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":58},"digest":"8ee9521f57661a050efb614f02b4a090","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"terms\": { \"field\": \"genre\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":73},"digest":"68aaac89471c93d7063fc99d324d6a27","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"genres\": {\n \"doc_count_error_upper_bound\": 0, <1>\n \"sum_other_doc_count\": 0, <2>\n \"buckets\": [ <3>\n {\n \"key\": \"electronic\",\n \"doc_count\": 6\n },\n {\n \"key\": \"rock\",\n \"doc_count\": 3\n },\n {\n \"key\": \"jazz\",\n \"doc_count\": 2\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":185},"digest":"e60ded7becfd5b2ccaef5bad2aaa93f5","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"products\": {\n \"terms\": {\n \"field\": \"product\",\n \"size\": 5,\n \"show_term_doc_count_error\": true\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":237},"digest":"54a215d242ab65123b09e9dfb71bcbbf","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"terms\": {\n \"field\": \"genre\",\n \"order\": { \"_key\": \"asc\" }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":272},"digest":"8eac28d2e9b6482b413d61817456a14f","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"terms\": {\n \"field\": \"genre\",\n \"order\": { \"max_play_count\": \"desc\" }\n },\n \"aggs\": {\n \"max_play_count\": { \"max\": { \"field\": \"play_count\" } }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":292},"digest":"f495f9c99916a05e3b28166d31955fad","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"terms\": {\n \"field\": \"genre\",\n \"order\": { \"playback_stats.max\": \"desc\" }\n },\n \"aggs\": {\n \"playback_stats\": { \"stats\": { \"field\": \"play_count\" } }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":338},"digest":"1e871f060dbe1a5c316ed205278804a8","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"countries\": {\n \"terms\": {\n \"field\": \"artist.country\",\n \"order\": { \"rock>playback_stats.avg\": \"desc\" }\n },\n \"aggs\": {\n \"rock\": {\n \"filter\": { \"term\": { \"genre\": \"rock\" } },\n \"aggs\": {\n \"playback_stats\": { \"stats\": { \"field\": \"play_count\" } }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":365},"digest":"4ba86373e13e106de044f190343be328","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"countries\": {\n \"terms\": {\n \"field\": \"artist.country\",\n \"order\": [ { \"rock>playback_stats.avg\": \"desc\" }, { \"_count\": \"desc\" } ]\n },\n \"aggs\": {\n \"rock\": {\n \"filter\": { \"term\": { \"genre\": \"rock\" } },\n \"aggs\": {\n \"playback_stats\": { \"stats\": { \"field\": \"play_count\" } }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":400},"digest":"c5802e9f3f4068fcecb6937b867b270d","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"genres\": {\n \"terms\": {\n \"field\": \"genre\",\n \"order\": { \"_count\": \"asc\" }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":419},"digest":"b6c872d04eabb39d1947cde6b29d4ae1","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"tags\": {\n \"terms\": {\n \"field\": \"tags\",\n \"min_doc_count\": 10\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":464},"digest":"e891e1d4805172da45a81f62b6b44aca","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"normalized_genre\": {\n \"type\": \"keyword\",\n \"script\": \"\"\"\n String genre = doc['genre'].value;\n if (doc['product'].value.startsWith('Anthology')) {\n emit(genre + ' anthology');\n } else {\n emit(genre);\n }\n \"\"\"\n }\n },\n \"aggs\": {\n \"genres\": {\n \"terms\": {\n \"field\": \"normalized_genre\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":494},"digest":"a8603ae35e3c01f87fb9f5e7f302f3b5","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"genres\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"electronic\",\n \"doc_count\": 4\n },\n {\n \"key\": \"rock\",\n \"doc_count\": 3\n },\n {\n \"key\": \"electronic anthology\",\n \"doc_count\": 2\n },\n {\n \"key\": \"jazz\",\n \"doc_count\": 2\n }\n ]\n }\n },\n ...\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":543},"digest":"9403764e6eccad7b321b65e9a10c5727","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"tags\": {\n \"terms\": {\n \"field\": \"tags\",\n \"include\": \".*sport.*\",\n \"exclude\": \"water_.*\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":571},"digest":"0264e994a7e68561e2ca6be0f0d90ee9","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"JapaneseCars\": {\n \"terms\": {\n \"field\": \"make\",\n \"include\": [ \"mazda\", \"honda\" ]\n }\n },\n \"ActiveCarManufacturers\": {\n \"terms\": {\n \"field\": \"make\",\n \"exclude\": [ \"rover\", \"jensen\" ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":600},"digest":"5d9d7b84e2fec7ecd832145cbb951cf1","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"expired_sessions\": {\n \"terms\": {\n \"field\": \"account_id\",\n \"include\": {\n \"partition\": 0,\n \"num_partitions\": 20\n },\n \"size\": 10000,\n \"order\": {\n \"last_access\": \"asc\"\n }\n },\n \"aggs\": {\n \"last_access\": {\n \"max\": {\n \"field\": \"access_date\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":700},"digest":"653c0d0ef146c997ef6bc6450d4f5f94","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"actors\": {\n \"terms\": {\n \"field\": \"actors\",\n \"size\": 10\n },\n \"aggs\": {\n \"costars\": {\n \"terms\": {\n \"field\": \"actors\",\n \"size\": 5\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":731},"digest":"37530f35f315b9f35e3e6a13cf2a1ccd","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"actors\": {\n \"terms\": {\n \"field\": \"actors\",\n \"size\": 10,\n \"collect_mode\": \"breadth_first\" <1>\n },\n \"aggs\": {\n \"costars\": {\n \"terms\": {\n \"field\": \"actors\",\n \"size\": 5\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":782},"digest":"8f9a3fcd17a111f63caa3bef6e5f00f2","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"tags\": {\n \"terms\": {\n \"field\": \"tags\",\n \"execution_hint\": \"map\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":807},"digest":"7ca224d1a7de20a15c008e1b9dbda377","lang":"console","found":["python","ruby","go","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"tags\": {\n \"terms\": {\n \"field\": \"tags\",\n \"missing\": \"N/A\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/terms-aggregation.asciidoc","line":846},"digest":"e316271f668c9889bf548311fb421f1e","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"ip_addresses\": {\n \"terms\": {\n \"field\": \"destination_ip\",\n \"missing\": \"0.0.0.0\",\n \"value_type\": \"ip\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/variablewidthhistogram-aggregation.asciidoc","line":18},"digest":"5dbf06ca9058843f572676fcaf587f75","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"prices\": {\n \"variable_width_histogram\": {\n \"field\": \"price\",\n \"buckets\": 2\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/variablewidthhistogram-aggregation.asciidoc","line":36},"digest":"de7f7009e5000e1e6e121fbe5842703b","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"prices\": {\n \"buckets\": [\n {\n \"min\": 10.0,\n \"key\": 30.0,\n \"max\": 50.0,\n \"doc_count\": 2\n },\n {\n \"min\": 150.0,\n \"key\": 185.0,\n \"max\": 200.0,\n \"doc_count\": 5\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-field-note.asciidoc","line":12},"digest":"dbcd8892dd01c43d5a60c94173574faf","lang":"console","found":["python","ruby","js"],"source":"PUT range_index\n{\n \"settings\": {\n \"number_of_shards\": 2\n },\n \"mappings\": {\n \"properties\": {\n \"expected_attendees\": {\n \"type\": \"integer_range\"\n },\n \"time_frame\": {\n \"type\": \"date_range\",\n \"format\": \"yyyy-MM-dd||epoch_millis\"\n }\n }\n }\n}\n\nPUT range_index/_doc/1?refresh\n{\n \"expected_attendees\" : {\n \"gte\" : 10,\n \"lte\" : 20\n },\n \"time_frame\" : {\n \"gte\" : \"2019-10-28\",\n \"lte\" : \"2019-11-04\"\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-field-note.asciidoc","line":49},"digest":"812a3d7ab461d74efd9136aaf4bcf11c","lang":"console","found":["python","ruby","js"],"source":"POST /range_index/_search?size=0\n{\n \"aggs\": {\n \"range_histo\": {\n \"histogram\": {\n \"field\": \"expected_attendees\",\n \"interval\": 5\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-field-note.asciidoc","line":67},"digest":"44f937e080bb7db49a571fea57f594cf","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"range_histo\" : {\n \"buckets\" : [\n {\n \"key\" : 10.0,\n \"doc_count\" : 1\n },\n {\n \"key\" : 15.0,\n \"doc_count\" : 1\n },\n {\n \"key\" : 20.0,\n \"doc_count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-field-note.asciidoc","line":105},"digest":"722238b4e7b78cdb3c6a986780e7e286","lang":"console","found":["python","ruby","js"],"source":"POST /range_index/_search?size=0\n{\n \"query\": {\n \"range\": {\n \"time_frame\": {\n \"gte\": \"2019-11-01\",\n \"format\": \"yyyy-MM-dd\"\n }\n }\n },\n \"aggs\": {\n \"november_data\": {\n \"date_histogram\": {\n \"field\": \"time_frame\",\n \"calendar_interval\": \"day\",\n \"format\": \"yyyy-MM-dd\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/bucket/range-field-note.asciidoc","line":133},"digest":"e41428c2d6096287a7e8f356a18488cc","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"november_data\" : {\n \"buckets\" : [\n {\n \"key_as_string\" : \"2019-10-28\",\n \"key\" : 1572220800000,\n \"doc_count\" : 1\n },\n {\n \"key_as_string\" : \"2019-10-29\",\n \"key\" : 1572307200000,\n \"doc_count\" : 1\n },\n {\n \"key_as_string\" : \"2019-10-30\",\n \"key\" : 1572393600000,\n \"doc_count\" : 1\n },\n {\n \"key_as_string\" : \"2019-10-31\",\n \"key\" : 1572480000000,\n \"doc_count\" : 1\n },\n {\n \"key_as_string\" : \"2019-11-01\",\n \"key\" : 1572566400000,\n \"doc_count\" : 1\n },\n {\n \"key_as_string\" : \"2019-11-02\",\n \"key\" : 1572652800000,\n \"doc_count\" : 1\n },\n {\n \"key_as_string\" : \"2019-11-03\",\n \"key\" : 1572739200000,\n \"doc_count\" : 1\n },\n {\n \"key_as_string\" : \"2019-11-04\",\n \"key\" : 1572825600000,\n \"doc_count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/avg-aggregation.asciidoc","line":13},"digest":"64ca2ccb79a8f4add5b8fe2d3322ae92","lang":"console","found":["python","ruby","js"],"source":"POST /exams/_search?size=0\n{\n \"aggs\": {\n \"avg_grade\": { \"avg\": { \"field\": \"grade\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/avg-aggregation.asciidoc","line":26},"digest":"fb4c208d99a355e3cea6d3b885c024b2","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"avg_grade\": {\n \"value\": 75.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/avg-aggregation.asciidoc","line":45},"digest":"0cf29da4b9f0503bd1a79bdc883aadbc","lang":"console","found":["python","ruby","js"],"source":"POST /exams/_search?size=0\n{\n \"runtime_mappings\": {\n \"grade.corrected\": {\n \"type\": \"double\",\n \"script\": {\n \"source\": \"emit(Math.min(100, doc['grade'].value * params.correction))\",\n \"params\": {\n \"correction\": 1.2\n }\n }\n }\n },\n \"aggs\": {\n \"avg_corrected_grade\": {\n \"avg\": {\n \"field\": \"grade.corrected\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/avg-aggregation.asciidoc","line":92},"digest":"0d0f7ece06f21e624d21b09804732f61","lang":"console","found":["python","ruby","js"],"source":"POST /exams/_search?size=0\n{\n \"aggs\": {\n \"grade_avg\": {\n \"avg\": {\n \"field\": \"grade\",\n \"missing\": 10 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/avg-aggregation.asciidoc","line":118},"digest":"b2652b1763a5fd31e95c983869b433bd","lang":"console","found":["python","ruby","js"],"source":"PUT metrics_index/_doc/1\n{\n \"network.name\" : \"net-1\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5], <1>\n \"counts\" : [3, 7, 23, 12, 6] <2>\n }\n}\n\nPUT metrics_index/_doc/2\n{\n \"network.name\" : \"net-2\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5], <1>\n \"counts\" : [8, 17, 8, 7, 6] <2>\n }\n}\n\nPOST /metrics_index/_search?size=0\n{\n \"aggs\": {\n \"avg_latency\":\n { \"avg\": { \"field\": \"latency_histo\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/avg-aggregation.asciidoc","line":151},"digest":"ca2b2089f958269ab694a0288c34217f","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"avg_latency\": {\n \"value\": 0.29690721649\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/boxplot-aggregation.asciidoc","line":31},"digest":"2a287d213a812b98d8353c563a058cfc","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_boxplot\": {\n \"boxplot\": {\n \"field\": \"load_time\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/boxplot-aggregation.asciidoc","line":50},"digest":"e98619ded45bbd6448eedf4d0ff9aaac","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"load_time_boxplot\": {\n \"min\": 0.0,\n \"max\": 990.0,\n \"q1\": 167.5,\n \"q2\": 445.0,\n \"q3\": 722.5,\n \"lower\": 0.0,\n \"upper\": 990.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/boxplot-aggregation.asciidoc","line":83},"digest":"f0bfc8d7ab4eb94ea5fdf2e087d8cf5b","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"load_time.seconds\": {\n \"type\": \"long\",\n \"script\": {\n \"source\": \"emit(doc['load_time'].value / params.timeUnit)\",\n \"params\": {\n \"timeUnit\": 1000\n }\n }\n }\n },\n \"aggs\": {\n \"load_time_boxplot\": {\n \"boxplot\": { \"field\": \"load_time.seconds\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/boxplot-aggregation.asciidoc","line":149},"digest":"08a76b3f5a8394d8f9084113334a260a","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_boxplot\": {\n \"boxplot\": {\n \"field\": \"load_time\",\n \"compression\": 200 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/boxplot-aggregation.asciidoc","line":177},"digest":"2bc1d52efec2076dc9fc2a3a2d90e8ab","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_boxplot\": {\n \"boxplot\": {\n \"field\": \"load_time\",\n \"execution_hint\": \"high_accuracy\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/boxplot-aggregation.asciidoc","line":205},"digest":"8696ba08ca6cc4992110c331732e5f47","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"grade_boxplot\": {\n \"boxplot\": {\n \"field\": \"grade\",\n \"missing\": 10 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cardinality-aggregation.asciidoc","line":13},"digest":"61bf6ac15ae3e22323454a9a2872a2fa","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"type_count\": {\n \"cardinality\": {\n \"field\": \"type\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cardinality-aggregation.asciidoc","line":30},"digest":"4e5bbf04c3489f12cfeb64dce4a20f8c","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"type_count\": {\n \"value\": 3\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cardinality-aggregation.asciidoc","line":47},"digest":"1ff296e868635fd102239871a331331b","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"type_count\": {\n \"cardinality\": {\n \"field\": \"type\",\n \"precision_threshold\": 100 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cardinality-aggregation.asciidoc","line":188},"digest":"44dd65d69267017fa2fb2cffadef40bb","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"runtime_mappings\": {\n \"type_and_promoted\": {\n \"type\": \"keyword\",\n \"script\": \"emit(doc['type'].value + ' ' + doc['promoted'].value)\"\n }\n },\n \"aggs\": {\n \"type_promoted_count\": {\n \"cardinality\": {\n \"field\": \"type_and_promoted\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cardinality-aggregation.asciidoc","line":229},"digest":"08e79ca9fdcdfebb2c6a79e6837e649d","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"tag_cardinality\": {\n \"cardinality\": {\n \"field\": \"tag\",\n \"missing\": \"N/A\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/extendedstats-aggregation.asciidoc","line":14},"digest":"930ba37af73dd5ff0342ecfe6c60a4e9","lang":"console","found":["python","ruby","js"],"source":"GET /exams/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"grades_stats\": { \"extended_stats\": { \"field\": \"grade\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/extendedstats-aggregation.asciidoc","line":30},"digest":"d6861575c27800522be8e6eca6f07063","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"grades_stats\": {\n \"count\": 2,\n \"min\": 50.0,\n \"max\": 100.0,\n \"avg\": 75.0,\n \"sum\": 150.0,\n \"sum_of_squares\": 12500.0,\n \"variance\": 625.0,\n \"variance_population\": 625.0,\n \"variance_sampling\": 1250.0,\n \"std_deviation\": 25.0,\n \"std_deviation_population\": 25.0,\n \"std_deviation_sampling\": 35.35533905932738,\n \"std_deviation_bounds\": {\n \"upper\": 125.0,\n \"lower\": 25.0,\n \"upper_population\": 125.0,\n \"lower_population\": 25.0,\n \"upper_sampling\": 145.71067811865476,\n \"lower_sampling\": 4.289321881345245\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/extendedstats-aggregation.asciidoc","line":70},"digest":"0718a0b4f4905a8c90c1ff93de557e56","lang":"console","found":["python","ruby","js"],"source":"GET /exams/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"grades_stats\": {\n \"extended_stats\": {\n \"field\": \"grade\",\n \"sigma\": 3 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/extendedstats-aggregation.asciidoc","line":108},"digest":"2238ac4170275f6cfc2af49c3f014cbc","lang":"console","found":["python","ruby","js"],"source":"GET /exams/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"grade.corrected\": {\n \"type\": \"double\",\n \"script\": {\n \"source\": \"emit(Math.min(100, doc['grade'].value * params.correction))\",\n \"params\": {\n \"correction\": 1.2\n }\n }\n }\n },\n \"aggs\": {\n \"grades_stats\": {\n \"extended_stats\": { \"field\": \"grade.corrected\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/extendedstats-aggregation.asciidoc","line":172},"digest":"5c24a9a0ddbfa50628dacdb9d25f7ab0","lang":"console","found":["python","ruby","js"],"source":"GET /exams/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"grades_stats\": {\n \"extended_stats\": {\n \"field\": \"grade\",\n \"missing\": 0 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geobounds-aggregation.asciidoc","line":12},"digest":"72b999120785dfba2827268482e9be0a","lang":"console","found":["python","ruby","js"],"source":"PUT /museums\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}\n\nPOST /museums/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"location\": \"POINT (4.912350 52.374081)\", \"name\": \"NEMO Science Museum\"}\n{\"index\":{\"_id\":2}}\n{\"location\": \"POINT (4.901618 52.369219)\", \"name\": \"Museum Het Rembrandthuis\"}\n{\"index\":{\"_id\":3}}\n{\"location\": \"POINT (4.914722 52.371667)\", \"name\": \"Nederlands Scheepvaartmuseum\"}\n{\"index\":{\"_id\":4}}\n{\"location\": \"POINT (4.405200 51.222900)\", \"name\": \"Letterenhuis\"}\n{\"index\":{\"_id\":5}}\n{\"location\": \"POINT (2.336389 48.861111)\", \"name\": \"Musée du Louvre\"}\n{\"index\":{\"_id\":6}}\n{\"location\": \"POINT (2.327000 48.860000)\", \"name\": \"Musée d'Orsay\"}\n\nPOST /museums/_search?size=0\n{\n \"query\": {\n \"match\": { \"name\": \"musée\" }\n },\n \"aggs\": {\n \"viewport\": {\n \"geo_bounds\": {\n \"field\": \"location\", <1>\n \"wrap_longitude\": true <2>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geobounds-aggregation.asciidoc","line":62},"digest":"8170a1551ae6f10759a96b53320b0a2c","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"viewport\": {\n \"bounds\": {\n \"top_left\": {\n \"lat\": 48.86111099738628,\n \"lon\": 2.3269999679178\n },\n \"bottom_right\": {\n \"lat\": 48.85999997612089,\n \"lon\": 2.3363889567553997\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geobounds-aggregation.asciidoc","line":104},"digest":"67a55ac3aaee09f4aeeb7d2763da3335","lang":"console","found":["python","ruby","js"],"source":"PUT /places\n{\n \"mappings\": {\n \"properties\": {\n \"geometry\": {\n \"type\": \"geo_shape\"\n }\n }\n }\n}\n\nPOST /places/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"name\": \"NEMO Science Museum\", \"geometry\": \"POINT(4.912350 52.374081)\" }\n{\"index\":{\"_id\":2}}\n{\"name\": \"Sportpark De Weeren\", \"geometry\": { \"type\": \"Polygon\", \"coordinates\": [ [ [ 4.965305328369141, 52.39347642069457 ], [ 4.966979026794433, 52.391721758934835 ], [ 4.969425201416015, 52.39238958618537 ], [ 4.967944622039794, 52.39420969150824 ], [ 4.965305328369141, 52.39347642069457 ] ] ] } }\n\nPOST /places/_search?size=0\n{\n \"aggs\": {\n \"viewport\": {\n \"geo_bounds\": {\n \"field\": \"geometry\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geobounds-aggregation.asciidoc","line":136},"digest":"98767f19b5c8174c258abdefda38c57a","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"viewport\": {\n \"bounds\": {\n \"top_left\": {\n \"lat\": 52.39420966710895,\n \"lon\": 4.912349972873926\n },\n \"bottom_right\": {\n \"lat\": 52.374080987647176,\n \"lon\": 4.969425117596984\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geocentroid-aggregation.asciidoc","line":13},"digest":"873e2333734b1cf5ed066596e5f74b0a","lang":"console","found":["python","ruby","js"],"source":"PUT /museums\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}\n\nPOST /museums/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"location\": \"POINT (4.912350 52.374081)\", \"city\": \"Amsterdam\", \"name\": \"NEMO Science Museum\"}\n{\"index\":{\"_id\":2}}\n{\"location\": \"POINT (4.901618 52.369219)\", \"city\": \"Amsterdam\", \"name\": \"Museum Het Rembrandthuis\"}\n{\"index\":{\"_id\":3}}\n{\"location\": \"POINT (4.914722 52.371667)\", \"city\": \"Amsterdam\", \"name\": \"Nederlands Scheepvaartmuseum\"}\n{\"index\":{\"_id\":4}}\n{\"location\": \"POINT (4.405200 51.222900)\", \"city\": \"Antwerp\", \"name\": \"Letterenhuis\"}\n{\"index\":{\"_id\":5}}\n{\"location\": \"POINT (2.336389 48.861111)\", \"city\": \"Paris\", \"name\": \"Musée du Louvre\"}\n{\"index\":{\"_id\":6}}\n{\"location\": \"POINT (2.327000 48.860000)\", \"city\": \"Paris\", \"name\": \"Musée d'Orsay\"}\n\nPOST /museums/_search?size=0\n{\n \"aggs\": {\n \"centroid\": {\n \"geo_centroid\": {\n \"field\": \"location\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geocentroid-aggregation.asciidoc","line":58},"digest":"a284e1042dae3fc6a126d80604775107","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"centroid\": {\n \"location\": {\n \"lat\": 51.00982965203002,\n \"lon\": 3.9662131341174245\n },\n \"count\": 6\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geocentroid-aggregation.asciidoc","line":79},"digest":"eeb35b759bd239bb773c8ebd5fe63d05","lang":"console","found":["python","ruby","js"],"source":"POST /museums/_search?size=0\n{\n \"aggs\": {\n \"cities\": {\n \"terms\": { \"field\": \"city.keyword\" },\n \"aggs\": {\n \"centroid\": {\n \"geo_centroid\": { \"field\": \"location\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geocentroid-aggregation.asciidoc","line":103},"digest":"3dd003cc591dc409832de268b0ee2528","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"cities\": {\n \"sum_other_doc_count\": 0,\n \"doc_count_error_upper_bound\": 0,\n \"buckets\": [\n {\n \"key\": \"Amsterdam\",\n \"doc_count\": 3,\n \"centroid\": {\n \"location\": {\n \"lat\": 52.371655656024814,\n \"lon\": 4.909563297405839\n },\n \"count\": 3\n }\n },\n {\n \"key\": \"Paris\",\n \"doc_count\": 2,\n \"centroid\": {\n \"location\": {\n \"lat\": 48.86055548675358,\n \"lon\": 2.3316944623366\n },\n \"count\": 2\n }\n },\n {\n \"key\": \"Antwerp\",\n \"doc_count\": 1,\n \"centroid\": {\n \"location\": {\n \"lat\": 51.22289997059852,\n \"lon\": 4.40519998781383\n },\n \"count\": 1\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geocentroid-aggregation.asciidoc","line":184},"digest":"5cfab507e50d8c5182939412a9dbcdc8","lang":"console","found":["python","ruby","js"],"source":"PUT /places\n{\n \"mappings\": {\n \"properties\": {\n \"geometry\": {\n \"type\": \"geo_shape\"\n }\n }\n }\n}\n\nPOST /places/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"name\": \"NEMO Science Museum\", \"geometry\": \"POINT(4.912350 52.374081)\" }\n{\"index\":{\"_id\":2}}\n{\"name\": \"Sportpark De Weeren\", \"geometry\": { \"type\": \"Polygon\", \"coordinates\": [ [ [ 4.965305328369141, 52.39347642069457 ], [ 4.966979026794433, 52.391721758934835 ], [ 4.969425201416015, 52.39238958618537 ], [ 4.967944622039794, 52.39420969150824 ], [ 4.965305328369141, 52.39347642069457 ] ] ] } }\n\nPOST /places/_search?size=0\n{\n \"aggs\": {\n \"centroid\": {\n \"geo_centroid\": {\n \"field\": \"geometry\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geocentroid-aggregation.asciidoc","line":216},"digest":"28dd1d1dd1f64c7022aa4d3a8a2125ae","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"centroid\": {\n \"location\": {\n \"lat\": 52.39296147599816,\n \"lon\": 4.967404240742326\n },\n \"count\": 2\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geoline-aggregation.asciidoc","line":13},"digest":"487f0e07fd83c05f9763e0795c525e2e","lang":"console","found":["python","ruby","js"],"source":"PUT test\n{\n \"mappings\": {\n \"properties\": {\n \"my_location\": { \"type\": \"geo_point\" },\n \"group\": { \"type\": \"keyword\" },\n \"@timestamp\": { \"type\": \"date\" }\n }\n }\n}\n\nPOST /test/_bulk?refresh\n{\"index\":{}}\n{\"my_location\": {\"lat\":52.373184, \"lon\":4.889187}, \"@timestamp\": \"2023-01-02T09:00:00Z\"}\n{\"index\":{}}\n{\"my_location\": {\"lat\":52.370159, \"lon\":4.885057}, \"@timestamp\": \"2023-01-02T10:00:00Z\"}\n{\"index\":{}}\n{\"my_location\": {\"lat\":52.369219, \"lon\":4.901618}, \"@timestamp\": \"2023-01-02T13:00:00Z\"}\n{\"index\":{}}\n{\"my_location\": {\"lat\":52.374081, \"lon\":4.912350}, \"@timestamp\": \"2023-01-02T16:00:00Z\"}\n{\"index\":{}}\n{\"my_location\": {\"lat\":52.371667, \"lon\":4.914722}, \"@timestamp\": \"2023-01-03T12:00:00Z\"}\n\nPOST /test/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"line\": {\n \"geo_line\": {\n \"point\": {\"field\": \"my_location\"},\n \"sort\": {\"field\": \"@timestamp\"}\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geoline-aggregation.asciidoc","line":159},"digest":"89dee10a24ea2727af5b00039a4271bd","lang":"console","found":["python","ruby","js"],"source":"PUT tour\n{\n \"mappings\": {\n \"properties\": {\n \"city\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"category\": { \"type\": \"keyword\" },\n \"route\": { \"type\": \"long\" },\n \"name\": { \"type\": \"keyword\" },\n \"location\": { \"type\": \"geo_point\" },\n \"@timestamp\": { \"type\": \"date\" }\n }\n },\n \"settings\": {\n \"index\": {\n \"mode\": \"time_series\",\n \"routing_path\": [ \"city\" ],\n \"time_series\": {\n \"start_time\": \"2023-01-01T00:00:00Z\",\n \"end_time\": \"2024-01-01T00:00:00Z\"\n }\n }\n }\n}\n\nPOST /tour/_bulk?refresh\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-02T09:00:00Z\", \"route\": 0, \"location\": \"POINT(4.889187 52.373184)\", \"city\": \"Amsterdam\", \"category\": \"Attraction\", \"name\": \"Royal Palace Amsterdam\"}\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-02T10:00:00Z\", \"route\": 1, \"location\": \"POINT(4.885057 52.370159)\", \"city\": \"Amsterdam\", \"category\": \"Attraction\", \"name\": \"The Amsterdam Dungeon\"}\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-02T13:00:00Z\", \"route\": 2, \"location\": \"POINT(4.901618 52.369219)\", \"city\": \"Amsterdam\", \"category\": \"Museum\", \"name\": \"Museum Het Rembrandthuis\"}\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-02T16:00:00Z\", \"route\": 3, \"location\": \"POINT(4.912350 52.374081)\", \"city\": \"Amsterdam\", \"category\": \"Museum\", \"name\": \"NEMO Science Museum\"}\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-03T12:00:00Z\", \"route\": 4, \"location\": \"POINT(4.914722 52.371667)\", \"city\": \"Amsterdam\", \"category\": \"Museum\", \"name\": \"Nederlands Scheepvaartmuseum\"}\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-04T09:00:00Z\", \"route\": 5, \"location\": \"POINT(4.401384 51.220292)\", \"city\": \"Antwerp\", \"category\": \"Attraction\", \"name\": \"Cathedral of Our Lady\"}\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-04T12:00:00Z\", \"route\": 6, \"location\": \"POINT(4.405819 51.221758)\", \"city\": \"Antwerp\", \"category\": \"Museum\", \"name\": \"Snijders&Rockoxhuis\"}\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-04T15:00:00Z\", \"route\": 7, \"location\": \"POINT(4.405200 51.222900)\", \"city\": \"Antwerp\", \"category\": \"Museum\", \"name\": \"Letterenhuis\"}\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-05T10:00:00Z\", \"route\": 8, \"location\": \"POINT(2.336389 48.861111)\", \"city\": \"Paris\", \"category\": \"Museum\", \"name\": \"Musée du Louvre\"}\n{\"index\":{}}\n{\"@timestamp\": \"2023-01-05T14:00:00Z\", \"route\": 9, \"location\": \"POINT(2.327000 48.860000)\", \"city\": \"Paris\", \"category\": \"Museum\", \"name\": \"Musée dOrsay\"}"},
{"source_location":{"file":"aggregations/metrics/geoline-aggregation.asciidoc","line":218},"digest":"d7348119df9f89a556a7b767d5298c7e","lang":"console","found":["python","js"],"source":"POST /tour/_search?filter_path=aggregations\n{\n \"aggregations\": {\n \"path\": {\n \"terms\": {\"field\": \"city\"},\n \"aggregations\": {\n \"museum_tour\": {\n \"geo_line\": {\n \"point\": {\"field\": \"location\"},\n \"sort\": {\"field\": \"@timestamp\"}\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/geoline-aggregation.asciidoc","line":318},"digest":"fa5dcd1c7fadc473a791daf0d7ceec36","lang":"console","found":["python","js"],"source":"POST /tour/_search?filter_path=aggregations\n{\n \"aggregations\": {\n \"path\": {\n \"time_series\": {},\n \"aggregations\": {\n \"museum_tour\": {\n \"geo_line\": {\n \"point\": {\"field\": \"location\"}\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-bounds-aggregation.asciidoc","line":12},"digest":"d0fad375f6e074e9067ed93d3faa07bd","lang":"console","found":["python","ruby","js"],"source":"PUT /museums\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"point\"\n }\n }\n }\n}\n\nPOST /museums/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"location\": \"POINT (491.2350 5237.4081)\", \"city\": \"Amsterdam\", \"name\": \"NEMO Science Museum\"}\n{\"index\":{\"_id\":2}}\n{\"location\": \"POINT (490.1618 5236.9219)\", \"city\": \"Amsterdam\", \"name\": \"Museum Het Rembrandthuis\"}\n{\"index\":{\"_id\":3}}\n{\"location\": \"POINT (491.4722 5237.1667)\", \"city\": \"Amsterdam\", \"name\": \"Nederlands Scheepvaartmuseum\"}\n{\"index\":{\"_id\":4}}\n{\"location\": \"POINT (440.5200 5122.2900)\", \"city\": \"Antwerp\", \"name\": \"Letterenhuis\"}\n{\"index\":{\"_id\":5}}\n{\"location\": \"POINT (233.6389 4886.1111)\", \"city\": \"Paris\", \"name\": \"Musée du Louvre\"}\n{\"index\":{\"_id\":6}}\n{\"location\": \"POINT (232.7000 4886.0000)\", \"city\": \"Paris\", \"name\": \"Musée d'Orsay\"}\n\nPOST /museums/_search?size=0\n{\n \"query\": {\n \"match\": { \"name\": \"musée\" }\n },\n \"aggs\": {\n \"viewport\": {\n \"cartesian_bounds\": {\n \"field\": \"location\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-bounds-aggregation.asciidoc","line":66},"digest":"83bbf1d7b48327977c3333b97870c821","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"viewport\": {\n \"bounds\": {\n \"top_left\": {\n \"x\": 232.6999969482422,\n \"y\": 4886.111328125\n },\n \"bottom_right\": {\n \"x\": 233.63890075683594,\n \"y\": 4886.0\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-bounds-aggregation.asciidoc","line":97},"digest":"b717a583b5165e5c6caafc42fdfd9086","lang":"console","found":["python","ruby","js"],"source":"PUT /places\n{\n \"mappings\": {\n \"properties\": {\n \"geometry\": {\n \"type\": \"shape\"\n }\n }\n }\n}\n\nPOST /places/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"name\": \"NEMO Science Museum\", \"geometry\": \"POINT(491.2350 5237.4081)\" }\n{\"index\":{\"_id\":2}}\n{\"name\": \"Sportpark De Weeren\", \"geometry\": { \"type\": \"Polygon\", \"coordinates\": [ [ [ 496.5305328369141, 5239.347642069457 ], [ 496.6979026794433, 5239.1721758934835 ], [ 496.9425201416015, 5239.238958618537 ], [ 496.7944622039794, 5239.420969150824 ], [ 496.5305328369141, 5239.347642069457 ] ] ] } }\n\nPOST /places/_search?size=0\n{\n \"aggs\": {\n \"viewport\": {\n \"cartesian_bounds\": {\n \"field\": \"geometry\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-bounds-aggregation.asciidoc","line":129},"digest":"d73c1296e067e24ad4deddbc222db4af","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"viewport\": {\n \"bounds\": {\n \"top_left\": {\n \"x\": 491.2349853515625,\n \"y\": 5239.4208984375\n },\n \"bottom_right\": {\n \"x\": 496.9425048828125,\n \"y\": 5237.408203125\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-centroid-aggregation.asciidoc","line":13},"digest":"9f0a0029982d9b3423a2a3de1f1b5136","lang":"console","found":["python","ruby","js"],"source":"PUT /museums\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"point\"\n }\n }\n }\n}\n\nPOST /museums/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"location\": \"POINT (491.2350 5237.4081)\", \"city\": \"Amsterdam\", \"name\": \"NEMO Science Museum\"}\n{\"index\":{\"_id\":2}}\n{\"location\": \"POINT (490.1618 5236.9219)\", \"city\": \"Amsterdam\", \"name\": \"Museum Het Rembrandthuis\"}\n{\"index\":{\"_id\":3}}\n{\"location\": \"POINT (491.4722 5237.1667)\", \"city\": \"Amsterdam\", \"name\": \"Nederlands Scheepvaartmuseum\"}\n{\"index\":{\"_id\":4}}\n{\"location\": \"POINT (440.5200 5122.2900)\", \"city\": \"Antwerp\", \"name\": \"Letterenhuis\"}\n{\"index\":{\"_id\":5}}\n{\"location\": \"POINT (233.6389 4886.1111)\", \"city\": \"Paris\", \"name\": \"Musée du Louvre\"}\n{\"index\":{\"_id\":6}}\n{\"location\": \"POINT (232.7000 4886.0000)\", \"city\": \"Paris\", \"name\": \"Musée d'Orsay\"}\n\nPOST /museums/_search?size=0\n{\n \"aggs\": {\n \"centroid\": {\n \"cartesian_centroid\": {\n \"field\": \"location\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-centroid-aggregation.asciidoc","line":58},"digest":"77f673af9dc4a03b5a3749e38c7879d7","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"centroid\": {\n \"location\": {\n \"x\": 396.6213124593099,\n \"y\": 5100.982991536458\n },\n \"count\": 6\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-centroid-aggregation.asciidoc","line":79},"digest":"b968853454b4416f7baa3209eb335957","lang":"console","found":["python","js"],"source":"POST /museums/_search?size=0\n{\n \"aggs\": {\n \"cities\": {\n \"terms\": { \"field\": \"city.keyword\" },\n \"aggs\": {\n \"centroid\": {\n \"cartesian_centroid\": { \"field\": \"location\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-centroid-aggregation.asciidoc","line":102},"digest":"a4dd07db186ce056009580b99c54b65c","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"cities\": {\n \"sum_other_doc_count\": 0,\n \"doc_count_error_upper_bound\": 0,\n \"buckets\": [\n {\n \"key\": \"Amsterdam\",\n \"doc_count\": 3,\n \"centroid\": {\n \"location\": {\n \"x\": 490.9563293457031,\n \"y\": 5237.16552734375\n },\n \"count\": 3\n }\n },\n {\n \"key\": \"Paris\",\n \"doc_count\": 2,\n \"centroid\": {\n \"location\": {\n \"x\": 233.16944885253906,\n \"y\": 4886.0556640625\n },\n \"count\": 2\n }\n },\n {\n \"key\": \"Antwerp\",\n \"doc_count\": 1,\n \"centroid\": {\n \"location\": {\n \"x\": 440.5199890136719,\n \"y\": 5122.2900390625\n },\n \"count\": 1\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-centroid-aggregation.asciidoc","line":183},"digest":"19174d872fd1e43cbfb7a96a33d13c96","lang":"console","found":["python","ruby","js"],"source":"PUT /places\n{\n \"mappings\": {\n \"properties\": {\n \"geometry\": {\n \"type\": \"shape\"\n }\n }\n }\n}\n\nPOST /places/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"name\": \"NEMO Science Museum\", \"geometry\": \"POINT(491.2350 5237.4081)\" }\n{\"index\":{\"_id\":2}}\n{\"name\": \"Sportpark De Weeren\", \"geometry\": { \"type\": \"Polygon\", \"coordinates\": [ [ [ 496.5305328369141, 5239.347642069457 ], [ 496.6979026794433, 5239.1721758934835 ], [ 496.9425201416015, 5239.238958618537 ], [ 496.7944622039794, 5239.420969150824 ], [ 496.5305328369141, 5239.347642069457 ] ] ] } }\n\nPOST /places/_search?size=0\n{\n \"aggs\": {\n \"centroid\": {\n \"cartesian_centroid\": {\n \"field\": \"geometry\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/cartesian-centroid-aggregation.asciidoc","line":215},"digest":"858b52dd660f9b498847ce94e94a5cc0","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"centroid\": {\n \"location\": {\n \"x\": 496.74041748046875,\n \"y\": 5239.29638671875\n },\n \"count\": 2\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/matrix-stats-aggregation.asciidoc","line":45},"digest":"e441cb3be3c2f007621ee1f8c9a2e0ef","lang":"console","found":["python","ruby","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"statistics\": {\n \"matrix_stats\": {\n \"fields\": [ \"poverty\", \"income\" ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/matrix-stats-aggregation.asciidoc","line":63},"digest":"034067dd40d5cfa9c0e8f359297e7b5a","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"statistics\": {\n \"doc_count\": 50,\n \"fields\": [ {\n \"name\": \"income\",\n \"count\": 50,\n \"mean\": 51985.1,\n \"variance\": 7.383377037755103E7,\n \"skewness\": 0.5595114003506483,\n \"kurtosis\": 2.5692365287787124,\n \"covariance\": {\n \"income\": 7.383377037755103E7,\n \"poverty\": -21093.65836734694\n },\n \"correlation\": {\n \"income\": 1.0,\n \"poverty\": -0.8352655256272504\n }\n }, {\n \"name\": \"poverty\",\n \"count\": 50,\n \"mean\": 12.732000000000001,\n \"variance\": 8.637730612244896,\n \"skewness\": 0.4516049811903419,\n \"kurtosis\": 2.8615929677997767,\n \"covariance\": {\n \"income\": -21093.65836734694,\n \"poverty\": 8.637730612244896\n },\n \"correlation\": {\n \"income\": -0.8352655256272504,\n \"poverty\": 1.0\n }\n } ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/matrix-stats-aggregation.asciidoc","line":128},"digest":"2aec92bc31bc24bce58d983738f9e0fe","lang":"console","found":["python","js"],"source":"GET /_search\n{\n \"aggs\": {\n \"matrixstats\": {\n \"matrix_stats\": {\n \"fields\": [ \"poverty\", \"income\" ],\n \"missing\": { \"income\": 50000 } <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/max-aggregation.asciidoc","line":17},"digest":"8e42a17edace2bc6e42c6a1532779937","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"max_price\": { \"max\": { \"field\": \"price\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/max-aggregation.asciidoc","line":30},"digest":"7b9352d63010d25f9571f4588f7c2a26","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"max_price\": {\n \"value\": 200.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/max-aggregation.asciidoc","line":52},"digest":"d70f55cd29cdb2dcd775ffa9e23ff393","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"price.adjusted\": {\n \"type\": \"double\",\n \"script\": \"\"\"\n double price = doc['price'].value;\n if (doc['promoted'].value) {\n price *= 0.8;\n }\n emit(price);\n \"\"\"\n }\n },\n \"aggs\": {\n \"max_price\": {\n \"max\": { \"field\": \"price.adjusted\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/max-aggregation.asciidoc","line":99},"digest":"11c43c4aa5435f8a99dcc0d1f03c648f","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"aggs\" : {\n \"grade_max\" : {\n \"max\" : {\n \"field\" : \"grade\",\n \"missing\": 10 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/max-aggregation.asciidoc","line":126},"digest":"6856f7c6a732ab55ca71c1ee2ec2bbad","lang":"console","found":["python","ruby","js"],"source":"PUT metrics_index\n{\n \"mappings\": {\n \"properties\": {\n \"latency_histo\": { \"type\": \"histogram\" }\n }\n }\n}\n\nPUT metrics_index/_doc/1?refresh\n{\n \"network.name\" : \"net-1\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5],\n \"counts\" : [3, 7, 23, 12, 6]\n }\n}\n\nPUT metrics_index/_doc/2?refresh\n{\n \"network.name\" : \"net-2\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5],\n \"counts\" : [8, 17, 8, 7, 6]\n }\n}\n\nPOST /metrics_index/_search?size=0&filter_path=aggregations\n{\n \"aggs\" : {\n \"max_latency\" : { \"max\" : { \"field\" : \"latency_histo\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/max-aggregation.asciidoc","line":165},"digest":"dea6ca729490250bb8f32c7726d02b18","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"max_latency\": {\n \"value\": 0.5\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/median-absolute-deviation-aggregation.asciidoc","line":31},"digest":"25ed47fcb890fcf8d8518ae067362d18","lang":"console","found":["python","ruby","js"],"source":"GET reviews/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"review_average\": {\n \"avg\": {\n \"field\": \"rating\"\n }\n },\n \"review_variability\": {\n \"median_absolute_deviation\": {\n \"field\": \"rating\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/median-absolute-deviation-aggregation.asciidoc","line":57},"digest":"9fce71dbeb1f002696732ec60ccd2e6e","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"review_average\": {\n \"value\": 3.0\n },\n \"review_variability\": {\n \"value\": 2.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/median-absolute-deviation-aggregation.asciidoc","line":90},"digest":"9d662fc9f943c287b7144f5e4e2ae358","lang":"console","found":["python","ruby","js"],"source":"GET reviews/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"review_variability\": {\n \"median_absolute_deviation\": {\n \"field\": \"rating\",\n \"compression\": 100\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/median-absolute-deviation-aggregation.asciidoc","line":116},"digest":"21d0ab6e420bfe7a1639db6af5b2e9c0","lang":"console","found":["python","ruby","js"],"source":"GET reviews/_search?filter_path=aggregations\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"rating.out_of_ten\": {\n \"type\": \"long\",\n \"script\": {\n \"source\": \"emit(doc['rating'].value * params.scaleFactor)\",\n \"params\": {\n \"scaleFactor\": 2\n }\n }\n }\n },\n \"aggs\": {\n \"review_average\": {\n \"avg\": {\n \"field\": \"rating.out_of_ten\"\n }\n },\n \"review_variability\": {\n \"median_absolute_deviation\": {\n \"field\": \"rating.out_of_ten\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/median-absolute-deviation-aggregation.asciidoc","line":150},"digest":"f79ff8306496ee373e0c5ec8c909a014","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"review_average\": {\n \"value\": 6.0\n },\n \"review_variability\": {\n \"value\": 4.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/median-absolute-deviation-aggregation.asciidoc","line":173},"digest":"87f854393d715aabf4d45e90a8eb74ce","lang":"console","found":["python","ruby","js"],"source":"GET reviews/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"review_variability\": {\n \"median_absolute_deviation\": {\n \"field\": \"rating\",\n \"missing\": 5\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/min-aggregation.asciidoc","line":17},"digest":"67967388db610dcb9d24fb59ede348d8","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"min_price\": { \"min\": { \"field\": \"price\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/min-aggregation.asciidoc","line":30},"digest":"90d4925ad297ce930133a7e1e7f80f0a","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"min_price\": {\n \"value\": 10.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/min-aggregation.asciidoc","line":53},"digest":"8f0c5c81cdb902c136db821947ee70a1","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"price.adjusted\": {\n \"type\": \"double\",\n \"script\": \"\"\"\n double price = doc['price'].value;\n if (doc['promoted'].value) {\n price *= 0.8;\n }\n emit(price);\n \"\"\"\n }\n },\n \"aggs\": {\n \"min_price\": {\n \"min\": { \"field\": \"price.adjusted\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/min-aggregation.asciidoc","line":99},"digest":"35eef1765e9a5991d77592a0c7490fe0","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"aggs\": {\n \"grade_min\": {\n \"min\": {\n \"field\": \"grade\",\n \"missing\": 10 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/min-aggregation.asciidoc","line":126},"digest":"d05b2a37106fce0ebbd41e2fd6bd26c2","lang":"console","found":["python","ruby","js"],"source":"PUT metrics_index\n{\n \"mappings\": {\n \"properties\": {\n \"latency_histo\": { \"type\": \"histogram\" }\n }\n }\n}\n\nPUT metrics_index/_doc/1?refresh\n{\n \"network.name\" : \"net-1\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5],\n \"counts\" : [3, 7, 23, 12, 6]\n }\n}\n\nPUT metrics_index/_doc/2?refresh\n{\n \"network.name\" : \"net-2\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5],\n \"counts\" : [8, 17, 8, 7, 6]\n }\n}\n\nPOST /metrics_index/_search?size=0&filter_path=aggregations\n{\n \"aggs\" : {\n \"min_latency\" : { \"min\" : { \"field\" : \"latency_histo\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/min-aggregation.asciidoc","line":165},"digest":"a12c3fc31e242146eb90cc98c97fb4cc","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"min_latency\": {\n \"value\": 0.1\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-rank-aggregation.asciidoc","line":29},"digest":"47fde7874e15a37242993fd69c62063b","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_ranks\": {\n \"percentile_ranks\": {\n \"field\": \"load_time\", <1>\n \"values\": [ 500, 600 ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-rank-aggregation.asciidoc","line":50},"digest":"3e9e79b53c55ae367916c115ad8521d9","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"load_time_ranks\": {\n \"values\": {\n \"500.0\": 55.0,\n \"600.0\": 64.0\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-rank-aggregation.asciidoc","line":76},"digest":"a5ebcd70c34d1ece77a4fb27cc050917","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_ranks\": {\n \"percentile_ranks\": {\n \"field\": \"load_time\",\n \"values\": [ 500, 600 ],\n \"keyed\": false\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-rank-aggregation.asciidoc","line":96},"digest":"27cb7d54b54e11d39cb3b90dec5248c9","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"load_time_ranks\": {\n \"values\": [\n {\n \"key\": 500.0,\n \"value\": 55.0\n },\n {\n \"key\": 600.0,\n \"value\": 64.0\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-rank-aggregation.asciidoc","line":128},"digest":"8d421c5bec38eecce4679b219cacc9db","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"load_time.seconds\": {\n \"type\": \"long\",\n \"script\": {\n \"source\": \"emit(doc['load_time'].value / params.timeUnit)\",\n \"params\": {\n \"timeUnit\": 1000\n }\n }\n }\n },\n \"aggs\": {\n \"load_time_ranks\": {\n \"percentile_ranks\": {\n \"values\": [ 500, 600 ],\n \"field\": \"load_time.seconds\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-rank-aggregation.asciidoc","line":184},"digest":"32af23a4b0fea6c81c4688ce5fe4ac35","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_ranks\": {\n \"percentile_ranks\": {\n \"field\": \"load_time\",\n \"values\": [ 500, 600 ],\n \"hdr\": { <1>\n \"number_of_significant_value_digits\": 3 <2>\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-rank-aggregation.asciidoc","line":216},"digest":"67a1f31cf60773a2378c2c30723c4b96","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_ranks\": {\n \"percentile_ranks\": {\n \"field\": \"load_time\",\n \"values\": [ 500, 600 ],\n \"missing\": 10 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":30},"digest":"5ffe6fd303400e8678fa1ead291e237f","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_outlier\": {\n \"percentiles\": {\n \"field\": \"load_time\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":50},"digest":"878eb691bfdb83c5be1d214792c93b7c","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"load_time_outlier\": {\n \"values\": {\n \"1.0\": 10.0,\n \"5.0\": 30.0,\n \"25.0\": 170.0,\n \"50.0\": 445.0,\n \"75.0\": 720.0,\n \"95.0\": 940.0,\n \"99.0\": 980.0\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":88},"digest":"2185c9dfc62a59313df1702ec1c3513e","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_outlier\": {\n \"percentiles\": {\n \"field\": \"load_time\",\n \"percents\": [ 95, 99, 99.9 ] <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":110},"digest":"271fe0b452b62189505ce4a1d6f8bde1","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_outlier\": {\n \"percentiles\": {\n \"field\": \"load_time\",\n \"keyed\": false\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":129},"digest":"c4839849e215cd4fa9a8d98a7e83f4be","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"load_time_outlier\": {\n \"values\": [\n {\n \"key\": 1.0,\n \"value\": 10.0\n },\n {\n \"key\": 5.0,\n \"value\": 30.0\n },\n {\n \"key\": 25.0,\n \"value\": 170.0\n },\n {\n \"key\": 50.0,\n \"value\": 445.0\n },\n {\n \"key\": 75.0,\n \"value\": 720.0\n },\n {\n \"key\": 95.0,\n \"value\": 940.0\n },\n {\n \"key\": 99.0,\n \"value\": 980.0\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":185},"digest":"55838e0b21c4f4da2dc8aaec045a6d5f","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"load_time.seconds\": {\n \"type\": \"long\",\n \"script\": {\n \"source\": \"emit(doc['load_time'].value / params.timeUnit)\",\n \"params\": {\n \"timeUnit\": 1000\n }\n }\n }\n },\n \"aggs\": {\n \"load_time_outlier\": {\n \"percentiles\": {\n \"field\": \"load_time.seconds\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":288},"digest":"be5d62e7c8f63687c585305fbe70d7d0","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_outlier\": {\n \"percentiles\": {\n \"field\": \"load_time\",\n \"tdigest\": {\n \"compression\": 200 <1>\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":335},"digest":"1e94a2bb95bc245bcfb87ac7d611cf49","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_outlier\": {\n \"percentiles\": {\n \"field\": \"load_time\",\n \"tdigest\": {\n \"execution_hint\": \"high_accuracy\" <1>\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":370},"digest":"dae57cf7df18adb4dc64426eb159733a","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"load_time_outlier\": {\n \"percentiles\": {\n \"field\": \"load_time\",\n \"percents\": [ 95, 99, 99.9 ],\n \"hdr\": { <1>\n \"number_of_significant_value_digits\": 3 <2>\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/percentile-aggregation.asciidoc","line":402},"digest":"7777326c6052fee28061e5b82540aedc","lang":"console","found":["python","ruby","js"],"source":"GET latency/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"grade_percentiles\": {\n \"percentiles\": {\n \"field\": \"grade\",\n \"missing\": 10 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":33},"digest":"7dc6c0a6386289ac6a34105e839ced55","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"by_date\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\" <1>\n },\n \"aggs\": {\n \"my_rate\": {\n \"rate\": {\n \"unit\": \"year\" <2>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":62},"digest":"a2f926b51c4550a999d8b5dcb746c47a","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"by_date\" : {\n \"buckets\" : [\n {\n \"key_as_string\" : \"2015/01/01 00:00:00\",\n \"key\" : 1420070400000,\n \"doc_count\" : 3,\n \"my_rate\" : {\n \"value\" : 36.0\n }\n },\n {\n \"key_as_string\" : \"2015/02/01 00:00:00\",\n \"key\" : 1422748800000,\n \"doc_count\" : 2,\n \"my_rate\" : {\n \"value\" : 24.0\n }\n },\n {\n \"key_as_string\" : \"2015/03/01 00:00:00\",\n \"key\" : 1425168000000,\n \"doc_count\" : 2,\n \"my_rate\" : {\n \"value\" : 24.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":104},"digest":"99474a7e7979816c874aeac4403be5d0","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"by_date\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\" <1>\n },\n \"aggs\": {\n \"avg_price\": {\n \"rate\": {\n \"field\": \"price\", <2>\n \"unit\": \"day\" <3>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":134},"digest":"9e3408a5e909224a27eac9c57c7420f1","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"by_date\" : {\n \"buckets\" : [\n {\n \"key_as_string\" : \"2015/01/01 00:00:00\",\n \"key\" : 1420070400000,\n \"doc_count\" : 3,\n \"avg_price\" : {\n \"value\" : 17.741935483870968\n }\n },\n {\n \"key_as_string\" : \"2015/02/01 00:00:00\",\n \"key\" : 1422748800000,\n \"doc_count\" : 2,\n \"avg_price\" : {\n \"value\" : 2.142857142857143\n }\n },\n {\n \"key_as_string\" : \"2015/03/01 00:00:00\",\n \"key\" : 1425168000000,\n \"doc_count\" : 2,\n \"avg_price\" : {\n \"value\" : 12.096774193548388\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":175},"digest":"91270cef57ac455547ffd47839420887","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search?filter_path=aggregations&size=0\n{\n \"aggs\": {\n \"buckets\": {\n \"composite\": { <1>\n \"sources\": [\n {\n \"month\": {\n \"date_histogram\": { <2>\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n }\n }\n },\n {\n \"type\": { <3>\n \"terms\": {\n \"field\": \"type\"\n }\n }\n }\n ]\n },\n \"aggs\": {\n \"avg_price\": {\n \"rate\": {\n \"field\": \"price\", <4>\n \"unit\": \"day\" <5>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":222},"digest":"96ecc8a113ed249fd66b5b09e4b981f0","lang":"console-result","found":[],"source":"{\n \"aggregations\" : {\n \"buckets\" : {\n \"after_key\" : {\n \"month\" : 1425168000000,\n \"type\" : \"t-shirt\"\n },\n \"buckets\" : [\n {\n \"key\" : {\n \"month\" : 1420070400000,\n \"type\" : \"bag\"\n },\n \"doc_count\" : 1,\n \"avg_price\" : {\n \"value\" : 4.838709677419355\n }\n },\n {\n \"key\" : {\n \"month\" : 1420070400000,\n \"type\" : \"hat\"\n },\n \"doc_count\" : 1,\n \"avg_price\" : {\n \"value\" : 6.451612903225806\n }\n },\n {\n \"key\" : {\n \"month\" : 1420070400000,\n \"type\" : \"t-shirt\"\n },\n \"doc_count\" : 1,\n \"avg_price\" : {\n \"value\" : 6.451612903225806\n }\n },\n {\n \"key\" : {\n \"month\" : 1422748800000,\n \"type\" : \"hat\"\n },\n \"doc_count\" : 1,\n \"avg_price\" : {\n \"value\" : 1.7857142857142858\n }\n },\n {\n \"key\" : {\n \"month\" : 1422748800000,\n \"type\" : \"t-shirt\"\n },\n \"doc_count\" : 1,\n \"avg_price\" : {\n \"value\" : 0.35714285714285715\n }\n },\n {\n \"key\" : {\n \"month\" : 1425168000000,\n \"type\" : \"hat\"\n },\n \"doc_count\" : 1,\n \"avg_price\" : {\n \"value\" : 6.451612903225806\n }\n },\n {\n \"key\" : {\n \"month\" : 1425168000000,\n \"type\" : \"t-shirt\"\n },\n \"doc_count\" : 1,\n \"avg_price\" : {\n \"value\" : 5.645161290322581\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":310},"digest":"1fddbd602a6acf896a393cdb500a2831","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"by_date\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\" <1>\n },\n \"aggs\": {\n \"avg_number_of_sales_per_year\": {\n \"rate\": {\n \"field\": \"price\", <2>\n \"unit\": \"year\", <3>\n \"mode\": \"value_count\" <4>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":342},"digest":"cec42dea158870722b1dd4d62ea81ccc","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"by_date\" : {\n \"buckets\" : [\n {\n \"key_as_string\" : \"2015/01/01 00:00:00\",\n \"key\" : 1420070400000,\n \"doc_count\" : 3,\n \"avg_number_of_sales_per_year\" : {\n \"value\" : 36.0\n }\n },\n {\n \"key_as_string\" : \"2015/02/01 00:00:00\",\n \"key\" : 1422748800000,\n \"doc_count\" : 2,\n \"avg_number_of_sales_per_year\" : {\n \"value\" : 24.0\n }\n },\n {\n \"key_as_string\" : \"2015/03/01 00:00:00\",\n \"key\" : 1425168000000,\n \"doc_count\" : 2,\n \"avg_number_of_sales_per_year\" : {\n \"value\" : 24.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":411},"digest":"d13c7cdfc976e0c7b70737cd6a7becb8","lang":"console","found":["python","ruby","js"],"source":"GET sales/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"price.adjusted\": {\n \"type\": \"double\",\n \"script\": {\n \"source\": \"emit(doc['price'].value * params.adjustment)\",\n \"params\": {\n \"adjustment\": 0.9\n }\n }\n }\n },\n \"aggs\": {\n \"by_date\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"avg_price\": {\n \"rate\": {\n \"field\": \"price.adjusted\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/rate-aggregation.asciidoc","line":446},"digest":"d35310c3d8b5afac29c62e56c6c9945b","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"by_date\" : {\n \"buckets\" : [\n {\n \"key_as_string\" : \"2015/01/01 00:00:00\",\n \"key\" : 1420070400000,\n \"doc_count\" : 3,\n \"avg_price\" : {\n \"value\" : 495.0\n }\n },\n {\n \"key_as_string\" : \"2015/02/01 00:00:00\",\n \"key\" : 1422748800000,\n \"doc_count\" : 2,\n \"avg_price\" : {\n \"value\" : 54.0\n }\n },\n {\n \"key_as_string\" : \"2015/03/01 00:00:00\",\n \"key\" : 1425168000000,\n \"doc_count\" : 2,\n \"avg_price\" : {\n \"value\" : 337.5\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/scripted-metric-aggregation.asciidoc","line":19},"digest":"6636701d31b0c9eb8316f1f8e99cc918","lang":"console","found":["python","ruby","js"],"source":"POST ledger/_search?size=0\n{\n \"query\": {\n \"match_all\": {}\n },\n \"aggs\": {\n \"profit\": {\n \"scripted_metric\": {\n \"init_script\": \"state.transactions = []\", <1>\n \"map_script\": \"state.transactions.add(doc.type.value == 'sale' ? doc.amount.value : -1 * doc.amount.value)\",\n \"combine_script\": \"double profit = 0; for (t in state.transactions) { profit += t } return profit\",\n \"reduce_script\": \"double profit = 0; for (a in states) { profit += a } return profit\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/scripted-metric-aggregation.asciidoc","line":46},"digest":"8a1654a8958f182167e0b9d1409ba4be","lang":"console-result","found":[],"source":"{\n \"took\": 218,\n ...\n \"aggregations\": {\n \"profit\": {\n \"value\": 240.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/scripted-metric-aggregation.asciidoc","line":63},"digest":"0fb7705ddbf1fc2b65d2de2e00fe5769","lang":"console","found":["python","ruby","js"],"source":"POST ledger/_search?size=0\n{\n \"aggs\": {\n \"profit\": {\n \"scripted_metric\": {\n \"init_script\": {\n \"id\": \"my_init_script\"\n },\n \"map_script\": {\n \"id\": \"my_map_script\"\n },\n \"combine_script\": {\n \"id\": \"my_combine_script\"\n },\n \"params\": {\n \"field\": \"amount\" <1>\n },\n \"reduce_script\": {\n \"id\": \"my_reduce_script\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/scripted-metric-aggregation.asciidoc","line":159},"digest":"75e360d03fb416f0a65ca37c662c2e9c","lang":"console","found":["python","ruby","js"],"source":"PUT /transactions/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"type\": \"sale\",\"amount\": 80}\n{\"index\":{\"_id\":2}}\n{\"type\": \"cost\",\"amount\": 10}\n{\"index\":{\"_id\":3}}\n{\"type\": \"cost\",\"amount\": 30}\n{\"index\":{\"_id\":4}}\n{\"type\": \"sale\",\"amount\": 130}"},
{"source_location":{"file":"aggregations/metrics/stats-aggregation.asciidoc","line":14},"digest":"746e87db7e1e8b5e6b40d8b5b188de42","lang":"console","found":["python","ruby","js"],"source":"POST /exams/_search?size=0\n{\n \"aggs\": {\n \"grades_stats\": { \"stats\": { \"field\": \"grade\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/stats-aggregation.asciidoc","line":28},"digest":"e921fb7e2543c0418ab4f4907596790a","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"grades_stats\": {\n \"count\": 2,\n \"min\": 50.0,\n \"max\": 100.0,\n \"avg\": 75.0,\n \"sum\": 150.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/stats-aggregation.asciidoc","line":53},"digest":"565908b03edff1d6e6e7cdfb92177faf","lang":"console","found":["python","ruby","js"],"source":"POST /exams/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"grade.weighted\": {\n \"type\": \"double\",\n \"script\": \"\"\"\n emit(doc['grade'].value * doc['weight'].value)\n \"\"\"\n }\n },\n \"aggs\": {\n \"grades_stats\": {\n \"stats\": {\n \"field\": \"grade.weighted\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/stats-aggregation.asciidoc","line":102},"digest":"d4cdcf01014c75693b080c778071c1b5","lang":"console","found":["python","ruby","js"],"source":"POST /exams/_search?size=0\n{\n \"aggs\": {\n \"grades_stats\": {\n \"stats\": {\n \"field\": \"grade\",\n \"missing\": 0 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/string-stats-aggregation.asciidoc","line":24},"digest":"81ef5774355180fc44d2a52b5182d24a","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_search?size=0\n{\n \"aggs\": {\n \"message_stats\": { \"string_stats\": { \"field\": \"message.keyword\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/string-stats-aggregation.asciidoc","line":39},"digest":"a52ca223c2f6eb1200c581d4858d8c22","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"message_stats\": {\n \"count\": 5,\n \"min_length\": 24,\n \"max_length\": 30,\n \"avg_length\": 28.8,\n \"entropy\": 3.94617750050791\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/string-stats-aggregation.asciidoc","line":65},"digest":"1c142bc8cac8d9dcb4f60e22902d434f","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_search?size=0\n{\n \"aggs\": {\n \"message_stats\": {\n \"string_stats\": {\n \"field\": \"message.keyword\",\n \"show_distribution\": true <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/string-stats-aggregation.asciidoc","line":83},"digest":"e58542fbd846f781ba8b03b0bae213e1","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"message_stats\": {\n \"count\": 5,\n \"min_length\": 24,\n \"max_length\": 30,\n \"avg_length\": 28.8,\n \"entropy\": 3.94617750050791,\n \"distribution\": {\n \" \": 0.1527777777777778,\n \"e\": 0.14583333333333334,\n \"s\": 0.09722222222222222,\n \"m\": 0.08333333333333333,\n \"t\": 0.0763888888888889,\n \"h\": 0.0625,\n \"a\": 0.041666666666666664,\n \"i\": 0.041666666666666664,\n \"r\": 0.041666666666666664,\n \"g\": 0.034722222222222224,\n \"n\": 0.034722222222222224,\n \"o\": 0.034722222222222224,\n \"u\": 0.034722222222222224,\n \"b\": 0.027777777777777776,\n \"w\": 0.027777777777777776,\n \"c\": 0.013888888888888888,\n \"E\": 0.006944444444444444,\n \"l\": 0.006944444444444444,\n \"1\": 0.006944444444444444,\n \"2\": 0.006944444444444444,\n \"3\": 0.006944444444444444,\n \"4\": 0.006944444444444444,\n \"y\": 0.006944444444444444\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/string-stats-aggregation.asciidoc","line":133},"digest":"1e4b17b830ead15087ccd96151a5ebde","lang":"console","found":["python","js"],"source":"POST /my-index-000001/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"message_and_context\": {\n \"type\": \"keyword\",\n \"script\": \"\"\"\n emit(doc['message.keyword'].value + ' ' + doc['context.keyword'].value)\n \"\"\"\n }\n },\n \"aggs\": {\n \"message_stats\": {\n \"string_stats\": { \"field\": \"message_and_context\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/string-stats-aggregation.asciidoc","line":178},"digest":"8e06d8b2b737c43806018eae2ca061c1","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_search?size=0\n{\n \"aggs\": {\n \"message_stats\": {\n \"string_stats\": {\n \"field\": \"message.keyword\",\n \"missing\": \"[empty message]\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/sum-aggregation.asciidoc","line":14},"digest":"f5ef80dd92c67059ca353a833e6b7b5e","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"query\": {\n \"constant_score\": {\n \"filter\": {\n \"match\": { \"type\": \"hat\" }\n }\n }\n },\n \"aggs\": {\n \"hat_prices\": { \"sum\": { \"field\": \"price\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/sum-aggregation.asciidoc","line":34},"digest":"ce20cb8d913728a60c1f323ae124dad8","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"hat_prices\": {\n \"value\": 450.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/sum-aggregation.asciidoc","line":54},"digest":"7fe9f0a583e079f7fc6fd64d12b6e9e5","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"runtime_mappings\": {\n \"price.weighted\": {\n \"type\": \"double\",\n \"script\": \"\"\"\n double price = doc['price'].value;\n if (doc['promoted'].value) {\n price *= 0.8;\n }\n emit(price);\n \"\"\"\n }\n },\n \"query\": {\n \"constant_score\": {\n \"filter\": {\n \"match\": { \"type\": \"hat\" }\n }\n }\n },\n \"aggs\": {\n \"hat_prices\": {\n \"sum\": {\n \"field\": \"price.weighted\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/sum-aggregation.asciidoc","line":109},"digest":"abc496de5fd013099a134db369b34a8b","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"query\": {\n \"constant_score\": {\n \"filter\": {\n \"match\": { \"type\": \"hat\" }\n }\n }\n },\n \"aggs\": {\n \"hat_prices\": {\n \"sum\": {\n \"field\": \"price\",\n \"missing\": 100 <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/sum-aggregation.asciidoc","line":140},"digest":"455029c3d66306ad5d48f6dbddaf7324","lang":"console","found":["python","ruby","js"],"source":"PUT metrics_index\n{\n \"mappings\": {\n \"properties\": {\n \"latency_histo\": { \"type\": \"histogram\" }\n }\n }\n}\n\nPUT metrics_index/_doc/1?refresh\n{\n \"network.name\" : \"net-1\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5],\n \"counts\" : [3, 7, 23, 12, 6]\n }\n}\n\nPUT metrics_index/_doc/2?refresh\n{\n \"network.name\" : \"net-2\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5],\n \"counts\" : [8, 17, 8, 7, 6]\n }\n}\n\nPOST /metrics_index/_search?size=0&filter_path=aggregations\n{\n \"aggs\" : {\n \"total_latency\" : { \"sum\" : { \"field\" : \"latency_histo\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/sum-aggregation.asciidoc","line":183},"digest":"acdc414b9b9adb4385117ae952d415fb","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"total_latency\": {\n \"value\": 28.8\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/t-test-aggregation.asciidoc","line":32},"digest":"ad6d81be5fad4bad87486b699454dce5","lang":"console","found":["python","ruby","js"],"source":"GET node_upgrade/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"startup_time_ttest\": {\n \"t_test\": {\n \"a\": { \"field\": \"startup_time_before\" }, <1>\n \"b\": { \"field\": \"startup_time_after\" }, <2>\n \"type\": \"paired\" <3>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/t-test-aggregation.asciidoc","line":57},"digest":"00aea88b958ed3688b0b8bc653d4d287","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"startup_time_ttest\": {\n \"value\": 0.1914368843365979 <1>\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/t-test-aggregation.asciidoc","line":86},"digest":"630d127ccedd25a6cff31ea098ac2847","lang":"console","found":["python","ruby","js"],"source":"GET node_upgrade/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"startup_time_ttest\": {\n \"t_test\": {\n \"a\": {\n \"field\": \"startup_time_before\", <1>\n \"filter\": {\n \"term\": {\n \"group\": \"A\" <2>\n }\n }\n },\n \"b\": {\n \"field\": \"startup_time_before\", <3>\n \"filter\": {\n \"term\": {\n \"group\": \"B\" <4>\n }\n }\n },\n \"type\": \"heteroscedastic\" <5>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/t-test-aggregation.asciidoc","line":124},"digest":"1477a3dec23fb67b5a164e20bb770ea8","lang":"console-result","found":[],"source":"{\n ...\n\n \"aggregations\": {\n \"startup_time_ttest\": {\n \"value\": 0.2981858007281437 <1>\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/t-test-aggregation.asciidoc","line":148},"digest":"4670dd81a9865e07ae74ae8b0266e384","lang":"console","found":["python","ruby","js"],"source":"GET node_upgrade/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"startup_time_before.adjusted\": {\n \"type\": \"long\",\n \"script\": {\n \"source\": \"emit(doc['startup_time_before'].value - params.adjustment)\",\n \"params\": {\n \"adjustment\": 10\n }\n }\n }\n },\n \"aggs\": {\n \"startup_time_ttest\": {\n \"t_test\": {\n \"a\": {\n \"field\": \"startup_time_before.adjusted\"\n },\n \"b\": {\n \"field\": \"startup_time_after\"\n },\n \"type\": \"paired\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/tophits-aggregation.asciidoc","line":52},"digest":"4c777b8360ef6c7671ae2e3803c0b0f6","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"top_tags\": {\n \"terms\": {\n \"field\": \"type\",\n \"size\": 3\n },\n \"aggs\": {\n \"top_sales_hits\": {\n \"top_hits\": {\n \"sort\": [\n {\n \"date\": {\n \"order\": \"desc\"\n }\n }\n ],\n \"_source\": {\n \"includes\": [ \"date\", \"price\" ]\n },\n \"size\": 1\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/tophits-aggregation.asciidoc","line":87},"digest":"ac5c534e77684388b5126e2960db0d3f","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"top_tags\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"hat\",\n \"doc_count\": 3,\n \"top_sales_hits\": {\n \"hits\": {\n \"total\" : {\n \"value\": 3,\n \"relation\": \"eq\"\n },\n \"max_score\": null,\n \"hits\": [\n {\n \"_index\": \"sales\",\n \"_id\": \"AVnNBmauCQpcRyxw6ChK\",\n \"_source\": {\n \"date\": \"2015/03/01 00:00:00\",\n \"price\": 200\n },\n \"sort\": [\n 1425168000000\n ],\n \"_score\": null\n }\n ]\n }\n }\n },\n {\n \"key\": \"t-shirt\",\n \"doc_count\": 3,\n \"top_sales_hits\": {\n \"hits\": {\n \"total\" : {\n \"value\": 3,\n \"relation\": \"eq\"\n },\n \"max_score\": null,\n \"hits\": [\n {\n \"_index\": \"sales\",\n \"_id\": \"AVnNBmauCQpcRyxw6ChL\",\n \"_source\": {\n \"date\": \"2015/03/01 00:00:00\",\n \"price\": 175\n },\n \"sort\": [\n 1425168000000\n ],\n \"_score\": null\n }\n ]\n }\n }\n },\n {\n \"key\": \"bag\",\n \"doc_count\": 1,\n \"top_sales_hits\": {\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": null,\n \"hits\": [\n {\n \"_index\": \"sales\",\n \"_id\": \"AVnNBmatCQpcRyxw6ChH\",\n \"_source\": {\n \"date\": \"2015/01/01 00:00:00\",\n \"price\": 150\n },\n \"sort\": [\n 1420070400000\n ],\n \"_score\": null\n }\n ]\n }\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/tophits-aggregation.asciidoc","line":201},"digest":"30db2702dd0071c72a090b8311d0db09","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"query\": {\n \"match\": {\n \"body\": \"elections\"\n }\n },\n \"aggs\": {\n \"top_sites\": {\n \"terms\": {\n \"field\": \"domain\",\n \"order\": {\n \"top_hit\": \"desc\"\n }\n },\n \"aggs\": {\n \"top_tags_hits\": {\n \"top_hits\": {}\n },\n \"top_hit\" : {\n \"max\": {\n \"script\": {\n \"source\": \"_score\"\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/tophits-aggregation.asciidoc","line":254},"digest":"025155da86802ebf4c3aeee5aab692f9","lang":"console","found":["python","ruby","js"],"source":"PUT /sales\n{\n \"mappings\": {\n \"properties\": {\n \"tags\": { \"type\": \"keyword\" },\n \"comments\": { <1>\n \"type\": \"nested\",\n \"properties\": {\n \"username\": { \"type\": \"keyword\" },\n \"comment\": { \"type\": \"text\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/tophits-aggregation.asciidoc","line":277},"digest":"a8add749c3f41ad1308a45308df14103","lang":"console","found":["python","ruby","js"],"source":"PUT /sales/_doc/1?refresh\n{\n \"tags\": [ \"car\", \"auto\" ],\n \"comments\": [\n { \"username\": \"baddriver007\", \"comment\": \"This car could have better brakes\" },\n { \"username\": \"dr_who\", \"comment\": \"Where's the autopilot? Can't find it\" },\n { \"username\": \"ilovemotorbikes\", \"comment\": \"This car has two extra wheels\" }\n ]\n}"},
{"source_location":{"file":"aggregations/metrics/tophits-aggregation.asciidoc","line":293},"digest":"a1377b32d7fe3680079ae0df73009b0e","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"query\": {\n \"term\": { \"tags\": \"car\" }\n },\n \"aggs\": {\n \"by_sale\": {\n \"nested\": {\n \"path\": \"comments\"\n },\n \"aggs\": {\n \"by_user\": {\n \"terms\": {\n \"field\": \"comments.username\",\n \"size\": 1\n },\n \"aggs\": {\n \"by_nested\": {\n \"top_hits\": {}\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/tophits-aggregation.asciidoc","line":327},"digest":"7360e36c8ba3511fa133472ec101fff3","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"by_sale\": {\n \"by_user\": {\n \"buckets\": [\n {\n \"key\": \"baddriver007\",\n \"doc_count\": 1,\n \"by_nested\": {\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.3616575,\n \"hits\": [\n {\n \"_index\": \"sales\",\n \"_id\": \"1\",\n \"_nested\": {\n \"field\": \"comments\", <1>\n \"offset\": 0 <2>\n },\n \"_score\": 0.3616575,\n \"_source\": {\n \"comment\": \"This car could have better brakes\", <3>\n \"username\": \"baddriver007\"\n }\n }\n ]\n }\n }\n }\n ...\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/tophits-aggregation.asciidoc","line":427},"digest":"e1220f2c28db6ef0233e26e6bd3866fa","lang":"console","found":["python","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\": {\n \"top_tags\": {\n \"terms\": {\n \"field\": \"type\",\n \"size\": 3\n },\n \"aggs\": {\n \"top_sales_hits\": {\n \"top_hits\": {\n \"sort\": [\n {\n \"date\": {\n \"order\": \"desc\"\n }\n }\n ],\n \"_source\": {\n \"includes\": [ \"date\", \"price\" ]\n },\n \"size\": 1\n }\n },\n \"having.top_salary\": {\n \"bucket_selector\": {\n \"buckets_path\": {\n \"tp\": \"top_sales_hits[_source.price]\"\n },\n \"script\": \"params.tp < 180\"\n }\n }\n }\n }\n }\n}\n"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":12},"digest":"9d1fb129ac783355a20097effded1845","lang":"console","found":["python","ruby","js"],"source":"POST /test/_bulk?refresh\n{\"index\": {}}\n{\"s\": 1, \"m\": 3.1415}\n{\"index\": {}}\n{\"s\": 2, \"m\": 1.0}\n{\"index\": {}}\n{\"s\": 3, \"m\": 2.71828}\nPOST /test/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"tm\": {\n \"top_metrics\": {\n \"metrics\": {\"field\": \"m\"},\n \"sort\": {\"s\": \"desc\"}\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":89},"digest":"b00d74eed431a272c829c0f798e3a539","lang":"console","found":["python","ruby","js"],"source":"PUT /test\n{\n \"mappings\": {\n \"properties\": {\n \"d\": {\"type\": \"date\"}\n }\n }\n}\nPOST /test/_bulk?refresh\n{\"index\": {}}\n{\"s\": 1, \"m\": 3.1415, \"i\": 1, \"d\": \"2020-01-01T00:12:12Z\", \"t\": \"cat\"}\n{\"index\": {}}\n{\"s\": 2, \"m\": 1.0, \"i\": 6, \"d\": \"2020-01-02T00:12:12Z\", \"t\": \"dog\"}\n{\"index\": {}}\n{\"s\": 3, \"m\": 2.71828, \"i\": -12, \"d\": \"2019-12-31T00:12:12Z\", \"t\": \"chicken\"}\nPOST /test/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"tm\": {\n \"top_metrics\": {\n \"metrics\": [\n {\"field\": \"m\"},\n {\"field\": \"i\"},\n {\"field\": \"d\"},\n {\"field\": \"t.keyword\"}\n ],\n \"sort\": {\"s\": \"desc\"}\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":154},"digest":"376ff4b2b5f657481af78a778aaab57f","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index\n{\n \"mappings\": {\n \"properties\": {\n \"nr\": { \"type\": \"integer\" },\n \"state\": { \"type\": \"keyword\" } <1>\n }\n }\n}\nPOST /my-index/_bulk?refresh\n{\"index\": {}}\n{\"nr\": 1, \"state\": \"started\"}\n{\"index\": {}}\n{\"nr\": 2, \"state\": \"stopped\"}\n{\"index\": {}}\n{\"nr\": 3, \"state\": \"N/A\"}\n{\"index\": {}}\n{\"nr\": 4} <2>\nPOST /my-index/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"my_top_metrics\": {\n \"top_metrics\": {\n \"metrics\": {\n \"field\": \"state\",\n \"missing\": \"N/A\"}, <3>\n \"sort\": {\"nr\": \"desc\"}\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":197},"digest":"4a134149b563eb2613a2f6637c245f76","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"my_top_metrics\": {\n \"top\": [\n {\n \"sort\": [\n 4\n ],\n \"metrics\": {\n \"state\": \"N/A\"\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":222},"digest":"6013ed65d2058da5ce704b47a504b60a","lang":"console","found":["python","ruby","js"],"source":"POST /test/_bulk?refresh\n{\"index\": {}}\n{\"s\": 1, \"m\": 3.1415}\n{\"index\": {}}\n{\"s\": 2, \"m\": 1.0}\n{\"index\": {}}\n{\"s\": 3, \"m\": 2.71828}\nPOST /test/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"tm\": {\n \"top_metrics\": {\n \"metrics\": {\"field\": \"m\"},\n \"sort\": {\"s\": \"desc\"},\n \"size\": 3\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":272},"digest":"b63ce79ce4fa1bb9b99a789f4dcfef4e","lang":"console","found":["python","ruby","js"],"source":"PUT /test/_settings\n{\n \"top_metrics_max_size\": 100\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":291},"digest":"5b3384992c398ea8a3064d2e08725e2b","lang":"console","found":["python","ruby","js"],"source":"PUT /node\n{\n \"mappings\": {\n \"properties\": {\n \"ip\": {\"type\": \"ip\"},\n \"date\": {\"type\": \"date\"}\n }\n }\n}\nPOST /node/_bulk?refresh\n{\"index\": {}}\n{\"ip\": \"192.168.0.1\", \"date\": \"2020-01-01T01:01:01\", \"m\": 1}\n{\"index\": {}}\n{\"ip\": \"192.168.0.1\", \"date\": \"2020-01-01T02:01:01\", \"m\": 2}\n{\"index\": {}}\n{\"ip\": \"192.168.0.2\", \"date\": \"2020-01-01T02:01:01\", \"m\": 3}\nPOST /node/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"ip\": {\n \"terms\": {\n \"field\": \"ip\"\n },\n \"aggs\": {\n \"tm\": {\n \"top_metrics\": {\n \"metrics\": {\"field\": \"m\"},\n \"sort\": {\"date\": \"desc\"}\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":362},"digest":"4af15c4f26ddefb9c350e7a246a66a15","lang":"console","found":["python","ruby","js"],"source":"POST /node/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"ip\": {\n \"terms\": {\n \"field\": \"ip\",\n \"order\": {\"tm.m\": \"desc\"}\n },\n \"aggs\": {\n \"tm\": {\n \"top_metrics\": {\n \"metrics\": {\"field\": \"m\"},\n \"sort\": {\"date\": \"desc\"}\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":423},"digest":"2d2f5ec97aa34ff7822a6a1ed08ef335","lang":"console","found":["python","ruby","js"],"source":"POST /test/_bulk?refresh\n{\"index\": {\"_index\": \"test1\"}}\n{\"s\": 1, \"m\": 3.1415}\n{\"index\": {\"_index\": \"test1\"}}\n{\"s\": 2, \"m\": 1}\n{\"index\": {\"_index\": \"test2\"}}\n{\"s\": 3.1, \"m\": 2.71828}\nPOST /test*/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"tm\": {\n \"top_metrics\": {\n \"metrics\": {\"field\": \"m\"},\n \"sort\": {\"s\": \"asc\"}\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":463},"digest":"56da9c55774f4c2e8eadde0579bdc60c","lang":"console","found":["python","ruby","js"],"source":"POST /test*/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"tm\": {\n \"top_metrics\": {\n \"metrics\": {\"field\": \"m\"},\n \"sort\": {\"s\": {\"order\": \"asc\", \"numeric_type\": \"double\"}}\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/top-metrics-aggregation.asciidoc","line":499},"digest":"bdfb86cdfffb9d2ee6e3d399f00a57b0","lang":"console","found":["python","ruby","js"],"source":"POST /test*/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"ip\": {\n \"terms\": {\n \"field\": \"ip\"\n },\n \"aggs\": {\n \"tm\": {\n \"top_metrics\": {\n \"metrics\": {\"field\": \"m\"},\n \"sort\": {\"s\": \"desc\"},\n \"size\": 1\n }\n },\n \"having_tm\": {\n \"bucket_selector\": {\n \"buckets_path\": {\n \"top_m\": \"tm[m]\"\n },\n \"script\": \"params.top_m < 1000\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/valuecount-aggregation.asciidoc","line":15},"digest":"e7eca57a5bf5a53cbbe2463bce11495b","lang":"console","found":["python","ruby","go","js"],"source":"POST /sales/_search?size=0\n{\n \"aggs\" : {\n \"types_count\" : { \"value_count\" : { \"field\" : \"type\" } }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/valuecount-aggregation.asciidoc","line":28},"digest":"a5942843b53196db627422fe68d46798","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"types_count\": {\n \"value\": 7\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/valuecount-aggregation.asciidoc","line":49},"digest":"1cab9da122778a95061831265c250cc1","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"tags\": {\n \"type\": \"keyword\",\n \"script\": \"\"\"\n emit(doc['type'].value);\n if (doc['promoted'].value) {\n emit('hot');\n }\n \"\"\"\n }\n },\n \"aggs\": {\n \"tags_count\": {\n \"value_count\": {\n \"field\": \"tags\"\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/valuecount-aggregation.asciidoc","line":97},"digest":"eada8af6588584ac88f1e5b15f4a5c2a","lang":"console","found":["python","ruby","go","js"],"source":"PUT metrics_index/_doc/1\n{\n \"network.name\" : \"net-1\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5],\n \"counts\" : [3, 7, 23, 12, 6] <1>\n }\n}\n\nPUT metrics_index/_doc/2\n{\n \"network.name\" : \"net-2\",\n \"latency_histo\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5],\n \"counts\" : [8, 17, 8, 7, 6] <1>\n }\n}\n\nPOST /metrics_index/_search?size=0\n{\n \"aggs\": {\n \"total_requests\": {\n \"value_count\": { \"field\": \"latency_histo\" }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/valuecount-aggregation.asciidoc","line":130},"digest":"bc04ca78d06998b4410ced42ac4ddc19","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"total_requests\": {\n \"value\": 97\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/weighted-avg-aggregation.asciidoc","line":55},"digest":"4275ecbe4aa68d43a8a7139866610a27","lang":"console","found":["python","ruby","js"],"source":"POST /exams/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"weighted_grade\": {\n \"weighted_avg\": {\n \"value\": {\n \"field\": \"grade\"\n },\n \"weight\": {\n \"field\": \"weight\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/weighted-avg-aggregation.asciidoc","line":78},"digest":"cf7da4a0b43c334bd535db6995d7cefa","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"weighted_grade\": {\n \"value\": 70.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/weighted-avg-aggregation.asciidoc","line":101},"digest":"abc280775734daa6cf2c28868e155d10","lang":"console","found":["python","ruby","js"],"source":"POST /exams/_doc?refresh\n{\n \"grade\": [1, 2, 3],\n \"weight\": 2\n}\n\nPOST /exams/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"weighted_grade\": {\n \"weighted_avg\": {\n \"value\": {\n \"field\": \"grade\"\n },\n \"weight\": {\n \"field\": \"weight\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/weighted-avg-aggregation.asciidoc","line":130},"digest":"84a4a31a48fa19f5f0202052efae7de1","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\": {\n \"weighted_grade\": {\n \"value\": 2.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/weighted-avg-aggregation.asciidoc","line":152},"digest":"73250f845738c428246a3ade66a8f54c","lang":"console","found":["python","ruby","js"],"source":"POST /exams/_doc?refresh\n{\n \"grade\": 100,\n \"weight\": [2, 3]\n}\nPOST /exams/_doc?refresh\n{\n \"grade\": 80,\n \"weight\": 3\n}\n\nPOST /exams/_search?filter_path=aggregations\n{\n \"size\": 0,\n \"runtime_mappings\": {\n \"weight.combined\": {\n \"type\": \"double\",\n \"script\": \"\"\"\n double s = 0;\n for (double w : doc['weight']) {\n s += w;\n }\n emit(s);\n \"\"\"\n }\n },\n \"aggs\": {\n \"weighted_grade\": {\n \"weighted_avg\": {\n \"value\": {\n \"script\": \"doc.grade.value + 1\"\n },\n \"weight\": {\n \"field\": \"weight.combined\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/weighted-avg-aggregation.asciidoc","line":197},"digest":"fe65500260f57458aad47b911320ebc5","lang":"console-result","found":[],"source":"{\n \"aggregations\": {\n \"weighted_grade\": {\n \"value\": 93.5\n }\n }\n}"},
{"source_location":{"file":"aggregations/metrics/weighted-avg-aggregation.asciidoc","line":214},"digest":"291110f4cac02f4610d0853f5800a70d","lang":"console","found":["python","js"],"source":"POST /exams/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"weighted_grade\": {\n \"weighted_avg\": {\n \"value\": {\n \"field\": \"grade\",\n \"missing\": 2\n },\n \"weight\": {\n \"field\": \"weight\",\n \"missing\": 3\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline.asciidoc","line":62},"digest":"e19f5e3724d9f3f36a817b9a811ca42e","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"calendar_interval\": \"day\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"lemmings\" } <1>\n },\n \"the_deriv\": {\n \"derivative\": { \"buckets_path\": \"the_sum\" } <2>\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline.asciidoc","line":92},"digest":"65578c390837cb4c0fcc77fb17857714","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"max_monthly_sales\": {\n \"max_bucket\": {\n \"buckets_path\": \"sales_per_month>sales\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline.asciidoc","line":127},"digest":"eaf53b05959cc6b7fb09579baf34de68","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sale_type\": {\n \"terms\": {\n \"field\": \"type\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"hat_vs_bag_ratio\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"hats\": \"sale_type['hat']>sales\", <1>\n \"bags\": \"sale_type['bag']>sales\" <1>\n },\n \"script\": \"params.hats / params.bags\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline.asciidoc","line":176},"digest":"206c723296be8ef8d58aef3ee01f5ba2","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"calendar_interval\": \"day\"\n },\n \"aggs\": {\n \"the_deriv\": {\n \"derivative\": { \"buckets_path\": \"_count\" } <1>\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline.asciidoc","line":202},"digest":"2afc1231679898bd864d06679d9e951b","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"day\"\n },\n \"aggs\": {\n \"categories\": {\n \"terms\": {\n \"field\": \"category\"\n }\n },\n \"min_bucket_selector\": {\n \"bucket_selector\": {\n \"buckets_path\": {\n \"count\": \"categories._bucket_count\" <1>\n },\n \"script\": {\n \"source\": \"params.count != 0\"\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/avg-bucket-aggregation.asciidoc","line":57},"digest":"3082ae0c3ecdc61808103214631b40c6","lang":"console","found":["python","js"],"source":"POST _search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"avg_monthly_sales\": {\n// tag::avg-bucket-agg-syntax[] <1>\n \"avg_bucket\": {\n \"buckets_path\": \"sales_per_month>sales\",\n \"gap_policy\": \"skip\",\n \"format\": \"#,##0.00;(#,##0.00)\"\n }\n// end::avg-bucket-agg-syntax[] <2>\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/avg-bucket-aggregation.asciidoc","line":95},"digest":"6f78c28f873608e561e85a5e3e58471f","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n }\n }\n ]\n },\n \"avg_monthly_sales\": {\n \"value\": 328.33333333333333,\n \"value_as_string\": \"328.33\"\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-script-aggregation.asciidoc","line":50},"digest":"6eead05dd3b04722ef0ea5644c2e047d","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"total_sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n },\n \"t-shirts\": {\n \"filter\": {\n \"term\": {\n \"type\": \"t-shirt\"\n }\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"t-shirt-percentage\": {\n \"bucket_script\": {\n \"buckets_path\": {\n \"tShirtSales\": \"t-shirts>sales\",\n \"totalSales\": \"total_sales\"\n },\n \"script\": \"params.tShirtSales / params.totalSales * 100\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-script-aggregation.asciidoc","line":99},"digest":"327c42605491ee053c73152d9de513f9","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"total_sales\": {\n \"value\": 550.0\n },\n \"t-shirts\": {\n \"doc_count\": 1,\n \"sales\": {\n \"value\": 200.0\n }\n },\n \"t-shirt-percentage\": {\n \"value\": 36.36363636363637\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"total_sales\": {\n \"value\": 60.0\n },\n \"t-shirts\": {\n \"doc_count\": 1,\n \"sales\": {\n \"value\": 10.0\n }\n },\n \"t-shirt-percentage\": {\n \"value\": 16.666666666666664\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"total_sales\": {\n \"value\": 375.0\n },\n \"t-shirts\": {\n \"doc_count\": 1,\n \"sales\": {\n \"value\": 175.0\n }\n },\n \"t-shirt-percentage\": {\n \"value\": 46.666666666666664\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-count-ks-test-aggregation.asciidoc","line":81},"digest":"21d5fe55ca32b10b118224ea1a8a2e04","lang":"console","found":["python","js"],"source":"POST correlate_latency/_search?size=0&filter_path=aggregations\n{\n \"aggs\": {\n \"buckets\": {\n \"terms\": { <1>\n \"field\": \"version\",\n \"size\": 2\n },\n \"aggs\": {\n \"latency_ranges\": {\n \"range\": { <2>\n \"field\": \"latency\",\n \"ranges\": [\n { \"to\": 0 },\n { \"from\": 0, \"to\": 105 },\n { \"from\": 105, \"to\": 225 },\n { \"from\": 225, \"to\": 445 },\n { \"from\": 445, \"to\": 665 },\n { \"from\": 665, \"to\": 885 },\n { \"from\": 885, \"to\": 1115 },\n { \"from\": 1115, \"to\": 1335 },\n { \"from\": 1335, \"to\": 1555 },\n { \"from\": 1555, \"to\": 1775 },\n { \"from\": 1775 }\n ]\n }\n },\n \"ks_test\": { <3>\n \"bucket_count_ks_test\": {\n \"buckets_path\": \"latency_ranges>_count\",\n \"alternative\": [\"less\", \"greater\", \"two_sided\"]\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-count-ks-test-aggregation.asciidoc","line":131},"digest":"af9e571876c188dda958c8271da9297e","lang":"console-result","found":[],"source":"{\n \"aggregations\" : {\n \"buckets\" : {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\" : [\n {\n \"key\" : \"1.0\",\n \"doc_count\" : 100,\n \"latency_ranges\" : {\n \"buckets\" : [\n {\n \"key\" : \"*-0.0\",\n \"to\" : 0.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"0.0-105.0\",\n \"from\" : 0.0,\n \"to\" : 105.0,\n \"doc_count\" : 1\n },\n {\n \"key\" : \"105.0-225.0\",\n \"from\" : 105.0,\n \"to\" : 225.0,\n \"doc_count\" : 9\n },\n {\n \"key\" : \"225.0-445.0\",\n \"from\" : 225.0,\n \"to\" : 445.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"445.0-665.0\",\n \"from\" : 445.0,\n \"to\" : 665.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"665.0-885.0\",\n \"from\" : 665.0,\n \"to\" : 885.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"885.0-1115.0\",\n \"from\" : 885.0,\n \"to\" : 1115.0,\n \"doc_count\" : 10\n },\n {\n \"key\" : \"1115.0-1335.0\",\n \"from\" : 1115.0,\n \"to\" : 1335.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"1335.0-1555.0\",\n \"from\" : 1335.0,\n \"to\" : 1555.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"1555.0-1775.0\",\n \"from\" : 1555.0,\n \"to\" : 1775.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"1775.0-*\",\n \"from\" : 1775.0,\n \"doc_count\" : 20\n }\n ]\n },\n \"ks_test\" : {\n \"less\" : 2.248673241788478E-4,\n \"greater\" : 1.0,\n \"two_sided\" : 5.791639181800257E-4\n }\n },\n {\n \"key\" : \"2.0\",\n \"doc_count\" : 100,\n \"latency_ranges\" : {\n \"buckets\" : [\n {\n \"key\" : \"*-0.0\",\n \"to\" : 0.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"0.0-105.0\",\n \"from\" : 0.0,\n \"to\" : 105.0,\n \"doc_count\" : 19\n },\n {\n \"key\" : \"105.0-225.0\",\n \"from\" : 105.0,\n \"to\" : 225.0,\n \"doc_count\" : 11\n },\n {\n \"key\" : \"225.0-445.0\",\n \"from\" : 225.0,\n \"to\" : 445.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"445.0-665.0\",\n \"from\" : 445.0,\n \"to\" : 665.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"665.0-885.0\",\n \"from\" : 665.0,\n \"to\" : 885.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"885.0-1115.0\",\n \"from\" : 885.0,\n \"to\" : 1115.0,\n \"doc_count\" : 10\n },\n {\n \"key\" : \"1115.0-1335.0\",\n \"from\" : 1115.0,\n \"to\" : 1335.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"1335.0-1555.0\",\n \"from\" : 1335.0,\n \"to\" : 1555.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"1555.0-1775.0\",\n \"from\" : 1555.0,\n \"to\" : 1775.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"1775.0-*\",\n \"from\" : 1775.0,\n \"doc_count\" : 0\n }\n ]\n },\n \"ks_test\" : {\n \"less\" : 0.9642895789647244,\n \"greater\" : 4.58718174664754E-9,\n \"two_sided\" : 5.916656831139733E-9\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-correlation-aggregation.asciidoc","line":103},"digest":"fa61e3481b1f889b3bd4253866bb1c6b","lang":"console","found":["python","js"],"source":"POST correlate_latency/_search?size=0&filter_path=aggregations\n{\n \"aggs\": {\n \"buckets\": {\n \"terms\": { <1>\n \"field\": \"version\",\n \"size\": 2\n },\n \"aggs\": {\n \"latency_ranges\": {\n \"range\": { <2>\n \"field\": \"latency\",\n \"ranges\": [\n { \"to\": 0.0 },\n { \"from\": 0, \"to\": 105 },\n { \"from\": 105, \"to\": 225 },\n { \"from\": 225, \"to\": 445 },\n { \"from\": 445, \"to\": 665 },\n { \"from\": 665, \"to\": 885 },\n { \"from\": 885, \"to\": 1115 },\n { \"from\": 1115, \"to\": 1335 },\n { \"from\": 1335, \"to\": 1555 },\n { \"from\": 1555, \"to\": 1775 },\n { \"from\": 1775 }\n ]\n }\n },\n \"bucket_correlation\": { <3>\n \"bucket_correlation\": {\n \"buckets_path\": \"latency_ranges>_count\",\n \"function\": {\n \"count_correlation\": {\n \"indicator\": {\n \"expectations\": [0, 52.5, 165, 335, 555, 775, 1000, 1225, 1445, 1665, 1775],\n \"doc_count\": 200\n }\n }\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-correlation-aggregation.asciidoc","line":160},"digest":"616a7b91d461e4eb9af66a5289824695","lang":"console-result","found":[],"source":"{\n \"aggregations\" : {\n \"buckets\" : {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\" : [\n {\n \"key\" : \"1.0\",\n \"doc_count\" : 100,\n \"latency_ranges\" : {\n \"buckets\" : [\n {\n \"key\" : \"*-0.0\",\n \"to\" : 0.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"0.0-105.0\",\n \"from\" : 0.0,\n \"to\" : 105.0,\n \"doc_count\" : 1\n },\n {\n \"key\" : \"105.0-225.0\",\n \"from\" : 105.0,\n \"to\" : 225.0,\n \"doc_count\" : 9\n },\n {\n \"key\" : \"225.0-445.0\",\n \"from\" : 225.0,\n \"to\" : 445.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"445.0-665.0\",\n \"from\" : 445.0,\n \"to\" : 665.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"665.0-885.0\",\n \"from\" : 665.0,\n \"to\" : 885.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"885.0-1115.0\",\n \"from\" : 885.0,\n \"to\" : 1115.0,\n \"doc_count\" : 10\n },\n {\n \"key\" : \"1115.0-1335.0\",\n \"from\" : 1115.0,\n \"to\" : 1335.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"1335.0-1555.0\",\n \"from\" : 1335.0,\n \"to\" : 1555.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"1555.0-1775.0\",\n \"from\" : 1555.0,\n \"to\" : 1775.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"1775.0-*\",\n \"from\" : 1775.0,\n \"doc_count\" : 20\n }\n ]\n },\n \"bucket_correlation\" : {\n \"value\" : 0.8402398981360937\n }\n },\n {\n \"key\" : \"2.0\",\n \"doc_count\" : 100,\n \"latency_ranges\" : {\n \"buckets\" : [\n {\n \"key\" : \"*-0.0\",\n \"to\" : 0.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"0.0-105.0\",\n \"from\" : 0.0,\n \"to\" : 105.0,\n \"doc_count\" : 19\n },\n {\n \"key\" : \"105.0-225.0\",\n \"from\" : 105.0,\n \"to\" : 225.0,\n \"doc_count\" : 11\n },\n {\n \"key\" : \"225.0-445.0\",\n \"from\" : 225.0,\n \"to\" : 445.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"445.0-665.0\",\n \"from\" : 445.0,\n \"to\" : 665.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"665.0-885.0\",\n \"from\" : 665.0,\n \"to\" : 885.0,\n \"doc_count\" : 20\n },\n {\n \"key\" : \"885.0-1115.0\",\n \"from\" : 885.0,\n \"to\" : 1115.0,\n \"doc_count\" : 10\n },\n {\n \"key\" : \"1115.0-1335.0\",\n \"from\" : 1115.0,\n \"to\" : 1335.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"1335.0-1555.0\",\n \"from\" : 1335.0,\n \"to\" : 1555.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"1555.0-1775.0\",\n \"from\" : 1555.0,\n \"to\" : 1775.0,\n \"doc_count\" : 0\n },\n {\n \"key\" : \"1775.0-*\",\n \"from\" : 1775.0,\n \"doc_count\" : 0\n }\n ]\n },\n \"bucket_correlation\" : {\n \"value\" : -0.5759855613334943\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-selector-aggregation.asciidoc","line":51},"digest":"38b20fe981605e80a41517e9aa13134a","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"total_sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n },\n \"sales_bucket_filter\": {\n \"bucket_selector\": {\n \"buckets_path\": {\n \"totalSales\": \"total_sales\"\n },\n \"script\": \"params.totalSales > 200\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-selector-aggregation.asciidoc","line":85},"digest":"62ac51fcd953a228259fbb34c6d97900","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"total_sales\": {\n \"value\": 550.0\n }\n },<1>\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"total_sales\": {\n \"value\": 375.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-sort-aggregation.asciidoc","line":54},"digest":"9d9c8d715b72ce336e604c2c8a2b540e","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"total_sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n },\n \"sales_bucket_sort\": {\n \"bucket_sort\": {\n \"sort\": [\n { \"total_sales\": { \"order\": \"desc\" } } <1>\n ],\n \"size\": 3 <2>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-sort-aggregation.asciidoc","line":91},"digest":"d065cb05867361d96c13f9acad3b09cf","lang":"console-result","found":[],"source":"{\n \"took\": 82,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"total_sales\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"total_sales\": {\n \"value\": 375.0\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"total_sales\": {\n \"value\": 60.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-sort-aggregation.asciidoc","line":142},"digest":"92035a2a62d01a511662af65606d5fc6","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"bucket_truncate\": {\n \"bucket_sort\": {\n \"from\": 1,\n \"size\": 1\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/bucket-sort-aggregation.asciidoc","line":169},"digest":"787cc8a92d371323d88b89eb331bc96b","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/cumulative-cardinality-aggregation.asciidoc","line":46},"digest":"0c688eecf4ebdffdbe1deae0983c3ed8","lang":"console","found":["python","ruby","js"],"source":"GET /user_hits/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"users_per_day\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"calendar_interval\": \"day\"\n },\n \"aggs\": {\n \"distinct_users\": {\n \"cardinality\": {\n \"field\": \"user_id\"\n }\n },\n \"total_new_users\": {\n \"cumulative_cardinality\": {\n \"buckets_path\": \"distinct_users\" <1>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/cumulative-cardinality-aggregation.asciidoc","line":79},"digest":"bedf4afad2a9787d01085d6869c44751","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"users_per_day\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2019-01-01T00:00:00.000Z\",\n \"key\": 1546300800000,\n \"doc_count\": 2,\n \"distinct_users\": {\n \"value\": 2\n },\n \"total_new_users\": {\n \"value\": 2\n }\n },\n {\n \"key_as_string\": \"2019-01-02T00:00:00.000Z\",\n \"key\": 1546387200000,\n \"doc_count\": 2,\n \"distinct_users\": {\n \"value\": 2\n },\n \"total_new_users\": {\n \"value\": 3\n }\n },\n {\n \"key_as_string\": \"2019-01-03T00:00:00.000Z\",\n \"key\": 1546473600000,\n \"doc_count\": 3,\n \"distinct_users\": {\n \"value\": 3\n },\n \"total_new_users\": {\n \"value\": 4\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/cumulative-cardinality-aggregation.asciidoc","line":145},"digest":"fb2b91206cfa8b86b4c7117ac1b5193b","lang":"console","found":["python","ruby","js"],"source":"GET /user_hits/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"users_per_day\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"calendar_interval\": \"day\"\n },\n \"aggs\": {\n \"distinct_users\": {\n \"cardinality\": {\n \"field\": \"user_id\"\n }\n },\n \"total_new_users\": {\n \"cumulative_cardinality\": {\n \"buckets_path\": \"distinct_users\"\n }\n },\n \"incremental_new_users\": {\n \"derivative\": {\n \"buckets_path\": \"total_new_users\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/cumulative-cardinality-aggregation.asciidoc","line":182},"digest":"de7cfdf9934fbb000486b00a8d40fa63","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"users_per_day\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2019-01-01T00:00:00.000Z\",\n \"key\": 1546300800000,\n \"doc_count\": 2,\n \"distinct_users\": {\n \"value\": 2\n },\n \"total_new_users\": {\n \"value\": 2\n }\n },\n {\n \"key_as_string\": \"2019-01-02T00:00:00.000Z\",\n \"key\": 1546387200000,\n \"doc_count\": 2,\n \"distinct_users\": {\n \"value\": 2\n },\n \"total_new_users\": {\n \"value\": 3\n },\n \"incremental_new_users\": {\n \"value\": 1.0\n }\n },\n {\n \"key_as_string\": \"2019-01-03T00:00:00.000Z\",\n \"key\": 1546473600000,\n \"doc_count\": 3,\n \"distinct_users\": {\n \"value\": 3\n },\n \"total_new_users\": {\n \"value\": 4\n },\n \"incremental_new_users\": {\n \"value\": 1.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/cumulative-sum-aggregation.asciidoc","line":40},"digest":"ef867e563cbffe7866769a096b5d7a92","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n },\n \"cumulative_sales\": {\n \"cumulative_sum\": {\n \"buckets_path\": \"sales\" <1>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/cumulative-sum-aggregation.asciidoc","line":73},"digest":"0a9f95fcb384ff3833e3866fd72ed1e4","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n },\n \"cumulative_sales\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n },\n \"cumulative_sales\": {\n \"value\": 610.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n },\n \"cumulative_sales\": {\n \"value\": 985.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/derivative-aggregation.asciidoc","line":43},"digest":"7ed26b34ce90192a1563dcddf0e45dc0","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n },\n \"sales_deriv\": {\n \"derivative\": {\n \"buckets_path\": \"sales\" <1>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/derivative-aggregation.asciidoc","line":76},"digest":"4bfd88c9b9dc88bce96bc8a16c198542","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n } <1>\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n },\n \"sales_deriv\": {\n \"value\": -490.0 <2>\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2, <3>\n \"sales\": {\n \"value\": 375.0\n },\n \"sales_deriv\": {\n \"value\": 315.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/derivative-aggregation.asciidoc","line":136},"digest":"913c163c197802078a8af72150178061","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n },\n \"sales_deriv\": {\n \"derivative\": {\n \"buckets_path\": \"sales\"\n }\n },\n \"sales_2nd_deriv\": {\n \"derivative\": {\n \"buckets_path\": \"sales_deriv\" <1>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/derivative-aggregation.asciidoc","line":174},"digest":"99e2d1cad66f9e34d7069748cc24fbe3","lang":"console-result","found":[],"source":"{\n \"took\": 50,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n } <1>\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n },\n \"sales_deriv\": {\n \"value\": -490.0\n } <1>\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n },\n \"sales_deriv\": {\n \"value\": 315.0\n },\n \"sales_2nd_deriv\": {\n \"value\": 805.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/derivative-aggregation.asciidoc","line":235},"digest":"189f0cd1ee2485cf11a2968f01d54e5b","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n },\n \"sales_deriv\": {\n \"derivative\": {\n \"buckets_path\": \"sales\",\n \"unit\": \"day\" <1>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/derivative-aggregation.asciidoc","line":268},"digest":"929c90aa5f2a6e9102d28a8ec3cfba05","lang":"console-result","found":[],"source":"{\n \"took\": 50,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n } <1>\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n },\n \"sales_deriv\": {\n \"value\": -490.0, <1>\n \"normalized_value\": -15.806451612903226 <2>\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n },\n \"sales_deriv\": {\n \"value\": 315.0,\n \"normalized_value\": 11.25\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/extended-stats-bucket-aggregation.asciidoc","line":44},"digest":"e451900efbd8be50c2b8347a83816aa6","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"stats_monthly_sales\": {\n \"extended_stats_bucket\": {\n \"buckets_path\": \"sales_per_month>sales\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/extended-stats-bucket-aggregation.asciidoc","line":78},"digest":"c41cb2ebb176a11861f4ef1a428dc4be","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n }\n }\n ]\n },\n \"stats_monthly_sales\": {\n \"count\": 3,\n \"min\": 60.0,\n \"max\": 550.0,\n \"avg\": 328.3333333333333,\n \"sum\": 985.0,\n \"sum_of_squares\": 446725.0,\n \"variance\": 41105.55555555556,\n \"variance_population\": 41105.55555555556,\n \"variance_sampling\": 61658.33333333334,\n \"std_deviation\": 202.74505063146563,\n \"std_deviation_population\": 202.74505063146563,\n \"std_deviation_sampling\": 248.3109609609156,\n \"std_deviation_bounds\": {\n \"upper\": 733.8234345962646,\n \"lower\": -77.15676792959795,\n \"upper_population\" : 733.8234345962646,\n \"lower_population\" : -77.15676792959795,\n \"upper_sampling\" : 824.9552552551645,\n \"lower_sampling\" : -168.28858858849787\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/inference-bucket-aggregation.asciidoc","line":95},"digest":"abb4a58089574211d434946a923e5725","lang":"console","found":["python","ruby","js"],"source":"GET kibana_sample_data_logs/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"client_ip\": { <1>\n \"composite\": {\n \"sources\": [\n {\n \"client_ip\": {\n \"terms\": {\n \"field\": \"clientip\"\n }\n }\n }\n ]\n },\n \"aggs\": { <2>\n \"url_dc\": {\n \"cardinality\": {\n \"field\": \"url.keyword\"\n }\n },\n \"bytes_sum\": {\n \"sum\": {\n \"field\": \"bytes\"\n }\n },\n \"geo_src_dc\": {\n \"cardinality\": {\n \"field\": \"geo.src\"\n }\n },\n \"geo_dest_dc\": {\n \"cardinality\": {\n \"field\": \"geo.dest\"\n }\n },\n \"responses_total\": {\n \"value_count\": {\n \"field\": \"timestamp\"\n }\n },\n \"success\": {\n \"filter\": {\n \"term\": {\n \"response\": \"200\"\n }\n }\n },\n \"error404\": {\n \"filter\": {\n \"term\": {\n \"response\": \"404\"\n }\n }\n },\n \"error503\": {\n \"filter\": {\n \"term\": {\n \"response\": \"503\"\n }\n }\n },\n \"malicious_client_ip\": { <3>\n \"inference\": {\n \"model_id\": \"malicious_clients_model\",\n \"buckets_path\": {\n \"response_count\": \"responses_total\",\n \"url_dc\": \"url_dc\",\n \"bytes_sum\": \"bytes_sum\",\n \"geo_src_dc\": \"geo_src_dc\",\n \"geo_dest_dc\": \"geo_dest_dc\",\n \"success\": \"success._count\",\n \"error404\": \"error404._count\",\n \"error503\": \"error503._count\"\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/max-bucket-aggregation.asciidoc","line":42},"digest":"b601bc78fb69e15a42e0783219ddc38d","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"max_monthly_sales\": {\n \"max_bucket\": {\n \"buckets_path\": \"sales_per_month>sales\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/max-bucket-aggregation.asciidoc","line":76},"digest":"e0765c7c1155bc3da07dd84aa7a5033f","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n }\n }\n ]\n },\n \"max_monthly_sales\": {\n \"keys\": [\"2015/01/01 00:00:00\"], <1>\n \"value\": 550.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/min-bucket-aggregation.asciidoc","line":42},"digest":"a4bd9bf52b4f098838d12bcb8dfc3482","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"min_monthly_sales\": {\n \"min_bucket\": {\n \"buckets_path\": \"sales_per_month>sales\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/min-bucket-aggregation.asciidoc","line":76},"digest":"9128fb8c19494741f8eb9906450586e5","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n }\n }\n ]\n },\n \"min_monthly_sales\": {\n \"keys\": [\"2015/02/01 00:00:00\"], <1>\n \"value\": 60.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":43},"digest":"d0dee031197214b59ff9ac7540527d2c","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": { <1>\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" } <2>\n },\n \"the_movfn\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\", <3>\n \"window\": 10,\n \"script\": \"MovingFunctions.unweightedAvg(values)\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":83},"digest":"195ee5116e8fcff0a70fb82bbcc42b58","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"my_date_histo\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"the_sum\": {\n \"value\": 550.0\n },\n \"the_movfn\": {\n \"value\": null\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"the_sum\": {\n \"value\": 60.0\n },\n \"the_movfn\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"the_sum\": {\n \"value\": 375.0\n },\n \"the_movfn\": {\n \"value\": 305.0\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":144},"digest":"d37b0bda2bd24ab310e6b26708c7c6fb","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_movavg\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"return values.length > 0 ? values[0] : Double.NaN\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":214},"digest":"54059961f05904368ced52c894a50e23","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_moving_max\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"MovingFunctions.max(values)\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":256},"digest":"56e90a63f94eeb882fe8acbcd74229c2","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_moving_min\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"MovingFunctions.min(values)\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":298},"digest":"ad63eca6829a25293c9be589c1870547","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_moving_sum\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"MovingFunctions.sum(values)\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":342},"digest":"83d8c920460a12f87b9d5bf65515c367","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_moving_sum\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"MovingFunctions.stdDev(values, MovingFunctions.unweightedAvg(values))\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":393},"digest":"3c36dc17359c6b6b6a40d04da9293fa7","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_movavg\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"MovingFunctions.unweightedAvg(values)\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":438},"digest":"b109d0141ec8a0aed5d3805abc349a20","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_movavg\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"MovingFunctions.linearWeightedAvg(values)\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":489},"digest":"73df03be6ee78b10106581dbd7cb39ef","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_movavg\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"MovingFunctions.ewma(values, 0.3)\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":546},"digest":"61e38e95191f4dde791070c6fce8a092","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_movavg\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"MovingFunctions.holt(values, 0.3, 0.1)\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/movfn-aggregation.asciidoc","line":611},"digest":"b3685560cb328f179d96ffe7c2668f72","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": { \"field\": \"price\" }\n },\n \"the_movavg\": {\n \"moving_fn\": {\n \"buckets_path\": \"the_sum\",\n \"window\": 10,\n \"script\": \"if (values.length > 5*2) {MovingFunctions.holtWinters(values, 0.3, 0.1, 0.1, 5, false)}\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/moving-percentiles-aggregation.asciidoc","line":43},"digest":"5c249eaeb99e6aee07162128288ac1b1","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": { <1>\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1M\"\n },\n \"aggs\": {\n \"the_percentile\": { <2>\n \"percentiles\": {\n \"field\": \"price\",\n \"percents\": [ 1.0, 99.0 ]\n }\n },\n \"the_movperc\": {\n \"moving_percentiles\": {\n \"buckets_path\": \"the_percentile\", <3>\n \"window\": 10\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/moving-percentiles-aggregation.asciidoc","line":85},"digest":"fdd7d19d1b80693e6d7743d9eacc9859","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"my_date_histo\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"the_percentile\": {\n \"values\": {\n \"1.0\": 151.0,\n \"99.0\": 200.0\n }\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"the_percentile\": {\n \"values\": {\n \"1.0\": 10.4,\n \"99.0\": 49.6\n }\n },\n \"the_movperc\": {\n \"values\": {\n \"1.0\": 151.0,\n \"99.0\": 200.0\n }\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"the_percentile\": {\n \"values\": {\n \"1.0\": 175.25,\n \"99.0\": 199.75\n }\n },\n \"the_movperc\": {\n \"values\": {\n \"1.0\": 11.6,\n \"99.0\": 200.0\n }\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/normalize-aggregation.asciidoc","line":95},"digest":"e2d8cf24a12053eb09fec7087cdab43a","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n },\n \"percent_of_total_sales\": {\n \"normalize\": {\n \"buckets_path\": \"sales\", <1>\n \"method\": \"percent_of_sum\", <2>\n \"format\": \"00.00%\" <3>\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/normalize-aggregation.asciidoc","line":134},"digest":"e71d90c66e83dd36141fd4c363303064","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n },\n \"percent_of_total_sales\": {\n \"value\": 0.5583756345177665,\n \"value_as_string\": \"55.84%\"\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n },\n \"percent_of_total_sales\": {\n \"value\": 0.06091370558375635,\n \"value_as_string\": \"06.09%\"\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n },\n \"percent_of_total_sales\": {\n \"value\": 0.38071065989847713,\n \"value_as_string\": \"38.07%\"\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/percentiles-bucket-aggregation.asciidoc","line":43},"digest":"b3ed567d2c0915a280b6b15f7a37539b","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"percentiles_monthly_sales\": {\n \"percentiles_bucket\": {\n \"buckets_path\": \"sales_per_month>sales\", <1>\n \"percents\": [ 25.0, 50.0, 75.0 ] <2>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/percentiles-bucket-aggregation.asciidoc","line":79},"digest":"8a255d25302b6ec629381efb6dc3de4b","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n }\n }\n ]\n },\n \"percentiles_monthly_sales\": {\n \"values\" : {\n \"25.0\": 375.0,\n \"50.0\": 375.0,\n \"75.0\": 550.0\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/serial-diff-aggregation.asciidoc","line":69},"digest":"b4da132cb934c33d61e2b60988c6d4a3","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": 0,\n \"aggs\": {\n \"my_date_histo\": { <1>\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"calendar_interval\": \"day\"\n },\n \"aggs\": {\n \"the_sum\": {\n \"sum\": {\n \"field\": \"lemmings\" <2>\n }\n },\n \"thirtieth_difference\": {\n \"serial_diff\": { <3>\n \"buckets_path\": \"the_sum\",\n \"lag\" : 30\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/stats-bucket-aggregation.asciidoc","line":41},"digest":"b573e893de0d5f92d67f4f5eb7f0c353","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"stats_monthly_sales\": {\n \"stats_bucket\": {\n \"buckets_path\": \"sales_per_month>sales\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/stats-bucket-aggregation.asciidoc","line":75},"digest":"8a40309b0e17445519ad62f962926e24","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n }\n }\n ]\n },\n \"stats_monthly_sales\": {\n \"count\": 3,\n \"min\": 60.0,\n \"max\": 550.0,\n \"avg\": 328.3333333333333,\n \"sum\": 985.0\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/sum-bucket-aggregation.asciidoc","line":42},"digest":"8db799543eb084ec71547980863d60b9","lang":"console","found":["python","ruby","js"],"source":"POST /sales/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"sales_per_month\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"month\"\n },\n \"aggs\": {\n \"sales\": {\n \"sum\": {\n \"field\": \"price\"\n }\n }\n }\n },\n \"sum_monthly_sales\": {\n \"sum_bucket\": {\n \"buckets_path\": \"sales_per_month>sales\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"aggregations/pipeline/sum-bucket-aggregation.asciidoc","line":76},"digest":"7da035d02f2d2267dd7b5de974555459","lang":"console-result","found":[],"source":"{\n \"took\": 11,\n \"timed_out\": false,\n \"_shards\": ...,\n \"hits\": ...,\n \"aggregations\": {\n \"sales_per_month\": {\n \"buckets\": [\n {\n \"key_as_string\": \"2015/01/01 00:00:00\",\n \"key\": 1420070400000,\n \"doc_count\": 3,\n \"sales\": {\n \"value\": 550.0\n }\n },\n {\n \"key_as_string\": \"2015/02/01 00:00:00\",\n \"key\": 1422748800000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 60.0\n }\n },\n {\n \"key_as_string\": \"2015/03/01 00:00:00\",\n \"key\": 1425168000000,\n \"doc_count\": 2,\n \"sales\": {\n \"value\": 375.0\n }\n }\n ]\n },\n \"sum_monthly_sales\": {\n \"value\": 985.0\n }\n }\n}"},
{"source_location":{"file":"watcher/getting-started.asciidoc","line":27},"digest":"a45eb0cdd138d9c894ca2de9352549a1","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/log_error_watch\n{\n \"trigger\" : {\n \"schedule\" : { \"interval\" : \"10s\" } <1>\n },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : [ \"logs\" ],\n \"body\" : {\n \"query\" : {\n \"match\" : { \"message\": \"error\" }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/getting-started.asciidoc","line":61},"digest":"69d9b8fd364596aa37eae6864d8a6d89","lang":"console","found":["python","ruby","js"],"source":"GET .watcher-history*/_search?pretty\n{\n \"sort\" : [\n { \"result.execution_time\" : \"desc\" }\n ]\n}"},
{"source_location":{"file":"watcher/getting-started.asciidoc","line":84},"digest":"0e84bb54b8a9a5387f252eeffeb1098e","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/log_error_watch\n{\n \"trigger\" : { \"schedule\" : { \"interval\" : \"10s\" }},\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : [ \"logs\" ],\n \"body\" : {\n \"query\" : {\n \"match\" : { \"message\": \"error\" }\n }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 0 }} <1>\n }\n}"},
{"source_location":{"file":"watcher/getting-started.asciidoc","line":114},"digest":"6f5adbd55a3a2760e7fe9d32df18b1a1","lang":"console","found":["python","ruby","js"],"source":"POST logs/_doc\n{\n \"timestamp\": \"2015-05-17T18:12:07.613Z\",\n \"request\": \"GET index.html\",\n \"status_code\": 404,\n \"message\": \"Error: File not found\"\n}"},
{"source_location":{"file":"watcher/getting-started.asciidoc","line":131},"digest":"8417d8d35ec5fc5665dfb2f95d6d1101","lang":"console","found":["python","js"],"source":"GET .watcher-history*/_search?pretty\n{\n \"query\" : {\n \"bool\" : {\n \"must\" : [\n { \"match\" : { \"result.condition.met\" : true }},\n { \"range\" : { \"result.execution_time\" : { \"gte\" : \"now-10s\" }}}\n ]\n }\n }\n}"},
{"source_location":{"file":"watcher/getting-started.asciidoc","line":161},"digest":"160de80948e0c7db49b1c311848a66a2","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/log_error_watch\n{\n \"trigger\" : { \"schedule\" : { \"interval\" : \"10s\" }},\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : [ \"logs\" ],\n \"body\" : {\n \"query\" : {\n \"match\" : { \"message\": \"error\" }\n }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 0 }}\n },\n \"actions\" : {\n \"log_error\" : {\n \"logging\" : {\n \"text\" : \"Found {{ctx.payload.hits.total}} errors in the logs\"\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/getting-started.asciidoc","line":202},"digest":"67a490d749a0c3bb16a266663423893d","lang":"console","found":["python","ruby","js"],"source":"DELETE _watcher/watch/log_error_watch"},
{"source_location":{"file":"watcher/how-watcher-works.asciidoc","line":50},"digest":"7965d4dbafdc7ca9e1ee6759939dd2e8","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/log_errors\n{\n \"metadata\" : { <1>\n \"color\" : \"red\"\n },\n \"trigger\" : { <2>\n \"schedule\" : {\n \"interval\" : \"5m\"\n }\n },\n \"input\" : { <3>\n \"search\" : {\n \"request\" : {\n \"indices\" : \"log-events\",\n \"body\" : {\n \"size\" : 0,\n \"query\" : { \"match\" : { \"status\" : \"error\" } }\n }\n }\n }\n },\n \"condition\" : { <4>\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 5 }}\n },\n \"transform\" : { <5>\n \"search\" : {\n \"request\" : {\n \"indices\" : \"log-events\",\n \"body\" : {\n \"query\" : { \"match\" : { \"status\" : \"error\" } }\n }\n }\n }\n },\n \"actions\" : { <6>\n \"my_webhook\" : {\n \"webhook\" : {\n \"method\" : \"POST\",\n \"host\" : \"mylisteninghost\",\n \"port\" : 9200,\n \"path\" : \"/{{watch_id}}\",\n \"body\" : \"Encountered {{ctx.payload.hits.total}} errors\"\n }\n },\n \"email_administrator\" : {\n \"email\" : {\n \"to\" : \"sys.admino@host.domain\",\n \"subject\" : \"Encountered {{ctx.payload.hits.total}} errors\",\n \"body\" : \"Too many error in the system, see attached data\",\n \"attachments\" : {\n \"attached_data\" : {\n \"data\" : {\n \"format\" : \"json\"\n }\n }\n },\n \"priority\" : \"high\"\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/how-watcher-works.asciidoc","line":159},"digest":"8080cd9e24a8785728ce7c372ec4acf1","lang":"console","found":["python","js"],"source":"PUT _watcher/settings\n{\n \"index.routing.allocation.include.role\": \"watcher\"\n}"},
{"source_location":{"file":"watcher/actions.asciidoc","line":57},"digest":"85d2e33791f1a74a69dfb04a60e69306","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/error_logs_alert\n{\n \"metadata\" : {\n \"color\" : \"red\"\n },\n \"trigger\" : {\n \"schedule\" : {\n \"interval\" : \"5m\"\n }\n },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : \"log-events\",\n \"body\" : {\n \"size\" : 0,\n \"query\" : { \"match\" : { \"status\" : \"error\" } }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 5 }}\n },\n \"actions\" : {\n \"email_administrator\" : {\n \"throttle_period\": \"15m\", <1>\n \"email\" : { <2>\n \"to\" : \"sys.admino@host.domain\",\n \"subject\" : \"Encountered {{ctx.payload.hits.total}} errors\",\n \"body\" : \"Too many error in the system, see attached data\",\n \"attachments\" : {\n \"attached_data\" : {\n \"data\" : {\n \"format\" : \"json\"\n }\n }\n },\n \"priority\" : \"high\"\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/actions.asciidoc","line":112},"digest":"406a0f1c1aac947bcee58f86b6d036c1","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/log_event_watch\n{\n \"trigger\" : {\n \"schedule\" : { \"interval\" : \"5m\" }\n },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : \"log-events\",\n \"body\" : {\n \"size\" : 0,\n \"query\" : { \"match\" : { \"status\" : \"error\" } }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 5 }}\n },\n \"throttle_period\" : \"15m\", <1>\n \"actions\" : {\n \"email_administrator\" : {\n \"email\" : {\n \"to\" : \"sys.admino@host.domain\",\n \"subject\" : \"Encountered {{ctx.payload.hits.total}} errors\",\n \"body\" : \"Too many error in the system, see attached data\",\n \"attachments\" : {\n \"attached_data\" : {\n \"data\" : {\n \"format\" : \"json\"\n }\n }\n },\n \"priority\" : \"high\"\n }\n },\n \"notify_pager\" : {\n \"webhook\" : {\n \"method\" : \"POST\",\n \"host\" : \"pager.service.domain\",\n \"port\" : 1234,\n \"path\" : \"/{{watch_id}}\",\n \"body\" : \"Encountered {{ctx.payload.hits.total}} errors\"\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/actions.asciidoc","line":186},"digest":"3d48d1ba49f680aac32177d653944623","lang":"console","found":["python","js"],"source":"POST _watcher/watch//_ack/"},
{"source_location":{"file":"watcher/actions.asciidoc","line":228},"digest":"9eef31d85ebaf6c27054d7375715dbe0","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/log_event_watch\n{\n \"trigger\" : {\n \"schedule\" : { \"interval\" : \"5m\" }\n },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : \"log-events\",\n \"body\" : {\n \"query\" : { \"match\" : { \"status\" : \"error\" } }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 0 } }\n },\n \"actions\" : {\n \"log_hits\" : {\n \"foreach\" : \"ctx.payload.hits.hits\", <1>\n \"max_iterations\" : 500,\n \"logging\" : {\n \"text\" : \"Found id {{ctx.payload._id}} with field {{ctx.payload._source.my_field}}\"\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/actions.asciidoc","line":276},"digest":"f67d8aab9106ad24b1d2c771d3840ed1","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/log_event_watch\n{\n \"trigger\" : {\n \"schedule\" : { \"interval\" : \"5m\" }\n },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : \"log-events\",\n \"body\" : {\n \"size\" : 0,\n \"query\" : { \"match\" : { \"status\" : \"error\" } }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 0 } }\n },\n \"actions\" : {\n \"email_administrator\" : {\n \"email\" : {\n \"to\" : \"sys.admino@host.domain\",\n \"subject\" : \"Encountered {{ctx.payload.hits.total}} errors\",\n \"body\" : \"Too many error in the system, see attached data\",\n \"attachments\" : {\n \"attached_data\" : {\n \"data\" : {\n \"format\" : \"json\"\n }\n }\n },\n \"priority\" : \"high\"\n }\n },\n \"notify_pager\" : {\n \"condition\": { <1>\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 5 } }\n },\n \"webhook\" : {\n \"method\" : \"POST\",\n \"host\" : \"pager.service.domain\",\n \"port\" : 1234,\n \"path\" : \"/{{watch_id}}\",\n \"body\" : \"Encountered {{ctx.payload.hits.total}} errors\"\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/managing-watches.asciidoc","line":30},"digest":"22619a4111f66e1b7231693b8f8d069a","lang":"console","found":["python","js"],"source":"GET /_watcher/_query/watches\n{\n \"size\" : 100\n}"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":27},"digest":"dd0b196a099e1cca08c5ce4dd74e935a","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/cluster_health_watch\n{\n \"trigger\" : {\n \"schedule\" : { \"interval\" : \"10s\" } <1>\n }\n}"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":45},"digest":"1e9cab0b2727624e22e8cf4e7ca498ac","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/health?pretty"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":54},"digest":"221e9b14567f950008459af77757750e","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/cluster_health_watch\n{\n \"trigger\" : {\n \"schedule\" : { \"interval\" : \"10s\" }\n },\n \"input\" : {\n \"http\" : {\n \"request\" : {\n \"host\" : \"localhost\",\n \"port\" : 9200,\n \"path\" : \"/_cluster/health\"\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":76},"digest":"239f615e0009c5cb1dc4e82ec4c0dab5","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/cluster_health_watch\n{\n \"trigger\" : {\n \"schedule\" : { \"interval\" : \"10s\" }\n },\n \"input\" : {\n \"http\" : {\n \"request\" : {\n \"host\" : \"localhost\",\n \"port\" : 9200,\n \"path\" : \"/_cluster/health\",\n \"auth\": {\n \"basic\": {\n \"username\": \"elastic\",\n \"password\": \"x-pack-test-password\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":115},"digest":"dfb20907cfc5ac520ea3b1dba5f00811","lang":"console","found":["python","ruby","js"],"source":"GET .watcher-history*/_search\n{\n \"sort\" : [\n { \"result.execution_time\" : \"desc\" }\n ]\n}"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":137},"digest":"90f1f5304922fb6d097846dd1444c075","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/cluster_health_watch\n{\n \"trigger\" : {\n \"schedule\" : { \"interval\" : \"10s\" } <1>\n },\n \"input\" : {\n \"http\" : {\n \"request\" : {\n \"host\" : \"localhost\",\n \"port\" : 9200,\n \"path\" : \"/_cluster/health\"\n }\n }\n },\n \"condition\" : {\n \"compare\" : {\n \"ctx.payload.status\" : { \"eq\" : \"red\" }\n }\n }\n}"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":169},"digest":"95c03bdef4faf6bef039c986f4cb3aba","lang":"console","found":["python","ruby","js"],"source":"GET .watcher-history*/_search?pretty\n{\n \"query\" : {\n \"match\" : { \"result.condition.met\" : true }\n }\n}"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":193},"digest":"007179b5e241da650562a5f0a5007823","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/cluster_health_watch\n{\n \"trigger\" : {\n \"schedule\" : { \"interval\" : \"10s\" }\n },\n \"input\" : {\n \"http\" : {\n \"request\" : {\n \"host\" : \"localhost\",\n \"port\" : 9200,\n \"path\" : \"/_cluster/health\"\n }\n }\n },\n \"condition\" : {\n \"compare\" : {\n \"ctx.payload.status\" : { \"eq\" : \"red\" }\n }\n },\n \"actions\" : {\n \"send_email\" : {\n \"email\" : {\n \"to\" : \"username@example.org\",\n \"subject\" : \"Cluster Status Warning\",\n \"body\" : \"Cluster status is RED\"\n }\n }\n }\n}"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":259},"digest":"95c03bdef4faf6bef039c986f4cb3aba","lang":"console","found":["python","ruby","js"],"source":"GET .watcher-history*/_search?pretty\n{\n \"query\" : {\n \"match\" : { \"result.condition.met\" : true }\n }\n}"},
{"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":280},"digest":"60b0fc1b6ae418621ff1b31591fa1fce","lang":"console","found":["python","ruby","js"],"source":"DELETE _watcher/watch/cluster_health_watch"},
{"source_location":{"file":"setup/logging-config.asciidoc","line":180},"digest":"73be1f93d789264e5b972ddb5991bc66","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.discovery\": \"DEBUG\"\n }\n}"},
{"source_location":{"file":"setup/logging-config.asciidoc","line":193},"digest":"b7a9f60b3646efe3834ca8381f8aa560","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.discovery\": null\n }\n}"},
{"source_location":{"file":"setup/logging-config.asciidoc","line":272},"digest":"8e286a205a1f84f888a6d99f2620c80e","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.deprecation\": \"OFF\"\n }\n}"},
{"source_location":{"file":"monitoring/production.asciidoc","line":52},"digest":"a941fd568f2e20e13df909ab24506073","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/settings\n\nPUT _cluster/settings\n{\n \"persistent\": {\n \"xpack.monitoring.collection.enabled\": false\n }\n}"},
{"source_location":{"file":"monitoring/production.asciidoc","line":96},"digest":"0b47b0bef81b9b5eecfb3775695bd6ad","lang":"console","found":["python","js"],"source":"POST /_security/user/remote_monitor\n{\n \"password\" : \"changeme\",\n \"roles\" : [ \"remote_monitoring_agent\"],\n \"full_name\" : \"Internal Agent For Remote Monitoring\"\n}"},
{"source_location":{"file":"monitoring/indices.asciidoc","line":112},"digest":"83dfd0852101eca3ba8174c9c38b4e73","lang":"console","found":["python","ruby","js"],"source":"GET /_template/.monitoring-*"},
{"source_location":{"file":"monitoring/indices.asciidoc","line":126},"digest":"3ba2896bcc724c27be8f0decf6f81813","lang":"console","found":["python","ruby","js"],"source":"PUT /_template/custom_monitoring\n{\n \"index_patterns\": [\".monitoring-beats-7-*\", \".monitoring-es-7-*\", \".monitoring-kibana-7-*\", \".monitoring-logstash-7-*\"],\n \"order\": 1,\n \"settings\": {\n \"number_of_shards\": 5,\n \"number_of_replicas\": 2\n }\n}"},
{"source_location":{"file":"monitoring/collecting-monitoring-data.asciidoc","line":45},"digest":"db9a8e3edee7c9a96ea0875fd4bbaa69","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/settings"},
{"source_location":{"file":"monitoring/collecting-monitoring-data.asciidoc","line":50},"digest":"640da6dd719a34975b5627dfa5fcdd55","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"xpack.monitoring.collection.enabled\": true\n }\n}"},
{"source_location":{"file":"security/securing-communications/change-passwords-native-users.asciidoc","line":42},"digest":"13e3fefbf55f672926aa389d76fc8bea","lang":"console","found":["python","js"],"source":"POST /_security/user/user1/_password\n{\n \"password\" : \"new-test-password\"\n}"},
{"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":184},"digest":"05f6049c677a156bdf9b83e71a3b87ed","lang":"console","found":["python","js"],"source":"GET /_ssl/certificates"},
{"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":331},"digest":"7e49705769c42895fb7b1e2ca028ff47","lang":"console","found":["python","ruby","js"],"source":"GET _cat/nodes"},
{"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":342},"digest":"05f6049c677a156bdf9b83e71a3b87ed","lang":"console","found":["python","js"],"source":"GET /_ssl/certificates"},
{"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":525},"digest":"05f6049c677a156bdf9b83e71a3b87ed","lang":"console","found":["python","js"],"source":"GET /_ssl/certificates"},
{"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":713},"digest":"7e49705769c42895fb7b1e2ca028ff47","lang":"console","found":["python","ruby","js"],"source":"GET _cat/nodes"},
{"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":725},"digest":"05f6049c677a156bdf9b83e71a3b87ed","lang":"console","found":["python","js"],"source":"GET /_ssl/certificates"},
{"source_location":{"file":"security/authentication/built-in-users.asciidoc","line":158},"digest":"6f0389ac52808df23bb6081a1acd4eed","lang":"console","found":["python","js"],"source":"PUT _security/user/logstash_system/_enable"},
{"source_location":{"file":"security/authentication/configuring-active-directory-realm.asciidoc","line":178},"digest":"21e95d29bc37deb5689a654aa323b4ba","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/admins\n{\n \"roles\" : [ \"monitoring\" , \"user\" ],\n \"rules\" : { \"field\" : {\n \"groups\" : \"cn=admins,dc=example,dc=com\" <1>\n } },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authentication/configuring-active-directory-realm.asciidoc","line":192},"digest":"bd0d30a7683037e1ebadd163514765d4","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/basic_users\n{\n \"roles\" : [ \"user\" ],\n \"rules\" : { \"any\": [\n { \"field\" : {\n \"groups\" : \"cn=users,dc=example,dc=com\" <1>\n } },\n { \"field\" : {\n \"dn\" : \"cn=John Doe,cn=contractors,dc=example,dc=com\" <2>\n } }\n ] },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authentication/configuring-ldap-realm.asciidoc","line":138},"digest":"21e95d29bc37deb5689a654aa323b4ba","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/admins\n{\n \"roles\" : [ \"monitoring\" , \"user\" ],\n \"rules\" : { \"field\" : {\n \"groups\" : \"cn=admins,dc=example,dc=com\" <1>\n } },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authentication/configuring-ldap-realm.asciidoc","line":152},"digest":"38ffa96674b5fd4042589af0ebb0437b","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/basic_users\n{\n \"roles\" : [ \"user\" ],\n \"rules\" : { \"field\" : {\n \"groups\" : \"cn=users,dc=example,dc=com\" <1>\n } },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authentication/configuring-pki-realm.asciidoc","line":159},"digest":"70bbe14bc4d5a5d58e81ab2b02408817","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/users\n{\n \"roles\" : [ \"user\" ],\n \"rules\" : { \"field\" : {\n \"dn\" : \"cn=John Doe,ou=example,o=com\" <1>\n } },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authentication/configuring-pki-realm.asciidoc","line":267},"digest":"1f8a6d2cc57ed8997a52354aca371aac","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/direct_pki_only\n{\n \"roles\" : [ \"role_for_pki1_direct\" ],\n \"rules\" : {\n \"all\": [\n {\n \"field\": {\"realm.name\": \"pki1\"}\n },\n {\n \"field\": {\n \"metadata.pki_delegated_by_user\": null <1>\n }\n }\n ]\n },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authentication/configuring-kerberos-realm.asciidoc","line":179},"digest":"9584b042223982e0bfde8d12d42c9705","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/kerbrolemapping\n{\n \"roles\" : [ \"monitoring_user\" ],\n \"enabled\": true,\n \"rules\" : {\n \"field\" : { \"username\" : \"user@REALM\" }\n }\n}"},
{"source_location":{"file":"security/authentication/jwt-realm.asciidoc","line":411},"digest":"5e21dbac92f34d236a8f0cc0d3a39cdd","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/jwt1_users?refresh=true\n{\n \"roles\" : [ \"user\" ],\n \"rules\" : { \"all\" : [\n { \"field\": { \"realm.name\": \"jwt1\" } },\n { \"field\": { \"username\": \"principalname1\" } },\n { \"field\": { \"dn\": \"CN=Principal Name 1,DC=example.com\" } },\n { \"field\": { \"groups\": \"group1\" } },\n { \"field\": { \"metadata.jwt_claim_other\": \"other1\" } }\n ] },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authentication/jwt-realm.asciidoc","line":471},"digest":"8f6f7ea5abf56152b4a5639ddf40848f","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/native1_users?refresh=true\n{\n \"roles\" : [ \"user\" ],\n \"rules\" : { \"all\" : [\n { \"field\": { \"realm.name\": \"native1\" } },\n { \"field\": { \"username\": \"principalname1\" } }\n ] },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authentication/jwt-realm.asciidoc","line":504},"digest":"2864a24608b3ac59d21f604f8a31d131","lang":"console","found":["python","js"],"source":"POST /_security/role/jwt_role1?refresh=true\n{\n \"cluster\": [\"manage\"],\n \"indices\": [ { \"names\": [ \"*\" ], \"privileges\": [\"read\"] } ],\n \"run_as\": [ \"user123_runas\" ],\n \"metadata\" : { \"version\" : 1 }\n}"},
{"source_location":{"file":"security/authentication/jwt-realm.asciidoc","line":522},"digest":"fe54f3e53dbe7dee40ec3108a461d19a","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/jwt_user1?refresh=true\n{\n \"roles\": [ \"jwt_role1\"],\n \"rules\" : { \"all\" : [\n { \"field\": { \"realm.name\": \"jwt2\" } },\n { \"field\": { \"username\": \"user2\" } }\n ] },\n \"enabled\": true,\n \"metadata\" : { \"version\" : 1 }\n}"},
{"source_location":{"file":"security/authentication/jwt-realm.asciidoc","line":676},"digest":"7885ca9d7c61050095288eef6bc6cca9","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/jwt8_users?refresh=true\n{\n \"roles\" : [ \"user\" ],\n \"rules\" : { \"all\" : [\n { \"field\": { \"realm.name\": \"jwt8\" } },\n { \"field\": { \"username\": \"principalname1\" } }\n ] },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":654},"digest":"e85e3ab802fc9b40798fb0f546a7d05a","lang":"console","found":[],"source":"curl -u user_name:password -X GET http://localhost:9200/_security/saml/metadata/saml1 -H 'Content-Type: application/json' | jq -r '.[]' > metadata.xml"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":677},"digest":"862907653d1c18d2e80eff7f421200e2","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/saml-example\n{\n \"roles\": [ \"example_role\" ], <1>\n \"enabled\": true,\n \"rules\": {\n \"field\": { \"realm.name\": \"saml1\" }\n }\n}"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":716},"digest":"aac5996a8398cc8f7701a063df0b2346","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/saml-finance\n{\n \"roles\": [ \"finance_data\" ],\n \"enabled\": true,\n \"rules\": { \"all\": [\n { \"field\": { \"realm.name\": \"saml1\" } },\n { \"field\": { \"groups\": \"finance-team\" } } <1>\n ] }\n}"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":936},"digest":"49cb3f48a0097bfc597c52fa51c6d379","lang":"console","found":["python","js"],"source":"POST /_security/role/saml-service-role\n{\n \"cluster\" : [\"manage_saml\", \"manage_token\"]\n}"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":944},"digest":"b2b26f8568c5dba7649e79f09b859272","lang":"console","found":["python","js"],"source":"POST /_security/user/saml-service-user\n{\n \"password\" : \"\",\n \"roles\" : [\"saml-service-role\"]\n}"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":964},"digest":"a5dfcfd1cfb3558e7912456669c92eee","lang":"console","found":["python","js"],"source":"POST /_security/saml/prepare\n{\n \"realm\" : \"saml1\"\n}"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":987},"digest":"8e208098a0156c4c92afe0a06960b230","lang":"console","found":["python","js"],"source":"POST /_security/saml/authenticate\n{\n \"content\" : \"PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMD.....\",\n \"ids\" : [\"4fee3b046395c4e751011e97f8900b5273d56685\"]\n}"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":1016},"digest":"9eda9c39428b0c2c53cbd8ee7ae0f888","lang":"console","found":["python","js"],"source":"POST /_security/saml/authenticate\n{\n \"content\" : \"PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMD.....\",\n \"ids\" : []\n}"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":1031},"digest":"553904c175a76d5ba83bc5d46fff7373","lang":"console","found":["python","js"],"source":"POST /_security/saml/logout\n{\n \"token\" : \"46ToAxZVaXVVZTVKOVF5YU04ZFJVUDVSZlV3\",\n \"refresh_token\": \"mJdXLtmvTUSpoLwMvdBt_w\"\n}"},
{"source_location":{"file":"security/authentication/saml-guide.asciidoc","line":1049},"digest":"a71154ea11a5214f409ecfd118e9b5e3","lang":"console","found":["python","js"],"source":"POST /_security/saml/invalidate\n{\n \"query\" : \"SAMLRequest=nZFda4MwFIb%2FiuS%2BmviRpqFaClKQdbvo2g12M2KMraCJ9cRR9utnW4Wyi13sMie873MeznJ1aWrnS3VQGR0j4mLkKC1NUeljjA77zYyhVbIE0dR%2By7fmaHq7U%2BdegXWGpAZ%2B%2F4pR32luBFTAtWgUcCv56%2Fp5y30X87Yz1khTIycdgpUW9kY7WdsC9zxoXTvMvWuVV98YyMnSGH2SYE5pwALBIr9QKiwDGpW0oGVUznGeMyJZKFkQ4jBf5HnhUymjIhzCAL3KNFihbYx8TBYzzGaY7EnIyZwHzCWMfiDnbRIftkSjJr%2BFu0e9v%2B0EgOquRiiZjKpiVFp6j50T4WXoyNJ%2FEWC9fdqc1t%2F1%2B2F3aUpjzhPiXpqMz1%2FHSn4A&SigAlg=http%3A%2F%2Fwww.w3.org%2F2001%2F04%2Fxmldsig-more%23rsa-sha256&Signature=MsAYz2NFdovMG2mXf6TSpu5vlQQyEJAg%2B4KCwBqJTmrb3yGXKUtIgvjqf88eCAK32v3eN8vupjPC8LglYmke1ZnjK0%2FKxzkvSjTVA7mMQe2AQdKbkyC038zzRq%2FYHcjFDE%2Bz0qISwSHZY2NyLePmwU7SexEXnIz37jKC6NMEhus%3D\",\n \"realm\" : \"saml1\"\n}"},
{"source_location":{"file":"security/authentication/oidc-guide.asciidoc","line":431},"digest":"10de9fd4a38755020a07c4ec964d44c9","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/oidc-example\n{\n \"roles\": [ \"example_role\" ], <1>\n \"enabled\": true,\n \"rules\": {\n \"field\": { \"realm.name\": \"oidc1\" }\n }\n}"},
{"source_location":{"file":"security/authentication/oidc-guide.asciidoc","line":470},"digest":"f3ab820e1f2f54ea718017aeae865742","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/oidc-finance\n{\n \"roles\": [ \"finance_data\" ],\n \"enabled\": true,\n \"rules\": { \"all\": [\n { \"field\": { \"realm.name\": \"oidc1\" } },\n { \"field\": { \"groups\": \"finance-team\" } }\n ] }\n}"},
{"source_location":{"file":"security/authentication/oidc-guide.asciidoc","line":610},"digest":"a325f31e94fb1e8739258910593504a8","lang":"console","found":["python","js"],"source":"POST /_security/role/facilitator-role\n{\n \"cluster\" : [\"manage_oidc\", \"manage_token\"]\n}"},
{"source_location":{"file":"security/authentication/oidc-guide.asciidoc","line":619},"digest":"53e4ac5a4009fd21024f4b31e54aa83f","lang":"console","found":["python","js"],"source":"POST /_security/user/facilitator\n{\n \"password\" : \"\",\n \"roles\" : [ \"facilitator-role\"]\n}"},
{"source_location":{"file":"security/authentication/oidc-guide.asciidoc","line":639},"digest":"e3019fd5f23458ae49ad9854c97d321c","lang":"console","found":["python","js"],"source":"POST /_security/oidc/prepare\n{\n \"realm\" : \"oidc1\"\n}"},
{"source_location":{"file":"security/authentication/oidc-guide.asciidoc","line":662},"digest":"9c01db07c9ac395b6370e3b33965c21f","lang":"console","found":["python","js"],"source":"POST /_security/oidc/authenticate\n{\n \"redirect_uri\" : \"https://oidc-kibana.elastic.co:5603/api/security/oidc/callback?code=jtI3Ntt8v3_XvcLzCFGq&state=4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I\",\n \"state\" : \"4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I\",\n \"nonce\" : \"WaBPH0KqPVdG5HHdSxPRjfoZbXMCicm5v1OiAj0DUFM\",\n \"realm\" : \"oidc1\"\n}"},
{"source_location":{"file":"security/authentication/oidc-guide.asciidoc","line":680},"digest":"2a1eece9a59ac1773edcf0a932c26de0","lang":"console","found":["python","js"],"source":"POST /_security/oidc/logout\n{\n \"token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"refresh_token\": \"vLBPvmAB6KvwvJZr27cS\"\n}"},
{"source_location":{"file":"security/authorization/managing-roles.asciidoc","line":262},"digest":"d3e5edac5b461020017fd9d8ec7a91fa","lang":"console","found":["python","js"],"source":"POST /_security/role/clicks_admin\n{\n \"run_as\": [ \"clicks_watcher_1\" ],\n \"cluster\": [ \"monitor\" ],\n \"indices\": [\n {\n \"names\": [ \"events-*\" ],\n \"privileges\": [ \"read\" ],\n \"field_security\" : {\n \"grant\" : [ \"category\", \"@timestamp\", \"message\" ]\n },\n \"query\": \"{\\\"match\\\": {\\\"category\\\": \\\"click\\\"}}\"\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/create-api-keys.asciidoc","line":226},"digest":"1b076ceb1ead9f6897c2f351f0e45f74","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"my-restricted-api-key\",\n \"role_descriptors\": {\n \"my-restricted-role-descriptor\": {\n \"indices\": [\n {\n \"names\": [\"my-search-app\"],\n \"privileges\": [\"read\"]\n }\n ],\n \"restriction\": {\n \"workflows\": [\"search_application_query\"]\n }\n }\n }\n}"},
{"source_location":{"file":"security/authorization/document-level-security.asciidoc","line":30},"digest":"6365312d470426cab1b77e9ffde49170","lang":"console","found":["python","js"],"source":"POST /_security/role/click_role\n{\n \"indices\": [\n {\n \"names\": [ \"events-*\" ],\n \"privileges\": [ \"read\" ],\n \"query\": \"{\\\"match\\\": {\\\"category\\\": \\\"click\\\"}}\"\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/document-level-security.asciidoc","line":46},"digest":"05bee3adf46b9d6a2fef96c51bf958da","lang":"console","found":["python","js"],"source":"POST _security/role/click_role\n{\n \"indices\": [\n {\n \"names\": [ \"events-*\" ],\n \"privileges\": [ \"read\" ],\n \"query\": {\n \"match\": {\n \"category\": \"click\"\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/document-level-security.asciidoc","line":67},"digest":"c79e8ee86b332302b25c5c1f5f4f89d7","lang":"console","found":["python","js"],"source":"POST /_security/role/dept_role\n{\n \"indices\" : [\n {\n \"names\" : [ \"*\" ],\n \"privileges\" : [ \"read\" ],\n \"query\" : {\n \"term\" : { \"department_id\" : 12 }\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/field-level-security.asciidoc","line":18},"digest":"976e5f9baf81bd6ca0e9f80916a0a4f9","lang":"console","found":["python","js"],"source":"POST /_security/role/test_role1\n{\n \"indices\": [\n {\n \"names\": [ \"events-*\" ],\n \"privileges\": [ \"read\" ],\n \"field_security\" : {\n \"grant\" : [ \"category\", \"@timestamp\", \"message\" ]\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/field-level-security.asciidoc","line":43},"digest":"7c9076f3e93a8f61189783c736bf6082","lang":"console","found":["python","js"],"source":"POST /_security/role/test_role2\n{\n \"indices\" : [\n {\n \"names\" : [ \"*\" ],\n \"privileges\" : [ \"read\" ],\n \"field_security\" : {\n \"grant\" : [ \"event_*\" ]\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/field-level-security.asciidoc","line":77},"digest":"d7d92816cac64b7c70d72b0000eeeeea","lang":"console","found":["python","js"],"source":"POST /_security/role/test_role3\n{\n \"indices\" : [\n {\n \"names\" : [ \"*\" ],\n \"privileges\" : [ \"read\" ],\n \"field_security\" : {\n \"grant\" : [ \"customer.handle\" ]\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/field-level-security.asciidoc","line":96},"digest":"bb28d1f7f3f09f5061d7f4351aee89fc","lang":"console","found":["python","js"],"source":"POST /_security/role/test_role4\n{\n \"indices\" : [\n {\n \"names\" : [ \"*\" ],\n \"privileges\" : [ \"read\" ],\n \"field_security\" : {\n \"grant\" : [ \"customer.*\" ]\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/field-level-security.asciidoc","line":114},"digest":"7a987cd13383bdc990155d7bd5fb221e","lang":"console","found":["python","js"],"source":"POST /_security/role/test_role5\n{\n \"indices\" : [\n {\n \"names\" : [ \"*\" ],\n \"privileges\" : [ \"read\" ],\n \"field_security\" : {\n \"grant\" : [ \"*\"],\n \"except\": [ \"customer.handle\" ]\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/field-level-security.asciidoc","line":142},"digest":"962e6187bbd71c5749376efed04b65ba","lang":"console","found":["python","js"],"source":"POST /_security/role/test_role6\n{\n \"indices\" : [\n {\n \"names\" : [ \"*\" ],\n \"privileges\" : [ \"read\" ],\n \"field_security\" : {\n \"except\": [ \"customer.handle\" ],\n \"grant\" : [ \"customer.*\" ]\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/field-level-security.asciidoc","line":169},"digest":"a1acf454bd6477183ce27ace872deb46","lang":"console","found":["python","js"],"source":"POST /_security/role/test_role7\n{\n \"indices\" : [\n {\n \"names\" : [ \"*\" ],\n \"privileges\" : [ \"read\" ],\n \"field_security\" : {\n \"grant\": [ \"a.*\" ],\n \"except\" : [ \"a.b*\" ]\n }\n }\n ]\n}\n\nPOST /_security/role/test_role8\n{\n \"indices\" : [\n {\n \"names\" : [ \"*\" ],\n \"privileges\" : [ \"read\" ],\n \"field_security\" : {\n \"grant\": [ \"a.b*\" ],\n \"except\" : [ \"a.b.c*\" ]\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/alias-privileges.asciidoc","line":47},"digest":"669773766b041be768003055ad523038","lang":"console","found":["python","ruby","js"],"source":"GET .ds-my-data-stream-2099.03.08-000002/_doc/2"},
{"source_location":{"file":"security/authorization/alias-privileges.asciidoc","line":59},"digest":"5f72ab800c3db9d118df95e2a378d411","lang":"console","found":["python","ruby","js"],"source":"GET .ds-my-data-stream-2099.03.09-000003/_doc/2"},
{"source_location":{"file":"security/authorization/alias-privileges.asciidoc","line":92},"digest":"2ad35a13262f98574a48f88b4a838512","lang":"console","found":["python","ruby","js"],"source":"GET current_year/_doc/1"},
{"source_location":{"file":"security/authorization/mapping-roles.asciidoc","line":138},"digest":"f2359acfb6eaa919125463cc1d3a7cd1","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/admins\n{\n \"roles\" : [ \"monitoring\", \"user\" ],\n \"rules\" : { \"field\" : { \"groups\" : \"cn=admins,dc=example,dc=com\" } },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authorization/mapping-roles.asciidoc","line":148},"digest":"3ea33023474e77d73ac0540e3a02b0b2","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/basic_users\n{\n \"roles\" : [ \"user\" ],\n \"rules\" : { \"any\" : [\n { \"field\" : { \"dn\" : \"cn=John Doe,cn=contractors,dc=example,dc=com\" } },\n { \"field\" : { \"groups\" : \"cn=users,dc=example,dc=com\" } }\n ] },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authorization/mapping-roles.asciidoc","line":180},"digest":"81ee2ad368208c4c78098292547b0577","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/admin_user\n{\n \"roles\" : [ \"monitoring\" ],\n \"rules\" : { \"field\" : { \"dn\" : \"cn=Admin,ou=example,o=com\" } },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authorization/mapping-roles.asciidoc","line":190},"digest":"87846c3ddacab1da4af626ae8099e4be","lang":"console","found":["python","js"],"source":"PUT /_security/role_mapping/basic_user\n{\n \"roles\" : [ \"user\" ],\n \"rules\" : { \"field\" : { \"dn\" : \"cn=John Doe,ou=example,o=com\" } },\n \"enabled\": true\n}"},
{"source_location":{"file":"security/authorization/role-templates.asciidoc","line":16},"digest":"193234bb5dc6451fd15b584fbefd2446","lang":"console","found":["python","js"],"source":"POST /_security/role/example1\n{\n \"indices\" : [\n {\n \"names\" : [ \"my-index-000001\" ],\n \"privileges\" : [ \"read\" ],\n \"query\" : {\n \"template\" : {\n \"source\" : {\n \"term\" : { \"acl.username\" : \"{{_user.username}}\" }\n }\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/role-templates.asciidoc","line":52},"digest":"59d015f7bd0eeab40d0885010a62fa70","lang":"console","found":["python","js"],"source":"POST /_security/role/example2\n{\n \"indices\" : [\n {\n \"names\" : [ \"my-index-000001\" ],\n \"privileges\" : [ \"read\" ],\n \"query\" : {\n \"template\" : {\n \"source\" : {\n \"term\" : { \"group.id\" : \"{{_user.metadata.group_id}}\" }\n }\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/role-templates.asciidoc","line":75},"digest":"1b98b60d8e558fcccf9c550bdbf5b5c9","lang":"console","found":["python","js"],"source":"POST /_security/role/example3\n{\n \"indices\" : [\n {\n \"names\" : [ \"my-index-000001\" ],\n \"privileges\" : [ \"read\" ],\n \"query\" : {\n \"template\" : {\n \"source\" : \"{ \\\"terms\\\": { \\\"group.statuses\\\": {{#toJson}}_user.metadata.statuses{{/toJson}} }}\"\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"security/authorization/run-as-privilege.asciidoc","line":51},"digest":"d23452f333b77bf5b463310e2a665560","lang":"console","found":["python","js"],"source":"POST /_security/role/my_director?refresh=true\n{\n \"cluster\": [\"manage\"],\n \"indices\": [\n {\n \"names\": [ \"index1\", \"index2\" ],\n \"privileges\": [ \"manage\" ]\n }\n ],\n \"run_as\": [ \"jacknich\", \"rdeniro\" ],\n \"metadata\" : {\n \"version\" : 1\n }\n}"},
{"source_location":{"file":"security/authorization/run-as-privilege.asciidoc","line":114},"digest":"930a3c5667e3bf47b4e8cc28e7bf8d5f","lang":"console","found":["python","js"],"source":"POST /_security/role/my_admin_role?refresh=true\n{\n \"cluster\": [\"manage\"],\n \"indices\": [\n {\n \"names\": [ \"index1\", \"index2\" ],\n \"privileges\": [ \"manage\" ]\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [ \"admin\", \"read\" ],\n \"resources\": [ \"*\" ]\n }\n ],\n \"run_as\": [ \"analyst_user\" ],\n \"metadata\" : {\n \"version\" : 1\n }\n}"},
{"source_location":{"file":"security/authorization/run-as-privilege.asciidoc","line":143},"digest":"172b18e435c400bed85227624de3acfd","lang":"console","found":["python","js"],"source":"POST /_security/role/my_analyst_role?refresh=true\n{\n \"cluster\": [ \"monitor\"],\n \"indices\": [\n {\n \"names\": [ \"index1\", \"index2\" ],\n \"privileges\": [\"manage\"]\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [ \"read\" ],\n \"resources\": [ \"*\" ]\n }\n ],\n \"metadata\" : {\n \"version\" : 1\n }\n}"},
{"source_location":{"file":"security/authorization/run-as-privilege.asciidoc","line":170},"digest":"7b3f255d28ce5b46d111402b96b41351","lang":"console","found":["python","js"],"source":"POST /_security/user/admin_user?refresh=true\n{\n \"password\": \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\": [ \"my_admin_role\" ],\n \"full_name\": \"Eirian Zola\",\n \"metadata\": { \"intelligence\" : 7}\n}"},
{"source_location":{"file":"security/authorization/run-as-privilege.asciidoc","line":184},"digest":"111c31db1fd29baeaa9964eafaea6789","lang":"console","found":["python","js"],"source":"POST /_security/user/analyst_user?refresh=true\n{\n \"password\": \"l0nger-r4nd0mer-p@ssw0rd\",\n \"roles\": [ \"my_analyst_role\" ],\n \"full_name\": \"Monday Jaffe\",\n \"metadata\": { \"innovation\" : 8}\n}"},
{"source_location":{"file":"security/using-ip-filtering.asciidoc","line":146},"digest":"43854be6aae61edbea5f9ab988cb4ce5","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\" : {\n \"xpack.security.transport.filter.allow\" : \"172.16.0.0/24\"\n }\n}"},
{"source_location":{"file":"security/using-ip-filtering.asciidoc","line":158},"digest":"1cb3b45335ab1b9697c358104d44ea39","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\" : {\n \"xpack.security.transport.filter.enabled\" : false\n }\n}"},
{"source_location":{"file":"security/troubleshooting.asciidoc","line":114},"digest":"13cc51ca3a783cdbb1f1d353eaedbf23","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.xpack.security.authc\": \"debug\"\n }\n}"},
{"source_location":{"file":"security/troubleshooting.asciidoc","line":748},"digest":"32de5dd306bd014d67053d2f175defcd","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.xpack.security.authc.saml\": \"debug\"\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":82},"digest":"12facf3617a41551ce2f0c4d005cb1c7","lang":"console","found":["python","ruby","js"],"source":"PUT movies\n{\n \"mappings\": {\n \"properties\": {\n \"name_and_plot\": {\n \"type\": \"text\"\n },\n \"name\": {\n \"type\": \"text\",\n \"copy_to\": \"name_and_plot\"\n },\n \"plot\": {\n \"type\": \"text\",\n \"copy_to\": \"name_and_plot\"\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":116},"digest":"a008f42379930edc354b4074e0a33344","lang":"console","found":["python","ruby","js"],"source":"PUT index/_doc/1\n{\n \"designation\": \"spoon\",\n \"price\": 13\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":127},"digest":"a0a7557bb7e2aff7918557cd648f41af","lang":"console","found":["python","ruby","js"],"source":"GET index/_search\n{\n \"aggs\": {\n \"price_ranges\": {\n \"range\": {\n \"field\": \"price\",\n \"ranges\": [\n { \"to\": 10 },\n { \"from\": 10, \"to\": 100 },\n { \"from\": 100 }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":150},"digest":"a4bae4d956bc0a663f42cfec36bf8e0b","lang":"console","found":["python","ruby","js"],"source":"PUT index\n{\n \"mappings\": {\n \"properties\": {\n \"price_range\": {\n \"type\": \"keyword\"\n }\n }\n }\n}\n\nPUT index/_doc/1\n{\n \"designation\": \"spoon\",\n \"price\": 13,\n \"price_range\": \"10-100\"\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":174},"digest":"7dedb148ff74912de81b8f8275f0d7f3","lang":"console","found":["python","ruby","js"],"source":"GET index/_search\n{\n \"aggs\": {\n \"price_ranges\": {\n \"terms\": {\n \"field\": \"price_range\"\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":213},"digest":"102c7de25d13c87cf28839ada9f63c95","lang":"console","found":["python","ruby","js"],"source":"PUT index/_doc/1\n{\n \"my_date\": \"2016-05-11T16:30:55.328Z\"\n}\n\nGET index/_search\n{\n \"query\": {\n \"constant_score\": {\n \"filter\": {\n \"range\": {\n \"my_date\": {\n \"gte\": \"now-1h\",\n \"lte\": \"now\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":239},"digest":"17dd67a66c49f7eb618dd17430e48dfa","lang":"console","found":["python","ruby","js"],"source":"GET index/_search\n{\n \"query\": {\n \"constant_score\": {\n \"filter\": {\n \"range\": {\n \"my_date\": {\n \"gte\": \"now-1h/m\",\n \"lte\": \"now/m\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":272},"digest":"abc7a670a47516b58b6b07d7497b140c","lang":"console","found":["python","ruby","js"],"source":"GET index/_search\n{\n \"query\": {\n \"constant_score\": {\n \"filter\": {\n \"bool\": {\n \"should\": [\n {\n \"range\": {\n \"my_date\": {\n \"gte\": \"now-1h\",\n \"lte\": \"now-1h/m\"\n }\n }\n },\n {\n \"range\": {\n \"my_date\": {\n \"gt\": \"now-1h/m\",\n \"lt\": \"now/m\"\n }\n }\n },\n {\n \"range\": {\n \"my_date\": {\n \"gte\": \"now/m\",\n \"lte\": \"now\"\n }\n }\n }\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":345},"digest":"971c7a36ee79f2b3aa82c64ea338de70","lang":"console","found":["python","ruby","js"],"source":"PUT index\n{\n \"mappings\": {\n \"properties\": {\n \"foo\": {\n \"type\": \"keyword\",\n \"eager_global_ordinals\": true\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":480},"digest":"9559de0c2190f99fcc344887fc7b232a","lang":"console","found":["python","ruby","js"],"source":"PUT bicycles\n{\n \"mappings\": {\n \"properties\": {\n \"cycle_type\": {\n \"type\": \"constant_keyword\",\n \"value\": \"bicycle\"\n },\n \"name\": {\n \"type\": \"text\"\n }\n }\n }\n}\n\nPUT other_cycles\n{\n \"mappings\": {\n \"properties\": {\n \"cycle_type\": {\n \"type\": \"keyword\"\n },\n \"name\": {\n \"type\": \"text\"\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":518},"digest":"14936b96cfb8ff999a833f615ba75495","lang":"console","found":["python","ruby","js"],"source":"GET bicycles,other_cycles/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match\": {\n \"description\": \"dutch\"\n }\n },\n \"filter\": {\n \"term\": {\n \"cycle_type\": \"bicycle\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/search-speed.asciidoc","line":543},"digest":"9de10a59a5f56dd0906be627896cc789","lang":"console","found":["python","ruby","js"],"source":"GET bicycles,other_cycles/_search\n{\n \"query\": {\n \"match\": {\n \"description\": \"dutch\"\n }\n }\n}"},
{"source_location":{"file":"how-to/disk-usage.asciidoc","line":14},"digest":"e273060a675c959fd5f3cde27c8aff07","lang":"console","found":["python","ruby","js"],"source":"PUT index\n{\n \"mappings\": {\n \"properties\": {\n \"foo\": {\n \"type\": \"integer\",\n \"index\": false\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/disk-usage.asciidoc","line":51},"digest":"597d456edfcb3d410954a3e9b5babf9a","lang":"console","found":["python","ruby","js"],"source":"PUT index\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"strings\": {\n \"match_mapping_type\": \"string\",\n \"mapping\": {\n \"type\": \"keyword\"\n }\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":171},"digest":"fd738a9af7b5d21da31a7722f03aade8","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards?v=true&h=index,prirep,shard,store&s=prirep,store&bytes=gb"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":239},"digest":"df04e2e9af66d5e30b1bfdbd458cab13","lang":"console","found":["python","ruby","js"],"source":"GET _cat/nodes?v=true&h=heap.max"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":248},"digest":"a1070cf2f5969d42d71cda057223f152","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards?v=true"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":279},"digest":"40bd86e400d27e68b8f0ae580c29d32d","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/stats?human&filter_path=indices.mappings.total_deduplicated_mapping_size*"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":287},"digest":"2b659fb2c410c929b83ab1798eac57e8","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \"mappings\": {\n \"total_deduplicated_mapping_size\": \"1gb\",\n \"total_deduplicated_mapping_size_in_bytes\": 1073741824\n }\n }\n}"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":314},"digest":"40f97f70e8e743c6a6296c81b920aeb0","lang":"console","found":["python","ruby","js"],"source":"GET _nodes/stats?human&filter_path=nodes.*.name,nodes.*.indices.mappings.total_estimated_overhead*,nodes.*.jvm.mem.heap_max*"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":322},"digest":"930e12c4dd93aabdda5944af7f6f16b7","lang":"console-result","found":[],"source":"{\n \"nodes\": {\n \"USpTGYaBSIKbgSUJR2Z9lg\": {\n \"name\": \"node-0\",\n \"indices\": {\n \"mappings\": {\n \"total_estimated_overhead\": \"1gb\",\n \"total_estimated_overhead_in_bytes\": 1073741824\n }\n },\n \"jvm\": {\n \"mem\": {\n \"heap_max\": \"4gb\",\n \"heap_max_in_bytes\": 4294967296\n }\n }\n }\n }\n}"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":399},"digest":"cf23f18761df33f08bc6f6d1875496fd","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_settings\n{\n \"index\" : {\n \"routing.allocation.total_shards_per_node\" : 5\n }\n}"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":459},"digest":"f3fb52680482925c202c2e2f8af6f044","lang":"console","found":["python","ruby","js"],"source":"GET _cat/count/my-index-000001?v=true"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":469},"digest":"f6566395f85d3afe917228643d7318d6","lang":"console","found":["python","ruby","js"],"source":"DELETE my-index-000001"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":484},"digest":"2f98924c3d593ea2b60edb9cef5bee22","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_forcemerge"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":511},"digest":"a999b5661bebb802bbbfe04faacf1971","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"my-index-2099.10.*\"\n },\n \"dest\": {\n \"index\": \"my-index-2099.10\"\n }\n}"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":542},"digest":"96b9289c3c4c6b135ab3386562c4ee8d","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node\": 1200\n }\n}"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":558},"digest":"37c73410bf13429279cbc61a413957d8","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/stats?filter_path=indices.shards.total"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":566},"digest":"3af10fde8138d9d95df127d39d9a0ed2","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node\": null\n }\n}"},
{"source_location":{"file":"how-to/size-your-shards.asciidoc","line":604},"digest":"1e0b85750d4e63ebbc927d4627c44bf8","lang":"console","found":["python","js"],"source":"POST my-index-000001/_forcemerge?only_expunge_deletes=true"},
{"source_location":{"file":"tab-widgets/ilm.asciidoc","line":31},"digest":"05148cc541f447486d9daf15ab77292b","lang":"console","found":["python","js"],"source":"PUT _ilm/policy/logs\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\": {\n \"max_primary_shard_size\": \"50gb\"\n }\n }\n },\n \"warm\": {\n \"min_age\": \"30d\",\n \"actions\": {\n \"shrink\": {\n \"number_of_shards\": 1\n },\n \"forcemerge\": {\n \"max_num_segments\": 1\n }\n }\n },\n \"cold\": {\n \"min_age\": \"60d\",\n \"actions\": {\n \"searchable_snapshot\": {\n \"snapshot_repository\": \"found-snapshots\"\n }\n }\n },\n \"frozen\": {\n \"min_age\": \"90d\",\n \"actions\": {\n \"searchable_snapshot\": {\n \"snapshot_repository\": \"found-snapshots\"\n }\n }\n },\n \"delete\": {\n \"min_age\": \"735d\",\n \"actions\": {\n \"delete\": {}\n }\n }\n }\n }\n}"},
{"source_location":{"file":"data-streams/set-up-a-data-stream.asciidoc","line":55},"digest":"50c2b06ecddb5a4aebd8b78e38af5f1f","lang":"console","found":["python","js"],"source":"PUT _ilm/policy/my-lifecycle-policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\": {\n \"max_primary_shard_size\": \"50gb\"\n }\n }\n },\n \"warm\": {\n \"min_age\": \"30d\",\n \"actions\": {\n \"shrink\": {\n \"number_of_shards\": 1\n },\n \"forcemerge\": {\n \"max_num_segments\": 1\n }\n }\n },\n \"cold\": {\n \"min_age\": \"60d\",\n \"actions\": {\n \"searchable_snapshot\": {\n \"snapshot_repository\": \"found-snapshots\"\n }\n }\n },\n \"frozen\": {\n \"min_age\": \"90d\",\n \"actions\": {\n \"searchable_snapshot\": {\n \"snapshot_repository\": \"found-snapshots\"\n }\n }\n },\n \"delete\": {\n \"min_age\": \"735d\",\n \"actions\": {\n \"delete\": {}\n }\n }\n }\n }\n}"},
{"source_location":{"file":"data-streams/set-up-a-data-stream.asciidoc","line":144},"digest":"c8210f23c10d0642f24c1e43faa4deda","lang":"console","found":["python","ruby","js"],"source":"# Creates a component template for mappings\nPUT _component_template/my-mappings\n{\n \"template\": {\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date\",\n \"format\": \"date_optional_time||epoch_millis\"\n },\n \"message\": {\n \"type\": \"wildcard\"\n }\n }\n }\n },\n \"_meta\": {\n \"description\": \"Mappings for @timestamp and message fields\",\n \"my-custom-meta-field\": \"More arbitrary metadata\"\n }\n}\n\n# Creates a component template for index settings\nPUT _component_template/my-settings\n{\n \"template\": {\n \"settings\": {\n \"index.lifecycle.name\": \"my-lifecycle-policy\"\n }\n },\n \"_meta\": {\n \"description\": \"Settings for ILM\",\n \"my-custom-meta-field\": \"More arbitrary metadata\"\n }\n}"},
{"source_location":{"file":"data-streams/set-up-a-data-stream.asciidoc","line":210},"digest":"c96e5740b79f703c5b77e3ddc9fdf3a0","lang":"console","found":["python","ruby","js"],"source":"PUT _index_template/my-index-template\n{\n \"index_patterns\": [\"my-data-stream*\"],\n \"data_stream\": { },\n \"composed_of\": [ \"my-mappings\", \"my-settings\" ],\n \"priority\": 500,\n \"_meta\": {\n \"description\": \"Template for my time series data\",\n \"my-custom-meta-field\": \"More arbitrary metadata\"\n }\n}"},
{"source_location":{"file":"data-streams/set-up-a-data-stream.asciidoc","line":240},"digest":"ea020ea32d5cd35e577c61a120f92451","lang":"console","found":["python","ruby","js"],"source":"PUT my-data-stream/_bulk\n{ \"create\":{ } }\n{ \"@timestamp\": \"2099-05-06T16:21:15.000Z\", \"message\": \"192.0.2.42 - - [06/May/2099:16:21:15 +0000] \\\"GET /images/bg.jpg HTTP/1.0\\\" 200 24736\" }\n{ \"create\":{ } }\n{ \"@timestamp\": \"2099-05-06T16:25:42.000Z\", \"message\": \"192.0.2.255 - - [06/May/2099:16:25:42 +0000] \\\"GET /favicon.ico HTTP/1.0\\\" 200 3638\" }\n\nPOST my-data-stream/_doc\n{\n \"@timestamp\": \"2099-05-06T16:21:15.000Z\",\n \"message\": \"192.0.2.42 - - [06/May/2099:16:21:15 +0000] \\\"GET /images/bg.jpg HTTP/1.0\\\" 200 24736\"\n}"},
{"source_location":{"file":"how-to/use-elasticsearch-for-time-series-data.asciidoc","line":101},"digest":"5f7b59d4fad0bdce6b09abb520ddb51d","lang":"console","found":["python","js"],"source":"GET my-data-stream/_search\n{\n \"runtime_mappings\": {\n \"source.ip\": {\n \"type\": \"ip\",\n \"script\": \"\"\"\n String sourceip=grok('%{IPORHOST:sourceip} .*').extract(doc[ \"message\" ].value)?.sourceip;\n if (sourceip != null) emit(sourceip);\n \"\"\"\n }\n },\n \"query\": {\n \"bool\": {\n \"filter\": [\n {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"now-1d/d\",\n \"lt\": \"now/d\"\n }\n }\n },\n {\n \"range\": {\n \"source.ip\": {\n \"gte\": \"192.0.2.0\",\n \"lte\": \"192.0.2.255\"\n }\n }\n }\n ]\n }\n },\n \"fields\": [\n \"*\"\n ],\n \"_source\": false,\n \"sort\": [\n {\n \"@timestamp\": \"desc\"\n },\n {\n \"source.ip\": \"desc\"\n }\n ]\n}"},
{"source_location":{"file":"how-to/use-elasticsearch-for-time-series-data.asciidoc","line":158},"digest":"afa24b7d72c2d9f586023a49bd655ec7","lang":"console","found":["python","js"],"source":"POST my-data-stream/_async_search\n{\n \"runtime_mappings\": {\n \"source.ip\": {\n \"type\": \"ip\",\n \"script\": \"\"\"\n String sourceip=grok('%{IPORHOST:sourceip} .*').extract(doc[ \"message\" ].value)?.sourceip;\n if (sourceip != null) emit(sourceip);\n \"\"\"\n }\n },\n \"query\": {\n \"bool\": {\n \"filter\": [\n {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"now-2y/d\",\n \"lt\": \"now/d\"\n }\n }\n },\n {\n \"range\": {\n \"source.ip\": {\n \"gte\": \"192.0.2.0\",\n \"lte\": \"192.0.2.255\"\n }\n }\n }\n ]\n }\n },\n \"fields\": [\n \"*\"\n ],\n \"_source\": false,\n \"sort\": [\n {\n \"@timestamp\": \"desc\"\n },\n {\n \"source.ip\": \"desc\"\n }\n ]\n}"},
{"source_location":{"file":"autoscaling/deciders/proactive-storage-decider.asciidoc","line":28},"digest":"a84bc239eb2f607e8bed1fdb70d63823","lang":"console","found":["python","js"],"source":"PUT /_autoscaling/policy/my_autoscaling_policy\n{\n \"roles\" : [ \"data_hot\" ],\n \"deciders\": {\n \"proactive_storage\": {\n \"forecast_window\": \"10m\"\n }\n }\n}"},
{"source_location":{"file":"autoscaling/deciders/proactive-storage-decider.asciidoc","line":44},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"autoscaling/deciders/machine-learning-decider.asciidoc","line":48},"digest":"ee634d59def6302134d24fa90e18b609","lang":"console","found":["python","js"],"source":"PUT /_autoscaling/policy/my_autoscaling_policy\n{\n \"roles\" : [ \"ml\" ],\n \"deciders\": {\n \"ml\": {\n \"num_anomaly_jobs_in_queue\": 5,\n \"num_analytics_jobs_in_queue\": 3,\n \"down_scale_delay\": \"30m\"\n }\n }\n}"},
{"source_location":{"file":"autoscaling/deciders/machine-learning-decider.asciidoc","line":67},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"autoscaling/deciders/fixed-decider.asciidoc","line":37},"digest":"a56c20a733a350673d41829c8daaafbe","lang":"console","found":["python","js"],"source":"PUT /_autoscaling/policy/my_autoscaling_policy\n{\n \"roles\" : [ \"data_hot\" ],\n \"deciders\": {\n \"fixed\": {\n \"storage\": \"1tb\",\n \"memory\": \"32gb\",\n \"processors\": 2.3,\n \"nodes\": 8\n }\n }\n}"},
{"source_location":{"file":"autoscaling/deciders/fixed-decider.asciidoc","line":56},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"snapshot-restore/register-repository.asciidoc","line":167},"digest":"6a55dbba114c6c1408474f7e9cfdbb94","lang":"console","found":["python","ruby","js"],"source":"PUT _snapshot/my_unverified_backup?verify=false\n{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"my_unverified_backup_location\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/register-repository.asciidoc","line":185},"digest":"216a6573ab4ab023e5dcac4eaa08c3c8","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_unverified_backup/_verify"},
{"source_location":{"file":"snapshot-restore/register-repository.asciidoc","line":215},"digest":"bdc68012c121062628d6d73468bf4866","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/_cleanup"},
{"source_location":{"file":"snapshot-restore/register-repository.asciidoc","line":223},"digest":"5e309dfb203bf2b89cd8a4c353c4b6f5","lang":"console-result","found":[],"source":"{\n \"results\": {\n \"deleted_bytes\": 20,\n \"deleted_blobs\": 5\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-azure.asciidoc","line":72},"digest":"9de4704d2f047dae1259249112488697","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_backup\n{\n \"type\": \"azure\",\n \"settings\": {\n \"client\": \"secondary\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-azure.asciidoc","line":87},"digest":"d27591881da6f5767523b1beb233adc7","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_backup\n{\n \"type\": \"azure\"\n}"},
{"source_location":{"file":"snapshot-restore/repository-azure.asciidoc","line":206},"digest":"aebf9cc593fcf0d4ca08f8b61b67bf17","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_backup\n{\n \"type\": \"azure\",\n \"settings\": {\n \"client\": \"secondary\",\n \"container\": \"my_container\",\n \"base_path\": \"snapshots_prefix\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-gcs.asciidoc","line":107},"digest":"ed01b542bb56b1521ea8d5a3c67aa891","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_gcs_repository\n{\n \"type\": \"gcs\",\n \"settings\": {\n \"bucket\": \"my_bucket\",\n \"client\": \"my_alternate_client\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-gcs.asciidoc","line":142},"digest":"ed01b542bb56b1521ea8d5a3c67aa891","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_gcs_repository\n{\n \"type\": \"gcs\",\n \"settings\": {\n \"bucket\": \"my_bucket\",\n \"client\": \"my_alternate_client\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-gcs.asciidoc","line":217},"digest":"262196e4323dfc1f8e6daf77d7ba3b6a","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_gcs_repository\n{\n \"type\": \"gcs\",\n \"settings\": {\n \"bucket\": \"my_other_bucket\",\n \"base_path\": \"dev\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-s3.asciidoc","line":23},"digest":"7de7e647c1c9cbe0a1df0d104fc0a947","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_s3_repository\n{\n \"type\": \"s3\",\n \"settings\": {\n \"bucket\": \"my-bucket\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-s3.asciidoc","line":45},"digest":"0da747e9d98bae157d3520ff1b489ad4","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_s3_repository\n{\n \"type\": \"s3\",\n \"settings\": {\n \"bucket\": \"my-bucket\",\n \"client\": \"my-alternate-client\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-s3.asciidoc","line":232},"digest":"af607715d0693587dd12962266359a96","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_s3_repository\n{\n \"type\": \"s3\",\n \"settings\": {\n \"bucket\": \"my-bucket\",\n \"another_setting\": \"setting-value\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-s3.asciidoc","line":371},"digest":"51b44224feee6e2e5974824334474c77","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_s3_repository\n{\n \"type\": \"s3\",\n \"settings\": {\n \"client\": \"my-client\",\n \"bucket\": \"my-bucket\",\n \"endpoint\": \"my.s3.endpoint\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-s3.asciidoc","line":609},"digest":"8d9b04f2a97f4229dec9e620126de049","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.com.amazonaws.request\": \"DEBUG\"\n }\n}"},
{"source_location":{"file":"tab-widgets/register-fs-repo.asciidoc","line":17},"digest":"5632c3b947062d3a5fc0e4f3413b3308","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_fs_backup\n{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"/mount/backups/my_fs_backup_location\"\n }\n}"},
{"source_location":{"file":"tab-widgets/register-fs-repo.asciidoc","line":32},"digest":"f3fe2012557ebbce1ebad4fc997c092d","lang":"console","found":["python","ruby","js"],"source":"PUT _snapshot/my_fs_backup\n{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"my_fs_backup_location\" <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/register-fs-repo.asciidoc","line":55},"digest":"0ec2178fb0103862b47cc20bc5885972","lang":"console","found":["python","ruby","js"],"source":"PUT _snapshot/my_fs_backup\n{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"my_fs_backup_location\",\n \"readonly\": true\n }\n}"},
{"source_location":{"file":"tab-widgets/register-fs-repo.asciidoc","line":93},"digest":"2308c9948cbebd2092eec03b11281005","lang":"console","found":["python","ruby","js"],"source":"PUT _snapshot/my_fs_backup\n{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"E:\\\\Mount\\\\Backups\\\\My_fs_backup_location\"\n }\n}"},
{"source_location":{"file":"tab-widgets/register-fs-repo.asciidoc","line":107},"digest":"a8019280dab5b04211ae3b21e5e08223","lang":"console","found":["python","ruby","js"],"source":"PUT _snapshot/my_fs_backup\n{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"My_fs_backup_location\" <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/register-fs-repo.asciidoc","line":127},"digest":"0ec2178fb0103862b47cc20bc5885972","lang":"console","found":["python","ruby","js"],"source":"PUT _snapshot/my_fs_backup\n{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"my_fs_backup_location\",\n \"readonly\": true\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-read-only-url.asciidoc","line":14},"digest":"b65dbb51ddd496189c65a9326a53480c","lang":"console","found":["python","js"],"source":"PUT _snapshot/my_read_only_url_repository\n{\n \"type\": \"url\",\n \"settings\": {\n \"url\": \"file:/mount/backups/my_fs_backup_location\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/repository-source-only.asciidoc","line":41},"digest":"ac9fe9b64891095bcf84066f719b3dc4","lang":"console","found":["python","ruby","js"],"source":"PUT _snapshot/my_src_only_repository\n{\n \"type\": \"source\",\n \"settings\": {\n \"delegate_type\": \"fs\",\n \"location\": \"my_backup_repository\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":136},"digest":"cb16f1ff85399ddaa418834be580c9de","lang":"console","found":["python","js"],"source":"POST _security/role/slm-admin\n{\n \"cluster\": [ \"manage_slm\", \"cluster:admin/snapshot/*\" ],\n \"indices\": [\n {\n \"names\": [ \".slm-history-*\" ],\n \"privileges\": [ \"all\" ]\n }\n ]\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":157},"digest":"658842bf41e0fcb7969937155946a0ff","lang":"console","found":["python","js"],"source":"POST _security/role/slm-read-only\n{\n \"cluster\": [ \"read_slm\" ],\n \"indices\": [\n {\n \"names\": [ \".slm-history-*\" ],\n \"privileges\": [ \"read\" ]\n }\n ]\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":187},"digest":"c10a486a28cbc5b2f15c3474ae31a431","lang":"console","found":["python","js"],"source":"PUT _slm/policy/nightly-snapshots\n{\n \"schedule\": \"0 30 1 * * ?\", <1>\n \"name\": \"\", <2>\n \"repository\": \"my_repository\", <3>\n \"config\": {\n \"indices\": \"*\", <4>\n \"include_global_state\": true <5>\n },\n \"retention\": { <6>\n \"expire_after\": \"30d\",\n \"min_count\": 5,\n \"max_count\": 50\n }\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":231},"digest":"9b09ad677a0f4331830bed254a8388d1","lang":"console","found":[],"source":"POST _slm/policy/nightly-snapshots/_execute"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":249},"digest":"a735081e715d385b4d471eea0f2b57da","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"slm.retention_schedule\" : \"0 30 1 * * ?\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":262},"digest":"6d48f83c4a36d0544d876d3eff48dcef","lang":"console","found":["python","ruby","js"],"source":"POST _slm/_execute_retention"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":290},"digest":"ae0d20c2ebb59278e08a26c9634d90c9","lang":"console","found":["python","ruby","js"],"source":"# PUT _snapshot/my_repository/\nPUT _snapshot/my_repository/%3Cmy_snapshot_%7Bnow%2Fd%7D%3E"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":302},"digest":"12cb446446211f95f651e196a1f059b4","lang":"console","found":["python","ruby","js"],"source":"PUT _snapshot/my_repository/my_snapshot?wait_for_completion=true"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":317},"digest":"b9a8f39ab9b1ed18c6c1db61ac4e6a9e","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/my_repository/_current"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":325},"digest":"2105f2d1d81977054a93163a175793ce","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/_status"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":339},"digest":"ce0a1aba713b0448b0c6a504af7b3a08","lang":"console","found":["python","ruby","js"],"source":"GET _slm/stats"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":353},"digest":"5e87dd38ac3a0fd59ad794005b16d13e","lang":"console","found":["python","ruby","js"],"source":"GET _slm/policy/nightly-snapshots"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":366},"digest":"bb792e64a4c1f872296073b457aa03c8","lang":"console","found":["python","ruby","js"],"source":"DELETE _snapshot/my_repository/my_snapshot_2099.05.06"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":405},"digest":"b3623b8c7f3e7650f52b6fb8b050f583","lang":"console","found":["python","ruby","js"],"source":"GET _features"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":412},"digest":"194bf8f4907b38210b8a0fcec752d8d7","lang":"console-result","found":[],"source":"{\n \"features\": [\n {\n \"name\": \"tasks\",\n \"description\": \"Manages task results\"\n },\n {\n \"name\": \"kibana\",\n \"description\": \"Manages Kibana configuration and reports\"\n },\n {\n \"name\": \"security\",\n \"description\": \"Manages configuration for Security features, such as users and roles\"\n },\n ...\n ]\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":440},"digest":"a180c97f8298fb2388fdcaf7b2e1b81e","lang":"console","found":["python","js"],"source":"PUT _slm/policy/nightly-snapshots\n{\n \"schedule\": \"0 30 2 * * ?\",\n \"name\": \"\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": \"*\",\n \"include_global_state\": true,\n \"feature_states\": [\n \"kibana\",\n \"security\"\n ]\n },\n \"retention\": {\n \"expire_after\": \"30d\",\n \"min_count\": 5,\n \"max_count\": 50\n }\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":487},"digest":"1a2890b90f3699fc2a4f27f94b145be9","lang":"console","found":["python","js"],"source":"PUT _slm/policy/nightly-cluster-state-snapshots\n{\n \"schedule\": \"0 30 2 * * ?\",\n \"name\": \"\",\n \"repository\": \"my_secure_repository\",\n \"config\": {\n \"include_global_state\": true, <1>\n \"indices\": \"-*\" <2>\n },\n \"retention\": {\n \"expire_after\": \"30d\",\n \"min_count\": 5,\n \"max_count\": 50\n }\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":514},"digest":"3fb1289c80a354da66693bfb25d7b412","lang":"console","found":["python","js"],"source":"PUT _slm/policy/nightly-snapshots\n{\n \"schedule\": \"0 30 2 * * ?\",\n \"name\": \"\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"include_global_state\": false, <1>\n \"indices\": \"*\" <2>\n },\n \"retention\": {\n \"expire_after\": \"30d\",\n \"min_count\": 5,\n \"max_count\": 50\n }\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":557},"digest":"ea92390651e8ecad0c890658985343c5","lang":"console","found":["python","js"],"source":"PUT _slm/policy/hourly-snapshots\n{\n \"name\": \"\",\n \"schedule\": \"0 0 * * * ?\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": \"*\",\n \"include_global_state\": true\n },\n \"retention\": {\n \"expire_after\": \"1d\",\n \"min_count\": 1,\n \"max_count\": 24\n }\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":579},"digest":"f54f6d06163221f2c7aff6e8db942be3","lang":"console","found":["python","js"],"source":"PUT _slm/policy/daily-snapshots\n{\n \"name\": \"\",\n \"schedule\": \"0 45 23 * * ?\", <1>\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": \"*\",\n \"include_global_state\": true\n },\n \"retention\": {\n \"expire_after\": \"30d\",\n \"min_count\": 1,\n \"max_count\": 31\n }\n}"},
{"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":603},"digest":"aa5c0fa51a3553ce7caa763c3832120d","lang":"console","found":["python","js"],"source":"PUT _slm/policy/monthly-snapshots\n{\n \"name\": \"\",\n \"schedule\": \"0 56 23 1 * ?\", <1>\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": \"*\",\n \"include_global_state\": true\n },\n \"retention\": {\n \"expire_after\": \"366d\",\n \"min_count\": 1,\n \"max_count\": 12\n }\n}"},
{"source_location":{"file":"snapshot-restore/apis/restore-snapshot-api.asciidoc","line":94},"digest":"aa7f62279b487989440d423c1ed4a1c0","lang":"console","found":["python","ruby","js"],"source":"GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":64},"digest":"ac8328bc51fd396b3ce5f7ef3e1e73df","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":73},"digest":"4e926063a9494b563387617b08c4f232","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/my_repository/*?verbose=false"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":114},"digest":"e0734215054e1ff5df712ce3a826cdba","lang":"console","found":["python","ruby","js"],"source":"# Delete an index\nDELETE my-index\n\n# Delete a data stream\nDELETE _data_stream/logs-my_app-default"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":127},"digest":"4bb4a64cf04e3feb133b0221d29beaa9","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/my_snapshot_2099.05.06/_restore\n{\n \"indices\": \"my-index,logs-my_app-default\"\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":152},"digest":"03b1d76fa0b773d5b7d74ecb7e1e1a80","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/my_snapshot_2099.05.06/_restore\n{\n \"indices\": \"my-index,logs-my_app-default\",\n \"rename_pattern\": \"(.+)\",\n \"rename_replacement\": \"restored-$1\"\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":177},"digest":"da24c13eee8c9aeae9a23faf80489e31","lang":"console","found":["python","ruby","js"],"source":"# Delete the original index\nDELETE my-index\n\n# Reindex the restored index to rename it\nPOST _reindex\n{\n \"source\": {\n \"index\": \"restored-my-index\"\n },\n \"dest\": {\n \"index\": \"my-index\"\n }\n}\n\n# Delete the original data stream\nDELETE _data_stream/logs-my_app-default\n\n# Reindex the restored data stream to rename it\nPOST _reindex\n{\n \"source\": {\n \"index\": \"restored-logs-my_app-default\"\n },\n \"dest\": {\n \"index\": \"logs-my_app-default\",\n \"op_type\": \"create\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":225},"digest":"2fc2c790a85be29bbcba50bdde1493f4","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/my_repository/my_snapshot_2099.05.06"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":246},"digest":"c4fadbb7f61e5f83ab3fc9cd4b82b5e5","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/my_snapshot_2099.05.06/_restore\n{\n \"feature_states\": [ \"geoip\" ],\n \"include_global_state\": false, <1>\n \"indices\": \"-*\" <2>\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":295},"digest":"6a3a578ce37fb2c63ccfab7f75db9bae","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"ingest.geoip.downloader.enabled\": false,\n \"indices.lifecycle.history_index_enabled\": false\n }\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":308},"digest":"585a34ad79aee16678b37da785933ac8","lang":"console","found":["python","ruby","js"],"source":"POST _ilm/stop"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":323},"digest":"a21a7bf052b41f5b996dc58f7b69770f","lang":"console","found":["python","ruby","js"],"source":"POST _ml/set_upgrade_mode?enabled=true"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":338},"digest":"548b85bd9e6e7d33e36133953869449b","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"xpack.monitoring.collection.enabled\": false\n }\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":351},"digest":"6b1336ff477f91d4a0db0b06db546ff0","lang":"console","found":["python","ruby","js"],"source":"POST _watcher/_stop"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":368},"digest":"e88a057a13e191e4d5faa22edf2ae8ed","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/settings?filter_path=**.xpack.profiling.templates.enabled&include_defaults=true"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":375},"digest":"24d66b2ebdf662d8b03e17214e65c825","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"xpack.profiling.templates.enabled\": false\n }\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":408},"digest":"867f7d43a78066731ead2e223960fc07","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"action.destructive_requires_name\": false\n }\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":421},"digest":"cb1d2a787bbe88974cfc5f132556a51c","lang":"console","found":["python","ruby","js"],"source":"DELETE _data_stream/*?expand_wildcards=all"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":429},"digest":"eef9deff7f9799d1f7657bb7e2afb7f1","lang":"console","found":["python","ruby","js"],"source":"DELETE *?expand_wildcards=all"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":438},"digest":"26bd8c027c82cd72c007c10fa66dc97f","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/my_snapshot_2099.05.06/_restore\n{\n \"indices\": \"*\",\n \"include_global_state\": true\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":459},"digest":"e642be44a62a89cf4afb2db28220c9a9","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"ingest.geoip.downloader.enabled\": true,\n \"indices.lifecycle.history_index_enabled\": true\n }\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":473},"digest":"72ae3851160fcf02b8e2cdfd4e57d238","lang":"console","found":["python","ruby","js"],"source":"POST _ilm/start"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":480},"digest":"3c5d5a5c34a62724942329658c688f5e","lang":"console","found":["python","ruby","js"],"source":"POST _ml/set_upgrade_mode?enabled=false"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":487},"digest":"640da6dd719a34975b5627dfa5fcdd55","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"xpack.monitoring.collection.enabled\": true\n }\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":501},"digest":"97ea5ab17213cb1faaf6f3ea13607098","lang":"console","found":["python","ruby","js"],"source":"POST _watcher/_start"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":511},"digest":"a0c64894f14d28b7e0c902add71d2e9a","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"xpack.profiling.templates.enabled\": true\n }\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":524},"digest":"e317a8380dfbc76c4e7f23d0997b3518","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"action.destructive_requires_name\": null\n }\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":554},"digest":"b02e4907c9936c1adc16ccce9d49900d","lang":"console","found":["php","python","ruby","go","js"],"source":"GET _cluster/health"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":562},"digest":"32ce26b8af95f7ccc2a7bd5e77a39d6c","lang":"console","found":["python","ruby","js"],"source":"GET my-index/_recovery"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":570},"digest":"6705eca2095ade294548cfb25bf2dd86","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":582},"digest":"934ced0998552cc95a28e48554147e8b","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/allocation/explain\n{\n \"index\": \"my-index\",\n \"shard\": 0,\n \"primary\": false,\n \"current_node\": \"my-node\"\n}"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":604},"digest":"e0734215054e1ff5df712ce3a826cdba","lang":"console","found":["python","ruby","js"],"source":"# Delete an index\nDELETE my-index\n\n# Delete a data stream\nDELETE _data_stream/logs-my_app-default"},
{"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":647},"digest":"ed27843eff311f3011b679e97e6fda50","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/my_snapshot_2099.05.06/_restore\n{\n \"indices\": \"my-index,logs-my_app-default\",\n \"index_settings\": {\n \"index.number_of_replicas\": 1\n }\n}"},
{"source_location":{"file":"ccr/getting-started.asciidoc","line":107},"digest":"9ad38ab4d9c3983e97e8c38fec611f10","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\" : {\n \"cluster\" : {\n \"remote\" : {\n \"leader\" : {\n \"seeds\" : [\n \"127.0.0.1:9300\" <1>\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"ccr/getting-started.asciidoc","line":132},"digest":"cc0cca5556ec6224c7134c233734beed","lang":"console","found":["python","ruby","js"],"source":"GET /_remote/info"},
{"source_location":{"file":"ccr/getting-started.asciidoc","line":141},"digest":"aefefa057d7d37e187f3968b47479493","lang":"console-result","found":[],"source":"{\n \"leader\" : {\n \"seeds\" : [\n \"127.0.0.1:9300\"\n ],\n \"connected\" : true,\n \"num_nodes_connected\" : 1, <1>\n \"max_connections_per_cluster\" : 3,\n \"initial_connect_timeout\" : \"30s\",\n \"skip_unavailable\" : true,\n \"mode\" : \"sniff\"\n }\n}"},
{"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":46},"digest":"b2dec193082462c775169db438308bc3","lang":"console","found":["python","js"],"source":"POST /_security/role/remote-replication\n{\n \"cluster\": [\n \"read_ccr\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"leader-index-name\"\n ],\n \"privileges\": [\n \"monitor\",\n \"read\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":83},"digest":"cf9f51d719a2e90ffe36ed6fe56a4a69","lang":"console","found":["python","js"],"source":"POST /_security/role/remote-replication\n{\n \"cluster\": [\n \"manage_ccr\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"follower-index-name\"\n ],\n \"privileges\": [\n \"monitor\",\n \"read\",\n \"write\",\n \"manage_follow_index\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":112},"digest":"9d5855075e7008270459cc88c189043d","lang":"console","found":["python","js"],"source":"POST /_security/user/cross-cluster-user\n{\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\" : [ \"remote-replication\" ]\n}"},
{"source_location":{"file":"ccr/getting-started.asciidoc","line":205},"digest":"1445ca2e813ed1c25504107b4b11760e","lang":"console","found":["python","js"],"source":"PUT /server-metrics-follower/_ccr/follow?wait_for_active_shards=1\n{\n \"remote_cluster\" : \"leader\",\n \"leader_index\" : \"server-metrics\"\n}"},
{"source_location":{"file":"ccr/getting-started.asciidoc","line":288},"digest":"6b104a66ab47fc1e1f24a5738f82feb4","lang":"console","found":["python","js"],"source":"PUT /_ccr/auto_follow/beats\n{\n \"remote_cluster\" : \"leader\",\n \"leader_index_patterns\" :\n [\n \"metricbeat-*\", <1>\n \"packetbeat-*\" <2>\n ],\n \"follow_index_pattern\" : \"{{leader_index}}-copy\" <3>\n}"},
{"source_location":{"file":"ccr/managing.asciidoc","line":102},"digest":"7c5e41a7c0075d87b8f8348a6efa990c","lang":"console","found":["python","ruby","js"],"source":"POST /follower_index/_ccr/pause_follow\n\nPOST /follower_index/_close\n\nPUT /follower_index/_ccr/follow?wait_for_active_shards=1\n{\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index\" : \"leader_index\"\n}"},
{"source_location":{"file":"ccr/uni-directional-disaster-recovery.asciidoc","line":49},"digest":"9b68748c061b768c0153c1f2508ce207","lang":"console","found":["python","ruby","js"],"source":"### On clusterB ###\nPUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"clusterA\": {\n \"mode\": \"proxy\",\n \"skip_unavailable\": \"true\",\n \"server_name\": \"clustera.es.region-a.gcp.elastic-cloud.com\",\n \"proxy_socket_connections\": \"18\",\n \"proxy_address\": \"clustera.es.region-a.gcp.elastic-cloud.com:9400\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"ccr/uni-directional-disaster-recovery.asciidoc","line":75},"digest":"a3464bd6f0a61623562162859566b078","lang":"console","found":["python","js"],"source":"### On clusterB ###\nPUT /kibana_sample_data_ecommerce2/_ccr/follow?wait_for_active_shards=1\n{\n \"remote_cluster\": \"clusterA\",\n \"leader_index\": \"kibana_sample_data_ecommerce\"\n}"},
{"source_location":{"file":"ccr/uni-directional-disaster-recovery.asciidoc","line":101},"digest":"46ce40227fa60aa6ba435f366b3a1f5f","lang":"console","found":["python","ruby","js"],"source":"### On clusterB ###\nPOST /kibana_sample_data_ecommerce2/_ccr/pause_follow\nPOST /kibana_sample_data_ecommerce2/_close\nPOST /kibana_sample_data_ecommerce2/_ccr/unfollow\nPOST /kibana_sample_data_ecommerce2/_open"},
{"source_location":{"file":"ccr/uni-directional-disaster-recovery.asciidoc","line":117},"digest":"902cfd5aeec2f65b3adf55f5e38b21f0","lang":"console","found":["python","ruby","js"],"source":"### On clusterB ###\nPOST kibana_sample_data_ecommerce2/_doc/\n{\n \"user\": \"kimchy\"\n}"},
{"source_location":{"file":"ccr/uni-directional-disaster-recovery.asciidoc","line":133},"digest":"f749efe8f11ebd43ef83db91922c736e","lang":"console","found":["python","ruby","js"],"source":"### On clusterA ###\nPUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"clusterB\": {\n \"mode\": \"proxy\",\n \"skip_unavailable\": \"true\",\n \"server_name\": \"clusterb.es.region-b.gcp.elastic-cloud.com\",\n \"proxy_socket_connections\": \"18\",\n \"proxy_address\": \"clusterb.es.region-b.gcp.elastic-cloud.com:9400\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"ccr/uni-directional-disaster-recovery.asciidoc","line":163},"digest":"c79b284fa7a5d7421c6daae62bc697f9","lang":"console","found":["python","ruby","js"],"source":"### On clusterA ###\nDELETE kibana_sample_data_ecommerce"},
{"source_location":{"file":"ccr/uni-directional-disaster-recovery.asciidoc","line":174},"digest":"691fe20d467324ed43a36fd15852c492","lang":"console","found":["python","js"],"source":"### On clusterA ###\nPUT /kibana_sample_data_ecommerce/_ccr/follow?wait_for_active_shards=1\n{\n \"remote_cluster\": \"clusterB\",\n \"leader_index\": \"kibana_sample_data_ecommerce2\"\n}"},
{"source_location":{"file":"ccr/uni-directional-disaster-recovery.asciidoc","line":188},"digest":"8d6631b622f9bfb8fa70154f6fb8b153","lang":"console","found":["python","ruby","js"],"source":"### On clusterA ###\nGET kibana_sample_data_ecommerce/_search?q=kimchy"},
{"source_location":{"file":"ccr/bi-directional-disaster-recovery.asciidoc","line":41},"digest":"37b84f2ab7c2f6b4fe0e14cc7e018b1f","lang":"console","found":["python","ruby","js"],"source":"### On cluster A ###\nPUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"clusterB\": {\n \"mode\": \"proxy\",\n \"skip_unavailable\": true,\n \"server_name\": \"clusterb.es.region-b.gcp.elastic-cloud.com\",\n \"proxy_socket_connections\": 18,\n \"proxy_address\": \"clusterb.es.region-b.gcp.elastic-cloud.com:9400\"\n }\n }\n }\n }\n}\n### On cluster B ###\nPUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"clusterA\": {\n \"mode\": \"proxy\",\n \"skip_unavailable\": true,\n \"server_name\": \"clustera.es.region-a.gcp.elastic-cloud.com\",\n \"proxy_socket_connections\": 18,\n \"proxy_address\": \"clustera.es.region-a.gcp.elastic-cloud.com:9400\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"ccr/bi-directional-disaster-recovery.asciidoc","line":87},"digest":"46a0eaaf5c881f1ba716d1812b36c724","lang":"console","found":["python","js"],"source":"### On cluster A ###\nPUT /_ccr/auto_follow/logs-generic-default\n{\n \"remote_cluster\": \"clusterB\",\n \"leader_index_patterns\": [\n \".ds-logs-generic-default-20*\"\n ],\n \"leader_index_exclusion_patterns\":\"*-replicated_from_clustera\",\n \"follow_index_pattern\": \"{{leader_index}}-replicated_from_clusterb\"\n}\n\n### On cluster B ###\nPUT /_ccr/auto_follow/logs-generic-default\n{\n \"remote_cluster\": \"clusterA\",\n \"leader_index_patterns\": [\n \".ds-logs-generic-default-20*\"\n ],\n \"leader_index_exclusion_patterns\":\"*-replicated_from_clusterb\",\n \"follow_index_pattern\": \"{{leader_index}}-replicated_from_clustera\"\n}"},
{"source_location":{"file":"ccr/bi-directional-disaster-recovery.asciidoc","line":185},"digest":"c267e90b7873a7c8c8af06f01e958e69","lang":"console","found":["python","ruby","js"],"source":"GET logs*/_search?size=0"},
{"source_location":{"file":"ccr/bi-directional-disaster-recovery.asciidoc","line":237},"digest":"0a3003fa5af850e415634b50b1029859","lang":"console","found":["python","ruby","js"],"source":"### On either of the cluster ###\nGET logs-generic-default*/_search?filter_path=hits.hits._index\n{\n\"query\": {\n \"match\": {\n \"event.sequence\": \"97\"\n }\n }\n}"},
{"source_location":{"file":"ccr/bi-directional-disaster-recovery.asciidoc","line":256},"digest":"083e514297c09e91211f0d168aef1b0b","lang":"console","found":["python","ruby","js"],"source":"### On the cluster identified from the previous step ###\nPOST logs-generic-default/_update_by_query\n{\n \"query\": {\n \"match\": {\n \"event.sequence\": \"97\"\n }\n },\n \"script\": {\n \"source\": \"ctx._source.event.original = params.new_event\",\n \"lang\": \"painless\",\n \"params\": {\n \"new_event\": \"FOOBAR\"\n }\n }\n}"},
{"source_location":{"file":"modules/cluster/allocation_awareness.asciidoc","line":62},"digest":"4479e8c63a04fa22207a6a8803eadcad","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\" : {\n \"cluster.routing.allocation.awareness.attributes\" : \"rack_id\"\n }\n}"},
{"source_location":{"file":"shard-request-cache.asciidoc","line":49},"digest":"cb2f70601cb004b9ece9b0b43a9dc21a","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001,my-index-000002/_cache/clear?request=true"},
{"source_location":{"file":"shard-request-cache.asciidoc","line":61},"digest":"4498b9d3b0c77e1b9ef6664ff5963ce2","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"index.requests.cache.enable\": false\n }\n}"},
{"source_location":{"file":"shard-request-cache.asciidoc","line":74},"digest":"e26c96978096ccc592849cca9db67ffc","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{ \"index.requests.cache.enable\": true }"},
{"source_location":{"file":"shard-request-cache.asciidoc","line":88},"digest":"5e099493f135ff7bd614e935c4f2bf5a","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search?request_cache=true\n{\n \"size\": 0,\n \"aggs\": {\n \"popular_colors\": {\n \"terms\": {\n \"field\": \"colors\"\n }\n }\n }\n}"},
{"source_location":{"file":"shard-request-cache.asciidoc","line":125},"digest":"36da9668fef56910370f16bfb772cc40","lang":"console","found":["python","ruby","js"],"source":"GET /_stats/request_cache?human"},
{"source_location":{"file":"shard-request-cache.asciidoc","line":132},"digest":"90631797c7fbda43902abf2cc0ea8304","lang":"console","found":["python","ruby","js"],"source":"GET /_nodes/stats/indices/request_cache?human"},
{"source_location":{"file":"api-conventions.asciidoc","line":119},"digest":"fe806011466e7cdc1590da186297edb6","lang":"console","found":["python","ruby","js"],"source":"# PUT /\nPUT /%3Cmy-index-%7Bnow%2Fd%7D%3E"},
{"source_location":{"file":"api-conventions.asciidoc","line":164},"digest":"a34d70d7022eb4ba48909d440c80390f","lang":"console","found":["php","python","ruby","go","js"],"source":"# GET /,,/_search\nGET /%3Clogstash-%7Bnow%2Fd-2d%7D%3E%2C%3Clogstash-%7Bnow%2Fd-1d%7D%3E%2C%3Clogstash-%7Bnow%2Fd%7D%3E/_search\n{\n \"query\" : {\n \"match\": {\n \"test\": \"data\"\n }\n }\n}"},
{"source_location":{"file":"api-conventions.asciidoc","line":260},"digest":"d2e7dead222cfbebbd2c21a7cc1893b4","lang":"console","found":["js"],"source":"GET _cluster/state/metadata?filter_path=metadata.indices.*.system"},
{"source_location":{"file":"api-conventions.asciidoc","line":355},"digest":"1147a02afa087278e51fa365fb9e06b7","lang":"console","found":["python","ruby","js"],"source":"POST /_search\n{\n \"size\": \"1000\"\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":74},"digest":"49100a4f53c0ba345fadacdc4f2f86e4","lang":"console","found":["python","ruby","js"],"source":"GET /_search?q=kimchy&filter_path=took,hits.hits._id,hits.hits._score"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":82},"digest":"0936e4cc7952b267b16a3b764d4e25ee","lang":"console-result","found":[],"source":"{\n \"took\" : 3,\n \"hits\" : {\n \"hits\" : [\n {\n \"_id\" : \"0\",\n \"_score\" : 1.6375021\n }\n ]\n }\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":102},"digest":"1dbb8cf17fbc45c87c7d2f75f15f9778","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_cluster/state?filter_path=metadata.indices.*.stat*"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":110},"digest":"0de18b5a09277a07d434a0263f02fdb4","lang":"console-result","found":[],"source":"{\n \"metadata\" : {\n \"indices\" : {\n \"my-index-000001\": {\"state\": \"open\"}\n }\n }\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":125},"digest":"1252fa45847edba5ec2b2f33da70ec5b","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_cluster/state?filter_path=routing_table.indices.**.state"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":133},"digest":"3d84c414bb9c69072273b3f04e254076","lang":"console-result","found":[],"source":"{\n \"routing_table\": {\n \"indices\": {\n \"my-index-000001\": {\n \"shards\": {\n \"0\": [{\"state\": \"STARTED\"}, {\"state\": \"UNASSIGNED\"}]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":150},"digest":"621665fdbd7fc103c09bfeed28b67b1a","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_count?filter_path=-_shards"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":158},"digest":"09108f6f3c42ee4bbe387d3c28713174","lang":"console-result","found":[],"source":"{\n \"count\" : 5\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":169},"digest":"1e18a67caf8f06ff2710ec4a8b30f625","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_cluster/state?filter_path=metadata.indices.*.state,-metadata.indices.logstash-*"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":177},"digest":"b8f7dbb03a899234b55f36f4d83c8ba0","lang":"console-result","found":[],"source":"{\n \"metadata\" : {\n \"indices\" : {\n \"my-index-000001\" : {\"state\" : \"open\"},\n \"my-index-000002\" : {\"state\" : \"open\"},\n \"my-index-000003\" : {\"state\" : \"open\"}\n }\n }\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":196},"digest":"6464124d1677f4552ddddd95a340ca3a","lang":"console","found":["php","python","ruby","go","js"],"source":"POST /library/_doc?refresh\n{\"title\": \"Book #1\", \"rating\": 200.1}\nPOST /library/_doc?refresh\n{\"title\": \"Book #2\", \"rating\": 1.7}\nPOST /library/_doc?refresh\n{\"title\": \"Book #3\", \"rating\": 0.1}\nGET /_search?filter_path=hits.hits._source&_source=title&sort=rating:desc"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":207},"digest":"ca0212c413612a028f3405cc29e4ff8a","lang":"console-result","found":[],"source":"{\n \"hits\" : {\n \"hits\" : [ {\n \"_source\":{\"title\":\"Book #1\"}\n }, {\n \"_source\":{\"title\":\"Book #2\"}\n }, {\n \"_source\":{\"title\":\"Book #3\"}\n } ]\n }\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":229},"digest":"fe96ca3b2a559d8411aca7ed5f3854bd","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_settings?flat_settings=true"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":237},"digest":"f5248de92ef7044e0aed9fa86dc09257","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"settings\": {\n \"index.number_of_replicas\": \"1\",\n \"index.number_of_shards\": \"1\",\n \"index.creation_date\": \"1474389951325\",\n \"index.uuid\": \"n6gzFZTgS664GUfx0Xrpjw\",\n \"index.version.created\": ...,\n \"index.routing.allocation.include._tier_preference\" : \"data_content\",\n \"index.provided_name\" : \"my-index-000001\"\n }\n }\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":260},"digest":"56f3a6bec7be5a90fb43144c331a5b5a","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_settings?flat_settings=false"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":268},"digest":"5ffbcdcdd71cea38de1bd0eacb58255e","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"settings\" : {\n \"index\" : {\n \"number_of_replicas\": \"1\",\n \"number_of_shards\": \"1\",\n \"creation_date\": \"1474389951325\",\n \"uuid\": \"n6gzFZTgS664GUfx0Xrpjw\",\n \"version\": {\n \"created\": ...\n },\n \"routing\": {\n \"allocation\": {\n \"include\": {\n \"_tier_preference\": \"data_content\"\n }\n }\n },\n \"provided_name\" : \"my-index-000001\"\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":342},"digest":"0620a10ff15a2bb3eb489afc24ff0131","lang":"console","found":["python","js"],"source":"POST /my-index-000001/_search?size=surprise_me"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":351},"digest":"be8a94d6faacfb7ca0d36d222e0ae4c9","lang":"console-result","found":[],"source":"{\n \"error\" : {\n \"root_cause\" : [\n {\n \"type\" : \"illegal_argument_exception\",\n \"reason\" : \"Failed to parse int parameter [size] with value [surprise_me]\"\n }\n ],\n \"type\" : \"illegal_argument_exception\",\n \"reason\" : \"Failed to parse int parameter [size] with value [surprise_me]\",\n \"caused_by\" : {\n \"type\" : \"number_format_exception\",\n \"reason\" : \"For input string: \\\"surprise_me\\\"\"\n }\n },\n \"status\" : 400\n}"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":374},"digest":"3b05128cba6852e79a905bcdd5a8ebc0","lang":"console","found":["python","js"],"source":"POST /my-index-000001/_search?size=surprise_me&error_trace=true"},
{"source_location":{"file":"rest-api/common-options.asciidoc","line":382},"digest":"ddad5df34c874dfe814a44e1e0d57148","lang":"console-result","found":[],"source":"{\n \"error\": {\n \"root_cause\": [\n {\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"Failed to parse int parameter [size] with value [surprise_me]\",\n \"stack_trace\": \"Failed to parse int parameter [size] with value [surprise_me]]; nested: IllegalArgumentException...\"\n }\n ],\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"Failed to parse int parameter [size] with value [surprise_me]\",\n \"stack_trace\": \"java.lang.IllegalArgumentException: Failed to parse int parameter [size] with value [surprise_me]\\n at org.elasticsearch.rest.RestRequest.paramAsInt(RestRequest.java:175)...\",\n \"caused_by\": {\n \"type\": \"number_format_exception\",\n \"reason\": \"For input string: \\\"surprise_me\\\"\",\n \"stack_trace\": \"java.lang.NumberFormatException: For input string: \\\"surprise_me\\\"\\n at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)...\"\n }\n },\n \"status\": 400\n}"},
{"source_location":{"file":"autoscaling/apis/put-autoscaling-policy.asciidoc","line":22},"digest":"2864d04bf99860ed5dbe1458f1ab5f78","lang":"console","found":["python","js"],"source":"PUT /_autoscaling/policy/\n{\n \"roles\": [],\n \"deciders\": {\n \"fixed\": {\n }\n }\n}"},
{"source_location":{"file":"autoscaling/apis/put-autoscaling-policy.asciidoc","line":73},"digest":"c765ce78f3605c0e70d213f22aac8a53","lang":"console","found":["python","js"],"source":"PUT /_autoscaling/policy/my_autoscaling_policy\n{\n \"roles\" : [ \"data_hot\" ],\n \"deciders\": {\n \"fixed\": {\n }\n }\n}"},
{"source_location":{"file":"autoscaling/apis/put-autoscaling-policy.asciidoc","line":88},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"autoscaling/apis/get-autoscaling-capacity.asciidoc","line":22},"digest":"300576666769b78fa6fa26b232837f81","lang":"console","found":["python","js"],"source":"GET /_autoscaling/capacity/"},
{"source_location":{"file":"autoscaling/apis/get-autoscaling-capacity.asciidoc","line":268},"digest":"17566e23c191f1004a2719f2c4242307","lang":"console","found":["python","js"],"source":"GET /_autoscaling/capacity"},
{"source_location":{"file":"autoscaling/apis/get-autoscaling-capacity.asciidoc","line":276},"digest":"8f282b2a1d0b917dd575026b9bc8916e","lang":"console-result","found":[],"source":"{\n policies: {}\n}"},
{"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":37},"digest":"50a9623c153cabe64101efb633e10e6c","lang":"console","found":["python","js"],"source":"DELETE /_autoscaling/policy/"},
{"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":68},"digest":"b620ef4400d2f660fe2c67835938442c","lang":"console","found":["python","ruby","js"],"source":"DELETE /_autoscaling/policy/my_autoscaling_policy"},
{"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":76},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":85},"digest":"90e06d5ec5e454832d8fbd2e73ec2248","lang":"console","found":["python","ruby","js"],"source":"DELETE /_autoscaling/policy/*"},
{"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":93},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"autoscaling/apis/get-autoscaling-policy.asciidoc","line":47},"digest":"fb4799d2fe4011bf6084f89d97d9a4a5","lang":"console","found":["python","js"],"source":"GET /_autoscaling/policy/"},
{"source_location":{"file":"autoscaling/apis/get-autoscaling-policy.asciidoc","line":75},"digest":"0ea146b178561bc8b9002bed8a35641f","lang":"console","found":["python","js"],"source":"GET /_autoscaling/policy/my_autoscaling_policy"},
{"source_location":{"file":"autoscaling/apis/get-autoscaling-policy.asciidoc","line":83},"digest":"7886260d50c9d0a0ea3e034743679439","lang":"console-result","found":[],"source":"{\n \"roles\": ,\n \"deciders\": \n}"},
{"source_location":{"file":"behavioral-analytics/apis/put-analytics-collection.asciidoc","line":55},"digest":"7781b13b0ffff6026d10c4e3ab4a3a51","lang":"console","found":["python","js"],"source":"PUT _application/analytics/my_analytics_collection"},
{"source_location":{"file":"behavioral-analytics/apis/delete-analytics-collection.asciidoc","line":59},"digest":"fab702851e90e945c1b62dec0bb6a205","lang":"console","found":["python","js"],"source":"DELETE _application/analytics/my_analytics_collection/"},
{"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":66},"digest":"73b07b24ab2c4cd304a57f9cbda8b863","lang":"console","found":["python","js"],"source":"GET _application/analytics/"},
{"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":73},"digest":"af9c3fb31b5e85f3d9b969f685029d97","lang":"console-result","found":[],"source":"{\n \"my_analytics_collection\": {\n \"event_data_stream\": {\n \"name\": \"behavioral_analytics-events-my_analytics_collection\"\n }\n },\n \"my_analytics_collection2\": {\n \"event_data_stream\": {\n \"name\": \"behavioral_analytics-events-my_analytics_collection2\"\n }\n }\n}"},
{"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":91},"digest":"82d6de3081de7b0664f44adf2942675a","lang":"console","found":["python","js"],"source":"GET _application/analytics/my_analytics_collection"},
{"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":98},"digest":"35c1e21fd5fad3d290bb4ed3df57f32e","lang":"console-result","found":[],"source":"{\n \"my_analytics_collection\": {\n \"event_data_stream\": {\n \"name\": \"behavioral_analytics-events-my_analytics_collection\"\n }\n }\n}"},
{"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":111},"digest":"87469f8b7e9b965408479d276c3ce8aa","lang":"console","found":["python","js"],"source":"GET _application/analytics/my*"},
{"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":118},"digest":"af9c3fb31b5e85f3d9b969f685029d97","lang":"console-result","found":[],"source":"{\n \"my_analytics_collection\": {\n \"event_data_stream\": {\n \"name\": \"behavioral_analytics-events-my_analytics_collection\"\n }\n },\n \"my_analytics_collection2\": {\n \"event_data_stream\": {\n \"name\": \"behavioral_analytics-events-my_analytics_collection2\"\n }\n }\n}"},
{"source_location":{"file":"behavioral-analytics/apis/post-analytics-collection-event.asciidoc","line":75},"digest":"9afa0844883b7471883aa378a8dd10b4","lang":"console","found":["python","js"],"source":"POST _application/analytics/my_analytics_collection/event/search_click\n{\n \"session\": {\n \"id\": \"1797ca95-91c9-4e2e-b1bd-9c38e6f386a9\"\n },\n \"user\": {\n \"id\": \"5f26f01a-bbee-4202-9298-81261067abbd\"\n },\n \"search\":{\n \"query\": \"search term\",\n \"results\": {\n \"items\": [\n {\n \"document\": {\n \"id\": \"123\",\n \"index\": \"products\"\n }\n }\n ],\n \"total_results\": 10\n },\n \"sort\": {\n \"name\": \"relevance\"\n },\n \"search_application\": \"website\"\n },\n \"document\":{\n \"id\": \"123\",\n \"index\": \"products\"\n }\n}"},
{"source_location":{"file":"cat.asciidoc","line":42},"digest":"cb71332115c92cfb89375abd30b8bbbb","lang":"console","found":["python","ruby","js"],"source":"GET _cat/master?v=true"},
{"source_location":{"file":"cat.asciidoc","line":63},"digest":"602e04051c092cf77de2f75a563661b8","lang":"console","found":["python","ruby","js"],"source":"GET _cat/master?help"},
{"source_location":{"file":"cat.asciidoc","line":91},"digest":"66539dc6011dd2e0282cf81db1f3df27","lang":"console","found":["python","ruby","js"],"source":"GET _cat/nodes?h=ip,port,heapPercent,name"},
{"source_location":{"file":"cat.asciidoc","line":127},"digest":"9e9717d9108ae1425bfacf71c7c44539","lang":"console","found":["python","ruby","js"],"source":"GET _cat/indices?bytes=b&s=store.size:desc,index:asc&v=true"},
{"source_location":{"file":"cat.asciidoc","line":218},"digest":"cbfd6f23f8283e64ec3157c65bb722c4","lang":"console","found":["python","ruby","js"],"source":"GET _cat/templates?v=true&s=order:desc,index_patterns"},
{"source_location":{"file":"cat/alias.asciidoc","line":93},"digest":"78176cd6f570e1534bb40b19e6e900b6","lang":"console","found":["python","ruby","js"],"source":"GET _cat/aliases?v=true"},
{"source_location":{"file":"cat/allocation.asciidoc","line":126},"digest":"0a650401134f07e40216f0d0d1a66a32","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/allocation?v=true"},
{"source_location":{"file":"cat/anomaly-detectors.asciidoc","line":287},"digest":"3f8dc309b63fa0437898107b0d964217","lang":"console","found":["python","ruby","js"],"source":"GET _cat/ml/anomaly_detectors?h=id,s,dpr,mb&v=true"},
{"source_location":{"file":"cat/anomaly-detectors.asciidoc","line":293},"digest":"39271e983530b6eb89f38c4098549021","lang":"console-result","found":[],"source":"id s dpr mb\nhigh_sum_total_sales closed 14022 1.5mb\nlow_request_rate closed 1216 40.5kb\nresponse_code_rates closed 28146 132.7kb\nurl_scanning closed 28146 501.6kb"},
{"source_location":{"file":"cat/component-templates.asciidoc","line":113},"digest":"0dfa9733c94bc43c6f14c7b6984c98fb","lang":"console","found":["python","ruby","js"],"source":"GET _cat/component_templates/my-template-*?v=true&s=name"},
{"source_location":{"file":"cat/count.asciidoc","line":73},"digest":"8141cdaddbe7d794f09f9ee84e46194c","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/count/my-index-000001?v=true"},
{"source_location":{"file":"cat/count.asciidoc","line":95},"digest":"bb9e268ec62d19ca2a6366cbb48fae68","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/count?v=true"},
{"source_location":{"file":"cat/dataframeanalytics.asciidoc","line":137},"digest":"4c712bd5637892a11f16b8975a0a98ed","lang":"console","found":["python","ruby","js"],"source":"GET _cat/ml/data_frame/analytics?v=true"},
{"source_location":{"file":"cat/dataframeanalytics.asciidoc","line":143},"digest":"821d07ed9a229f9d5cc34651124da6e8","lang":"console-result","found":[],"source":"id create_time type state\nclassifier_job_1 2020-02-12T11:49:09.594Z classification stopped\nclassifier_job_2 2020-02-12T11:49:14.479Z classification stopped\nclassifier_job_3 2020-02-12T11:49:16.928Z classification stopped\nclassifier_job_4 2020-02-12T11:49:19.127Z classification stopped\nclassifier_job_5 2020-02-12T11:49:21.349Z classification stopped"},
{"source_location":{"file":"cat/datafeeds.asciidoc","line":130},"digest":"bd7a1417fc27b5a801334ec44462b376","lang":"console","found":["python","ruby","js"],"source":"GET _cat/ml/datafeeds?v=true"},
{"source_location":{"file":"cat/datafeeds.asciidoc","line":136},"digest":"a22d26ed1bb89879243a707a73fa4e1c","lang":"console-result","found":[],"source":"id state buckets.count search.count\ndatafeed-high_sum_total_sales stopped 743 7\ndatafeed-low_request_rate stopped 1457 3\ndatafeed-response_code_rates stopped 1460 18\ndatafeed-url_scanning stopped 1460 18"},
{"source_location":{"file":"cat/fielddata.asciidoc","line":108},"digest":"e0bbfb368eae307e9508ab8d6e9cf23c","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/fielddata?v=true&fields=body"},
{"source_location":{"file":"cat/fielddata.asciidoc","line":132},"digest":"f0816beb8ac21cb0940858b72f6b1946","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/fielddata/body,soul?v=true"},
{"source_location":{"file":"cat/fielddata.asciidoc","line":158},"digest":"d681508a745b2bc777d47ba606d24224","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/fielddata?v=true"},
{"source_location":{"file":"cat/health.asciidoc","line":87},"digest":"a98692a565904ec0783884d81a7b71fc","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/health?v=true"},
{"source_location":{"file":"cat/health.asciidoc","line":107},"digest":"2c0dbdcf400cde5d36f7c9e6c1101011","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/health?v=true&ts=false"},
{"source_location":{"file":"cat/indices.asciidoc","line":119},"digest":"a2b2ce031120dac49b5120b26eea8758","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/indices/my-index-*?v=true&s=index"},
{"source_location":{"file":"cat/master.asciidoc","line":57},"digest":"ed5bfa68d01e079aac94de78dc5caddf","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/master?v=true"},
{"source_location":{"file":"cat/nodeattrs.asciidoc","line":88},"digest":"98855f4bda8726d5d123aeebf7869e47","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodeattrs?v=true"},
{"source_location":{"file":"cat/nodeattrs.asciidoc","line":119},"digest":"87b0b496747ad6c1e4ab4b462128fa1c","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodeattrs?v=true&h=name,pid,attr,value"},
{"source_location":{"file":"cat/nodes.asciidoc","line":361},"digest":"2fee452baff92b409cbfc8d71eb5fc0e","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodes?v=true"},
{"source_location":{"file":"cat/nodes.asciidoc","line":387},"digest":"0dd30ffe2f900dde86cc9bb601d5e68e","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodes?v=true&h=id,ip,port,v,m"},
{"source_location":{"file":"cat/pending_tasks.asciidoc","line":57},"digest":"f298c4eb50ea97b34c57f8756eb350d3","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/pending_tasks?v=true"},
{"source_location":{"file":"cat/plugins.asciidoc","line":56},"digest":"c47f030216a3c89f92f31787fc4d5df5","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/plugins?v=true&s=component&h=name,component,version,description"},
{"source_location":{"file":"cat/recovery.asciidoc","line":89},"digest":"95414139c7b1203e3c2d99a354415801","lang":"console","found":["python","ruby","js"],"source":"GET _cat/recovery?v=true"},
{"source_location":{"file":"cat/recovery.asciidoc","line":118},"digest":"0c2d9ac7e3f28d4d802e21cbbbcfeb34","lang":"console","found":["python","ruby","js"],"source":"GET _cat/recovery?v=true&h=i,s,t,ty,st,shost,thost,f,fp,b,bp"},
{"source_location":{"file":"cat/recovery.asciidoc","line":148},"digest":"d603e76ab70131f7ec6b08758f95a0e3","lang":"console","found":["python","ruby","js"],"source":"GET _cat/recovery?v=true&h=i,s,t,ty,st,rep,snap,f,fp,b,bp"},
{"source_location":{"file":"cat/repositories.asciidoc","line":57},"digest":"05284c8ea91769c09c8db47db8a6629a","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/repositories?v=true"},
{"source_location":{"file":"cat/segments.asciidoc","line":132},"digest":"8de6fed6ba2b94ce6a12ce076be2b4d7","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/segments?v=true"},
{"source_location":{"file":"cat/shards.asciidoc","line":327},"digest":"7e126e2751311db60cfcbb22c9c41caa","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards"},
{"source_location":{"file":"cat/shards.asciidoc","line":352},"digest":"9bb24fe09e3d1c73a71d00b994ba8cfb","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards/my-index-*"},
{"source_location":{"file":"cat/shards.asciidoc","line":373},"digest":"7e126e2751311db60cfcbb22c9c41caa","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards"},
{"source_location":{"file":"cat/shards.asciidoc","line":395},"digest":"7e126e2751311db60cfcbb22c9c41caa","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards"},
{"source_location":{"file":"cat/shards.asciidoc","line":414},"digest":"25c0e66a433a0cd596e0641b752ff6d7","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards?h=index,shard,prirep,state,unassigned.reason"},
{"source_location":{"file":"cat/snapshots.asciidoc","line":135},"digest":"458b2228aed7464d915a5d73cb6b98f6","lang":"console","found":["python","js"],"source":"GET /_cat/snapshots/repo1?v=true&s=id"},
{"source_location":{"file":"cat/tasks.asciidoc","line":84},"digest":"b23ed357dce8ec0014708b7b2850a8fb","lang":"console","found":["python","ruby","js"],"source":"GET _cat/tasks?v=true"},
{"source_location":{"file":"cat/tasks.asciidoc","line":92},"digest":"c2613cffe0ea615550bb2a0ef9c76697","lang":"console-result","found":[],"source":"action task_id parent_task_id type start_time timestamp running_time ip node\ncluster:monitor/tasks/lists[n] oTUltX4IQMOUUVeiohTt8A:124 oTUltX4IQMOUUVeiohTt8A:123 direct 1458585884904 01:48:24 44.1micros 127.0.0.1:9300 oTUltX4IQMOUUVeiohTt8A\ncluster:monitor/tasks/lists oTUltX4IQMOUUVeiohTt8A:123 - transport 1458585884904 01:48:24 186.2micros 127.0.0.1:9300 oTUltX4IQMOUUVeiohTt8A"},
{"source_location":{"file":"cat/templates.asciidoc","line":67},"digest":"9270964d35d172ea5b193c5fc7a473dd","lang":"console","found":["python","ruby","js"],"source":"GET _cat/templates/my-template-*?v=true&s=name"},
{"source_location":{"file":"cat/thread_pool.asciidoc","line":142},"digest":"ad88e46bb06739991498dee248850223","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/thread_pool"},
{"source_location":{"file":"cat/thread_pool.asciidoc","line":178},"digest":"df7ed126d8c92ddd3655c59ce4f305c9","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed"},
{"source_location":{"file":"cat/trainedmodel.asciidoc","line":124},"digest":"f95a4d7ab02bf400246c8822f0245f02","lang":"console","found":["python","js"],"source":"GET _cat/ml/trained_models?h=c,o,l,ct,v&v=true"},
{"source_location":{"file":"cat/trainedmodel.asciidoc","line":131},"digest":"bf7dead020ccabeb72f695804845ef14","lang":"console-result","found":[],"source":"id created_by operations license create_time version\nddddd-1580216177138 _xpack 196 PLATINUM 2020-01-28T12:56:17.138Z 8.0.0\nflight-regress-1580215685537 _xpack 102 PLATINUM 2020-01-28T12:48:05.537Z 8.0.0\nlang_ident_model_1 _xpack 39629 BASIC 2019-12-05T12:28:34.594Z 7.6.0"},
{"source_location":{"file":"cat/transforms.asciidoc","line":197},"digest":"2d8fcb03de417a71e7888bbdd948a692","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/transforms?v=true&format=json"},
{"source_location":{"file":"cat/transforms.asciidoc","line":203},"digest":"191195abbde7ec9fc5b70be3f4e5927d","lang":"console-result","found":[],"source":"[\n {\n \"id\" : \"ecommerce_transform\",\n \"state\" : \"started\",\n \"checkpoint\" : \"1\",\n \"documents_processed\" : \"705\",\n \"checkpoint_progress\" : \"100.00\",\n \"changes_last_detection_time\" : null\n }\n]"},
{"source_location":{"file":"cluster.asciidoc","line":59},"digest":"2c602b4ee8f22cda2cdf19bad31da0af","lang":"console","found":["python","ruby","js"],"source":"# If no filters are given, the default is to select all nodes\nGET /_nodes\n# Explicitly select all nodes\nGET /_nodes/_all\n# Select just the local node\nGET /_nodes/_local\n# Select the elected master node\nGET /_nodes/_master\n# Select nodes by name, which can include wildcards\nGET /_nodes/node_name_goes_here\nGET /_nodes/node_name_goes_*\n# Select nodes by address, which can include wildcards\nGET /_nodes/10.0.0.3,10.0.0.4\nGET /_nodes/10.0.0.*\n# Select nodes by role\nGET /_nodes/_all,master:false\nGET /_nodes/data:true,ingest:true\nGET /_nodes/coordinating_only:true\nGET /_nodes/master:true,voting_only:false\n# Select nodes by custom attribute (e.g. with something like `node.attr.rack: 2` in the configuration file)\nGET /_nodes/rack:2\nGET /_nodes/ra*:2\nGET /_nodes/ra*:2*"},
{"source_location":{"file":"cluster/allocation-explain.asciidoc","line":16},"digest":"1cecd4d87a92427175157d41859df2af","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/allocation/explain\n{\n \"index\": \"my-index-000001\",\n \"shard\": 0,\n \"primary\": false,\n \"current_node\": \"my-node\"\n}"},
{"source_location":{"file":"cluster/allocation-explain.asciidoc","line":108},"digest":"ab8de34fcfc0277901cb39618ecfc9d5","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/allocation/explain\n{\n \"index\": \"my-index-000001\",\n \"shard\": 0,\n \"primary\": true\n}"},
{"source_location":{"file":"cluster/allocation-explain.asciidoc","line":122},"digest":"fcfd33f9e624b6f54245f4067401b2da","lang":"console-result","found":[],"source":"{\n \"index\" : \"my-index-000001\",\n \"shard\" : 0,\n \"primary\" : true,\n \"current_state\" : \"unassigned\", <1>\n \"unassigned_info\" : {\n \"reason\" : \"INDEX_CREATED\", <2>\n \"at\" : \"2017-01-04T18:08:16.600Z\",\n \"last_allocation_status\" : \"no\"\n },\n \"can_allocate\" : \"no\", <3>\n \"allocate_explanation\" : \"Elasticsearch isn't allowed to allocate this shard to any of the nodes in the cluster. Choose a node to which you expect this shard to be allocated, find this node in the node-by-node explanation, and address the reasons which prevent Elasticsearch from allocating this shard there.\",\n \"node_allocation_decisions\" : [\n {\n \"node_id\" : \"8qt2rY-pT6KNZB3-hGfLnw\",\n \"node_name\" : \"node-0\",\n \"transport_address\" : \"127.0.0.1:9401\",\n \"roles\" : [\"data\", \"data_cold\", \"data_content\", \"data_frozen\", \"data_hot\", \"data_warm\", \"ingest\", \"master\", \"ml\", \"remote_cluster_client\", \"transform\"],\n \"node_attributes\" : {},\n \"node_decision\" : \"no\", <4>\n \"weight_ranking\" : 1,\n \"deciders\" : [\n {\n \"decider\" : \"filter\", <5>\n \"decision\" : \"NO\",\n \"explanation\" : \"node does not match index setting [index.routing.allocation.include] filters [_name:\\\"nonexistent_node\\\"]\" <6>\n }\n ]\n }\n ]\n}"},
{"source_location":{"file":"cluster/allocation-explain.asciidoc","line":457},"digest":"4ca15672fc5ab1d80a127d086b6d2837","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/allocation/explain"},
{"source_location":{"file":"cluster/get-settings.asciidoc","line":16},"digest":"4029af36cb3f8202549017f7378803b4","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/settings"},
{"source_location":{"file":"cluster/health.asciidoc","line":48},"digest":"04f5dd677c777bcb15d7d5fa63275fc8","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_cluster/health?wait_for_status=yellow&timeout=50s"},
{"source_location":{"file":"cluster/health.asciidoc","line":165},"digest":"b02e4907c9936c1adc16ccce9d49900d","lang":"console","found":["php","python","ruby","go","js"],"source":"GET _cluster/health"},
{"source_location":{"file":"cluster/health.asciidoc","line":174},"digest":"0ee05130c10e39b652de2e17b9ea769e","lang":"console-result","found":[],"source":"{\n \"cluster_name\" : \"testcluster\",\n \"status\" : \"yellow\",\n \"timed_out\" : false,\n \"number_of_nodes\" : 1,\n \"number_of_data_nodes\" : 1,\n \"active_primary_shards\" : 1,\n \"active_shards\" : 1,\n \"relocating_shards\" : 0,\n \"initializing_shards\" : 0,\n \"unassigned_shards\" : 1,\n \"unassigned_primary_shards\" : 0,\n \"delayed_unassigned_shards\": 0,\n \"number_of_pending_tasks\" : 0,\n \"number_of_in_flight_fetch\": 0,\n \"task_max_waiting_in_queue_millis\": 0,\n \"active_shards_percent_as_number\": 50.0\n}"},
{"source_location":{"file":"cluster/health.asciidoc","line":202},"digest":"e63775a2ff22b945ab9d5f630b80c506","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/health/my-index-000001?level=shards"},
{"source_location":{"file":"health/health.asciidoc","line":471},"digest":"9d79645ab3a9da3f63c54a1516214a5a","lang":"console","found":["python","ruby","js"],"source":"GET _health_report"},
{"source_location":{"file":"health/health.asciidoc","line":479},"digest":"87733deeea4b441b595d19a0f97346f0","lang":"console","found":["python","ruby","js"],"source":"GET _health_report/shards_availability"},
{"source_location":{"file":"health/health.asciidoc","line":486},"digest":"3541d4a85e27b2c3896a7a7ee98b4b37","lang":"console","found":["python","ruby","js"],"source":"GET _health_report?verbose=false"},
{"source_location":{"file":"cluster/reroute.asciidoc","line":200},"digest":"9aedc45f83e022732789e8d796f5a43c","lang":"console","found":["python","js"],"source":"POST /_cluster/reroute\n{\n \"commands\": [\n {\n \"move\": {\n \"index\": \"test\", \"shard\": 0,\n \"from_node\": \"node1\", \"to_node\": \"node2\"\n }\n },\n {\n \"allocate_replica\": {\n \"index\": \"test\", \"shard\": 1,\n \"node\": \"node3\"\n }\n }\n ]\n}"},
{"source_location":{"file":"cluster/state.asciidoc","line":150},"digest":"b66be1daf6c220eb66d94e708b2fae39","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/state/metadata,routing_table/foo,bar"},
{"source_location":{"file":"cluster/state.asciidoc","line":157},"digest":"0fa220ee3fb267020382f74aa70eb1e9","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/state/_all/foo,bar"},
{"source_location":{"file":"cluster/state.asciidoc","line":164},"digest":"a3cfd350c73a104b99a998c6be931408","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/state/blocks"},
{"source_location":{"file":"cluster/stats.asciidoc","line":1542},"digest":"861f5f61409dc87f3671293b87839ff7","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/stats?human&pretty"},
{"source_location":{"file":"cluster/stats.asciidoc","line":1907},"digest":"71c629c44bf3c542a0daacbfc253c4b0","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/stats/nodes/node1,node*,master:false"},
{"source_location":{"file":"cluster/stats.asciidoc","line":1914},"digest":"640dbeecb736bd25f6f2b392b76a7531","lang":"console","found":["python","js"],"source":"GET /_cluster/stats?include_remotes=true"},
{"source_location":{"file":"cluster/update-settings.asciidoc","line":50},"digest":"e5901f48eb8a419b878fc2cb815d8691","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"persistent\" : {\n \"indices.recovery.max_bytes_per_sec\" : \"50mb\"\n }\n}"},
{"source_location":{"file":"cluster/update-settings.asciidoc","line":73},"digest":"ac85e05c0bf2fd5099fbcb9c492f447e","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings?flat_settings=true\n{\n \"transient\" : {\n \"indices.recovery.max_bytes_per_sec\" : \"20mb\"\n }\n}"},
{"source_location":{"file":"cluster/update-settings.asciidoc","line":86},"digest":"06b29721a5f4093e0913bda0e6572e8a","lang":"console-result","found":[],"source":"{\n ...\n \"persistent\" : { },\n \"transient\" : {\n \"indices.recovery.max_bytes_per_sec\" : \"20mb\"\n }\n}"},
{"source_location":{"file":"cluster/update-settings.asciidoc","line":101},"digest":"eff8ecaed1ed084909c64450fc363a20","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"transient\" : {\n \"indices.recovery.max_bytes_per_sec\" : null\n }\n}"},
{"source_location":{"file":"cluster/update-settings.asciidoc","line":114},"digest":"747e59681a8b00d81de236ba61069f6b","lang":"console-result","found":[],"source":"{\n ...\n \"persistent\" : {},\n \"transient\" : {}\n}"},
{"source_location":{"file":"cluster/update-settings.asciidoc","line":128},"digest":"2fc80a2ad1ca8b2dcb13ed1895b8e861","lang":"console","found":["python","ruby","js"],"source":"PUT /_cluster/settings\n{\n \"transient\" : {\n \"indices.recovery.*\" : null\n }\n}"},
{"source_location":{"file":"cluster/nodes-usage.asciidoc","line":71},"digest":"3d6a56dd3d93ece0e3da3fb66b4696d3","lang":"console","found":["python","ruby","js"],"source":"GET _nodes/usage"},
{"source_location":{"file":"cluster/nodes-usage.asciidoc","line":79},"digest":"187cc2082eeaa32d13363bd6cb39a923","lang":"console-result","found":[],"source":"{\n \"_nodes\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"cluster_name\": \"my_cluster\",\n \"nodes\": {\n \"pQHNt5rXTTWNvUgOrdynKg\": {\n \"timestamp\": 1492553961812, <1>\n \"since\": 1492553906606, <2>\n \"rest_actions\": {\n \"nodes_usage_action\": 1,\n \"create_index_action\": 1,\n \"document_get_action\": 1,\n \"search_action\": 19, <3>\n \"nodes_info_action\": 36\n },\n \"aggregations\": {\n ...\n }\n }\n }\n}"},
{"source_location":{"file":"cluster/nodes-hot-threads.asciidoc","line":78},"digest":"77c099c97ea6911e2dd6e996da7dcca0","lang":"console","found":["python","ruby","js"],"source":"GET /_nodes/hot_threads\nGET /_nodes/nodeId1,nodeId2/hot_threads"},
{"source_location":{"file":"cluster/nodes-info.asciidoc","line":199},"digest":"3c4d7ef8422d2db423a8f23effcddaa1","lang":"console","found":["ruby"],"source":"# return just process\nGET /_nodes/process\n\n# same as above\nGET /_nodes/_all/process\n\n# return just jvm and process of only nodeId1 and nodeId2\nGET /_nodes/nodeId1,nodeId2/jvm,process\n\n# same as above\nGET /_nodes/nodeId1,nodeId2/info/jvm,process\n\n# return all the information of only nodeId1 and nodeId2\nGET /_nodes/nodeId1,nodeId2/_all"},
{"source_location":{"file":"cluster/nodes-info.asciidoc","line":226},"digest":"68b64313bf89ec3f2c645da61999dbb4","lang":"console","found":["python","ruby","js"],"source":"GET /_nodes/plugins"},
{"source_location":{"file":"cluster/nodes-info.asciidoc","line":234},"digest":"f24783dc805a57ebf01e1e7d3a661f47","lang":"console-result","found":[],"source":"{\n \"_nodes\": ...\n \"cluster_name\": \"elasticsearch\",\n \"nodes\": {\n \"USpTGYaBSIKbgSUJR2Z9lg\": {\n \"name\": \"node-0\",\n \"transport_address\": \"192.168.17:9300\",\n \"host\": \"node-0.elastic.co\",\n \"ip\": \"192.168.17\",\n \"version\": \"{version}\",\n \"transport_version\": 100000298,\n \"index_version\": 100000074,\n \"component_versions\": {\n \"ml_config_version\": 100000162,\n \"transform_config_version\": 100000096\n },\n \"build_flavor\": \"default\",\n \"build_type\": \"{build_type}\",\n \"build_hash\": \"587409e\",\n \"roles\": [\n \"master\",\n \"data\",\n \"ingest\"\n ],\n \"attributes\": {},\n \"plugins\": [\n {\n \"name\": \"analysis-icu\",\n \"version\": \"{version}\",\n \"description\": \"The ICU Analysis plugin integrates Lucene ICU module into elasticsearch, adding ICU relates analysis components.\",\n \"classname\": \"org.elasticsearch.plugin.analysis.icu.AnalysisICUPlugin\",\n \"has_native_controller\": false\n }\n ],\n \"modules\": [\n {\n \"name\": \"lang-painless\",\n \"version\": \"{version}\",\n \"description\": \"An easy, safe and fast scripting language for Elasticsearch\",\n \"classname\": \"org.elasticsearch.painless.PainlessPlugin\",\n \"has_native_controller\": false\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"cluster/nodes-info.asciidoc","line":306},"digest":"0c464965126cc09e6812716a145991d4","lang":"console","found":["python","ruby","js"],"source":"GET /_nodes/ingest"},
{"source_location":{"file":"cluster/nodes-info.asciidoc","line":314},"digest":"8ffd0eaa15163d4dac27741c97c27931","lang":"console-result","found":[],"source":"{\n \"_nodes\": ...\n \"cluster_name\": \"elasticsearch\",\n \"nodes\": {\n \"USpTGYaBSIKbgSUJR2Z9lg\": {\n \"name\": \"node-0\",\n \"transport_address\": \"192.168.17:9300\",\n \"host\": \"node-0.elastic.co\",\n \"ip\": \"192.168.17\",\n \"version\": \"{version}\",\n \"transport_version\": 100000298,\n \"index_version\": 100000074,\n \"component_versions\": {\n \"ml_config_version\": 100000162,\n \"transform_config_version\": 100000096\n },\n \"build_flavor\": \"default\",\n \"build_type\": \"{build_type}\",\n \"build_hash\": \"587409e\",\n \"roles\": [],\n \"attributes\": {},\n \"ingest\": {\n \"processors\": [\n {\n \"type\": \"date\"\n },\n {\n \"type\": \"uppercase\"\n },\n {\n \"type\": \"set\"\n },\n {\n \"type\": \"lowercase\"\n },\n {\n \"type\": \"gsub\"\n },\n {\n \"type\": \"convert\"\n },\n {\n \"type\": \"remove\"\n },\n {\n \"type\": \"fail\"\n },\n {\n \"type\": \"foreach\"\n },\n {\n \"type\": \"split\"\n },\n {\n \"type\": \"trim\"\n },\n {\n \"type\": \"rename\"\n },\n {\n \"type\": \"join\"\n },\n {\n \"type\": \"append\"\n }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"cluster/prevalidate-node-removal.asciidoc","line":111},"digest":"e35abc9403e4aef7d538ab29ccc363b3","lang":"console","found":["python","js"],"source":"POST /_internal/prevalidate_node_removal?names=node1,node2"},
{"source_location":{"file":"cluster/prevalidate-node-removal.asciidoc","line":119},"digest":"f222f07251dd89d9e8738097d3d7e9fa","lang":"console-result","found":[],"source":"{\n \"is_safe\": false,\n \"message\": \"removal of the following nodes might not be safe: [node2-id]\",\n \"nodes\": [\n {\n \"id\": \"node1-id\",\n \"name\" : \"node1\",\n \"external_id\" : \"node1-externalId\",\n \"result\" : {\n \"is_safe\": true,\n \"reason\": \"no_red_shards_on_node\",\n \"message\": \"\"\n }\n },\n {\n \"id\": \"node2-id\",\n \"name\" : \"node2\",\n \"external_id\" : \"node2-externalId\",\n \"result\" : {\n \"is_safe\": false,\n \"reason\": \"red_shards_on_node\",\n \"message\": \"node contains copies of the following red shards: [[indexName][0]]\"\n }\n }\n ]\n}"},
{"source_location":{"file":"cluster/nodes-reload-secure-settings.asciidoc","line":69},"digest":"6c8bf6d4d68b7756f953be4c07655337","lang":"console","found":["python","js"],"source":"POST _nodes/reload_secure_settings\n{\n \"secure_settings_password\":\"keystore-password\"\n}\nPOST _nodes/nodeId1,nodeId2/reload_secure_settings\n{\n \"secure_settings_password\":\"keystore-password\"\n}"},
{"source_location":{"file":"cluster/nodes-reload-secure-settings.asciidoc","line":88},"digest":"f141b94c4b48dc62c67cffc121320a8d","lang":"console-result","found":[],"source":"{\n \"_nodes\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"cluster_name\": \"my_cluster\",\n \"nodes\": {\n \"pQHNt5rXTTWNvUgOrdynKg\": {\n \"name\": \"node-0\"\n }\n }\n}"},
{"source_location":{"file":"cluster/nodes-stats.asciidoc","line":2538},"digest":"5457c94f0039c6b95c7f9f305d0c6b58","lang":"console","found":["python","ruby","js"],"source":"# return just indices\nGET /_nodes/stats/indices\n\n# return just os and process\nGET /_nodes/stats/os,process\n\n# return just process for node with IP address 10.0.0.1\nGET /_nodes/10.0.0.1/stats/process"},
{"source_location":{"file":"cluster/nodes-stats.asciidoc","line":2556},"digest":"150b5fee5678bf8cdf0932da73eada80","lang":"console","found":["python","ruby","js"],"source":"# Fielddata summarized by node\nGET /_nodes/stats/indices/fielddata?fields=field1,field2\n\n# Fielddata summarized by node and index\nGET /_nodes/stats/indices/fielddata?level=indices&fields=field1,field2\n\n# Fielddata summarized by node, index, and shard\nGET /_nodes/stats/indices/fielddata?level=shards&fields=field1,field2\n\n# You can use wildcards for field names\nGET /_nodes/stats/indices/fielddata?fields=field*"},
{"source_location":{"file":"cluster/nodes-stats.asciidoc","line":2573},"digest":"bd68666ca2e0be12f7624016317a62bc","lang":"console","found":["python","ruby","js"],"source":"# All groups with all stats\nGET /_nodes/stats?groups=_all\n\n# Some groups from just the indices stats\nGET /_nodes/stats/indices?groups=foo,bar"},
{"source_location":{"file":"cluster/nodes-stats.asciidoc","line":2588},"digest":"09769561f082b50558fb7d8707719963","lang":"console","found":["python","ruby","js"],"source":"GET /_nodes/stats/ingest?filter_path=nodes.*.ingest"},
{"source_location":{"file":"cluster/nodes-stats.asciidoc","line":2595},"digest":"ef9c29759459904fef162acd223462c4","lang":"console","found":["python","ruby","js"],"source":"GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest"},
{"source_location":{"file":"cluster/nodes-stats.asciidoc","line":2603},"digest":"f160561efab38e40c2feebf5a2542ab5","lang":"console","found":["python","ruby","js"],"source":"GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest.pipelines"},
{"source_location":{"file":"cluster/cluster-info.asciidoc","line":388},"digest":"74da377bccad43da2b0e276c086d26ba","lang":"console","found":["python","ruby","js"],"source":"# returns all stats info of the cluster\nGET /_info/_all\n\n# returns the http info of the cluster\nGET /_info/http\n\n# returns the http info of the cluster\nGET /_info/ingest\n\n# returns the thread_pool info of the cluster\nGET /_info/thread_pool\n\n# returns the script info of the cluster\nGET /_info/script\n\n# returns the http and ingest info of the cluster\nGET /_info/http,ingest"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":80},"digest":"166bcfc6d5d39defec7ad6aa44d0914b","lang":"console","found":["python","ruby","js"],"source":"GET _tasks <1>\nGET _tasks?nodes=nodeId1,nodeId2 <2>\nGET _tasks?nodes=nodeId1,nodeId2&actions=cluster:* <3>"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":94},"digest":"7c407f3a8d5cb690829b8fa58bb8fd42","lang":"console-result","found":[],"source":"{\n \"nodes\" : {\n \"oTUltX4IQMOUUVeiohTt8A\" : {\n \"name\" : \"H5dfFeA\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"host\" : \"127.0.0.1\",\n \"ip\" : \"127.0.0.1:9300\",\n \"tasks\" : {\n \"oTUltX4IQMOUUVeiohTt8A:124\" : {\n \"node\" : \"oTUltX4IQMOUUVeiohTt8A\",\n \"id\" : 124,\n \"type\" : \"direct\",\n \"action\" : \"cluster:monitor/tasks/lists[n]\",\n \"start_time_in_millis\" : 1458585884904,\n \"running_time_in_nanos\" : 47402,\n \"cancellable\" : false,\n \"parent_task_id\" : \"oTUltX4IQMOUUVeiohTt8A:123\"\n },\n \"oTUltX4IQMOUUVeiohTt8A:123\" : {\n \"node\" : \"oTUltX4IQMOUUVeiohTt8A\",\n \"id\" : 123,\n \"type\" : \"transport\",\n \"action\" : \"cluster:monitor/tasks/lists\",\n \"start_time_in_millis\" : 1458585884904,\n \"running_time_in_nanos\" : 236042,\n \"cancellable\" : false\n }\n }\n }\n }\n}"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":134},"digest":"33610800d9de3c3e6d6b3c611ace7330","lang":"console","found":["python","ruby","js"],"source":"GET _tasks/oTUltX4IQMOUUVeiohTt8A:124"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":144},"digest":"29824032d7d64512d17458fdd687b1f6","lang":"console","found":["python","ruby","js"],"source":"GET _tasks?parent_task_id=oTUltX4IQMOUUVeiohTt8A:123"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":159},"digest":"8f4a7f68f2ca3698abdf20026a2d8c5f","lang":"console","found":["python","ruby","js"],"source":"GET _tasks?actions=*search&detailed"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":167},"digest":"79a552a601e32652d613d001342e2085","lang":"console-result","found":[],"source":"{\n \"nodes\" : {\n \"oTUltX4IQMOUUVeiohTt8A\" : {\n \"name\" : \"H5dfFeA\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"host\" : \"127.0.0.1\",\n \"ip\" : \"127.0.0.1:9300\",\n \"tasks\" : {\n \"oTUltX4IQMOUUVeiohTt8A:464\" : {\n \"node\" : \"oTUltX4IQMOUUVeiohTt8A\",\n \"id\" : 464,\n \"type\" : \"transport\",\n \"action\" : \"indices:data/read/search\",\n \"description\" : \"indices[test], types[test], search_type[QUERY_THEN_FETCH], source[{\\\"query\\\":...}]\",\n \"start_time_in_millis\" : 1483478610008,\n \"running_time_in_nanos\" : 13991383,\n \"cancellable\" : true,\n \"cancelled\" : false\n }\n }\n }\n }\n}"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":223},"digest":"93fb59d3204f37af952198b331fb6bb7","lang":"console","found":["python","ruby","js"],"source":"GET _tasks/oTUltX4IQMOUUVeiohTt8A:12345?wait_for_completion=true&timeout=10s"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":232},"digest":"77447e2966708e92f5e219d43ac3f00d","lang":"console","found":["python","ruby","js"],"source":"GET _tasks?actions=*reindex&wait_for_completion=true&timeout=10s"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":243},"digest":"d89d36741d906a71eca6c144e8d83889","lang":"console","found":["python","ruby","js"],"source":"POST _tasks/oTUltX4IQMOUUVeiohTt8A:12345/_cancel"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":253},"digest":"612c2e975f833de9815651135735eae5","lang":"console","found":["python","ruby","js"],"source":"POST _tasks/_cancel?nodes=nodeId1,nodeId2&actions=*reindex"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":276},"digest":"bd3d710ec50a151453e141691163af72","lang":"console","found":["python","ruby","js"],"source":"GET _tasks?group_by=parents"},
{"source_location":{"file":"cluster/tasks.asciidoc","line":283},"digest":"a3ce0cfe2176f3d8a36959a5916995f0","lang":"console","found":["python","ruby","js"],"source":"GET _tasks?group_by=none"},
{"source_location":{"file":"cluster/voting-exclusions.asciidoc","line":115},"digest":"f6ead39c5505045543b9225deca7367d","lang":"console","found":["python","js"],"source":"POST /_cluster/voting_config_exclusions?node_names=nodeName1,nodeName2"},
{"source_location":{"file":"cluster/voting-exclusions.asciidoc","line":122},"digest":"25cb9e1da00dfd971065ce182467434d","lang":"console","found":["python","js"],"source":"DELETE /_cluster/voting_config_exclusions"},
{"source_location":{"file":"cluster/update-desired-nodes.asciidoc","line":21},"digest":"0470d7101637568b9d3d1239f06325a7","lang":"console","found":["python","js"],"source":"PUT /_internal/desired_nodes//\n{\n \"nodes\" : [\n {\n \"settings\" : {\n \"node.name\" : \"instance-000187\",\n \"node.external_id\": \"instance-000187\",\n \"node.roles\" : [\"data_hot\", \"master\"],\n \"node.attr.data\" : \"hot\",\n \"node.attr.logical_availability_zone\" : \"zone-0\"\n },\n \"processors\" : 8.0,\n \"memory\" : \"58gb\",\n \"storage\" : \"2tb\"\n }\n ]\n}"},
{"source_location":{"file":"cluster/update-desired-nodes.asciidoc","line":80},"digest":"10796a4efa3c2a5e9e50b6bdeb08bbb9","lang":"console","found":["python","js"],"source":"PUT /_internal/desired_nodes/Ywkh3INLQcuPT49f6kcppA/100\n{\n \"nodes\" : [\n {\n \"settings\" : {\n \"node.name\" : \"instance-000187\",\n \"node.external_id\": \"instance-000187\",\n \"node.roles\" : [\"data_hot\", \"master\"],\n \"node.attr.data\" : \"hot\",\n \"node.attr.logical_availability_zone\" : \"zone-0\"\n },\n \"processors\" : 8.0,\n \"memory\" : \"58gb\",\n \"storage\" : \"2tb\"\n }\n ]\n}"},
{"source_location":{"file":"cluster/update-desired-nodes.asciidoc","line":104},"digest":"e730bc06f7da5502e26fb6e6eaf49ce4","lang":"console-result","found":[],"source":"{\n \"replaced_existing_history_id\": false,\n \"dry_run\": false\n}"},
{"source_location":{"file":"cluster/update-desired-nodes.asciidoc","line":118},"digest":"dfcdcd3ea6753dcc391a4a52cf640527","lang":"console","found":["python","js"],"source":"PUT /_internal/desired_nodes/Ywkh3INLQcuPT49f6kcppA/101\n{\n \"nodes\" : [\n {\n \"settings\" : {\n \"node.name\" : \"instance-000187\",\n \"node.external_id\": \"instance-000187\",\n \"node.roles\" : [\"data_hot\", \"master\"],\n \"node.attr.data\" : \"hot\",\n \"node.attr.logical_availability_zone\" : \"zone-0\"\n },\n \"processors_range\" : {\"min\": 8.0, \"max\": 10.0},\n \"memory\" : \"58gb\",\n \"storage\" : \"2tb\"\n }\n ]\n}"},
{"source_location":{"file":"cluster/get-desired-nodes.asciidoc","line":54},"digest":"cf8ca470156698dbf47fdc822d0a714f","lang":"console","found":["python","js"],"source":"GET /_internal/desired_nodes/_latest"},
{"source_location":{"file":"cluster/get-desired-nodes.asciidoc","line":70},"digest":"cf8ca470156698dbf47fdc822d0a714f","lang":"console","found":["python","js"],"source":"GET /_internal/desired_nodes/_latest"},
{"source_location":{"file":"cluster/get-desired-nodes.asciidoc","line":78},"digest":"023bc689ecbbc705efd6e5f429bf96f0","lang":"console-result","found":[],"source":"{\n \"history_id\": ,\n \"version\": ,\n \"nodes\": [\n {\n \"settings\": ,\n \"processors\": ,\n \"memory\": \"\",\n \"storage\": \"\"\n }\n ]\n}"},
{"source_location":{"file":"cluster/delete-desired-nodes.asciidoc","line":45},"digest":"ddf375e4b6175d830fa4097ea0b41536","lang":"console","found":["python","js"],"source":"DELETE /_internal/desired_nodes"},
{"source_location":{"file":"cluster/delete-desired-nodes.asciidoc","line":61},"digest":"ddf375e4b6175d830fa4097ea0b41536","lang":"console","found":["python","js"],"source":"DELETE /_internal/desired_nodes"},
{"source_location":{"file":"cluster/get-desired-balance.asciidoc","line":27},"digest":"97a3216af3d4b4d805d467d9c715cb3e","lang":"console","found":["python","js"],"source":"GET /_internal/desired_balance"},
{"source_location":{"file":"cluster/get-desired-balance.asciidoc","line":35},"digest":"0c685b4dbb4d1b1bbe34ee179f260e3f","lang":"console-result","found":[],"source":"{\n \"stats\": {\n \"computation_active\": false,\n \"computation_submitted\": 5,\n \"computation_executed\": 5,\n \"computation_converged\": 5,\n \"computation_iterations\": 4,\n \"computation_converged_index\": 4,\n \"computation_time_in_millis\": 0,\n \"reconciliation_time_in_millis\": 0\n },\n \"cluster_balance_stats\" : {\n \"shard_count\": 37,\n \"undesired_shard_allocation_count\": 0,\n \"tiers\": {\n \"data_hot\" : {\n \"shard_count\" : {\n \"total\" : 7.0,\n \"min\" : 2.0,\n \"max\" : 3.0,\n \"average\" : 2.3333333333333335,\n \"std_dev\" : 0.4714045207910317\n },\n \"undesired_shard_allocation_count\" : {\n \"total\" : 0.0,\n \"min\" : 0.0,\n \"max\" : 0.0,\n \"average\" : 0.0,\n \"std_dev\" : 0.0\n },\n \"forecast_write_load\" : {\n \"total\" : 21.0,\n \"min\" : 6.0,\n \"max\" : 8.5,\n \"average\" : 7.0,\n \"std_dev\" : 1.0801234497346435\n },\n \"forecast_disk_usage\" : {\n \"total\" : 36.0,\n \"min\" : 10.0,\n \"max\" : 16.0,\n \"average\" : 12.0,\n \"std_dev\" : 2.8284271247461903\n },\n \"actual_disk_usage\" : {\n \"total\" : 36.0,\n \"min\" : 10.0,\n \"max\" : 16.0,\n \"average\" : 12.0,\n \"std_dev\" : 2.8284271247461903\n }\n },\n \"data_warm\" : {\n \"shard_count\" : {\n \"total\" : 3.0,\n \"min\" : 1.0,\n \"max\" : 1.0,\n \"average\" : 1.0,\n \"std_dev\" : 0.0\n },\n \"undesired_shard_allocation_count\" : {\n \"total\" : 0.0,\n \"min\" : 0.0,\n \"max\" : 0.0,\n \"average\" : 0.0,\n \"std_dev\" : 0.0\n },\n \"forecast_write_load\" : {\n \"total\" : 0.0,\n \"min\" : 0.0,\n \"max\" : 0.0,\n \"average\" : 0.0,\n \"std_dev\" : 0.0\n },\n \"forecast_disk_usage\" : {\n \"total\" : 42.0,\n \"min\" : 12.0,\n \"max\" : 18.0,\n \"average\" : 14.0,\n \"std_dev\" : 2.8284271247461903\n },\n \"actual_disk_usage\" : {\n \"total\" : 42.0,\n \"min\" : 12.0,\n \"max\" : 18.0,\n \"average\" : 14.0,\n \"std_dev\" : 2.8284271247461903\n }\n }\n },\n \"nodes\": {\n \"node-1\": {\n \"node_id\": \"UPYt8VwWTt-IADAEbqpLxA\",\n \"roles\": [\"data_content\"],\n \"shard_count\": 10,\n \"undesired_shard_allocation_count\": 0,\n \"forecast_write_load\": 8.5,\n \"forecast_disk_usage_bytes\": 498435,\n \"actual_disk_usage_bytes\": 498435\n },\n \"node-2\": {\n \"node_id\": \"bgC66tboTIeFQ0VgRGI4Gg\",\n \"roles\": [\"data_content\"],\n \"shard_count\": 15,\n \"undesired_shard_allocation_count\": 0,\n \"forecast_write_load\": 3.25,\n \"forecast_disk_usage_bytes\": 384935,\n \"actual_disk_usage_bytes\": 384935\n },\n \"node-3\": {\n \"node_id\": \"2x1VTuSOQdeguXPdN73yRw\",\n \"roles\": [\"data_content\"],\n \"shard_count\": 12,\n \"undesired_shard_allocation_count\": 0,\n \"forecast_write_load\": 6.0,\n \"forecast_disk_usage_bytes\": 648766,\n \"actual_disk_usage_bytes\": 648766\n }\n }\n },\n \"routing_table\": {\n \"test\": {\n \"0\": {\n \"current\": [\n {\n \"state\": \"STARTED\",\n \"primary\": true,\n \"node\": \"UPYt8VwWTt-IADAEbqpLxA\",\n \"node_is_desired\": true,\n \"relocating_node\": null,\n \"relocating_node_is_desired\": null,\n \"shard_id\": 0,\n \"index\": \"test\",\n \"forecast_write_load\": 8.0,\n \"forecast_shard_size_in_bytes\": 1024,\n \"tier_preference\": [\"data_content\"]\n }\n ],\n \"desired\": {\n \"node_ids\": [\n \"UPYt8VwWTt-IADAEbqpLxA\"\n ],\n \"total\": 1,\n \"unassigned\": 0,\n \"ignored\": 0\n }\n },\n \"1\": {\n \"current\": [\n {\n \"state\": \"STARTED\",\n \"primary\": true,\n \"node\": \"2x1VTuSOQdeguXPdN73yRw\",\n \"node_is_desired\": true,\n \"relocating_node\": null,\n \"relocating_node_is_desired\": false,\n \"shard_id\": 1,\n \"index\": \"test\",\n \"forecast_write_load\": null,\n \"forecast_shard_size_in_bytes\": null,\n \"tier_preference\": [\"data_content\"]\n }\n ],\n \"desired\": {\n \"node_ids\": [\n \"2x1VTuSOQdeguXPdN73yRw\"\n ],\n \"total\": 1,\n \"unassigned\": 0,\n \"ignored\": 0\n }\n }\n }\n },\n \"cluster_info\" : {\n \"nodes\" : {\n \"UPYt8VwWTt-IADAEbqpLxA\" : {\n \"node_name\" : \"node-1\",\n \"least_available\" : {\n \"path\" : \"/data\",\n \"total_bytes\" : 1440713945,\n \"used_bytes\" : 1222486407,\n \"free_bytes\" : 218227538,\n \"free_disk_percent\" : 15.1,\n \"used_disk_percent\" : 84.9\n },\n \"most_available\" : {\n \"path\" : \"/data\",\n \"total_bytes\" : 1440713945,\n \"used_bytes\" : 1222486407,\n \"free_bytes\" : 218227538,\n \"free_disk_percent\" : 15.1,\n \"used_disk_percent\" : 84.9\n }\n }\n },\n \"shard_sizes\" : {\n \"[test][0][p]_bytes\" : 1720826288,\n \"[test][1][p]_bytes\" : 1720826288\n },\n \"shard_data_set_sizes\" : {\n \"[test][0][p]_bytes\" : 1720826288,\n \"[test][1][p]_bytes\" : 1720826288\n },\n \"shard_paths\" : {\n \"NodeAndShard[nodeId=UPYt8VwWTt-IADAEbqpLxA, shardId=[test][0]]\" : \"/data\",\n \"NodeAndShard[nodeId=bgC66tboTIeFQ0VgRGI4Gg, shardId=[test][0]]\" : \"/data\"\n },\n \"reserved_sizes\" : []\n }\n}"},
{"source_location":{"file":"cluster/delete-desired-balance.asciidoc","line":27},"digest":"b3756e700d0f6c7e8919003bdf26bc8f","lang":"console","found":["python","js"],"source":"DELETE /_internal/desired_balance"},
{"source_location":{"file":"ccr/apis/get-ccr-stats.asciidoc","line":42},"digest":"9b30a69fec54cf01f7af1b04a6e15239","lang":"console","found":["python","js"],"source":"GET /_ccr/stats"},
{"source_location":{"file":"ccr/apis/get-ccr-stats.asciidoc","line":109},"digest":"9b30a69fec54cf01f7af1b04a6e15239","lang":"console","found":["python","js"],"source":"GET /_ccr/stats"},
{"source_location":{"file":"ccr/apis/get-ccr-stats.asciidoc","line":116},"digest":"8361bb72af84f3fa4199aa78ecfca6af","lang":"console-result","found":[],"source":"{\n \"auto_follow_stats\" : {\n \"number_of_failed_follow_indices\" : 0,\n \"number_of_failed_remote_cluster_state_requests\" : 0,\n \"number_of_successful_follow_indices\" : 1,\n \"recent_auto_follow_errors\" : [],\n \"auto_followed_clusters\" : []\n },\n \"follow_stats\" : {\n \"indices\" : [\n {\n \"index\" : \"follower_index\",\n \"total_global_checkpoint_lag\" : 256,\n \"shards\" : [\n {\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index\" : \"leader_index\",\n \"follower_index\" : \"follower_index\",\n \"shard_id\" : 0,\n \"leader_global_checkpoint\" : 1024,\n \"leader_max_seq_no\" : 1536,\n \"follower_global_checkpoint\" : 768,\n \"follower_max_seq_no\" : 896,\n \"last_requested_seq_no\" : 897,\n \"outstanding_read_requests\" : 8,\n \"outstanding_write_requests\" : 2,\n \"write_buffer_operation_count\" : 64,\n \"follower_mapping_version\" : 4,\n \"follower_settings_version\" : 2,\n \"follower_aliases_version\" : 8,\n \"total_read_time_millis\" : 32768,\n \"total_read_remote_exec_time_millis\" : 16384,\n \"successful_read_requests\" : 32,\n \"failed_read_requests\" : 0,\n \"operations_read\" : 896,\n \"bytes_read\" : 32768,\n \"total_write_time_millis\" : 16384,\n \"write_buffer_size_in_bytes\" : 1536,\n \"successful_write_requests\" : 16,\n \"failed_write_requests\" : 0,\n \"operations_written\" : 832,\n \"read_exceptions\" : [ ],\n \"time_since_last_read_millis\" : 8\n }\n ]\n }\n ]\n }\n}"},
{"source_location":{"file":"ccr/apis/follow/put-follow.asciidoc","line":30},"digest":"73646c12ad33a813ab2280f1dc83500e","lang":"console","found":["python","js"],"source":"PUT //_ccr/follow?wait_for_active_shards=1\n{\n \"remote_cluster\" : \"\",\n \"leader_index\" : \"\"\n}"},
{"source_location":{"file":"ccr/apis/follow/put-follow.asciidoc","line":91},"digest":"ba10b644a4e9a2e7d78744ca607355d0","lang":"console","found":["python","js"],"source":"PUT /.ds-logs-mysql-default_copy-2022-01-01-000001/_ccr/follow\n{\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index\" : \".ds-logs-mysql-default-2022-01-01-000001\",\n \"data_stream_name\": \"logs-mysql-default_copy\"\n}"},
{"source_location":{"file":"ccr/apis/follow-request-body.asciidoc","line":84},"digest":"bb5221ac311cc0e719ab75895be81959","lang":"console-result","found":[],"source":"{\n \"follower_indices\" : [\n {\n \"parameters\" : {\n \"max_read_request_operation_count\" : 5120,\n \"max_read_request_size\" : \"32mb\",\n \"max_outstanding_read_requests\" : 12,\n \"max_write_request_operation_count\" : 5120,\n \"max_write_request_size\" : \"9223372036854775807b\",\n \"max_outstanding_write_requests\" : 9,\n \"max_write_buffer_count\" : 2147483647,\n \"max_write_buffer_size\" : \"512mb\",\n \"max_retry_delay\" : \"500ms\",\n \"read_poll_timeout\" : \"1m\"\n }\n }\n ]\n}\n"},
{"source_location":{"file":"ccr/apis/follow/put-follow.asciidoc","line":114},"digest":"1b3762712c14a19e8c2956b4f530d327","lang":"console","found":["python","js"],"source":"PUT /follower_index/_ccr/follow?wait_for_active_shards=1\n{\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index\" : \"leader_index\",\n \"settings\": {\n \"index.number_of_replicas\": 0\n },\n \"max_read_request_operation_count\" : 1024,\n \"max_outstanding_read_requests\" : 16,\n \"max_read_request_size\" : \"1024k\",\n \"max_write_request_operation_count\" : 32768,\n \"max_write_request_size\" : \"16k\",\n \"max_outstanding_write_requests\" : 8,\n \"max_write_buffer_count\" : 512,\n \"max_write_buffer_size\" : \"512k\",\n \"max_retry_delay\" : \"10s\",\n \"read_poll_timeout\" : \"30s\"\n}"},
{"source_location":{"file":"ccr/apis/follow/put-follow.asciidoc","line":139},"digest":"cd06634b8187698efa6a7990d3713297","lang":"console-result","found":[],"source":"{\n \"follow_index_created\" : true,\n \"follow_index_shards_acked\" : true,\n \"index_following_started\" : true\n}"},
{"source_location":{"file":"ccr/apis/follow/post-pause-follow.asciidoc","line":35},"digest":"483d669ec0768bc4e275a568c6164704","lang":"console","found":["python","js"],"source":"POST //_ccr/pause_follow"},
{"source_location":{"file":"ccr/apis/follow/post-pause-follow.asciidoc","line":73},"digest":"d3263afc69b6f969b9bbd8738cd07b97","lang":"console","found":["python","ruby","js"],"source":"POST /follower_index/_ccr/pause_follow"},
{"source_location":{"file":"ccr/apis/follow/post-pause-follow.asciidoc","line":81},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"ccr/apis/follow/post-resume-follow.asciidoc","line":43},"digest":"109db8ff7b715aca98de8ef1ab7e44ab","lang":"console","found":["python","js"],"source":"POST //_ccr/resume_follow\n{\n}"},
{"source_location":{"file":"ccr/apis/follow-request-body.asciidoc","line":84},"digest":"bb5221ac311cc0e719ab75895be81959","lang":"console-result","found":[],"source":"{\n \"follower_indices\" : [\n {\n \"parameters\" : {\n \"max_read_request_operation_count\" : 5120,\n \"max_read_request_size\" : \"32mb\",\n \"max_outstanding_read_requests\" : 12,\n \"max_write_request_operation_count\" : 5120,\n \"max_write_request_size\" : \"9223372036854775807b\",\n \"max_outstanding_write_requests\" : 9,\n \"max_write_buffer_count\" : 2147483647,\n \"max_write_buffer_size\" : \"512mb\",\n \"max_retry_delay\" : \"500ms\",\n \"read_poll_timeout\" : \"1m\"\n }\n }\n ]\n}\n"},
{"source_location":{"file":"ccr/apis/follow/post-resume-follow.asciidoc","line":90},"digest":"824fded1f9db28906ae7e85ae8de9bd0","lang":"console","found":["python","js"],"source":"POST /follower_index/_ccr/resume_follow\n{\n \"max_read_request_operation_count\" : 1024,\n \"max_outstanding_read_requests\" : 16,\n \"max_read_request_size\" : \"1024k\",\n \"max_write_request_operation_count\" : 32768,\n \"max_write_request_size\" : \"16k\",\n \"max_outstanding_write_requests\" : 8,\n \"max_write_buffer_count\" : 512,\n \"max_write_buffer_size\" : \"512k\",\n \"max_retry_delay\" : \"10s\",\n \"read_poll_timeout\" : \"30s\"\n}"},
{"source_location":{"file":"ccr/apis/follow/post-resume-follow.asciidoc","line":109},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"ccr/apis/follow/post-unfollow.asciidoc","line":39},"digest":"f6d493650b4344f17297b568016fb445","lang":"console","found":["python","js"],"source":"POST //_ccr/unfollow"},
{"source_location":{"file":"ccr/apis/follow/post-unfollow.asciidoc","line":80},"digest":"6a350a17701e8c8158407191f2718b66","lang":"console","found":["python","ruby","js"],"source":"POST /follower_index/_ccr/unfollow"},
{"source_location":{"file":"ccr/apis/follow/post-unfollow.asciidoc","line":88},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"ccr/apis/follow/post-forget-follower.asciidoc","line":41},"digest":"f4fdfe52ecba65eec6beb30d8deb8bbf","lang":"console","found":["python","js"],"source":"POST //_ccr/forget_follower\n{\n \"follower_cluster\" : \"\",\n \"follower_index\" : \"\",\n \"follower_index_uuid\" : \"\",\n \"leader_remote_cluster\" : \"\"\n}"},
{"source_location":{"file":"ccr/apis/follow/post-forget-follower.asciidoc","line":58},"digest":"8e4318a6e2029efb28ad4cf97bbb5b95","lang":"console-result","found":[],"source":"{\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"failed\" : 0,\n \"failures\" : [ ]\n }\n}"},
{"source_location":{"file":"ccr/apis/follow/post-forget-follower.asciidoc","line":139},"digest":"07c07f6d497b1a3012aa4320f830e09e","lang":"console","found":["python","ruby","js"],"source":"POST /leader_index/_ccr/forget_follower\n{\n \"follower_cluster\" : \"follower_cluster\",\n \"follower_index\" : \"follower_index\",\n \"follower_index_uuid\" : \"vYpnaWPRQB6mNspmoCeYyA\",\n \"leader_remote_cluster\" : \"leader_cluster\"\n}"},
{"source_location":{"file":"ccr/apis/follow/post-forget-follower.asciidoc","line":153},"digest":"8e4318a6e2029efb28ad4cf97bbb5b95","lang":"console-result","found":[],"source":"{\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"failed\" : 0,\n \"failures\" : [ ]\n }\n}"},
{"source_location":{"file":"ccr/apis/follow/get-follow-stats.asciidoc","line":41},"digest":"020c95db88ef356093f03be84893ddf9","lang":"console","found":["python","js"],"source":"GET //_ccr/stats"},
{"source_location":{"file":"ccr/apis/follow/get-follow-stats.asciidoc","line":225},"digest":"8e43bb5b7946143e69d397bb81d87df0","lang":"console","found":["python","js"],"source":"GET /follower_index/_ccr/stats"},
{"source_location":{"file":"ccr/apis/follow/get-follow-stats.asciidoc","line":232},"digest":"c1ca24f67c9a08f906dc309250fa53ae","lang":"console-result","found":[],"source":"{\n \"indices\" : [\n {\n \"index\" : \"follower_index\",\n \"total_global_checkpoint_lag\" : 256,\n \"shards\" : [\n {\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index\" : \"leader_index\",\n \"follower_index\" : \"follower_index\",\n \"shard_id\" : 0,\n \"leader_global_checkpoint\" : 1024,\n \"leader_max_seq_no\" : 1536,\n \"follower_global_checkpoint\" : 768,\n \"follower_max_seq_no\" : 896,\n \"last_requested_seq_no\" : 897,\n \"outstanding_read_requests\" : 8,\n \"outstanding_write_requests\" : 2,\n \"write_buffer_operation_count\" : 64,\n \"follower_mapping_version\" : 4,\n \"follower_settings_version\" : 2,\n \"follower_aliases_version\" : 8,\n \"total_read_time_millis\" : 32768,\n \"total_read_remote_exec_time_millis\" : 16384,\n \"successful_read_requests\" : 32,\n \"failed_read_requests\" : 0,\n \"operations_read\" : 896,\n \"bytes_read\" : 32768,\n \"total_write_time_millis\" : 16384,\n \"write_buffer_size_in_bytes\" : 1536,\n \"successful_write_requests\" : 16,\n \"failed_write_requests\" : 0,\n \"operations_written\" : 832,\n \"read_exceptions\" : [ ],\n \"time_since_last_read_millis\" : 8\n }\n ]\n }\n ]\n}"},
{"source_location":{"file":"ccr/apis/follow/get-follow-info.asciidoc","line":34},"digest":"b2440b492149b705ef107137fdccb0c2","lang":"console","found":["python","js"],"source":"GET //_ccr/info"},
{"source_location":{"file":"ccr/apis/follow/get-follow-info.asciidoc","line":149},"digest":"a520168c1c8b454a8f102d6a13027c73","lang":"console","found":["python","ruby","js"],"source":"GET /follower_index/_ccr/info"},
{"source_location":{"file":"ccr/apis/follow/get-follow-info.asciidoc","line":156},"digest":"4b7385d7eccd7afdc0553abe4e7abfc7","lang":"console-result","found":[],"source":"{\n \"follower_indices\": [\n {\n \"follower_index\": \"follower_index\",\n \"remote_cluster\": \"remote_cluster\",\n \"leader_index\": \"leader_index\",\n \"status\": \"active\",\n \"parameters\": {\n \"max_read_request_operation_count\": 5120,\n \"max_read_request_size\": \"32mb\",\n \"max_outstanding_read_requests\": 12,\n \"max_write_request_operation_count\": 5120,\n \"max_write_request_size\": \"9223372036854775807b\",\n \"max_outstanding_write_requests\": 9,\n \"max_write_buffer_count\": 2147483647,\n \"max_write_buffer_size\": \"512mb\",\n \"max_retry_delay\": \"500ms\",\n \"read_poll_timeout\": \"1m\"\n }\n }\n ]\n}"},
{"source_location":{"file":"ccr/apis/follow/get-follow-info.asciidoc","line":198},"digest":"e844de023bb0a267b39d9fa524495a80","lang":"console-result","found":[],"source":"{\n \"follower_indices\": [\n {\n \"follower_index\": \"follower_index\",\n \"remote_cluster\": \"remote_cluster\",\n \"leader_index\": \"leader_index\",\n \"status\": \"paused\"\n }\n ]\n}"},
{"source_location":{"file":"ccr/apis/auto-follow/put-auto-follow-pattern.asciidoc","line":20},"digest":"99c1cfe60f3ccf5bf3abd24c31ed9034","lang":"console","found":["python","js"],"source":"PUT /_ccr/auto_follow/\n{\n \"remote_cluster\" : \"\",\n \"leader_index_patterns\" :\n [\n \"\"\n ],\n \"leader_index_exclusion_patterns\":\n [\n \"\"\n ],\n \"follow_index_pattern\" : \"\"\n}"},
{"source_location":{"file":"ccr/apis/follow-request-body.asciidoc","line":84},"digest":"bb5221ac311cc0e719ab75895be81959","lang":"console-result","found":[],"source":"{\n \"follower_indices\" : [\n {\n \"parameters\" : {\n \"max_read_request_operation_count\" : 5120,\n \"max_read_request_size\" : \"32mb\",\n \"max_outstanding_read_requests\" : 12,\n \"max_write_request_operation_count\" : 5120,\n \"max_write_request_size\" : \"9223372036854775807b\",\n \"max_outstanding_write_requests\" : 9,\n \"max_write_buffer_count\" : 2147483647,\n \"max_write_buffer_size\" : \"512mb\",\n \"max_retry_delay\" : \"500ms\",\n \"read_poll_timeout\" : \"1m\"\n }\n }\n ]\n}\n"},
{"source_location":{"file":"ccr/apis/auto-follow/put-auto-follow-pattern.asciidoc","line":119},"digest":"90c087560ea6c0b7405f710971c86ef0","lang":"console","found":["python","js"],"source":"PUT /_ccr/auto_follow/my_auto_follow_pattern\n{\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index_patterns\" :\n [\n \"leader_index*\"\n ],\n \"follow_index_pattern\" : \"{{leader_index}}-follower\",\n \"settings\": {\n \"index.number_of_replicas\": 0\n },\n \"max_read_request_operation_count\" : 1024,\n \"max_outstanding_read_requests\" : 16,\n \"max_read_request_size\" : \"1024k\",\n \"max_write_request_operation_count\" : 32768,\n \"max_write_request_size\" : \"16k\",\n \"max_outstanding_write_requests\" : 8,\n \"max_write_buffer_count\" : 512,\n \"max_write_buffer_size\" : \"512k\",\n \"max_retry_delay\" : \"10s\",\n \"read_poll_timeout\" : \"30s\"\n}"},
{"source_location":{"file":"ccr/apis/auto-follow/put-auto-follow-pattern.asciidoc","line":148},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"ccr/apis/auto-follow/delete-auto-follow-pattern.asciidoc","line":39},"digest":"2f2580ea420e1836d922fe48fa8ada97","lang":"console","found":["python","js"],"source":"DELETE /_ccr/auto_follow/"},
{"source_location":{"file":"ccr/apis/auto-follow/delete-auto-follow-pattern.asciidoc","line":75},"digest":"d4ef6ac034c4d42cb75d830ec69146e6","lang":"console","found":["python","ruby","js"],"source":"DELETE /_ccr/auto_follow/my_auto_follow_pattern"},
{"source_location":{"file":"ccr/apis/auto-follow/delete-auto-follow-pattern.asciidoc","line":83},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"ccr/apis/auto-follow/get-auto-follow-pattern.asciidoc","line":50},"digest":"5e124875d97c27362ae858160ae1c6d5","lang":"console","found":["python","ruby","js"],"source":"GET /_ccr/auto_follow/"},
{"source_location":{"file":"ccr/apis/auto-follow/get-auto-follow-pattern.asciidoc","line":55},"digest":"d56a9d89282df56adbbc34b91390ac17","lang":"console","found":["python","js"],"source":"GET /_ccr/auto_follow/"},
{"source_location":{"file":"ccr/apis/auto-follow/get-auto-follow-pattern.asciidoc","line":93},"digest":"79f33e05b203eb46eef7958fbc95ef77","lang":"console","found":["python","ruby","js"],"source":"GET /_ccr/auto_follow/my_auto_follow_pattern"},
{"source_location":{"file":"ccr/apis/auto-follow/get-auto-follow-pattern.asciidoc","line":101},"digest":"33ae5e9b7711813adc3c8f90230f372c","lang":"console-result","found":[],"source":"{\n \"patterns\": [\n {\n \"name\": \"my_auto_follow_pattern\",\n \"pattern\": {\n \"active\": true,\n \"remote_cluster\" : \"remote_cluster\",\n \"leader_index_patterns\" :\n [\n \"leader_index*\"\n ],\n \"leader_index_exclusion_patterns\":\n [\n \"leader_index_001\"\n ],\n \"follow_index_pattern\" : \"{{leader_index}}-follower\"\n }\n }\n ]\n}"},
{"source_location":{"file":"ccr/apis/auto-follow/pause-auto-follow-pattern.asciidoc","line":85},"digest":"b25256ed615cd837461b0bfa590526b7","lang":"console","found":["python","ruby","js"],"source":"POST /_ccr/auto_follow/my_auto_follow_pattern/pause"},
{"source_location":{"file":"ccr/apis/auto-follow/pause-auto-follow-pattern.asciidoc","line":93},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"ccr/apis/auto-follow/resume-auto-follow-pattern.asciidoc","line":86},"digest":"f2e854b6c99659ccc1824e86c096e433","lang":"console","found":["python","ruby","js"],"source":"POST /_ccr/auto_follow/my_auto_follow_pattern/resume"},
{"source_location":{"file":"ccr/apis/auto-follow/resume-auto-follow-pattern.asciidoc","line":94},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"connector/apis/create-connector-api.asciidoc","line":27},"digest":"342ddf9121aeddd82fea2464665e25da","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector\n{\n \"index_name\": \"search-google-drive\",\n \"name\": \"My Connector\",\n \"service_type\": \"google_drive\"\n}"},
{"source_location":{"file":"connector/apis/create-connector-api.asciidoc","line":118},"digest":"0d30077cd34e93377a3a86f2ebd69415","lang":"console","found":["python","js"],"source":"PUT _connector/my-connector\n{\n \"index_name\": \"search-google-drive\",\n \"name\": \"My Connector\",\n \"description\": \"My Connector to sync data to Elastic index from Google Drive\",\n \"service_type\": \"google_drive\",\n \"language\": \"en\"\n}"},
{"source_location":{"file":"connector/apis/create-connector-api.asciidoc","line":133},"digest":"c7996d4fad1bea53bc7e3a5bd5dda91f","lang":"console-result","found":[],"source":"{\n \"result\": \"created\",\n \"id\": \"my-connector\"\n}"},
{"source_location":{"file":"connector/apis/delete-connector-api.asciidoc","line":79},"digest":"7752b677825523bfb0c38ad9325a6d47","lang":"console","found":["python","js"],"source":"DELETE _connector/another-connector?delete_sync_jobs=true"},
{"source_location":{"file":"connector/apis/delete-connector-api.asciidoc","line":84},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"connector/apis/get-connector-api.asciidoc","line":74},"digest":"f2a5f77f929cc7b893b80f4bd5b1a192","lang":"console","found":["python","ruby","js"],"source":"GET _connector/my-connector"},
{"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":88},"digest":"a960b43e720b4934edb74ab4b085ca77","lang":"console","found":["python","ruby","js"],"source":"GET _connector"},
{"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":95},"digest":"d6a21afa4a94b9baa734eac430940bcf","lang":"console","found":["python","js"],"source":"GET _connector?from=0&size=2"},
{"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":102},"digest":"c18100d62ed31bc9e05f62900156e6a8","lang":"console","found":["python","js"],"source":"GET _connector?index_name=search-google-drive"},
{"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":110},"digest":"1e26353d546d733634187b8c3a7837a7","lang":"console","found":["python","js"],"source":"GET _connector?service_type=sharepoint_online"},
{"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":117},"digest":"eb54506fbc71a7d250e86b22d0600114","lang":"console","found":["python","js"],"source":"GET _connector?service_type=sharepoint_online,google_drive"},
{"source_location":{"file":"connector/apis/update-connector-api-key-id-api.asciidoc","line":93},"digest":"04412d11783dac25b5fd2ec5407078a3","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_api_key_id\n{\n \"api_key_id\": \"my-api-key-id\",\n \"api_key_secret_id\": \"my-connector-secret-id\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-api-key-id-api.asciidoc","line":102},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":315},"digest":"9c021836acf7c0370e289f611325868d","lang":"console","found":["python","js"],"source":"PUT _connector/my-spo-connector/_configuration\n{\n \"values\": {\n \"tenant_id\": \"my-tenant-id\",\n \"tenant_name\": \"my-sharepoint-site\",\n \"client_id\": \"foo\",\n \"secret_value\": \"bar\",\n \"site_collections\": \"*\"\n }\n}"},
{"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":329},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":342},"digest":"c0ddfb2e6315f5bcf0d3ef414b5bbed3","lang":"console","found":["python","js"],"source":"PUT _connector/my-spo-connector/_configuration\n{\n \"values\": {\n \"secret_value\": \"foo-bar\"\n }\n}"},
{"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":352},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-index-name-api.asciidoc","line":82},"digest":"6606d46685d10377b996b5f20f1229b5","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_index_name\n{\n \"index_name\": \"data-from-my-google-drive\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-index-name-api.asciidoc","line":90},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-features-api.asciidoc","line":97},"digest":"741180473ba526219578ad0422f4fe81","lang":"console","found":["python","js"],"source":"PUT _connector/my-connector/_features\n{\n \"features\": {\n \"document_level_security\": {\n \"enabled\": true\n },\n \"incremental_sync\": {\n \"enabled\": true\n },\n \"sync_rules\": {\n \"advanced\": {\n \"enabled\": false\n },\n \"basic\": {\n \"enabled\": true\n }\n }\n }\n}"},
{"source_location":{"file":"connector/apis/update-connector-features-api.asciidoc","line":120},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-features-api.asciidoc","line":129},"digest":"9ae268058c0ea32ef8926568e011c728","lang":"console","found":["python","js"],"source":"PUT _connector/my-connector/_features\n{\n \"features\": {\n \"document_level_security\": {\n \"enabled\": true\n }\n }\n}"},
{"source_location":{"file":"connector/apis/update-connector-features-api.asciidoc","line":141},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-filtering-api.asciidoc","line":122},"digest":"0ade87c8cb0e3c188d2e3dce279d5cc2","lang":"console","found":["python","js"],"source":"PUT _connector/my-g-drive-connector/_filtering\n{\n \"rules\": [\n {\n \"field\": \"file_extension\",\n \"id\": \"exclude-txt-files\",\n \"order\": 0,\n \"policy\": \"exclude\",\n \"rule\": \"equals\",\n \"value\": \"txt\"\n },\n {\n \"field\": \"_\",\n \"id\": \"DEFAULT\",\n \"order\": 1,\n \"policy\": \"include\",\n \"rule\": \"regex\",\n \"value\": \".*\"\n }\n ]\n}"},
{"source_location":{"file":"connector/apis/update-connector-filtering-api.asciidoc","line":147},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-filtering-api.asciidoc","line":156},"digest":"fd620f09dbce62c6f0f603a366623607","lang":"console","found":["python","js"],"source":"PUT _connector/my-sql-connector/_filtering\n{\n \"advanced_snippet\": {\n \"value\": [{\n \"tables\": [\n \"users\",\n \"orders\"\n ],\n \"query\": \"SELECT users.id AS id, orders.order_id AS order_id FROM users JOIN orders ON users.id = orders.user_id\"\n }]\n }\n}"},
{"source_location":{"file":"connector/apis/update-connector-filtering-api.asciidoc","line":172},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-name-description-api.asciidoc","line":85},"digest":"c00c9412609832ebceb9e786dd9542df","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_name\n{\n \"name\": \"Custom connector\",\n \"description\": \"This is my customized connector\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-name-description-api.asciidoc","line":94},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-pipeline-api.asciidoc","line":94},"digest":"41175d304e660da2931764f9a4418fd3","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_pipeline\n{\n \"pipeline\": {\n \"extract_binary_content\": true,\n \"name\": \"my-connector-pipeline\",\n \"reduce_whitespace\": true,\n \"run_ml_inference\": true\n }\n}"},
{"source_location":{"file":"connector/apis/update-connector-pipeline-api.asciidoc","line":107},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-scheduling-api.asciidoc","line":96},"digest":"8e89fee0be6a436c4e3d7c152659c47e","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_scheduling\n{\n \"scheduling\": {\n \"access_control\": {\n \"enabled\": true,\n \"interval\": \"0 10 0 * * ?\"\n },\n \"full\": {\n \"enabled\": true,\n \"interval\": \"0 20 0 * * ?\"\n },\n \"incremental\": {\n \"enabled\": false,\n \"interval\": \"0 30 0 * * ?\"\n }\n }\n}"},
{"source_location":{"file":"connector/apis/update-connector-scheduling-api.asciidoc","line":117},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-scheduling-api.asciidoc","line":126},"digest":"eb96d7dd5f3116a50f7a86b729f1a934","lang":"console","found":["python","js"],"source":"PUT _connector/my-connector/_scheduling\n{\n \"scheduling\": {\n \"full\": {\n \"enabled\": true,\n \"interval\": \"0 10 0 * * ?\"\n }\n }\n}"},
{"source_location":{"file":"connector/apis/update-connector-scheduling-api.asciidoc","line":139},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-service-type-api.asciidoc","line":84},"digest":"c21eb4bc30087188241cbba6b6b89999","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_service_type\n{\n \"service_type\": \"sharepoint_online\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-service-type-api.asciidoc","line":92},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/create-connector-sync-job-api.asciidoc","line":21},"digest":"405ac843a9156d3cab374e199cac87fb","lang":"console","found":["python","ruby","js"],"source":"POST _connector/_sync_job\n{\n \"id\": \"connector-id\",\n \"job_type\": \"full\",\n \"trigger_method\": \"on_demand\"\n}"},
{"source_location":{"file":"connector/apis/cancel-connector-sync-job-api.asciidoc","line":57},"digest":"9b0f34d122a4b348dc86df7410d6ebb6","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/_sync_job/my-connector-sync-job-id/_cancel"},
{"source_location":{"file":"connector/apis/delete-connector-sync-job-api.asciidoc","line":52},"digest":"370b297ed3433577adf53e64f572d89d","lang":"console","found":["python","ruby","js"],"source":"DELETE _connector/_sync_job/my-connector-sync-job-id"},
{"source_location":{"file":"connector/apis/delete-connector-sync-job-api.asciidoc","line":58},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"connector/apis/get-connector-sync-job-api.asciidoc","line":51},"digest":"f785b5d17eb59f8d2a353c2dee66eb5b","lang":"console","found":["python","ruby","js"],"source":"GET _connector/_sync_job/my-connector-sync-job"},
{"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":56},"digest":"cdce7bc083dfb36e6f1d465a5c9d5049","lang":"console","found":["python","ruby","js"],"source":"GET _connector/_sync_job"},
{"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":64},"digest":"33d480fc6812ada75756cf5337bc9092","lang":"console","found":["python","ruby","js"],"source":"GET _connector/_sync_job?from=0&size=2"},
{"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":71},"digest":"6b8c5c8145c287c4fc535fa57ccf95a7","lang":"console","found":["python","ruby","js"],"source":"GET _connector/_sync_job?status=pending"},
{"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":78},"digest":"c12d6e962f083c728f9397932f05202e","lang":"console","found":["python","ruby","js"],"source":"GET _connector/_sync_job?connector_id=connector-1"},
{"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":85},"digest":"2b1c560f00d9bcf5caaf56c03f6b5962","lang":"console","found":["python","ruby","js"],"source":"GET _connector/_sync_job?job_type=full,incremental"},
{"source_location":{"file":"connector/apis/check-in-connector-api.asciidoc","line":75},"digest":"d03139a851888db53f8b7affd85eb495","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_check_in"},
{"source_location":{"file":"connector/apis/check-in-connector-api.asciidoc","line":80},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-error-api.asciidoc","line":87},"digest":"ecfd0d94dd14ef05dfa861f22544b388","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_error\n{\n \"error\": \"Houston, we have a problem!\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-error-api.asciidoc","line":95},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-last-sync-api.asciidoc","line":122},"digest":"640621cea39cdeeb76fbc95bff31a18d","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_last_sync\n{\n \"last_access_control_sync_error\": \"Houston, we have a problem!\",\n \"last_access_control_sync_scheduled_at\": \"2023-11-09T15:13:08.231Z\",\n \"last_access_control_sync_status\": \"pending\",\n \"last_deleted_document_count\": 42,\n \"last_incremental_sync_scheduled_at\": \"2023-11-09T15:13:08.231Z\",\n \"last_indexed_document_count\": 42,\n \"last_sync_error\": \"Houston, we have a problem!\",\n \"last_sync_scheduled_at\": \"2024-11-09T15:13:08.231Z\",\n \"last_sync_status\": \"completed\",\n \"last_synced\": \"2024-11-09T15:13:08.231Z\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-last-sync-api.asciidoc","line":139},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-status-api.asciidoc","line":82},"digest":"430705509f8367aef92be413f702520b","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/my-connector/_status\n{\n \"status\": \"needs_configuration\"\n}"},
{"source_location":{"file":"connector/apis/update-connector-status-api.asciidoc","line":90},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"},
{"source_location":{"file":"connector/apis/check-in-connector-sync-job-api.asciidoc","line":56},"digest":"365256ebdfa47b449780771d9beba8d9","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/_sync_job/my-connector-sync-job/_check_in"},
{"source_location":{"file":"connector/apis/claim-connector-sync-job-api.asciidoc","line":69},"digest":"a75765e3fb130421dde6c3c2f12e8acb","lang":"console","found":["python","js"],"source":"PUT _connector/_sync_job/my-connector-sync-job-id/_claim\n{\n \"worker_hostname\": \"some-machine\"\n}"},
{"source_location":{"file":"connector/apis/set-connector-sync-job-error-api.asciidoc","line":63},"digest":"8bf1e7a6d529547906ba8b1d6501fa0c","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/_sync_job/my-connector-sync-job/_error\n{\n \"error\": \"some-error\"\n}"},
{"source_location":{"file":"connector/apis/set-connector-sync-job-stats-api.asciidoc","line":81},"digest":"90083d93e46fad2524755b8d4d1306fc","lang":"console","found":["python","ruby","js"],"source":"PUT _connector/_sync_job/my-connector-sync-job/_stats\n{\n \"deleted_document_count\": 10,\n \"indexed_document_count\": 20,\n \"indexed_document_volume\": 1000,\n \"total_document_count\": 2000,\n \"last_seen\": \"2023-01-02T10:00:00Z\"\n}"},
{"source_location":{"file":"indices/create-data-stream.asciidoc","line":28},"digest":"e51a86b666f447cda5f634547a8e1a4a","lang":"console","found":["python","ruby","js"],"source":"PUT /_data_stream/my-data-stream"},
{"source_location":{"file":"indices/delete-data-stream.asciidoc","line":32},"digest":"f823e4b87ed181b27f73ebc51351f0ee","lang":"console","found":["python","ruby","js"],"source":"DELETE /_data_stream/my-data-stream"},
{"source_location":{"file":"indices/get-data-stream.asciidoc","line":77},"digest":"3337c817ebd438254505a31e91c91724","lang":"console","found":["python","ruby","js"],"source":"GET /_data_stream/my-data-stream"},
{"source_location":{"file":"indices/get-data-stream.asciidoc","line":286},"digest":"200f6d4cc7b9c300b8962a119e03873f","lang":"console","found":["python","ruby","js"],"source":"GET _data_stream/my-data-stream*"},
{"source_location":{"file":"indices/get-data-stream.asciidoc","line":293},"digest":"70bcc36ad17ae5d57b97759fef621838","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \".ds-my-data-stream-2099.03.07-000001\",\n \"index_uuid\": \"xCEhwsp8Tey0-FLNFYVwSg\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"managed_by\": \"Index Lifecycle Management\"\n },\n {\n \"index_name\": \".ds-my-data-stream-2099.03.08-000002\",\n \"index_uuid\": \"PA_JquKGSiKcAKBA8DJ5gw\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"managed_by\": \"Index Lifecycle Management\"\n }\n ],\n \"generation\": 2,\n \"_meta\": {\n \"my-meta-field\": \"foo\"\n },\n \"status\": \"GREEN\",\n \"next_generation_managed_by\": \"Index Lifecycle Management\",\n \"prefer_ilm\": true,\n \"template\": \"my-index-template\",\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"hidden\": false,\n \"system\": false,\n \"allow_custom_routing\": false,\n \"replicated\": false,\n \"rollover_on_write\": false\n },\n {\n \"name\": \"my-data-stream-two\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \".ds-my-data-stream-two-2099.03.08-000001\",\n \"index_uuid\": \"3liBu2SYS5axasRt6fUIpA\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"managed_by\": \"Index Lifecycle Management\"\n }\n ],\n \"generation\": 1,\n \"_meta\": {\n \"my-meta-field\": \"foo\"\n },\n \"status\": \"YELLOW\",\n \"next_generation_managed_by\": \"Index Lifecycle Management\",\n \"prefer_ilm\": true,\n \"template\": \"my-index-template\",\n \"ilm_policy\": \"my-lifecycle-policy\",\n \"hidden\": false,\n \"system\": false,\n \"allow_custom_routing\": false,\n \"replicated\": false,\n \"rollover_on_write\": false\n }\n ]\n}"},
{"source_location":{"file":"indices/migrate-to-data-stream.asciidoc","line":59},"digest":"563dfbf421422c837ee6929ae2ede876","lang":"console","found":["python","js"],"source":"POST /_data_stream/_migrate/my-logs"},
{"source_location":{"file":"indices/data-stream-stats.asciidoc","line":57},"digest":"fc190fbbf71949331266dcb3f46a1198","lang":"console","found":["python","ruby","js"],"source":"GET /_data_stream/my-data-stream/_stats"},
{"source_location":{"file":"indices/data-stream-stats.asciidoc","line":182},"digest":"fccbddfba9f975de7e321732874dfb78","lang":"console","found":["python","ruby","js"],"source":"GET /_data_stream/my-data-stream*/_stats?human=true"},
{"source_location":{"file":"indices/data-stream-stats.asciidoc","line":189},"digest":"c24c8a5a56dfdeae85b95a3ae1e48644","lang":"console-result","found":[],"source":"{\n \"_shards\": {\n \"total\": 10,\n \"successful\": 5,\n \"failed\": 0\n },\n \"data_stream_count\": 2,\n \"backing_indices\": 5,\n \"total_store_size\": \"7kb\",\n \"total_store_size_bytes\": 7268,\n \"data_streams\": [\n {\n \"data_stream\": \"my-data-stream\",\n \"backing_indices\": 3,\n \"store_size\": \"3.7kb\",\n \"store_size_bytes\": 3772,\n \"maximum_timestamp\": 1607512028000\n },\n {\n \"data_stream\": \"my-data-stream-two\",\n \"backing_indices\": 2,\n \"store_size\": \"3.4kb\",\n \"store_size_bytes\": 3496,\n \"maximum_timestamp\": 1607425567000\n }\n ]\n}"},
{"source_location":{"file":"data-streams/promote-data-stream-api.asciidoc","line":32},"digest":"e4b6a6a921c97b4c0bbe97bd89f4cf33","lang":"console","found":["python","ruby","js"],"source":"POST /_data_stream/_promote/my-data-stream"},
{"source_location":{"file":"data-streams/modify-data-streams-api.asciidoc","line":17},"digest":"51f1a0930362594b231a5bcc17673768","lang":"console","found":["python","js"],"source":"POST _data_stream/_modify\n{\n \"actions\": [\n {\n \"remove_backing_index\": {\n \"data_stream\": \"my-logs\",\n \"index\": \".ds-my-logs-2099.01.01-000001\"\n }\n },\n {\n \"add_backing_index\": {\n \"data_stream\": \"my-logs\",\n \"index\": \"index-to-add\"\n }\n }\n ]\n}"},
{"source_location":{"file":"data-streams/lifecycle/apis/put-lifecycle.asciidoc","line":84},"digest":"cd67ad2c09fafef2d441c3502d0bb3d7","lang":"console","found":["python","ruby","js"],"source":"PUT _data_stream/my-data-stream/_lifecycle\n{\n \"data_retention\": \"7d\"\n}"},
{"source_location":{"file":"data-streams/lifecycle/apis/put-lifecycle.asciidoc","line":96},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"data-streams/lifecycle/apis/put-lifecycle.asciidoc","line":111},"digest":"e2a753029b450942a3228e3003a55a7d","lang":"console","found":["python","ruby","js"],"source":"PUT _data_stream/my-weather-sensor-data-stream/_lifecycle\n{\n \"downsampling\": [\n {\n \"after\": \"1d\",\n \"fixed_interval\": \"10m\"\n },\n {\n \"after\": \"7d\",\n \"fixed_interval\": \"1d\"\n }\n ]\n}"},
{"source_location":{"file":"data-streams/lifecycle/apis/get-lifecycle.asciidoc","line":148},"digest":"9fda516a5dc60ba477b970eaad4429db","lang":"console","found":["python","ruby","js"],"source":"GET _data_stream/my-data-stream*/_lifecycle"},
{"source_location":{"file":"data-streams/lifecycle/apis/get-lifecycle.asciidoc","line":155},"digest":"0a19a99784416c0427be3dd0575c9fa2","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream-1\",\n \"lifecycle\": {\n \"enabled\": true,\n \"data_retention\": \"7d\",\n \"effective_retention\": \"7d\",\n \"retention_determined_by\": \"data_stream_configuration\"\n }\n },\n {\n \"name\": \"my-data-stream-2\",\n \"lifecycle\": {\n \"enabled\": true,\n \"data_retention\": \"7d\",\n \"effective_retention\": \"7d\",\n \"retention_determined_by\": \"data_stream_configuration\"\n }\n }\n ],\n \"global_retention\": {}\n}"},
{"source_location":{"file":"data-streams/lifecycle/apis/delete-lifecycle.asciidoc","line":83},"digest":"6fe6c095c6995e0f2214f5f3bc85d74e","lang":"console","found":["python","ruby","js"],"source":"DELETE _data_stream/my-data-stream/_lifecycle"},
{"source_location":{"file":"data-streams/lifecycle/apis/delete-lifecycle.asciidoc","line":90},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"data-streams/lifecycle/apis/explain-lifecycle.asciidoc","line":56},"digest":"35be136ba9df7474a5521631e2a385b1","lang":"console","found":["python","ruby","js"],"source":"GET .ds-metrics-2023.03.22-000001/_lifecycle/explain"},
{"source_location":{"file":"data-streams/lifecycle/apis/explain-lifecycle.asciidoc","line":66},"digest":"6046fb327c6c982ca082c2bf1e21fe2e","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \".ds-metrics-2023.03.22-000001\": {\n \"index\" : \".ds-metrics-2023.03.22-000001\",\n \"managed_by_lifecycle\" : true, <1>\n \"index_creation_date_millis\" : 1679475563571, <2>\n \"time_since_index_creation\" : \"843ms\", <3>\n \"rollover_date_millis\" : 1679475564293, <4>\n \"time_since_rollover\" : \"121ms\", <5>\n \"lifecycle\" : { }, <6>\n \"generation_time\" : \"121ms\" <7>\n }\n}"},
{"source_location":{"file":"data-streams/lifecycle/apis/explain-lifecycle.asciidoc","line":105},"digest":"b4bec3a4279978704d20daf0156e1eae","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \".ds-metrics-2023.03.22-000001\": {\n \"index\" : \".ds-metrics-2023.03.22-000001\",\n \"managed_by_lifecycle\" : true,\n \"index_creation_date_millis\" : 1679475563571,\n \"time_since_index_creation\" : \"843ms\",\n \"lifecycle\" : {\n \"enabled\": true\n },\n \"error\": \"{\\\"type\\\":\\\"validation_exception\\\",\\\"reason\\\":\\\"Validation Failed: 1: this action would add [2] shards, but this cluster\ncurrently has [4]/[3] maximum normal shards open;\\\"}\" <1>\n }\n}"},
{"source_location":{"file":"data-streams/lifecycle/apis/get-lifecycle-stats.asciidoc","line":69},"digest":"615dc36f0978c676624fb7d1144b4899","lang":"console","found":[],"source":"GET _lifecycle/stats?human&pretty"},
{"source_location":{"file":"data-streams/lifecycle/apis/get-lifecycle-stats.asciidoc","line":77},"digest":"d5e888391ab48b0411305693548f7c66","lang":"console-result","found":[],"source":"{\n \"last_run_duration_in_millis\": 2,\n \"last_run_duration\": \"2ms\",\n \"time_between_starts_in_millis\": 9998,\n \"time_between_starts\": \"9.99s\",\n \"data_streams_count\": 2,\n \"data_streams\": [\n {\n \"name\": \"my-data-stream\",\n \"backing_indices_in_total\": 2,\n \"backing_indices_in_error\": 0\n },\n {\n \"name\": \"my-other-stream\",\n \"backing_indices_in_total\": 2,\n \"backing_indices_in_error\": 1\n }\n ]\n}"},
{"source_location":{"file":"indices/downsample-data-stream.asciidoc","line":65},"digest":"424fbf082cd4affb84439abfc916b597","lang":"console","found":["python","ruby","js"],"source":"POST /my-time-series-index/_downsample/my-downsampled-time-series-index\n{\n \"fixed_interval\": \"1d\"\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":227},"digest":"2fa45d74ba9933188c4728f8a9e5372c","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"action.auto_create_index\": \"my-index-000001,index10,-index1*,+ind*\" <1>\n }\n}\n\nPUT _cluster/settings\n{\n \"persistent\": {\n \"action.auto_create_index\": \"false\" <2>\n }\n}\n\nPUT _cluster/settings\n{\n \"persistent\": {\n \"action.auto_create_index\": \"true\" <3>\n }\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":277},"digest":"b2e1e802fc3c5fbeb4190af7d598c23e","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_doc/\n{\n \"@timestamp\": \"2099-11-15T13:12:00\",\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":291},"digest":"a09537c3c90b97ff0043a665449e16be","lang":"console-result","found":[],"source":"{\n \"_shards\": {\n \"total\": 2,\n \"failed\": 0,\n \"successful\": 2\n },\n \"_index\": \"my-index-000001\",\n \"_id\": \"W0tpsmIBdwcYyG50zbta\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"result\": \"created\"\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":328},"digest":"2a247e36a86a373bcbf478ac9a588f44","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_doc?routing=kimchy\n{\n \"@timestamp\": \"2099-11-15T13:12:00\",\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":456},"digest":"2d01a9e5550b525496757f1bd7f0e706","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1?timeout=5m\n{\n \"@timestamp\": \"2099-11-15T13:12:00\",\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":487},"digest":"aaa7a61b07861235fb6e489b946c705c","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1?version=2&version_type=external\n{\n \"user\": {\n \"id\": \"elkbee\"\n }\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":544},"digest":"3b8ab7027e0d616fb432acd8813e086c","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1\n{\n \"@timestamp\": \"2099-11-15T13:12:00\",\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":558},"digest":"831f0defd362c229000352332447ca4d","lang":"console-result","found":[],"source":"{\n \"_shards\": {\n \"total\": 2,\n \"failed\": 0,\n \"successful\": 2\n },\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"result\": \"created\"\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":579},"digest":"5b58007f10700ec7934580f034404652","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_create/1\n{\n \"@timestamp\": \"2099-11-15T13:12:00\",\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n}"},
{"source_location":{"file":"docs/index_.asciidoc","line":594},"digest":"4bc744b0f33b322741a8caf6d8d7d765","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1?op_type=create\n{\n \"@timestamp\": \"2099-11-15T13:12:00\",\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n}"},
{"source_location":{"file":"docs/get.asciidoc","line":16},"digest":"d87175daed2327565d4325528c6d8b38","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_doc/0"},
{"source_location":{"file":"docs/get.asciidoc","line":65},"digest":"4113c57384aa37c58d11579e20c00760","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_doc/0?_source=false"},
{"source_location":{"file":"docs/get.asciidoc","line":77},"digest":"e5f89a04f50df707a0a53ec0f2eecbbd","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities"},
{"source_location":{"file":"docs/get.asciidoc","line":85},"digest":"0308cbd85281f95fc458042afe3f587d","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_doc/0?_source=*.id"},
{"source_location":{"file":"docs/get.asciidoc","line":98},"digest":"8c9081dc738d1290fd76071b283fcaec","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_doc/2?routing=user1"},
{"source_location":{"file":"docs/get.asciidoc","line":235},"digest":"d87175daed2327565d4325528c6d8b38","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_doc/0"},
{"source_location":{"file":"docs/get.asciidoc","line":243},"digest":"6333f082863b14e8161c311484032fa9","lang":"console-result","found":[],"source":"{\n \"_index\": \"my-index-000001\",\n \"_id\": \"0\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"found\": true,\n \"_source\": {\n \"@timestamp\": \"2099-11-15T14:12:12\",\n \"http\": {\n \"request\": {\n \"method\": \"get\"\n },\n \"response\": {\n \"status_code\": 200,\n \"bytes\": 1070000\n },\n \"version\": \"1.1\"\n },\n \"source\": {\n \"ip\": \"127.0.0.1\"\n },\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n }\n}"},
{"source_location":{"file":"docs/get.asciidoc","line":278},"digest":"74a80c28737a0648db0dfe7f049d12f2","lang":"console","found":["python","ruby","js"],"source":"HEAD my-index-000001/_doc/0"},
{"source_location":{"file":"docs/get.asciidoc","line":294},"digest":"f9c8245cc13770dff052b6759a749efa","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_source/1"},
{"source_location":{"file":"docs/get.asciidoc","line":303},"digest":"c0ff8b3db994c4736f7579dde18097d2","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities"},
{"source_location":{"file":"docs/get.asciidoc","line":313},"digest":"a3e79d6c626a490341c5b731acbb4a5d","lang":"console","found":["python","ruby","js"],"source":"HEAD my-index-000001/_source/1"},
{"source_location":{"file":"docs/get.asciidoc","line":327},"digest":"d5533f08f5cc0479f07a46c761f0786b","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"counter\": {\n \"type\": \"integer\",\n \"store\": false\n },\n \"tags\": {\n \"type\": \"keyword\",\n \"store\": true\n }\n }\n }\n}"},
{"source_location":{"file":"docs/get.asciidoc","line":348},"digest":"137709a0a0dc38d6094291c9fc75b804","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/1\n{\n \"counter\": 1,\n \"tags\": [ \"production\" ]\n}"},
{"source_location":{"file":"docs/get.asciidoc","line":360},"digest":"69a08e7bdcc616f3bdcb8ae842d9e30e","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_doc/1?stored_fields=tags,counter"},
{"source_location":{"file":"docs/get.asciidoc","line":368},"digest":"0d85a5dfccce75148466301d09a90c2d","lang":"console-result","found":[],"source":"{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"_seq_no\" : 22,\n \"_primary_term\" : 1,\n \"found\": true,\n \"fields\": {\n \"tags\": [\n \"production\"\n ]\n }\n}"},
{"source_location":{"file":"docs/get.asciidoc","line":391},"digest":"138f7703c47ddf63633fdf5ca9bc7fa4","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_doc/2?routing=user1\n{\n \"counter\" : 1,\n \"tags\" : [\"env2\"]\n}"},
{"source_location":{"file":"docs/get.asciidoc","line":401},"digest":"25a0dad6547d432f5a3d394528f1c138","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_doc/2?routing=user1&stored_fields=tags,counter"},
{"source_location":{"file":"docs/get.asciidoc","line":409},"digest":"82322a915bc91be5f7d4a1c4704c04b2","lang":"console-result","found":[],"source":"{\n \"_index\": \"my-index-000001\",\n \"_id\": \"2\",\n \"_version\": 1,\n \"_seq_no\" : 13,\n \"_primary_term\" : 1,\n \"_routing\": \"user1\",\n \"found\": true,\n \"fields\": {\n \"tags\": [\n \"env2\"\n ]\n }\n}"},
{"source_location":{"file":"docs/delete.asciidoc","line":88},"digest":"0c892d328b73d38396aaef6d9cbcd36b","lang":"console","found":["python","ruby","js"],"source":"DELETE /my-index-000001/_doc/1?routing=shard-1"},
{"source_location":{"file":"docs/delete.asciidoc","line":144},"digest":"c87038b96ab06d9a741a130f94de4f02","lang":"console","found":["python","ruby","js"],"source":"DELETE /my-index-000001/_doc/1?timeout=5m"},
{"source_location":{"file":"docs/delete.asciidoc","line":186},"digest":"3db2b5a6424aa92ecab7a8640c38685a","lang":"console","found":["python","ruby","js"],"source":"DELETE /my-index-000001/_doc/1"},
{"source_location":{"file":"docs/delete.asciidoc","line":194},"digest":"20f2756a78e91d0e2168a1de9d538019","lang":"console-result","found":[],"source":"{\n \"_shards\": {\n \"total\": 2,\n \"failed\": 0,\n \"successful\": 2\n },\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 2,\n \"_primary_term\": 1,\n \"_seq_no\": 5,\n \"result\": \"deleted\"\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":10},"digest":"ac73895ca1882cd1ac65b1facfbb5c63","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_delete_by_query\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"elkbee\"\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":280},"digest":"a24b5dac82c15039ba563caf3db32ce3","lang":"console-result","found":[],"source":"{\n \"took\" : 147,\n \"timed_out\": false,\n \"total\": 119,\n \"deleted\": 119,\n \"batches\": 1,\n \"version_conflicts\": 0,\n \"noops\": 0,\n \"retries\": {\n \"bulk\": 0,\n \"search\": 0\n },\n \"throttled_millis\": 0,\n \"requests_per_second\": -1.0,\n \"throttled_until_millis\": 0,\n \"failures\" : [ ]\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":367},"digest":"a0c868282c0514a342ad04998cdc2175","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_delete_by_query?conflicts=proceed\n{\n \"query\": {\n \"match_all\": {}\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":380},"digest":"7841b65a3bb880ed66cec453925a50cf","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001,my-index-000002/_delete_by_query\n{\n \"query\": {\n \"match_all\": {}\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":394},"digest":"5330191ec9f11281ebf6867bf11c58ae","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_delete_by_query?routing=1\n{\n \"query\": {\n \"range\" : {\n \"age\" : {\n \"gte\" : 10\n }\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":412},"digest":"e9f9e184499a793828233e536fac0487","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_delete_by_query?scroll_size=5000\n{\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":427},"digest":"cdd7127681254f4d614cc075f9e6fbcf","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_delete_by_query\n{\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"max_docs\": 1\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":448},"digest":"4824a823a830a2a5d990eacfd783ac22","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_delete_by_query\n{\n \"slice\": {\n \"id\": 0,\n \"max\": 2\n },\n \"query\": {\n \"range\": {\n \"http.response.bytes\": {\n \"lt\": 2000000\n }\n }\n }\n}\nPOST my-index-000001/_delete_by_query\n{\n \"slice\": {\n \"id\": 1,\n \"max\": 2\n },\n \"query\": {\n \"range\": {\n \"http.response.bytes\": {\n \"lt\": 2000000\n }\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":483},"digest":"7b7a828c21c856a3cbc41fd2f85108bf","lang":"console","found":["python","ruby","js"],"source":"GET _refresh\nPOST my-index-000001/_search?size=0&filter_path=hits.total\n{\n \"query\": {\n \"range\": {\n \"http.response.bytes\": {\n \"lt\": 2000000\n }\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":501},"digest":"8521cf9682eb1df34207da8ab5de12ad","lang":"console-result","found":[],"source":"{\n \"hits\": {\n \"total\" : {\n \"value\": 0,\n \"relation\": \"eq\"\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":521},"digest":"9cfbc41bb7b6fbdb26550dd2789c274e","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_delete_by_query?refresh&slices=5\n{\n \"query\": {\n \"range\": {\n \"http.response.bytes\": {\n \"lt\": 2000000\n }\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":538},"digest":"b58b17975bbce307b2ccce5051a449e8","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_search?size=0&filter_path=hits.total\n{\n \"query\": {\n \"range\": {\n \"http.response.bytes\": {\n \"lt\": 2000000\n }\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":555},"digest":"8521cf9682eb1df34207da8ab5de12ad","lang":"console-result","found":[],"source":"{\n \"hits\": {\n \"total\" : {\n \"value\": 0,\n \"relation\": \"eq\"\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":606},"digest":"52c7e4172a446c394210a07c464c57d2","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _delete_by_query/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":620},"digest":"216848930c2d344fe0bed0daa70c35b9","lang":"console","found":["php","python","ruby","go","js"],"source":"GET _tasks?detailed=true&actions=*/delete/byquery"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":628},"digest":"5c29776e201b54f7442ddb0438479741","lang":"console-result","found":[],"source":"{\n \"nodes\" : {\n \"r1A2WoRbTwKZ516z6NEs5A\" : {\n \"name\" : \"r1A2WoR\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"host\" : \"127.0.0.1\",\n \"ip\" : \"127.0.0.1:9300\",\n \"attributes\" : {\n \"testattr\" : \"test\",\n \"portsfile\" : \"true\"\n },\n \"tasks\" : {\n \"r1A2WoRbTwKZ516z6NEs5A:36619\" : {\n \"node\" : \"r1A2WoRbTwKZ516z6NEs5A\",\n \"id\" : 36619,\n \"type\" : \"transport\",\n \"action\" : \"indices:data/write/delete/byquery\",\n \"status\" : { <1>\n \"total\" : 6154,\n \"updated\" : 0,\n \"created\" : 0,\n \"deleted\" : 3500,\n \"batches\" : 36,\n \"version_conflicts\" : 0,\n \"noops\" : 0,\n \"retries\": 0,\n \"throttled_millis\": 0\n },\n \"description\" : \"\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":674},"digest":"be3a6431d01846950dc1a39a7a6a1faa","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_tasks/r1A2WoRbTwKZ516z6NEs5A:36619"},
{"source_location":{"file":"docs/delete-by-query.asciidoc","line":694},"digest":"18ddb7e7a4bcafd449df956e828ed7a8","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel"},
{"source_location":{"file":"docs/update.asciidoc","line":111},"digest":"b0fa301cd3c6b9db128e34114f0c1e8f","lang":"console","found":["python","ruby","go","js"],"source":"PUT test/_doc/1\n{\n \"counter\" : 1,\n \"tags\" : [\"red\"]\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":124},"digest":"b3a711c3deddcdb8a3f6623184a8b794","lang":"console","found":["python","ruby","go","js"],"source":"POST test/_update/1\n{\n \"script\" : {\n \"source\": \"ctx._source.counter += params.count\",\n \"lang\": \"painless\",\n \"params\" : {\n \"count\" : 4\n }\n }\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":141},"digest":"cdf400299acd1c7b1b7bb42e284e3d08","lang":"console","found":["python","ruby","go","js"],"source":"POST test/_update/1\n{\n \"script\": {\n \"source\": \"ctx._source.tags.add(params.tag)\",\n \"lang\": \"painless\",\n \"params\": {\n \"tag\": \"blue\"\n }\n }\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":161},"digest":"8a1f6cffa653800282c0ae160ee375bc","lang":"console","found":["python","ruby","go","js"],"source":"POST test/_update/1\n{\n \"script\": {\n \"source\": \"if (ctx._source.tags.contains(params.tag)) { ctx._source.tags.remove(ctx._source.tags.indexOf(params.tag)) }\",\n \"lang\": \"painless\",\n \"params\": {\n \"tag\": \"blue\"\n }\n }\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":178},"digest":"eb14cedd3bdda9ffef3c118f3d528dcd","lang":"console","found":["python","ruby","go","js"],"source":"POST test/_update/1\n{\n \"script\" : \"ctx._source.new_field = 'value_of_new_field'\"\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":188},"digest":"9bae72e974bdeb56007d9104e73eff92","lang":"console","found":["python","ruby","go","js"],"source":"POST test/_update/1\n{\n \"script\" : \"ctx._source.remove('new_field')\"\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":211},"digest":"a78dfb844d385405d4b0fb0e09b4a5a4","lang":"console","found":["python","ruby","js"],"source":"POST test/_update/1\n{\n \"script\": \"ctx._source['my-object'].remove('my-subfield')\"\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":224},"digest":"c9ce07a7d3d8a317f08535bdd3aa69a3","lang":"console","found":["python","ruby","js"],"source":"POST test/_update/1\n{\n \"script\": {\n \"source\": \"if (ctx._source.tags.contains(params.tag)) { ctx.op = 'delete' } else { ctx.op = 'noop' }\",\n \"lang\": \"painless\",\n \"params\": {\n \"tag\": \"green\"\n }\n }\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":244},"digest":"a0f4e902d18460337684d74ea932fbe9","lang":"console","found":["python","ruby","go","js"],"source":"POST test/_update/1\n{\n \"doc\": {\n \"name\": \"new_name\"\n }\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":263},"digest":"a0f4e902d18460337684d74ea932fbe9","lang":"console","found":["python","ruby","go","js"],"source":"POST test/_update/1\n{\n \"doc\": {\n \"name\": \"new_name\"\n }\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":277},"digest":"431214115cc3e3677d1ab0cd25950fee","lang":"console-result","found":[],"source":"{\n \"_shards\": {\n \"total\": 0,\n \"successful\": 0,\n \"failed\": 0\n },\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_version\": 2,\n \"_primary_term\": 1,\n \"_seq_no\": 1,\n \"result\": \"noop\"\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":296},"digest":"41dbd79f624b998d01c10921e9a35c4b","lang":"console","found":["python","ruby","go","js"],"source":"POST test/_update/1\n{\n \"doc\": {\n \"name\": \"new_name\"\n },\n \"detect_noop\": false\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":315},"digest":"bcd1afb793240b1dddd9fa5d3f21192b","lang":"console","found":["js"],"source":"POST /test/_update/1\n{\n \"doc\": {\n \"product_price\": 100\n },\n \"upsert\": {\n \"product_price\": 50\n }\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":335},"digest":"be5fef0640c3a650ee96f84e3376a1be","lang":"console","found":["python","ruby","js"],"source":"POST test/_update/1\n{\n \"scripted_upsert\": true,\n \"script\": {\n \"source\": \"\"\"\n if ( ctx.op == 'create' ) {\n ctx._source.counter = params.count\n } else {\n ctx._source.counter += params.count\n }\n \"\"\",\n \"params\": {\n \"count\": 4\n }\n },\n \"upsert\": {}\n}"},
{"source_location":{"file":"docs/update.asciidoc","line":364},"digest":"7b5c231526846f2f7b98d78f3656ae6a","lang":"console","found":["python","ruby","go","js"],"source":"POST test/_update/1\n{\n \"doc\": {\n \"name\": \"new_name\"\n },\n \"doc_as_upsert\": true\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":18},"digest":"7ae434b3667c589a8e70fe560f4ee3f9","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update_by_query?conflicts=proceed"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":331},"digest":"e58833449d01379df20ad06dc28144d8","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update_by_query?conflicts=proceed\n{\n \"query\": { <1>\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":350},"digest":"69c07cfdf8054c301cd6186c5d71aa02","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001,my-index-000002/_update_by_query"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":358},"digest":"946522c26d02bebf5c527ba28e55c724","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update_by_query?routing=1"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":367},"digest":"bd23c3a03907b1238dcb07ab9eecae7b","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update_by_query?scroll_size=100"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":375},"digest":"2c3dff44904d3d73ff47f1afe89c7f86","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update_by_query\n{\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"max_docs\": 1\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":409},"digest":"44da736ce0e1587c1e7c45eee606ead7","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update_by_query\n{\n \"script\": {\n \"source\": \"ctx._source.count++\",\n \"lang\": \"painless\"\n },\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":450},"digest":"4b1044259a6d777d87529eae25675005","lang":"console","found":["python","ruby","js"],"source":"PUT _ingest/pipeline/set-foo\n{\n \"description\" : \"sets foo\",\n \"processors\" : [ {\n \"set\" : {\n \"field\": \"foo\",\n \"value\": \"bar\"\n }\n } ]\n}\nPOST my-index-000001/_update_by_query?pipeline=set-foo"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":474},"digest":"7df191cc7f814e410a4ac7261065e6ef","lang":"console","found":["php","python","ruby","go","js"],"source":"GET _tasks?detailed=true&actions=*byquery"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":482},"digest":"f1296279330128c256ce88082d1de1e0","lang":"console-result","found":[],"source":"{\n \"nodes\" : {\n \"r1A2WoRbTwKZ516z6NEs5A\" : {\n \"name\" : \"r1A2WoR\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"host\" : \"127.0.0.1\",\n \"ip\" : \"127.0.0.1:9300\",\n \"attributes\" : {\n \"testattr\" : \"test\",\n \"portsfile\" : \"true\"\n },\n \"tasks\" : {\n \"r1A2WoRbTwKZ516z6NEs5A:36619\" : {\n \"node\" : \"r1A2WoRbTwKZ516z6NEs5A\",\n \"id\" : 36619,\n \"type\" : \"transport\",\n \"action\" : \"indices:data/write/update/byquery\",\n \"status\" : { <1>\n \"total\" : 6154,\n \"updated\" : 3500,\n \"created\" : 0,\n \"deleted\" : 0,\n \"batches\" : 4,\n \"version_conflicts\" : 0,\n \"noops\" : 0,\n \"retries\": {\n \"bulk\": 0,\n \"search\": 0\n },\n \"throttled_millis\": 0\n },\n \"description\" : \"\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":532},"digest":"be3a6431d01846950dc1a39a7a6a1faa","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_tasks/r1A2WoRbTwKZ516z6NEs5A:36619"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":552},"digest":"18ddb7e7a4bcafd449df956e828ed7a8","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _tasks/r1A2WoRbTwKZ516z6NEs5A:36619/_cancel"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":571},"digest":"bdb30dd52d32f50994008f4f9c0da5f0","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _update_by_query/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":591},"digest":"ddf56782ecc7eaeb3115e150c4830013","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update_by_query\n{\n \"slice\": {\n \"id\": 0,\n \"max\": 2\n },\n \"script\": {\n \"source\": \"ctx._source['extra'] = 'test'\"\n }\n}\nPOST my-index-000001/_update_by_query\n{\n \"slice\": {\n \"id\": 1,\n \"max\": 2\n },\n \"script\": {\n \"source\": \"ctx._source['extra'] = 'test'\"\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":618},"digest":"b515427f8685ca7d79176def672d19fa","lang":"console","found":["python","ruby","js"],"source":"GET _refresh\nPOST my-index-000001/_search?size=0&q=extra:test&filter_path=hits.total"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":627},"digest":"7792734b746340ee3771a7931f0ef7bd","lang":"console-result","found":[],"source":"{\n \"hits\": {\n \"total\": {\n \"value\": 120,\n \"relation\": \"eq\"\n }\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":647},"digest":"be5b415d7f33d6f0397ac2f8b5c10521","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_update_by_query?refresh&slices=5\n{\n \"script\": {\n \"source\": \"ctx._source['extra'] = 'test'\"\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":660},"digest":"d1fde25de1980b7e84fa878289fd0bcb","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_search?size=0&q=extra:test&filter_path=hits.total"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":668},"digest":"7792734b746340ee3771a7931f0ef7bd","lang":"console-result","found":[],"source":"{\n \"hits\": {\n \"total\": {\n \"value\": 120,\n \"relation\": \"eq\"\n }\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":716},"digest":"2fe28d9a91b3081a9ec4601af8fb7b1c","lang":"console","found":["php","python","ruby","go","js"],"source":"PUT test\n{\n \"mappings\": {\n \"dynamic\": false, <1>\n \"properties\": {\n \"text\": {\"type\": \"text\"}\n }\n }\n}\n\nPOST test/_doc?refresh\n{\n \"text\": \"words words\",\n \"flag\": \"bar\"\n}\nPOST test/_doc?refresh\n{\n \"text\": \"words words\",\n \"flag\": \"foo\"\n}\nPUT test/_mapping <2>\n{\n \"properties\": {\n \"text\": {\"type\": \"text\"},\n \"flag\": {\"type\": \"text\", \"analyzer\": \"keyword\"}\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":754},"digest":"abd4fc3ce7784413a56fe2dcfe2809b5","lang":"console","found":["php","python","ruby","go","js"],"source":"POST test/_search?filter_path=hits.total\n{\n \"query\": {\n \"match\": {\n \"flag\": \"foo\"\n }\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":767},"digest":"9c462a848a35c5bc6f82c3b55a80d56f","lang":"console-result","found":[],"source":"{\n \"hits\" : {\n \"total\": {\n \"value\": 0,\n \"relation\": \"eq\"\n }\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":781},"digest":"97babc8d19ef0866774576716eb6d19e","lang":"console","found":["php","python","ruby","go","js"],"source":"POST test/_update_by_query?refresh&conflicts=proceed\nPOST test/_search?filter_path=hits.total\n{\n \"query\": {\n \"match\": {\n \"flag\": \"foo\"\n }\n }\n}"},
{"source_location":{"file":"docs/update-by-query.asciidoc","line":795},"digest":"fd2e9d72fadf8ef650d0ab51ede61525","lang":"console-result","found":[],"source":"{\n \"hits\" : {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n }\n }\n}"},
{"source_location":{"file":"docs/multi-get.asciidoc","line":16},"digest":"dcc02ad69da0a5aa10c4e53b34be8ec0","lang":"console","found":["python","ruby","js"],"source":"GET /_mget\n{\n \"docs\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\"\n },\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"2\"\n }\n ]\n}"},
{"source_location":{"file":"docs/multi-get.asciidoc","line":144},"digest":"4a1951844bd39f26961bfc965f3432b1","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_mget\n{\n \"docs\": [\n {\n \"_id\": \"1\"\n },\n {\n \"_id\": \"2\"\n }\n ]\n}"},
{"source_location":{"file":"docs/multi-get.asciidoc","line":162},"digest":"59f0ad2a6f97200e98e8eb079cdd8334","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_mget\n{\n \"ids\" : [\"1\", \"2\"]\n}"},
{"source_location":{"file":"docs/multi-get.asciidoc","line":184},"digest":"fd352b472d44d197022a46fce90b6ecb","lang":"console","found":["python","ruby","js"],"source":"GET /_mget\n{\n \"docs\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_source\": false\n },\n {\n \"_index\": \"test\",\n \"_id\": \"2\",\n \"_source\": [ \"field3\", \"field4\" ]\n },\n {\n \"_index\": \"test\",\n \"_id\": \"3\",\n \"_source\": {\n \"include\": [ \"user\" ],\n \"exclude\": [ \"user.location\" ]\n }\n }\n ]\n}"},
{"source_location":{"file":"docs/multi-get.asciidoc","line":222},"digest":"4cb44556b8c699f43489b17b42ddd475","lang":"console","found":["python","ruby","js"],"source":"GET /_mget\n{\n \"docs\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"stored_fields\": [ \"field1\", \"field2\" ]\n },\n {\n \"_index\": \"test\",\n \"_id\": \"2\",\n \"stored_fields\": [ \"field3\", \"field4\" ]\n }\n ]\n}"},
{"source_location":{"file":"docs/multi-get.asciidoc","line":245},"digest":"64d24f4b2a57dba48092dafe3eb68ad1","lang":"console","found":["python","ruby","js"],"source":"GET /test/_mget?stored_fields=field1,field2\n{\n \"docs\": [\n {\n \"_id\": \"1\"\n },\n {\n \"_id\": \"2\",\n \"stored_fields\": [ \"field3\", \"field4\" ]\n }\n ]\n}"},
{"source_location":{"file":"docs/multi-get.asciidoc","line":268},"digest":"8330b2ea6317769e52d0647ba434b354","lang":"console","found":["python","ruby","js"],"source":"GET /_mget?routing=key1\n{\n \"docs\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"routing\": \"key2\"\n },\n {\n \"_index\": \"test\",\n \"_id\": \"2\"\n }\n ]\n}"},
{"source_location":{"file":"docs/bulk.asciidoc","line":17},"digest":"ae9ccfaa146731ab9176df90670db1c2","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _bulk\n{ \"index\" : { \"_index\" : \"test\", \"_id\" : \"1\" } }\n{ \"field1\" : \"value1\" }\n{ \"delete\" : { \"_index\" : \"test\", \"_id\" : \"2\" } }\n{ \"create\" : { \"_index\" : \"test\", \"_id\" : \"3\" } }\n{ \"field1\" : \"value3\" }\n{ \"update\" : {\"_id\" : \"1\", \"_index\" : \"test\"} }\n{ \"doc\" : {\"field2\" : \"value2\"} }"},
{"source_location":{"file":"docs/bulk.asciidoc","line":509},"digest":"ae9ccfaa146731ab9176df90670db1c2","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _bulk\n{ \"index\" : { \"_index\" : \"test\", \"_id\" : \"1\" } }\n{ \"field1\" : \"value1\" }\n{ \"delete\" : { \"_index\" : \"test\", \"_id\" : \"2\" } }\n{ \"create\" : { \"_index\" : \"test\", \"_id\" : \"3\" } }\n{ \"field1\" : \"value3\" }\n{ \"update\" : {\"_id\" : \"1\", \"_index\" : \"test\"} }\n{ \"doc\" : {\"field2\" : \"value2\"} }"},
{"source_location":{"file":"docs/bulk.asciidoc","line":523},"digest":"6e8127305ead40f2b6dd2ef3b99a9eca","lang":"console-result","found":[],"source":"{\n \"took\": 30,\n \"errors\": false,\n \"items\": [\n {\n \"index\": {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"status\": 201,\n \"_seq_no\" : 0,\n \"_primary_term\": 1\n }\n },\n {\n \"delete\": {\n \"_index\": \"test\",\n \"_id\": \"2\",\n \"_version\": 1,\n \"result\": \"not_found\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"status\": 404,\n \"_seq_no\" : 1,\n \"_primary_term\" : 2\n }\n },\n {\n \"create\": {\n \"_index\": \"test\",\n \"_id\": \"3\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"status\": 201,\n \"_seq_no\" : 2,\n \"_primary_term\" : 3\n }\n },\n {\n \"update\": {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_version\": 2,\n \"result\": \"updated\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"status\": 200,\n \"_seq_no\" : 3,\n \"_primary_term\" : 4\n }\n }\n ]\n}"},
{"source_location":{"file":"docs/bulk.asciidoc","line":620},"digest":"8cd00a3aba7c3c158277bc032aac2830","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _bulk\n{ \"update\" : {\"_id\" : \"1\", \"_index\" : \"index1\", \"retry_on_conflict\" : 3} }\n{ \"doc\" : {\"field\" : \"value\"} }\n{ \"update\" : { \"_id\" : \"0\", \"_index\" : \"index1\", \"retry_on_conflict\" : 3} }\n{ \"script\" : { \"source\": \"ctx._source.counter += params.param1\", \"lang\" : \"painless\", \"params\" : {\"param1\" : 1}}, \"upsert\" : {\"counter\" : 1}}\n{ \"update\" : {\"_id\" : \"2\", \"_index\" : \"index1\", \"retry_on_conflict\" : 3} }\n{ \"doc\" : {\"field\" : \"value\"}, \"doc_as_upsert\" : true }\n{ \"update\" : {\"_id\" : \"3\", \"_index\" : \"index1\", \"_source\" : true} }\n{ \"doc\" : {\"field\" : \"value\"} }\n{ \"update\" : {\"_id\" : \"4\", \"_index\" : \"index1\"} }\n{ \"doc\" : {\"field\" : \"value\"}, \"_source\": true}"},
{"source_location":{"file":"docs/bulk.asciidoc","line":642},"digest":"1aa91d3d48140d6367b6cabca8737b8f","lang":"console","found":["php","python","ruby","go","js"],"source":"POST /_bulk\n{ \"update\": {\"_id\": \"5\", \"_index\": \"index1\"} }\n{ \"doc\": {\"my_field\": \"foo\"} }\n{ \"update\": {\"_id\": \"6\", \"_index\": \"index1\"} }\n{ \"doc\": {\"my_field\": \"foo\"} }\n{ \"create\": {\"_id\": \"7\", \"_index\": \"index1\"} }\n{ \"my_field\": \"foo\" }"},
{"source_location":{"file":"docs/bulk.asciidoc","line":660},"digest":"36721b1f67f58f58902ca937e79cc5d2","lang":"console-result","found":[],"source":"{\n \"took\": 486,\n \"errors\": true,\n \"items\": [\n {\n \"update\": {\n \"_index\": \"index1\",\n \"_id\": \"5\",\n \"status\": 404,\n \"error\": {\n \"type\": \"document_missing_exception\",\n \"reason\": \"[5]: document missing\",\n \"index_uuid\": \"aAsFqTI0Tc2W0LCWgPNrOA\",\n \"shard\": \"0\",\n \"index\": \"index1\"\n }\n }\n },\n {\n \"update\": {\n \"_index\": \"index1\",\n \"_id\": \"6\",\n \"status\": 404,\n \"error\": {\n \"type\": \"document_missing_exception\",\n \"reason\": \"[6]: document missing\",\n \"index_uuid\": \"aAsFqTI0Tc2W0LCWgPNrOA\",\n \"shard\": \"0\",\n \"index\": \"index1\"\n }\n }\n },\n {\n \"create\": {\n \"_index\": \"index1\",\n \"_id\": \"7\",\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}"},
{"source_location":{"file":"docs/bulk.asciidoc","line":721},"digest":"bfdad8a928ea30d7cf60d0a0a6bc6e2e","lang":"console","found":["php","python","ruby","go","js"],"source":"POST /_bulk?filter_path=items.*.error\n{ \"update\": {\"_id\": \"5\", \"_index\": \"index1\"} }\n{ \"doc\": {\"my_field\": \"baz\"} }\n{ \"update\": {\"_id\": \"6\", \"_index\": \"index1\"} }\n{ \"doc\": {\"my_field\": \"baz\"} }\n{ \"update\": {\"_id\": \"7\", \"_index\": \"index1\"} }\n{ \"doc\": {\"my_field\": \"baz\"} }"},
{"source_location":{"file":"docs/bulk.asciidoc","line":735},"digest":"ba07b72377ab9f5da75bdc76109f66d6","lang":"console-result","found":[],"source":"{\n \"items\": [\n {\n \"update\": {\n \"error\": {\n \"type\": \"document_missing_exception\",\n \"reason\": \"[5]: document missing\",\n \"index_uuid\": \"aAsFqTI0Tc2W0LCWgPNrOA\",\n \"shard\": \"0\",\n \"index\": \"index1\"\n }\n }\n },\n {\n \"update\": {\n \"error\": {\n \"type\": \"document_missing_exception\",\n \"reason\": \"[6]: document missing\",\n \"index_uuid\": \"aAsFqTI0Tc2W0LCWgPNrOA\",\n \"shard\": \"0\",\n \"index\": \"index1\"\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"docs/bulk.asciidoc","line":774},"digest":"c9c396b94bb88098477e2b08b55a12ee","lang":"console","found":["python","ruby","js"],"source":"PUT my-index/\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"geo_point\": {\n \"mapping\": {\n \"type\" : \"geo_point\"\n }\n }\n }\n ]\n }\n}\n\nPOST /_bulk\n{ \"index\" : { \"_index\" : \"my_index\", \"_id\" : \"1\", \"dynamic_templates\": {\"work_location\": \"geo_point\"}} }\n{ \"field\" : \"value1\", \"work_location\": \"41.12,-71.34\", \"raw_location\": \"41.12,-71.34\"}\n{ \"create\" : { \"_index\" : \"my_index\", \"_id\" : \"2\", \"dynamic_templates\": {\"home_location\": \"geo_point\"}} }\n{ \"field\" : \"value2\", \"home_location\": \"41.12,-71.34\"}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":31},"digest":"7e484b8b41f9dbc2bcf1f340db197c1d","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":208},"digest":"68738b4fd0dda177022be45be95b4c84","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _reindex/r1A2WoRbTwKZ516z6NEs5A:36619/_rethrottle?requests_per_second=-1"},
{"source_location":{"file":"docs/reindex.asciidoc","line":240},"digest":"e0a7c730ef0f22e3edffe9a254bc56e7","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"my-index-000001\",\n \"slice\": {\n \"id\": 0,\n \"max\": 2\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}\nPOST _reindex\n{\n \"source\": {\n \"index\": \"my-index-000001\",\n \"slice\": {\n \"id\": 1,\n \"max\": 2\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":273},"digest":"1f673e1a0de2970dc648618d5425a994","lang":"console","found":["python","ruby","js"],"source":"GET _refresh\nPOST my-new-index-000001/_search?size=0&filter_path=hits.total"},
{"source_location":{"file":"docs/reindex.asciidoc","line":282},"digest":"7e3ab9b4b60726e0dbe92612d2c4cd9d","lang":"console-result","found":[],"source":"{\n \"hits\": {\n \"total\" : {\n \"value\": 120,\n \"relation\": \"eq\"\n }\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":300},"digest":"2932e6f71e247cf52e11d2f38f114ddf","lang":"console","found":["python","ruby","js"],"source":"POST _reindex?slices=5&refresh\n{\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":316},"digest":"ff09e13391cecb2e8b9dd440b37e065f","lang":"console","found":["python","ruby","js"],"source":"POST my-new-index-000001/_search?size=0&filter_path=hits.total"},
{"source_location":{"file":"docs/reindex.asciidoc","line":324},"digest":"7e3ab9b4b60726e0dbe92612d2c4cd9d","lang":"console-result","found":[],"source":"{\n \"hits\": {\n \"total\" : {\n \"value\": 120,\n \"relation\": \"eq\"\n }\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":409},"digest":"78c96113ae4ed0054e581b17542528a7","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"source\",\n \"query\": {\n \"match\": {\n \"company\": \"cat\"\n }\n }\n },\n \"dest\": {\n \"index\": \"dest\",\n \"routing\": \"=cat\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":434},"digest":"400e89eb46ead8e9c9e40f123fd5e590","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"source\",\n \"size\": 100\n },\n \"dest\": {\n \"index\": \"dest\",\n \"routing\": \"=cat\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":456},"digest":"b1efa1c51a34dd5ab5511b71a399f5b1","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"source\"\n },\n \"dest\": {\n \"index\": \"dest\",\n \"pipeline\": \"some_ingest_pipeline\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":674},"digest":"cb0c3223fd45148497df73adfba2e9ce","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"my-index-000001\",\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":700},"digest":"ef22234b97cc06d7dd620b4ce7c97b31","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"max_docs\": 1,\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":722},"digest":"355d0ee2fcb6c1fc403c6267f710e25a","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": [\"my-index-000001\", \"my-index-000002\"]\n },\n \"dest\": {\n \"index\": \"my-new-index-000002\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":748},"digest":"d5d0ecf75843ddb5f92cfebd089e53e9","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"my-index-000001\",\n \"_source\": [\"user.id\", \"_doc\"]\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":769},"digest":"926c0134aeaad53bd0f3bdad9c430217","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_doc/1?refresh\n{\n \"text\": \"words words\",\n \"flag\": \"foo\"\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":781},"digest":"3bb491db29deba25e1cc82bcaa1aa1a1","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n },\n \"script\": {\n \"source\": \"ctx._source.tag = ctx._source.remove(\\\"flag\\\")\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":800},"digest":"f37173a75cd1b0d683c6f67819dd1de3","lang":"console","found":["python","ruby","js"],"source":"GET my-new-index-000001/_doc/1"},
{"source_location":{"file":"docs/reindex.asciidoc","line":808},"digest":"b750625eca33871439d415f09d0e8b81","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_id\": \"1\",\n \"_index\": \"my-new-index-000001\",\n \"_version\": 1,\n \"_seq_no\": 44,\n \"_primary_term\": 1,\n \"_source\": {\n \"text\": \"words words\",\n \"tag\": \"foo\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":833},"digest":"9a4d5e41c52c20635d1fd9c6e13f6c7a","lang":"console","found":["php","python","ruby","go","js"],"source":"PUT metricbeat-2016.05.30/_doc/1?refresh\n{\"system.cpu.idle.pct\": 0.908}\nPUT metricbeat-2016.05.31/_doc/1?refresh\n{\"system.cpu.idle.pct\": 0.105}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":849},"digest":"973a3ff47fc4ce036ecd9bd363fef9f7","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"metricbeat-*\"\n },\n \"dest\": {\n \"index\": \"metricbeat\"\n },\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"ctx._index = 'metricbeat-' + (ctx._index.substring('metricbeat-'.length(), ctx._index.length())) + '-1'\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":869},"digest":"3b04cc894e6a47d57983484010feac0c","lang":"console","found":["php","python","ruby","go","js"],"source":"GET metricbeat-2016.05.30-1/_doc/1\nGET metricbeat-2016.05.31-1/_doc/1"},
{"source_location":{"file":"docs/reindex.asciidoc","line":884},"digest":"07ba3eaa931f2cf110052e3544db51f8","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"max_docs\": 10,\n \"source\": {\n \"index\": \"my-index-000001\",\n \"query\": {\n \"function_score\" : {\n \"random_score\" : {},\n \"min_score\" : 0.9 <1>\n }\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":915},"digest":"e650d73c57ab313e686fec01e3b0c90f","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\",\n \"version_type\": \"external\"\n },\n \"script\": {\n \"source\": \"if (ctx._source.foo == 'bar') {ctx._version++; ctx._source.remove('foo')}\",\n \"lang\": \"painless\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":970},"digest":"242a26ced0e5706e48dcda19a4003094","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"remote\": {\n \"host\": \"http://otherhost:9200\",\n \"username\": \"user\",\n \"password\": \"pass\"\n },\n \"index\": \"my-index-000001\",\n \"query\": {\n \"match\": {\n \"test\": \"data\"\n }\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":1009},"digest":"ff63ae39c34925dbfa54282ec9989124","lang":"console","found":["python","ruby","js"],"source":"POST _reindex\n{\n \"source\": {\n \"remote\": {\n \"host\": \"http://otherhost:9200\",\n \"headers\": {\n \"Authorization\": \"ApiKey API_KEY_VALUE\"\n }\n },\n \"index\": \"my-index-000001\",\n \"query\": {\n \"match\": {\n \"test\": \"data\"\n }\n }\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":1068},"digest":"e9ae959608d128202921b174f4faa7a8","lang":"console","found":[],"source":"POST _reindex\n{\n \"source\": {\n \"remote\": {\n \"host\": \"http://otherhost:9200\",\n ...\n },\n \"index\": \"source\",\n \"size\": 10,\n \"query\": {\n \"match\": {\n \"test\": \"data\"\n }\n }\n },\n \"dest\": {\n \"index\": \"dest\"\n }\n}"},
{"source_location":{"file":"docs/reindex.asciidoc","line":1101},"digest":"7c862a20772467e0f5beebbd1b80c4cb","lang":"console","found":[],"source":"POST _reindex\n{\n \"source\": {\n \"remote\": {\n \"host\": \"http://otherhost:9200\",\n ...,\n \"socket_timeout\": \"1m\",\n \"connect_timeout\": \"10s\"\n },\n \"index\": \"source\",\n \"query\": {\n \"match\": {\n \"test\": \"data\"\n }\n }\n },\n \"dest\": {\n \"index\": \"dest\"\n }\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":16},"digest":"f3697682a886ab129530f3e5c1b30632","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_termvectors/1"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":42},"digest":"c5ba7c4badb5ef5ca32740106e4aa6b6","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_termvectors/1?fields=message"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":183},"digest":"941c8d05486200e835d97642e4ee05d5","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001\n{ \"mappings\": {\n \"properties\": {\n \"text\": {\n \"type\": \"text\",\n \"term_vector\": \"with_positions_offsets_payloads\",\n \"store\" : true,\n \"analyzer\" : \"fulltext_analyzer\"\n },\n \"fullname\": {\n \"type\": \"text\",\n \"term_vector\": \"with_positions_offsets_payloads\",\n \"analyzer\" : \"fulltext_analyzer\"\n }\n }\n },\n \"settings\" : {\n \"index\" : {\n \"number_of_shards\" : 1,\n \"number_of_replicas\" : 0\n },\n \"analysis\": {\n \"analyzer\": {\n \"fulltext_analyzer\": {\n \"type\": \"custom\",\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"lowercase\",\n \"type_as_payload\"\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":224},"digest":"d775836a0d7abecc6637aa988f204c30","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_doc/1\n{\n \"fullname\" : \"John Doe\",\n \"text\" : \"test test test \"\n}\n\nPUT /my-index-000001/_doc/2?refresh=wait_for\n{\n \"fullname\" : \"Jane Doe\",\n \"text\" : \"Another test ...\"\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":243},"digest":"16985e5b17d2da0955a14fbe02e8dfca","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_termvectors/1\n{\n \"fields\" : [\"text\"],\n \"offsets\" : true,\n \"payloads\" : true,\n \"positions\" : true,\n \"term_statistics\" : true,\n \"field_statistics\" : true\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":259},"digest":"8e6d2d614dedb26da93600a14e7bb94f","lang":"console-result","found":[],"source":"{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"found\": true,\n \"took\": 6,\n \"term_vectors\": {\n \"text\": {\n \"field_statistics\": {\n \"sum_doc_freq\": 4,\n \"doc_count\": 2,\n \"sum_ttf\": 6\n },\n \"terms\": {\n \"test\": {\n \"doc_freq\": 2,\n \"ttf\": 4,\n \"term_freq\": 3,\n \"tokens\": [\n {\n \"position\": 0,\n \"start_offset\": 0,\n \"end_offset\": 4,\n \"payload\": \"d29yZA==\"\n },\n {\n \"position\": 1,\n \"start_offset\": 5,\n \"end_offset\": 9,\n \"payload\": \"d29yZA==\"\n },\n {\n \"position\": 2,\n \"start_offset\": 10,\n \"end_offset\": 14,\n \"payload\": \"d29yZA==\"\n }\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":316},"digest":"aeaa97939a05f5b2f3f2c43b771f35e3","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_termvectors/1\n{\n \"fields\" : [\"text\", \"some_field_without_term_vectors\"],\n \"offsets\" : true,\n \"positions\" : true,\n \"term_statistics\" : true,\n \"field_statistics\" : true\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":339},"digest":"3e33c1a4298ea6a0dec65a3ebf9ba973","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_termvectors\n{\n \"doc\" : {\n \"fullname\" : \"John Doe\",\n \"text\" : \"test test test\"\n }\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":360},"digest":"a1d0603b24a5b048f0959975d8057534","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_termvectors\n{\n \"doc\" : {\n \"fullname\" : \"John Doe\",\n \"text\" : \"test test test\"\n },\n \"fields\": [\"fullname\"],\n \"per_field_analyzer\" : {\n \"fullname\": \"keyword\"\n }\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":378},"digest":"d60f020b9e9a854b73f52633e63cb553","lang":"console-result","found":[],"source":"{\n \"_index\": \"my-index-000001\",\n \"_version\": 0,\n \"found\": true,\n \"took\": 6,\n \"term_vectors\": {\n \"fullname\": {\n \"field_statistics\": {\n \"sum_doc_freq\": 2,\n \"doc_count\": 4,\n \"sum_ttf\": 4\n },\n \"terms\": {\n \"John Doe\": {\n \"term_freq\": 1,\n \"tokens\": [\n {\n \"position\": 0,\n \"start_offset\": 0,\n \"end_offset\": 8\n }\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":424},"digest":"b37919cc438b47477343833b4e522408","lang":"console","found":["python","ruby","js"],"source":"GET /imdb/_termvectors\n{\n \"doc\": {\n \"plot\": \"When wealthy industrialist Tony Stark is forced to build an armored suit after a life-threatening incident, he ultimately decides to use its technology to fight against evil.\"\n },\n \"term_statistics\": true,\n \"field_statistics\": true,\n \"positions\": false,\n \"offsets\": false,\n \"filter\": {\n \"max_num_terms\": 3,\n \"min_term_freq\": 1,\n \"min_doc_freq\": 1\n }\n}"},
{"source_location":{"file":"docs/termvectors.asciidoc","line":446},"digest":"9582cab412650ffe53fd17791199cbf8","lang":"console-result","found":[],"source":"{\n \"_index\": \"imdb\",\n \"_version\": 0,\n \"found\": true,\n \"term_vectors\": {\n \"plot\": {\n \"field_statistics\": {\n \"sum_doc_freq\": 3384269,\n \"doc_count\": 176214,\n \"sum_ttf\": 3753460\n },\n \"terms\": {\n \"armored\": {\n \"doc_freq\": 27,\n \"ttf\": 27,\n \"term_freq\": 1,\n \"score\": 9.74725\n },\n \"industrialist\": {\n \"doc_freq\": 88,\n \"ttf\": 88,\n \"term_freq\": 1,\n \"score\": 8.590818\n },\n \"stark\": {\n \"doc_freq\": 44,\n \"ttf\": 47,\n \"term_freq\": 1,\n \"score\": 9.272792\n }\n }\n }\n }\n}"},
{"source_location":{"file":"docs/multi-termvectors.asciidoc","line":10},"digest":"35563ef92dddef9d83906d9c43c60d0f","lang":"console","found":["python","ruby","js"],"source":"POST /_mtermvectors\n{\n \"docs\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"2\",\n \"term_statistics\": true\n },\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"fields\": [\n \"message\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"docs/multi-termvectors.asciidoc","line":97},"digest":"841ad0a70f4271f61f0bac0b467b59c5","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_mtermvectors\n{\n \"docs\": [\n {\n \"_id\": \"2\",\n \"fields\": [\n \"message\"\n ],\n \"term_statistics\": true\n },\n {\n \"_id\": \"1\"\n }\n ]\n}"},
{"source_location":{"file":"docs/multi-termvectors.asciidoc","line":120},"digest":"f0c3235d8fce641d6ff8ce90ab7b7b8b","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_mtermvectors\n{\n \"ids\": [ \"1\", \"2\" ],\n \"parameters\": {\n \"fields\": [\n \"message\"\n ],\n \"term_statistics\": true\n }\n}"},
{"source_location":{"file":"docs/multi-termvectors.asciidoc","line":141},"digest":"d133b5d82238f7d4778c341cbe0bc969","lang":"console","found":["python","ruby","js"],"source":"POST /_mtermvectors\n{\n \"docs\": [\n {\n \"_index\": \"my-index-000001\",\n \"doc\" : {\n \"message\" : \"test test test\"\n }\n },\n {\n \"_index\": \"my-index-000001\",\n \"doc\" : {\n \"message\" : \"Another test ...\"\n }\n }\n ]\n}"},
{"source_location":{"file":"docs/refresh.asciidoc","line":87},"digest":"92d343eb755971c44a939d0660bf5ac2","lang":"console","found":["python","ruby","js"],"source":"PUT /test/_doc/1?refresh\n{\"test\": \"test\"}\nPUT /test/_doc/2?refresh=true\n{\"test\": \"test\"}"},
{"source_location":{"file":"docs/refresh.asciidoc","line":98},"digest":"1070e59ba144cdf309fd9b2591612b95","lang":"console","found":["python","ruby","js"],"source":"PUT /test/_doc/3\n{\"test\": \"test\"}\nPUT /test/_doc/4?refresh=false\n{\"test\": \"test\"}"},
{"source_location":{"file":"docs/refresh.asciidoc","line":108},"digest":"e4b2b5e0aaedf3cbbcde3d61eb1f13fc","lang":"console","found":["python","ruby","js"],"source":"PUT /test/_doc/4?refresh=wait_for\n{\"test\": \"test\"}"},
{"source_location":{"file":"docs/concurrency-control.asciidoc","line":24},"digest":"25981b7b3d55b87e1484586d57b695b1","lang":"console","found":["python","ruby","js"],"source":"PUT products/_doc/1567\n{\n \"product\" : \"r2d2\",\n \"details\" : \"A resourceful astromech droid\"\n}"},
{"source_location":{"file":"docs/concurrency-control.asciidoc","line":36},"digest":"7d7294e76655413383e078ed7b32cfbb","lang":"console-result","found":[],"source":"{\n \"_shards\": {\n \"total\": 2,\n \"failed\": 0,\n \"successful\": 1\n },\n \"_index\": \"products\",\n \"_id\": \"1567\",\n \"_version\": 1,\n \"_seq_no\": 362,\n \"_primary_term\": 2,\n \"result\": \"created\"\n}"},
{"source_location":{"file":"docs/concurrency-control.asciidoc","line":61},"digest":"278d5bfa1a01f91d5c84679ef1bca390","lang":"console","found":["python","ruby","js"],"source":"GET products/_doc/1567"},
{"source_location":{"file":"docs/concurrency-control.asciidoc","line":69},"digest":"2d24467bf8320ed236ad301d708f0765","lang":"console-result","found":[],"source":"{\n \"_index\": \"products\",\n \"_id\": \"1567\",\n \"_version\": 1,\n \"_seq_no\": 362,\n \"_primary_term\": 2,\n \"found\": true,\n \"_source\": {\n \"product\": \"r2d2\",\n \"details\": \"A resourceful astromech droid\"\n }\n}"},
{"source_location":{"file":"docs/concurrency-control.asciidoc","line":102},"digest":"783c4fa5351a242364210fc32496beb2","lang":"console","found":["python","js"],"source":"PUT products/_doc/1567?if_seq_no=362&if_primary_term=2\n{\n \"product\": \"r2d2\",\n \"details\": \"A resourceful astromech droid\",\n \"tags\": [ \"droid\" ]\n}"},
{"source_location":{"file":"ingest/apis/enrich/put-enrich-policy.asciidoc","line":30},"digest":"20f62d0540bf6261549bd286416eae28","lang":"console","found":["python","ruby","js"],"source":"PUT /_enrich/policy/my-policy\n{\n \"match\": {\n \"indices\": \"users\",\n \"match_field\": \"email\",\n \"enrich_fields\": [\"first_name\", \"last_name\", \"city\", \"zip\", \"state\"]\n }\n}"},
{"source_location":{"file":"ingest/apis/enrich/delete-enrich-policy.asciidoc","line":42},"digest":"cdd29b01e730b3996de68a2788050021","lang":"console","found":["python","ruby","js"],"source":"DELETE /_enrich/policy/my-policy"},
{"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":49},"digest":"af18f5c5fb2364ae23c6a14431820aba","lang":"console","found":["python","ruby","js"],"source":"GET /_enrich/policy/my-policy"},
{"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":94},"digest":"af18f5c5fb2364ae23c6a14431820aba","lang":"console","found":["python","ruby","js"],"source":"GET /_enrich/policy/my-policy"},
{"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":102},"digest":"441527aba37e39ee66c1a5c6c8ec5257","lang":"console-result","found":[],"source":"{\n \"policies\": [\n {\n \"config\": {\n \"match\": {\n \"name\": \"my-policy\",\n \"indices\": [ \"users\" ],\n \"match_field\": \"email\",\n \"enrich_fields\": [\n \"first_name\",\n \"last_name\",\n \"city\",\n \"zip\",\n \"state\"\n ]\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":130},"digest":"8684589e31d96ab229e8c4feb4d704bb","lang":"console","found":["python","ruby","js"],"source":"GET /_enrich/policy/my-policy,other-policy"},
{"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":138},"digest":"dd12cbd93f07b82b092542e097512e6b","lang":"console-result","found":[],"source":"{\n \"policies\": [\n {\n \"config\": {\n \"match\": {\n \"name\": \"my-policy\",\n \"indices\": [ \"users\" ],\n \"match_field\": \"email\",\n \"enrich_fields\": [\n \"first_name\",\n \"last_name\",\n \"city\",\n \"zip\",\n \"state\"\n ]\n }\n }\n },\n {\n \"config\": {\n \"match\": {\n \"name\": \"other-policy\",\n \"indices\": [ \"users\" ],\n \"match_field\": \"email\",\n \"enrich_fields\": [\n \"first_name\",\n \"last_name\",\n \"city\",\n \"zip\",\n \"state\"\n ]\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":182},"digest":"c97fd95ebdcf56cc973582e37f732ed2","lang":"console","found":["python","ruby","js"],"source":"GET /_enrich/policy"},
{"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":190},"digest":"dd12cbd93f07b82b092542e097512e6b","lang":"console-result","found":[],"source":"{\n \"policies\": [\n {\n \"config\": {\n \"match\": {\n \"name\": \"my-policy\",\n \"indices\": [ \"users\" ],\n \"match_field\": \"email\",\n \"enrich_fields\": [\n \"first_name\",\n \"last_name\",\n \"city\",\n \"zip\",\n \"state\"\n ]\n }\n }\n },\n {\n \"config\": {\n \"match\": {\n \"name\": \"other-policy\",\n \"indices\": [ \"users\" ],\n \"match_field\": \"email\",\n \"enrich_fields\": [\n \"first_name\",\n \"last_name\",\n \"city\",\n \"zip\",\n \"state\"\n ]\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/enrich/execute-enrich-policy.asciidoc","line":45},"digest":"c8e2109b19d50467ab83a40006462e9f","lang":"console","found":["python","ruby","js"],"source":"PUT /_enrich/policy/my-policy/_execute?wait_for_completion=false"},
{"source_location":{"file":"ingest/apis/enrich/enrich-stats.asciidoc","line":13},"digest":"84e2cf7417c9e0c9e6f3c23031001440","lang":"console","found":["python","ruby","js"],"source":"GET /_enrich/_stats"},
{"source_location":{"file":"ingest/apis/enrich/enrich-stats.asciidoc","line":135},"digest":"84e2cf7417c9e0c9e6f3c23031001440","lang":"console","found":["python","ruby","js"],"source":"GET /_enrich/_stats"},
{"source_location":{"file":"ingest/apis/enrich/enrich-stats.asciidoc","line":143},"digest":"07fe7e7d4ceeed4cf058060f5137a232","lang":"console-result","found":[],"source":"{\n \"executing_policies\": [\n {\n \"name\": \"my-policy\",\n \"task\": {\n \"id\": 124,\n \"type\": \"direct\",\n \"action\": \"cluster:admin/xpack/enrich/execute\",\n \"start_time_in_millis\": 1458585884904,\n \"running_time_in_nanos\": 47402,\n \"cancellable\": false,\n \"parent_task_id\": \"oTUltX4IQMOUUVeiohTt8A:123\",\n \"headers\": {\n \"X-Opaque-Id\": \"123456\"\n }\n }\n }\n ],\n \"coordinator_stats\": [\n {\n \"node_id\": \"1sFM8cmSROZYhPxVsiWew\",\n \"queue_size\": 0,\n \"remote_requests_current\": 0,\n \"remote_requests_total\": 0,\n \"executed_searches_total\": 0\n }\n ],\n \"cache_stats\": [\n {\n \"node_id\": \"1sFM8cmSROZYhPxVsiWew\",\n \"count\": 0,\n \"hits\": 0,\n \"misses\": 0,\n \"evictions\": 0,\n \"hits_time_in_millis\": 0,\n \"misses_time_in_millis\": 0,\n \"size_in_bytes\": 0\n }\n ]\n}"},
{"source_location":{"file":"eql/delete-async-eql-search-api.asciidoc","line":20},"digest":"26d3ab748a855eb383e992eb1ff79662","lang":"console","found":["python","ruby","js"],"source":"DELETE /_eql/search/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="},
{"source_location":{"file":"eql/eql-search-api.asciidoc","line":30},"digest":"b839f79a5d58506baed5714f1876ab55","lang":"console","found":["python","ruby","js"],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n process where process.name == \"regsvr32.exe\"\n \"\"\"\n}"},
{"source_location":{"file":"eql/eql-search-api.asciidoc","line":586},"digest":"ec0e50f78390b8622cef4e0b0cd45967","lang":"console","found":["python","ruby","js"],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n process where (process.name == \"cmd.exe\" and process.pid != 2013)\n \"\"\"\n}"},
{"source_location":{"file":"eql/eql-search-api.asciidoc","line":606},"digest":"a6b7a8fa78199f14791c301b00526599","lang":"console-result","found":[],"source":"{\n \"is_partial\": false,\n \"is_running\": false,\n \"took\": 6,\n \"timed_out\": false,\n \"hits\": {\n \"total\": {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"events\": [\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"babI3XMBI9IjHuIqU0S_\",\n \"_source\": {\n \"@timestamp\": \"2099-12-06T11:04:05.000Z\",\n \"event\": {\n \"category\": \"process\",\n \"id\": \"edwCRnyD\",\n \"sequence\": 1\n },\n \"process\": {\n \"pid\": 2012,\n \"name\": \"cmd.exe\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\"\n }\n }\n },\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"b6bI3XMBI9IjHuIqU0S_\",\n \"_source\": {\n \"@timestamp\": \"2099-12-07T11:06:07.000Z\",\n \"event\": {\n \"category\": \"process\",\n \"id\": \"cMyt5SZ2\",\n \"sequence\": 3\n },\n \"process\": {\n \"pid\": 2012,\n \"name\": \"cmd.exe\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\"\n }\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"eql/eql-search-api.asciidoc","line":684},"digest":"8141b60ad245ece2ff5e8d0817400ee5","lang":"console","found":["python","ruby","js"],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n sequence by process.pid\n [ file where file.name == \"cmd.exe\" and process.pid != 2013 ]\n [ process where stringContains(process.executable, \"regsvr32\") ]\n \"\"\"\n}"},
{"source_location":{"file":"eql/eql-search-api.asciidoc","line":701},"digest":"40bcab67e5d3ff2cb572f99159349638","lang":"console-result","found":[],"source":"{\n \"is_partial\": false,\n \"is_running\": false,\n \"took\": 6,\n \"timed_out\": false,\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"sequences\": [\n {\n \"join_keys\": [\n 2012\n ],\n \"events\": [\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"AtOJ4UjUBAAx3XR5kcCM\",\n \"_source\": {\n \"@timestamp\": \"2099-12-06T11:04:07.000Z\",\n \"event\": {\n \"category\": \"file\",\n \"id\": \"dGCHwoeS\",\n \"sequence\": 2\n },\n \"file\": {\n \"accessed\": \"2099-12-07T11:07:08.000Z\",\n \"name\": \"cmd.exe\",\n \"path\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\",\n \"type\": \"file\",\n \"size\": 16384\n },\n \"process\": {\n \"pid\": 2012,\n \"name\": \"cmd.exe\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\"\n }\n }\n },\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"OQmfCaduce8zoHT93o4H\",\n \"_source\": {\n \"@timestamp\": \"2099-12-07T11:07:09.000Z\",\n \"event\": {\n \"category\": \"process\",\n \"id\": \"aR3NWVOs\",\n \"sequence\": 4\n },\n \"process\": {\n \"pid\": 2012,\n \"name\": \"regsvr32.exe\",\n \"command_line\": \"regsvr32.exe /s /u /i:https://...RegSvr32.sct scrobj.dll\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n }\n }\n }\n ]\n }\n ]\n }\n}"},
{"source_location":{"file":"eql/get-async-eql-search-api.asciidoc","line":20},"digest":"d5ead6aacbfbedc8396f87bb34acc880","lang":"console","found":["python","ruby","js"],"source":"GET /_eql/search/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="},
{"source_location":{"file":"eql/get-async-eql-status-api.asciidoc","line":25},"digest":"604da59fe41160efa10a846a9dacc07a","lang":"console","found":["python","ruby","js"],"source":"GET /_eql/search/status/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="},
{"source_location":{"file":"eql/get-async-eql-status-api.asciidoc","line":90},"digest":"88cecae3f0363fc186d955dd8616b5d4","lang":"console","found":["python","ruby","js"],"source":"GET /_eql/search/status/FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=?keep_alive=5d"},
{"source_location":{"file":"eql/get-async-eql-status-api.asciidoc","line":98},"digest":"1dfe66740e32be3f2c200b391619ed2a","lang":"console-result","found":[],"source":"{\n \"id\" : \"FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=\",\n \"is_running\" : true,\n \"is_partial\" : true,\n \"start_time_in_millis\" : 1611690235000,\n \"expiration_time_in_millis\" : 1611690295000\n\n}"},
{"source_location":{"file":"eql/get-async-eql-status-api.asciidoc","line":115},"digest":"05bca8a950838286f1b2b0b51c51eb13","lang":"console-result","found":[],"source":"{\n \"id\" : \"FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=\",\n \"is_running\" : false,\n \"is_partial\" : false,\n \"expiration_time_in_millis\" : 1611690295000,\n \"completion_status\" : 200 <1>\n}"},
{"source_location":{"file":"esql/esql-query-api.asciidoc","line":16},"digest":"9cc64ab2f60f995f5dbfaca67aa6dd41","lang":"console","found":["python","js"],"source":"POST /_query\n{\n \"query\": \"\"\"\n FROM library\n | EVAL year = DATE_TRUNC(1 YEARS, release_date)\n | STATS MAX(page_count) BY year\n | SORT year\n | LIMIT 5\n \"\"\"\n}"},
{"source_location":{"file":"esql/esql-async-query-api.asciidoc","line":23},"digest":"3f1fe5f5f99b98d0891f38003e10b636","lang":"console","found":["python","js"],"source":"POST /_query/async\n{\n \"query\": \"\"\"\n FROM library\n | EVAL year = DATE_TRUNC(1 YEARS, release_date)\n | STATS MAX(page_count) BY year\n | SORT year\n | LIMIT 5\n \"\"\",\n \"wait_for_completion_timeout\": \"2s\"\n}"},
{"source_location":{"file":"esql/esql-async-query-api.asciidoc","line":50},"digest":"629d8404571b200cd16ac40ba40b1167","lang":"console-result","found":[],"source":"{\n \"id\": \"FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=\",\n \"is_running\": true\n}"},
{"source_location":{"file":"esql/esql-async-query-api.asciidoc","line":62},"digest":"40e357182857594f7cd6adc266fda532","lang":"console-result","found":[],"source":"{\n \"is_running\": false,\n \"columns\": ...\n}"},
{"source_location":{"file":"esql/esql-async-query-get-api.asciidoc","line":17},"digest":"405511f7c1f12cc0a227b4563fe7b2e2","lang":"console","found":["python","ruby","js"],"source":"GET /_query/async/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="},
{"source_location":{"file":"esql/esql-async-query-delete-api.asciidoc","line":18},"digest":"6539a04aac4d43e6ce4a769fe8cdf2d8","lang":"console","found":[],"source":"DELETE /query/async/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="},
{"source_location":{"file":"esql/esql-async-query-stop-api.asciidoc","line":25},"digest":"b1e81b70b874a1f0cf75a0ec6e430ddc","lang":"console","found":[],"source":"POST /_query/async/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM=/stop"},
{"source_location":{"file":"features/apis/get-features-api.asciidoc","line":18},"digest":"64c572abc23394a77b6cca0b5368ee1d","lang":"console","found":["python","ruby","js"],"source":"GET /_features"},
{"source_location":{"file":"features/apis/get-features-api.asciidoc","line":48},"digest":"d71cea00ebf0e0d97651e2843a79d5f8","lang":"console-result","found":[],"source":"{\n \"features\": [\n {\n \"name\": \"tasks\",\n \"description\": \"Manages task results\"\n },\n {\n \"name\": \"kibana\",\n \"description\": \"Manages Kibana configuration and reports\"\n }\n ]\n}"},
{"source_location":{"file":"features/apis/reset-features-api.asciidoc","line":20},"digest":"d7141bd4d0db964f5cc4a872ad79dce9","lang":"console","found":["python","ruby","js"],"source":"POST /_features/_reset"},
{"source_location":{"file":"features/apis/reset-features-api.asciidoc","line":51},"digest":"8f19b61ec63fe2754b54460fade9dc32","lang":"console-result","found":[],"source":"{\n \"features\" : [\n {\n \"feature_name\" : \"security\",\n \"status\" : \"SUCCESS\"\n },\n {\n \"feature_name\" : \"tasks\",\n \"status\" : \"SUCCESS\"\n }\n ]\n}"},
{"source_location":{"file":"graph/explore.asciidoc","line":210},"digest":"ff7b81fa96c3b994efa3dee230512291","lang":"console","found":["python","js"],"source":"POST clicklogs/_graph/explore\n{\n \"query\": { <1>\n \"match\": {\n \"query.raw\": \"midi\"\n }\n },\n \"vertices\": [ <2>\n {\n \"field\": \"product\"\n }\n ],\n \"connections\": { <3>\n \"vertices\": [\n {\n \"field\": \"query.raw\"\n }\n ]\n }\n}"},
{"source_location":{"file":"graph/explore.asciidoc","line":315},"digest":"88554b79dba8fd79991855a692b69ff9","lang":"console","found":["python","js"],"source":"POST clicklogs/_graph/explore\n{\n \"query\": {\n \"match\": {\n \"query.raw\": \"midi\"\n }\n },\n \"controls\": {\n \"use_significance\": false, <1>\n \"sample_size\": 2000, <2>\n \"timeout\": 2000, <3>\n \"sample_diversity\": { <4>\n \"field\": \"category.raw\",\n \"max_docs_per_value\": 500\n }\n },\n \"vertices\": [\n {\n \"field\": \"product\",\n \"size\": 5, <5>\n \"min_doc_count\": 10, <6>\n \"shard_min_doc_count\": 3 <7>\n }\n ],\n \"connections\": {\n \"query\": { <8>\n \"bool\": {\n \"filter\": [\n {\n \"range\": {\n \"query_time\": {\n \"gte\": \"2015-10-01 00:00:00\"\n }\n }\n }\n ]\n }\n },\n \"vertices\": [\n {\n \"field\": \"query.raw\",\n \"size\": 5,\n \"min_doc_count\": 10,\n \"shard_min_doc_count\": 3\n }\n ]\n }\n}"},
{"source_location":{"file":"graph/explore.asciidoc","line":402},"digest":"fa82d86a046d67366cfe9ce65535e433","lang":"console","found":["python","js"],"source":"POST clicklogs/_graph/explore\n{\n \"vertices\": [\n {\n \"field\": \"product\",\n \"include\": [ \"1854873\" ] <1>\n }\n ],\n \"connections\": {\n \"vertices\": [\n {\n \"field\": \"query.raw\",\n \"exclude\": [ <2>\n \"midi keyboard\",\n \"midi\",\n \"synth\"\n ]\n }\n ]\n }\n}"},
{"source_location":{"file":"indices/alias-exists.asciidoc","line":16},"digest":"5b281956e35a26e734c482b42b356c0d","lang":"console","found":["python","ruby","js"],"source":"HEAD _alias/my-alias"},
{"source_location":{"file":"indices/aliases.asciidoc","line":16},"digest":"5d03bb385904d20c5323885706738459","lang":"console","found":["python","ruby","js"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"add\": {\n \"index\": \"my-data-stream\",\n \"alias\": \"my-alias\"\n }\n }\n ]\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":17},"digest":"fa42ae3bf6a300420cd0f77ba006458a","lang":"console","found":["python","ruby","js"],"source":"GET /_analyze\n{\n \"analyzer\" : \"standard\",\n \"text\" : \"Quick Brown Foxes!\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":149},"digest":"76dbdd0b2bd48c3c6b1a8d81e23bafd6","lang":"console","found":["python","ruby","js"],"source":"GET /_analyze\n{\n \"analyzer\" : \"standard\",\n \"text\" : \"this is a test\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":163},"digest":"fd9b668eeb1f117950bd4991c7c03fb1","lang":"console","found":["python","ruby","js"],"source":"GET /_analyze\n{\n \"analyzer\" : \"standard\",\n \"text\" : [\"this is a test\", \"the second text\"]\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":179},"digest":"ef33b3b373f7040b874146599db5d557","lang":"console","found":["python","ruby","js"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"keyword\",\n \"filter\" : [\"lowercase\"],\n \"text\" : \"this is a test\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":189},"digest":"dc8c94c9bef1f879282caea5c406f36e","lang":"console","found":["python","ruby","js"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"keyword\",\n \"filter\" : [\"lowercase\"],\n \"char_filter\" : [\"html_strip\"],\n \"text\" : \"this is a test\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":202},"digest":"22dde5fe7ac5d85d52115641a68b3c55","lang":"console","found":["python","ruby","js"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"whitespace\",\n \"filter\" : [\"lowercase\", {\"type\": \"stop\", \"stopwords\": [\"a\", \"is\", \"this\"]}],\n \"text\" : \"this is a test\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":217},"digest":"3951d7fcd7f849fa278daf342872125a","lang":"console","found":["python","ruby","js"],"source":"GET /analyze_sample/_analyze\n{\n \"text\" : \"this is a test\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":230},"digest":"71fa652ddea811eb3c8bf8c5db21e549","lang":"console","found":["python","ruby","js"],"source":"GET /analyze_sample/_analyze\n{\n \"analyzer\" : \"whitespace\",\n \"text\" : \"this is a test\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":245},"digest":"de2f59887737de3a27716177b60393a2","lang":"console","found":["python","ruby","js"],"source":"GET /analyze_sample/_analyze\n{\n \"field\" : \"obj1.field1\",\n \"text\" : \"this is a test\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":263},"digest":"49d87c2eb7314ed34221c5fb4f21dfcc","lang":"console","found":["python","ruby","js"],"source":"GET /analyze_sample/_analyze\n{\n \"normalizer\" : \"my_normalizer\",\n \"text\" : \"BaR\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":275},"digest":"15a34bfe0ef8ef6333c8c7b55c011e5d","lang":"console","found":["python","ruby","js"],"source":"GET /_analyze\n{\n \"filter\" : [\"lowercase\"],\n \"text\" : \"BaR\"\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":292},"digest":"89f8eac24f3ec6a7668d580aaf0eeefa","lang":"console","found":["python","ruby","js"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"snowball\"],\n \"text\" : \"detailed output\",\n \"explain\" : true,\n \"attributes\" : [\"keyword\"] <1>\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":308},"digest":"cf3af9502f758de0682176adb30e7128","lang":"console-result","found":[],"source":"{\n \"detail\" : {\n \"custom_analyzer\" : true,\n \"charfilters\" : [ ],\n \"tokenizer\" : {\n \"name\" : \"standard\",\n \"tokens\" : [ {\n \"token\" : \"detailed\",\n \"start_offset\" : 0,\n \"end_offset\" : 8,\n \"type\" : \"\",\n \"position\" : 0\n }, {\n \"token\" : \"output\",\n \"start_offset\" : 9,\n \"end_offset\" : 15,\n \"type\" : \"\",\n \"position\" : 1\n } ]\n },\n \"tokenfilters\" : [ {\n \"name\" : \"snowball\",\n \"tokens\" : [ {\n \"token\" : \"detail\",\n \"start_offset\" : 0,\n \"end_offset\" : 8,\n \"type\" : \"\",\n \"position\" : 0,\n \"keyword\" : false <1>\n }, {\n \"token\" : \"output\",\n \"start_offset\" : 9,\n \"end_offset\" : 15,\n \"type\" : \"\",\n \"position\" : 1,\n \"keyword\" : false <1>\n } ]\n } ]\n }\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":367},"digest":"0957bbd535f58c97b12ffba90813d64c","lang":"console","found":["python","ruby","js"],"source":"PUT /analyze_sample\n{\n \"settings\" : {\n \"index.analyze.max_token_count\" : 20000\n }\n}"},
{"source_location":{"file":"indices/analyze.asciidoc","line":378},"digest":"3951d7fcd7f849fa278daf342872125a","lang":"console","found":["python","ruby","js"],"source":"GET /analyze_sample/_analyze\n{\n \"text\" : \"this is a test\"\n}"},
{"source_location":{"file":"indices/diskusage.asciidoc","line":21},"digest":"db8710a9793ae0817a45892d33468160","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_disk_usage?run_expensive_tasks=true"},
{"source_location":{"file":"indices/diskusage.asciidoc","line":75},"digest":"db8710a9793ae0817a45892d33468160","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_disk_usage?run_expensive_tasks=true"},
{"source_location":{"file":"indices/clearcache.asciidoc","line":17},"digest":"ce0c3d7330727f7673cf68fc9a1cfb86","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_cache/clear"},
{"source_location":{"file":"indices/clearcache.asciidoc","line":116},"digest":"49f4d2a461536d150e16b1e0a3148678","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_cache/clear?fielddata=true <1>\nPOST /my-index-000001/_cache/clear?query=true <2>\nPOST /my-index-000001/_cache/clear?request=true <3>"},
{"source_location":{"file":"indices/clearcache.asciidoc","line":136},"digest":"4cdbd53f08df4bf66e2a47c0f1fcb3f8","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_cache/clear?fields=foo,bar <1>"},
{"source_location":{"file":"indices/clearcache.asciidoc","line":148},"digest":"f43ec4041e3b72bbde063452990bfc4b","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001,my-index-000002/_cache/clear"},
{"source_location":{"file":"indices/clearcache.asciidoc","line":158},"digest":"c4a1d03dcfb82913d0724a42b0a89f20","lang":"console","found":["python","ruby","js"],"source":"POST /_cache/clear"},
{"source_location":{"file":"indices/clone-index.asciidoc","line":16},"digest":"77e3dcd87d2b2c8e6ec842462b02df1f","lang":"console","found":["python","js"],"source":"POST /my-index-000001/_clone/cloned-my-index-000001"},
{"source_location":{"file":"indices/clone-index.asciidoc","line":45},"digest":"89d2a3748dc14c6d5d4c6f94b9b03938","lang":"console","found":["python","ruby","js"],"source":"PUT /my_source_index/_block/write"},
{"source_location":{"file":"indices/clone-index.asciidoc","line":97},"digest":"190a21e32db2125ddaea0f634e126a84","lang":"console","found":["python","ruby","js"],"source":"POST /my_source_index/_clone/my_target_index"},
{"source_location":{"file":"indices/clone-index.asciidoc","line":123},"digest":"81612c2537386e031b7eb604f6756a71","lang":"console","found":["python","ruby","js"],"source":"POST /my_source_index/_clone/my_target_index\n{\n \"settings\": {\n \"index.number_of_shards\": 5 <1>\n },\n \"aliases\": {\n \"my_search_indices\": {}\n }\n}"},
{"source_location":{"file":"indices/close.asciidoc","line":16},"digest":"59b8b9555f4aa30bc4613f819e9fc8f0","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_close"},
{"source_location":{"file":"indices/close.asciidoc","line":78},"digest":"59b8b9555f4aa30bc4613f819e9fc8f0","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_close"},
{"source_location":{"file":"indices/close.asciidoc","line":86},"digest":"172a6e991fa9b190bf6e3b0fe513a9cc","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true,\n \"shards_acknowledged\": true,\n \"indices\": {\n \"my-index-000001\": {\n \"closed\": true\n }\n }\n}"},
{"source_location":{"file":"indices/create-index.asciidoc","line":16},"digest":"60f889fbed5df3185444f7015b48ed76","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001"},
{"source_location":{"file":"indices/create-index.asciidoc","line":136},"digest":"63cc960215ae83b359c12df3c0993bfa","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"index\": {\n \"number_of_shards\": 3, <1>\n \"number_of_replicas\": 2 <2>\n }\n }\n}"},
{"source_location":{"file":"indices/create-index.asciidoc","line":154},"digest":"a9fe70387d9c96a07830e1859c57efbb","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"number_of_shards\": 3,\n \"number_of_replicas\": 2\n }\n}"},
{"source_location":{"file":"indices/create-index.asciidoc","line":178},"digest":"934aa38c3adcc4cf74ea40cd8736876c","lang":"console","found":["python","ruby","go","js"],"source":"PUT /test\n{\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"mappings\": {\n \"properties\": {\n \"field1\": { \"type\": \"text\" }\n }\n }\n}"},
{"source_location":{"file":"indices/create-index.asciidoc","line":198},"digest":"e84e23232c7ecc8d6377ec2c16a60269","lang":"console","found":["python","ruby","js"],"source":"PUT /test\n{\n \"aliases\": {\n \"alias_1\": {},\n \"alias_2\": {\n \"filter\": {\n \"term\": { \"user.id\": \"kimchy\" }\n },\n \"routing\": \"shard-1\"\n }\n }\n}"},
{"source_location":{"file":"indices/create-index.asciidoc","line":216},"digest":"ab8b4537fad80107bc88f633d4039a52","lang":"console","found":["python","ruby","js"],"source":"PUT /logs\n{\n \"aliases\": {\n \"\": {}\n }\n}"},
{"source_location":{"file":"indices/create-index.asciidoc","line":233},"digest":"cccdfed2384a7202b718bc57d7a50d24","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true,\n \"shards_acknowledged\": true,\n \"index\": \"logs\"\n}"},
{"source_location":{"file":"indices/create-index.asciidoc","line":257},"digest":"de876505acc75d371d1f6f484c449197","lang":"console","found":["python","ruby","go","js"],"source":"PUT /test\n{\n \"settings\": {\n \"index.write.wait_for_active_shards\": \"2\"\n }\n}"},
{"source_location":{"file":"indices/create-index.asciidoc","line":270},"digest":"fabe14480624a99e8ee42c7338672058","lang":"console","found":["php","python","ruby","go","js"],"source":"PUT /test?wait_for_active_shards=2"},
{"source_location":{"file":"indices/add-alias.asciidoc","line":16},"digest":"114d470e752efa9672ca68d7290fada8","lang":"console","found":["python","ruby","js"],"source":"PUT my-data-stream/_alias/my-alias"},
{"source_location":{"file":"indices/put-component-template.asciidoc","line":19},"digest":"e784fc00894635470adfd78a0c46b427","lang":"console","found":["python","ruby","js"],"source":"PUT _component_template/template_1\n{\n \"template\": {\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"mappings\": {\n \"_source\": {\n \"enabled\": false\n },\n \"properties\": {\n \"host_name\": {\n \"type\": \"keyword\"\n },\n \"created_at\": {\n \"type\": \"date\",\n \"format\": \"EEE MMM dd HH:mm:ss Z yyyy\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-component-template.asciidoc","line":196},"digest":"b583bf8d3a2f49d633aa2cfed5606418","lang":"console","found":["python","ruby","js"],"source":"PUT _component_template/template_1\n{\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 1\n },\n \"aliases\" : {\n \"alias1\" : {},\n \"alias2\" : {\n \"filter\" : {\n \"term\" : {\"user.id\" : \"kimchy\" }\n },\n \"routing\" : \"shard-1\"\n },\n \"{index}-alias\" : {} <1>\n }\n }\n}"},
{"source_location":{"file":"indices/put-component-template.asciidoc","line":236},"digest":"c6339d09f85000a6432304b0ec63b8f6","lang":"console","found":["python","ruby","js"],"source":"PUT /_component_template/template_1\n{\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 1\n }\n },\n \"version\": 123\n}"},
{"source_location":{"file":"indices/put-component-template.asciidoc","line":262},"digest":"5b2a13366bd4e1ab4b25d04d360570dc","lang":"console","found":["python","ruby","js"],"source":"PUT /_component_template/template_1\n{\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 1\n }\n },\n \"_meta\": {\n \"description\": \"set number of shards to one\",\n \"serialization\": {\n \"class\": \"MyComponentTemplate\",\n \"id\": 10\n }\n }\n}"},
{"source_location":{"file":"indices/put-index-template.asciidoc","line":18},"digest":"c4b727723b57052b6504bb74fe09abc6","lang":"console","found":["python","js"],"source":"PUT /_index_template/template_1\n{\n \"index_patterns\" : [\"template*\"],\n \"priority\" : 1,\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 2\n }\n }\n}"},
{"source_location":{"file":"indices/put-index-template.asciidoc","line":195},"digest":"194bbac15e709174ac85b681f3a3d137","lang":"console","found":["python","js"],"source":"PUT _index_template/template_1\n{\n \"index_patterns\" : [\"template*\"],\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 1\n },\n \"aliases\" : {\n \"alias1\" : {},\n \"alias2\" : {\n \"filter\" : {\n \"term\" : {\"user.id\" : \"kimchy\" }\n },\n \"routing\" : \"shard-1\"\n },\n \"{index}-alias\" : {} <1>\n }\n }\n}"},
{"source_location":{"file":"indices/put-index-template.asciidoc","line":227},"digest":"57e0bbab98f17d5b564d1ea146a55fe4","lang":"console","found":["python","js"],"source":"PUT /_index_template/template_1\n{\n \"index_patterns\" : [\"temp*\"],\n \"priority\" : 0,\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 1,\n \"number_of_replicas\": 0\n },\n \"mappings\" : {\n \"_source\" : { \"enabled\" : false }\n }\n }\n}\n\nPUT /_index_template/template_2\n{\n \"index_patterns\" : [\"template*\"],\n \"priority\" : 1,\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 2\n },\n \"mappings\" : {\n \"_source\" : { \"enabled\" : true }\n }\n }\n}"},
{"source_location":{"file":"indices/put-index-template.asciidoc","line":277},"digest":"9138550002cb26ab64918cce427963b8","lang":"console","found":["python","ruby","js"],"source":"PUT /_index_template/template_1\n{\n \"index_patterns\" : [\"foo\", \"bar\"],\n \"priority\" : 0,\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 1\n }\n },\n \"version\": 123\n}"},
{"source_location":{"file":"indices/put-index-template.asciidoc","line":305},"digest":"0d8063b484a18f8672fb5ed8712c5c97","lang":"console","found":["python","ruby","js"],"source":"PUT /_index_template/template_1\n{\n \"index_patterns\": [\"foo\", \"bar\"],\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 3\n }\n },\n \"_meta\": {\n \"description\": \"set number of shards to three\",\n \"serialization\": {\n \"class\": \"MyIndexTemplate\",\n \"id\": 17\n }\n }\n}"},
{"source_location":{"file":"indices/put-index-template.asciidoc","line":333},"digest":"196aed02b11def364bab84e455c1a073","lang":"console","found":["python","ruby","js"],"source":"PUT /_index_template/template_1\n{\n \"index_patterns\": [\"logs-*\"],\n \"data_stream\": { }\n}"},
{"source_location":{"file":"indices/put-index-template.asciidoc","line":353},"digest":"cd38c601ab293a6ec0e2df71d0c96b58","lang":"console","found":["python","js"],"source":"PUT /_component_template/template_with_2_shards\n{\n \"template\": {\n \"settings\": {\n \"index.number_of_shards\": 2\n }\n }\n}\n\nPUT /_component_template/template_with_3_shards\n{\n \"template\": {\n \"settings\": {\n \"index.number_of_shards\": 3\n }\n }\n}\n\nPUT /_index_template/template_1\n{\n \"index_patterns\": [\"t*\"],\n \"composed_of\": [\"template_with_2_shards\", \"template_with_3_shards\"]\n}"},
{"source_location":{"file":"indices/put-index-template-v1.asciidoc","line":20},"digest":"e5f50b31f165462d883ecbff45f74985","lang":"console","found":["php","python","js"],"source":"PUT _template/template_1\n{\n \"index_patterns\": [\"te*\", \"bar*\"],\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"mappings\": {\n \"_source\": {\n \"enabled\": false\n },\n \"properties\": {\n \"host_name\": {\n \"type\": \"keyword\"\n },\n \"created_at\": {\n \"type\": \"date\",\n \"format\": \"EEE MMM dd HH:mm:ss Z yyyy\"\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-index-template-v1.asciidoc","line":155},"digest":"0fc4b589df5388da784c6d981e769e31","lang":"console","found":["python","js"],"source":"PUT _template/template_1\n{\n \"index_patterns\" : [\"te*\"],\n \"settings\" : {\n \"number_of_shards\" : 1\n },\n \"aliases\" : {\n \"alias1\" : {},\n \"alias2\" : {\n \"filter\" : {\n \"term\" : {\"user.id\" : \"kimchy\" }\n },\n \"routing\" : \"shard-1\"\n },\n \"{index}-alias\" : {} <1>\n }\n}"},
{"source_location":{"file":"indices/put-index-template-v1.asciidoc","line":189},"digest":"6ba332596f5eb29660c90ab2d480e7dc","lang":"console","found":["python","js"],"source":"PUT /_template/template_1\n{\n \"index_patterns\" : [\"te*\"],\n \"order\" : 0,\n \"settings\" : {\n \"number_of_shards\" : 1\n },\n \"mappings\" : {\n \"_source\" : { \"enabled\" : false }\n }\n}\n\nPUT /_template/template_2\n{\n \"index_patterns\" : [\"tes*\"],\n \"order\" : 1,\n \"settings\" : {\n \"number_of_shards\" : 1\n },\n \"mappings\" : {\n \"_source\" : { \"enabled\" : true }\n }\n}"},
{"source_location":{"file":"indices/put-index-template-v1.asciidoc","line":240},"digest":"488f6df1df71972392b670ce557f7ff3","lang":"console","found":["python","ruby","js"],"source":"PUT /_template/template_1\n{\n \"index_patterns\" : [\"my-index-*\"],\n \"order\" : 0,\n \"settings\" : {\n \"number_of_shards\" : 1\n },\n \"version\": 123\n}"},
{"source_location":{"file":"indices/put-index-template-v1.asciidoc","line":258},"digest":"46658f00edc4865dfe472a392374cd0f","lang":"console","found":["php","python","ruby","js"],"source":"GET /_template/template_1?filter_path=*.version"},
{"source_location":{"file":"indices/put-index-template-v1.asciidoc","line":266},"digest":"a2e618c0a7ef9368e0b39e7ece15e27e","lang":"console-result","found":[],"source":"{\n \"template_1\" : {\n \"version\" : 123\n }\n}"},
{"source_location":{"file":"indices/delete-component-template.asciidoc","line":31},"digest":"4f140d8922efdf3420e41b1cb669a289","lang":"console","found":["python","ruby","js"],"source":"DELETE _component_template/template_1"},
{"source_location":{"file":"indices/dangling-index-delete.asciidoc","line":19},"digest":"31f4400716500149cccbc19aa06bff66","lang":"console","found":["python","js"],"source":"DELETE /_dangling/?accept_data_loss=true"},
{"source_location":{"file":"indices/delete-alias.asciidoc","line":16},"digest":"f5140f08f56c64b5789357539f8b9ba8","lang":"console","found":["python","ruby","js"],"source":"DELETE my-data-stream/_alias/my-alias"},
{"source_location":{"file":"indices/delete-index.asciidoc","line":16},"digest":"caab99520d3fe41f6154d74a7f696057","lang":"console","found":["python","ruby","js"],"source":"DELETE /my-index-000001"},
{"source_location":{"file":"indices/delete-index-template.asciidoc","line":32},"digest":"bd458073196a19ecdeb24a8016488c20","lang":"console","found":["python","ruby","js"],"source":"DELETE /_index_template/my-index-template"},
{"source_location":{"file":"indices/delete-index-template-v1.asciidoc","line":35},"digest":"599f693cc7d30b1153f5eeecec8eb23a","lang":"console","found":["python","ruby","js"],"source":"DELETE /_template/my-legacy-index-template"},
{"source_location":{"file":"indices/indices-exists.asciidoc","line":16},"digest":"f45990264f8755b96b11c69c12c90ff4","lang":"console","found":["python","ruby","js"],"source":"HEAD my-data-stream"},
{"source_location":{"file":"indices/field-usage-stats.asciidoc","line":23},"digest":"bcb572658986d69ae17c28ddd7e4bfd8","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_field_usage_stats"},
{"source_location":{"file":"indices/field-usage-stats.asciidoc","line":172},"digest":"bcb572658986d69ae17c28ddd7e4bfd8","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_field_usage_stats"},
{"source_location":{"file":"indices/flush.asciidoc","line":16},"digest":"63e20883732ec30b5400046be2efb0f1","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_flush"},
{"source_location":{"file":"indices/flush.asciidoc","line":127},"digest":"63e20883732ec30b5400046be2efb0f1","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_flush"},
{"source_location":{"file":"indices/flush.asciidoc","line":137},"digest":"c208a06212dc0cf6ac413d4f2c154296","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001,my-index-000002/_flush"},
{"source_location":{"file":"indices/flush.asciidoc","line":147},"digest":"f27c28ddbf4c266b5f42d14da837b8de","lang":"console","found":["python","ruby","js"],"source":"POST /_flush"},
{"source_location":{"file":"indices/forcemerge.asciidoc","line":18},"digest":"9b345e0bfd45f3a37194585ec9193478","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_forcemerge"},
{"source_location":{"file":"indices/forcemerge.asciidoc","line":179},"digest":"9b345e0bfd45f3a37194585ec9193478","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_forcemerge"},
{"source_location":{"file":"indices/forcemerge.asciidoc","line":189},"digest":"a9c08023354aa9b9023807962df71d13","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001,my-index-000002/_forcemerge"},
{"source_location":{"file":"indices/forcemerge.asciidoc","line":199},"digest":"480e531db799c4c909afd8e2a73a8d0b","lang":"console","found":["python","ruby","js"],"source":"POST /_forcemerge"},
{"source_location":{"file":"indices/forcemerge.asciidoc","line":216},"digest":"004743b9c9f61588926ccf734696b713","lang":"console","found":["python","ruby","js"],"source":"POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1"},
{"source_location":{"file":"indices/get-alias.asciidoc","line":16},"digest":"412f8238ab5182678f1d8f6383031b11","lang":"console","found":["python","ruby","js"],"source":"GET my-data-stream/_alias/my-alias"},
{"source_location":{"file":"indices/get-component-template.asciidoc","line":46},"digest":"827b7e9308ea288f18aea00a5accc38e","lang":"console","found":["python","ruby","js"],"source":"GET /_component_template/template_1"},
{"source_location":{"file":"indices/get-component-template.asciidoc","line":92},"digest":"6c72460570307f23478100db04a84c8e","lang":"console","found":["python","ruby","js"],"source":"GET /_component_template/temp*"},
{"source_location":{"file":"indices/get-component-template.asciidoc","line":101},"digest":"dd4f051ab62f0507e3b6e3d6f333e85f","lang":"console","found":["python","ruby","js"],"source":"GET /_component_template"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":20},"digest":"6fa570ae7039171e2ab722344ec1063f","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_mapping/field/user"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":80},"digest":"136ae86b8d497dda799cf1cb583df929","lang":"console","found":["python","ruby","js"],"source":"PUT /publications\n{\n \"mappings\": {\n \"properties\": {\n \"id\": { \"type\": \"text\" },\n \"title\": { \"type\": \"text\" },\n \"abstract\": { \"type\": \"text\" },\n \"author\": {\n \"properties\": {\n \"id\": { \"type\": \"text\" },\n \"name\": { \"type\": \"text\" }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":102},"digest":"299900fb08da80fe455cf3f1bb7d62ee","lang":"console","found":["python","ruby","js"],"source":"GET publications/_mapping/field/title"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":110},"digest":"22f71640207a2e3d4dd49aac36040ec8","lang":"console-result","found":[],"source":"{\n \"publications\": {\n \"mappings\": {\n \"title\": {\n \"full_name\": \"title\",\n \"mapping\": {\n \"title\": {\n \"type\": \"text\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":135},"digest":"ed3bdf4d6799b43526851e92b6a60c55","lang":"console","found":["python","ruby","js"],"source":"GET publications/_mapping/field/author.id,abstract,name"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":143},"digest":"e7f96a786722ae6daca6f8bcc6cd90d1","lang":"console-result","found":[],"source":"{\n \"publications\": {\n \"mappings\": {\n \"author.id\": {\n \"full_name\": \"author.id\",\n \"mapping\": {\n \"id\": {\n \"type\": \"text\"\n }\n }\n },\n \"abstract\": {\n \"full_name\": \"abstract\",\n \"mapping\": {\n \"abstract\": {\n \"type\": \"text\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":171},"digest":"b61afb7ca29a11243232ffcc8b5a43cf","lang":"console","found":["python","ruby","js"],"source":"GET publications/_mapping/field/a*"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":179},"digest":"75311399baa651a6df82f8bf60aaec3a","lang":"console-result","found":[],"source":"{\n \"publications\": {\n \"mappings\": {\n \"author.name\": {\n \"full_name\": \"author.name\",\n \"mapping\": {\n \"name\": {\n \"type\": \"text\"\n }\n }\n },\n \"abstract\": {\n \"full_name\": \"abstract\",\n \"mapping\": {\n \"abstract\": {\n \"type\": \"text\"\n }\n }\n },\n \"author.id\": {\n \"full_name\": \"author.id\",\n \"mapping\": {\n \"id\": {\n \"type\": \"text\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":232},"digest":"29d9df958de292cec50daaf31844b573","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001,my-index-000002/_mapping/field/message"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":242},"digest":"646d71869f1a18c5bede7759559bfc47","lang":"console","found":["python","ruby","js"],"source":"GET /_all/_mapping/field/message"},
{"source_location":{"file":"indices/get-field-mapping.asciidoc","line":251},"digest":"dbdd58cdeac9ef20b42ff73e4864e697","lang":"console","found":["python","ruby","js"],"source":"GET /_all/_mapping/field/*.id"},
{"source_location":{"file":"indices/get-index.asciidoc","line":17},"digest":"a6bb306ca250cf651f19cae808b97012","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001"},
{"source_location":{"file":"indices/get-settings.asciidoc","line":17},"digest":"e1d6ecab4148b09f4c605474157e7dbd","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings"},
{"source_location":{"file":"indices/get-settings.asciidoc","line":82},"digest":"2f0b2181c434a879a23b4643bdd92575","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001,my-index-000002/_settings\n\nGET /_all/_settings\n\nGET /log_2099_*/_settings"},
{"source_location":{"file":"indices/get-settings.asciidoc","line":98},"digest":"5faa121e00a0582160b2adb2b72fed67","lang":"console","found":["python","ruby","js"],"source":"GET /log_2099_-*/_settings/index.number_*"},
{"source_location":{"file":"indices/get-index-template.asciidoc","line":41},"digest":"3759ca688c4bd3c838780a9aad63258b","lang":"console","found":["python","ruby","js"],"source":"GET /_index_template/template_1"},
{"source_location":{"file":"indices/get-index-template.asciidoc","line":84},"digest":"275ec358d5d1e4b9ff06cb4ae7e47650","lang":"console","found":["python","ruby","js"],"source":"GET /_index_template/temp*"},
{"source_location":{"file":"indices/get-index-template.asciidoc","line":93},"digest":"3b40db1c5c6b36f087d7a09a4ce285c6","lang":"console","found":["python","ruby","js"],"source":"GET /_index_template"},
{"source_location":{"file":"indices/get-index-template-v1.asciidoc","line":41},"digest":"02f65c6bab8f40bf3ce18160623d1870","lang":"console","found":["python","ruby","js"],"source":"GET /_template/template_1"},
{"source_location":{"file":"indices/get-index-template-v1.asciidoc","line":85},"digest":"24aee6033bf77a68ced74e3fd9d34283","lang":"console","found":["python","ruby","js"],"source":"GET /_template/template_1,template_2"},
{"source_location":{"file":"indices/get-index-template-v1.asciidoc","line":94},"digest":"ba6040de55afb2c8fb9e5b24bb038820","lang":"console","found":["python","ruby","js"],"source":"GET /_template/temp*"},
{"source_location":{"file":"indices/get-index-template-v1.asciidoc","line":103},"digest":"fd2d289e6b725fcc3cbe8fe7ffe02ea0","lang":"console","found":["python","ruby","js"],"source":"GET /_template"},
{"source_location":{"file":"indices/get-mapping.asciidoc","line":17},"digest":"a6fdd0100cd362df54af6c95d1055c96","lang":"console","found":["python","ruby","go","js"],"source":"GET /my-index-000001/_mapping"},
{"source_location":{"file":"indices/get-mapping.asciidoc","line":76},"digest":"1259a9c151730e42de35bb2d1ba700c6","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001,my-index-000002/_mapping"},
{"source_location":{"file":"indices/get-mapping.asciidoc","line":85},"digest":"5b7d6f1db88ca6f42c48fa3dbb4341e8","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /*/_mapping\n\nGET /_all/_mapping\n\nGET /_mapping"},
{"source_location":{"file":"indices/dangling-index-import.asciidoc","line":19},"digest":"a3d943ac9d45b4eff4aa0c679b4eceb3","lang":"console","found":["python","js"],"source":"POST /_dangling/?accept_data_loss=true"},
{"source_location":{"file":"indices/dangling-index-import.asciidoc","line":65},"digest":"ca98afbd6a90f63e02f62239d225313b","lang":"console","found":["python","js"],"source":"POST /_dangling/zmM4e0JtBkeUjiHD-MihPQ?accept_data_loss=true"},
{"source_location":{"file":"indices/dangling-index-import.asciidoc","line":73},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"indices/recovery.asciidoc","line":18},"digest":"6c70b022a8a74b887fe46e514feb38c0","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_recovery"},
{"source_location":{"file":"indices/recovery.asciidoc","line":185},"digest":"13ebcb01ebf1b5d2b5c52739db47e30c","lang":"console","found":["python","ruby","js"],"source":"GET index1,index2/_recovery?human"},
{"source_location":{"file":"indices/recovery.asciidoc","line":240},"digest":"5dfb23f6e36ef484f1d3271bae76a8d1","lang":"console","found":["python","ruby","js"],"source":"GET /_recovery?human"},
{"source_location":{"file":"indices/recovery.asciidoc","line":248},"digest":"ad9c25f4f75947bbae1b3cac8840c4ec","lang":"console-result","found":[],"source":"{\n \"index1\" : {\n \"shards\" : [ {\n \"id\" : 0,\n \"type\" : \"SNAPSHOT\",\n \"stage\" : \"INDEX\",\n \"primary\" : true,\n \"start_time\" : \"2014-02-24T12:15:59.716\",\n \"start_time_in_millis\": 1393244159716,\n \"stop_time\" : \"0s\",\n \"stop_time_in_millis\" : 0,\n \"total_time\" : \"2.9m\",\n \"total_time_in_millis\" : 175576,\n \"source\" : {\n \"repository\" : \"my_repository\",\n \"snapshot\" : \"my_snapshot\",\n \"index\" : \"index1\",\n \"version\" : \"{version}\",\n \"restoreUUID\": \"PDh1ZAOaRbiGIVtCvZOMww\"\n },\n \"target\" : {\n \"id\" : \"ryqJ5lO5S4-lSFbGntkEkg\",\n \"host\" : \"my.fqdn\",\n \"transport_address\" : \"my.fqdn\",\n \"ip\" : \"10.0.1.7\",\n \"name\" : \"my_es_node\"\n },\n \"index\" : {\n \"size\" : {\n \"total\" : \"75.4mb\",\n \"total_in_bytes\" : 79063092,\n \"reused\" : \"0b\",\n \"reused_in_bytes\" : 0,\n \"recovered\" : \"65.7mb\",\n \"recovered_in_bytes\" : 68891939,\n \"recovered_from_snapshot\" : \"0b\",\n \"recovered_from_snapshot_in_bytes\" : 0,\n \"percent\" : \"87.1%\"\n },\n \"files\" : {\n \"total\" : 73,\n \"reused\" : 0,\n \"recovered\" : 69,\n \"percent\" : \"94.5%\"\n },\n \"total_time\" : \"0s\",\n \"total_time_in_millis\" : 0,\n \"source_throttle_time\" : \"0s\",\n \"source_throttle_time_in_millis\" : 0,\n \"target_throttle_time\" : \"0s\",\n \"target_throttle_time_in_millis\" : 0\n },\n \"translog\" : {\n \"recovered\" : 0,\n \"total\" : 0,\n \"percent\" : \"100.0%\",\n \"total_on_start\" : 0,\n \"total_time\" : \"0s\",\n \"total_time_in_millis\" : 0\n },\n \"verify_index\" : {\n \"check_index_time\" : \"0s\",\n \"check_index_time_in_millis\" : 0,\n \"total_time\" : \"0s\",\n \"total_time_in_millis\" : 0\n }\n } ]\n }\n}"},
{"source_location":{"file":"indices/recovery.asciidoc","line":342},"digest":"5619103306878d58a058bce87c5bd82b","lang":"console","found":["python","ruby","js"],"source":"GET _recovery?human&detailed=true"},
{"source_location":{"file":"indices/recovery.asciidoc","line":350},"digest":"f0f96ba78c7181319fc3d669b3a7ae2b","lang":"console-result","found":[],"source":"{\n \"index1\" : {\n \"shards\" : [ {\n \"id\" : 0,\n \"type\" : \"EXISTING_STORE\",\n \"stage\" : \"DONE\",\n \"primary\" : true,\n \"start_time\" : \"2014-02-24T12:38:06.349\",\n \"start_time_in_millis\" : \"1393245486349\",\n \"stop_time\" : \"2014-02-24T12:38:08.464\",\n \"stop_time_in_millis\" : \"1393245488464\",\n \"total_time\" : \"2.1s\",\n \"total_time_in_millis\" : 2115,\n \"source\" : {\n \"id\" : \"RGMdRc-yQWWKIBM4DGvwqQ\",\n \"host\" : \"my.fqdn\",\n \"transport_address\" : \"my.fqdn\",\n \"ip\" : \"10.0.1.7\",\n \"name\" : \"my_es_node\"\n },\n \"target\" : {\n \"id\" : \"RGMdRc-yQWWKIBM4DGvwqQ\",\n \"host\" : \"my.fqdn\",\n \"transport_address\" : \"my.fqdn\",\n \"ip\" : \"10.0.1.7\",\n \"name\" : \"my_es_node\"\n },\n \"index\" : {\n \"size\" : {\n \"total\" : \"24.7mb\",\n \"total_in_bytes\" : 26001617,\n \"reused\" : \"24.7mb\",\n \"reused_in_bytes\" : 26001617,\n \"recovered\" : \"0b\",\n \"recovered_in_bytes\" : 0,\n \"recovered_from_snapshot\" : \"0b\",\n \"recovered_from_snapshot_in_bytes\" : 0,\n \"percent\" : \"100.0%\"\n },\n \"files\" : {\n \"total\" : 26,\n \"reused\" : 26,\n \"recovered\" : 0,\n \"percent\" : \"100.0%\",\n \"details\" : [ {\n \"name\" : \"segments.gen\",\n \"length\" : 20,\n \"recovered\" : 20\n }, {\n \"name\" : \"_0.cfs\",\n \"length\" : 135306,\n \"recovered\" : 135306,\n \"recovered_from_snapshot\": 0\n }, {\n \"name\" : \"segments_2\",\n \"length\" : 251,\n \"recovered\" : 251,\n \"recovered_from_snapshot\": 0\n }\n ]\n },\n \"total_time\" : \"2ms\",\n \"total_time_in_millis\" : 2,\n \"source_throttle_time\" : \"0s\",\n \"source_throttle_time_in_millis\" : 0,\n \"target_throttle_time\" : \"0s\",\n \"target_throttle_time_in_millis\" : 0\n },\n \"translog\" : {\n \"recovered\" : 71,\n \"total\" : 0,\n \"percent\" : \"100.0%\",\n \"total_on_start\" : 0,\n \"total_time\" : \"2.0s\",\n \"total_time_in_millis\" : 2025\n },\n \"verify_index\" : {\n \"check_index_time\" : 0,\n \"check_index_time_in_millis\" : 0,\n \"total_time\" : \"88ms\",\n \"total_time_in_millis\" : 88\n }\n } ]\n }\n}"},
{"source_location":{"file":"indices/segments.asciidoc","line":18},"digest":"1e3384bc255729b65a6f0fc8011ff733","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_segments"},
{"source_location":{"file":"indices/segments.asciidoc","line":116},"digest":"940e8c2c7ff92d71f489bdb7183c1ce6","lang":"console","found":["python","ruby","js"],"source":"GET /test/_segments"},
{"source_location":{"file":"indices/segments.asciidoc","line":125},"digest":"975b4b92464d52068516aa2f0f955cc1","lang":"console","found":["python","ruby","js"],"source":"GET /test1,test2/_segments"},
{"source_location":{"file":"indices/segments.asciidoc","line":134},"digest":"6414b9276ba1c63898c3ff5cbe03c54e","lang":"console","found":["python","ruby","js"],"source":"GET /_segments"},
{"source_location":{"file":"indices/shard-stores.asciidoc","line":19},"digest":"808f4db1e2361be77dd6816c1f818139","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_shard_stores"},
{"source_location":{"file":"indices/shard-stores.asciidoc","line":120},"digest":"cd93919e13f656ad2e6629f45c579b93","lang":"console","found":["python","ruby","js"],"source":"GET /test/_shard_stores"},
{"source_location":{"file":"indices/shard-stores.asciidoc","line":130},"digest":"af970eb8b93cdea52209e1256eba9d8c","lang":"console","found":["python","ruby","js"],"source":"GET /test1,test2/_shard_stores"},
{"source_location":{"file":"indices/shard-stores.asciidoc","line":140},"digest":"00b3b6d76a368ae71277ea24af318693","lang":"console","found":["python","ruby","js"],"source":"GET /_shard_stores"},
{"source_location":{"file":"indices/shard-stores.asciidoc","line":156},"digest":"3545261682af72f4bee57f2bac0a9590","lang":"console","found":["python","ruby","js"],"source":"GET /_shard_stores?status=green"},
{"source_location":{"file":"indices/shard-stores.asciidoc","line":165},"digest":"8fab69a688afa20f83a8d250e4e12b9f","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \"my-index-000001\": {\n \"shards\": {\n \"0\": { <1>\n \"stores\": [ <2>\n {\n \"sPa3OgxLSYGvQ4oPs-Tajw\": { <3>\n \"name\": \"node_t0\",\n \"ephemeral_id\" : \"9NlXRFGCT1m8tkvYCMK-8A\",\n \"transport_address\": \"local[1]\",\n \"external_id\": \"node_t0\",\n \"attributes\": {},\n \"roles\": [...],\n \"version\": \"8.10.0\",\n \"min_index_version\": 7000099,\n \"max_index_version\": 8100099\n },\n \"allocation_id\": \"2iNySv_OQVePRX-yaRH_lQ\", <4>\n \"allocation\" : \"primary|replica|unused\" <5>\n \"store_exception\": ... <6>\n }\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/stats.asciidoc","line":17},"digest":"92fe53019958ba466d1272da0834cf53","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_stats"},
{"source_location":{"file":"indices/stats.asciidoc","line":111},"digest":"e0b2f56c34e33ff52f8f9658be2f7ca1","lang":"console","found":["python","ruby","js"],"source":"GET /index1,index2/_stats"},
{"source_location":{"file":"indices/stats.asciidoc","line":121},"digest":"78c4035e4fbf6851140660f6ed2a1fa5","lang":"console","found":["python","ruby","js"],"source":"GET /_stats"},
{"source_location":{"file":"indices/stats.asciidoc","line":135},"digest":"a861a89f52008610e813b9f073951c58","lang":"console","found":["python","ruby","js"],"source":"GET /_stats/merge,refresh"},
{"source_location":{"file":"indices/stats.asciidoc","line":149},"digest":"7a8de5606f283f4ef171b015eef6befa","lang":"console","found":["python","ruby","js"],"source":"GET /_stats/search?groups=group1,group2"},
{"source_location":{"file":"indices/index-template-exists-v1.asciidoc","line":23},"digest":"a6be6c1cb4a556866fdccb0dee2f1dea","lang":"console","found":["python","ruby","js"],"source":"HEAD /_template/template_1"},
{"source_location":{"file":"indices/dangling-indices-list.asciidoc","line":19},"digest":"21c1e6ee886140ce0cd67184dd19b981","lang":"console","found":["python","ruby","js"],"source":"GET /_dangling"},
{"source_location":{"file":"indices/dangling-indices-list.asciidoc","line":50},"digest":"846c57205ff2a047686604c263f07cd6","lang":"console-result","found":[],"source":"{\n \"dangling_indices\": [\n {\n \"index_name\": \"my-index-000001\",\n \"index_uuid\": \"zmM4e0JtBkeUjiHD-MihPQ\",\n \"creation_date_millis\": 1589414451372,\n \"node_ids\": [\n \"pL47UN3dAb2d5RCWP6lQ3e\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"indices/open-close.asciidoc","line":17},"digest":"8739fad1fb2323950b673acf0c9f2ff5","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_open"},
{"source_location":{"file":"indices/open-close.asciidoc","line":126},"digest":"8739fad1fb2323950b673acf0c9f2ff5","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_open"},
{"source_location":{"file":"indices/open-close.asciidoc","line":134},"digest":"b7f1bac8190da1838d2b181c79b58126","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true,\n \"shards_acknowledged\" : true\n}"},
{"source_location":{"file":"indices/refresh.asciidoc","line":19},"digest":"e6dcc2911d2416a65eaec9846b956e15","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_refresh"},
{"source_location":{"file":"indices/refresh.asciidoc","line":109},"digest":"032eac56b798bea29390e102538f4a26","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001,my-index-000002/_refresh"},
{"source_location":{"file":"indices/refresh.asciidoc","line":119},"digest":"d7898526d239d2aea83727fb982f8f77","lang":"console","found":["python","ruby","js"],"source":"POST /_refresh"},
{"source_location":{"file":"indices/resolve.asciidoc","line":53},"digest":"d524db57be9f16abac5396895b9a2a59","lang":"console","found":["python","ruby","js"],"source":"GET /_resolve/index/my-index-*"},
{"source_location":{"file":"indices/resolve.asciidoc","line":107},"digest":"bd57976bc93ca64b2d3e001df9f06c82","lang":"console","found":["python","ruby","js"],"source":"GET /_resolve/index/f*,remoteCluster1:bar*?expand_wildcards=all"},
{"source_location":{"file":"indices/resolve.asciidoc","line":116},"digest":"c5d74d7f61f26ecd317a05e455d8a527","lang":"console-result","found":[],"source":"{\n \"indices\": [ <1>\n {\n \"name\": \"foo_closed\",\n \"attributes\": [\n \"closed\" <2>\n ]\n },\n {\n \"name\": \"freeze-index\",\n \"aliases\": [\n \"f-alias\"\n ],\n \"attributes\": [\n \"open\"\n ]\n },\n {\n \"name\": \"remoteCluster1:bar-01\",\n \"attributes\": [\n \"open\"\n ]\n }\n ],\n \"aliases\": [ <3>\n {\n \"name\": \"f-alias\",\n \"indices\": [\n \"freeze-index\",\n \"my-index-000001\"\n ]\n }\n ],\n \"data_streams\": [ <4>\n {\n \"name\": \"foo\",\n \"backing_indices\": [\n \".ds-foo-2099.03.07-000001\"\n ],\n \"timestamp_field\": \"@timestamp\"\n }\n ]\n}"},
{"source_location":{"file":"indices/resolve-cluster.asciidoc","line":83},"digest":"947efe87db7f8813c0878f8affc3e2d1","lang":"console","found":[],"source":"GET /_resolve/cluster"},
{"source_location":{"file":"indices/resolve-cluster.asciidoc","line":92},"digest":"43e86fbaeed068dcc981214338559b5a","lang":"console","found":["python","ruby","js"],"source":"GET /_resolve/cluster/my-index-*,cluster*:my-index-*"},
{"source_location":{"file":"indices/resolve-cluster.asciidoc","line":205},"digest":"2b7687e3d7c06824950e00618c297864","lang":"console","found":["python","ruby","js"],"source":"GET /_resolve/cluster/my-index*,clust*:my-index*"},
{"source_location":{"file":"indices/resolve-cluster.asciidoc","line":214},"digest":"2fc4e59ba2027eed14b9d470ab1ef0d5","lang":"console-result","found":[],"source":"{\n \"(local)\": { <1>\n \"connected\": true,\n \"skip_unavailable\": false,\n \"matching_indices\": true,\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n }\n },\n \"cluster_one\": {\n \"connected\": true, <2>\n \"skip_unavailable\": true, <3>\n \"matching_indices\": true, <4>\n \"version\": {\n \"number\": \"8.13.0\", <5>\n \"build_flavor\": \"default\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n }\n },\n \"cluster_two\": {\n \"connected\": true,\n \"skip_unavailable\": false,\n \"matching_indices\": true,\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n }\n }\n}"},
{"source_location":{"file":"indices/resolve-cluster.asciidoc","line":271},"digest":"ba0e7e0b18fc9ec6c623d40186d1f61b","lang":"console","found":["js"],"source":"GET /_resolve/cluster/not-present,clust*:my-index*,oldcluster:*?ignore_unavailable=false&timeout=5s"},
{"source_location":{"file":"indices/resolve-cluster.asciidoc","line":278},"digest":"0a4211c29a0cc5d59570b6a3388f42f2","lang":"console-result","found":[],"source":"{\n \"(local)\": {\n \"connected\": true,\n \"skip_unavailable\": false,\n \"error\": \"no such index [not_present]\" <1>\n },\n \"cluster_one\": {\n \"connected\": true,\n \"skip_unavailable\": true,\n \"matching_indices\": false, <2>\n \"version\": {\n \"number\": \"8.13.0\",\n \"build_flavor\": \"default\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"minimum_index_compatibility_version\": \"7.0.0\"\n }\n },\n \"cluster_two\": {\n \"connected\": false, <3>\n \"skip_unavailable\": false\n },\n \"cluster_three\": {\n \"connected\": false,\n \"skip_unavailable\": false,\n \"error\": \"Request timed out before receiving a response from the remote cluster\" <4>\n },\n \"oldcluster\": { <5>\n \"connected\": true,\n \"skip_unavailable\": false,\n \"matching_indices\": true\n }\n}"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":16},"digest":"1e547696f54582840040b1aa6661760c","lang":"console","found":["python","ruby","js"],"source":"POST my-data-stream/_rollover"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":232},"digest":"1e547696f54582840040b1aa6661760c","lang":"console","found":["python","ruby","js"],"source":"POST my-data-stream/_rollover"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":243},"digest":"af91019991bee136df5460e2fd4ac72a","lang":"console","found":["python","js"],"source":"POST my-data-stream/_rollover?lazy"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":261},"digest":"f128a9dff5051b47efe2c53c4454a68f","lang":"console","found":["python","ruby","js"],"source":"POST my-data-stream/_rollover\n{\n \"conditions\": {\n \"max_age\": \"7d\",\n \"max_docs\": 1000,\n \"max_primary_shard_size\": \"50gb\",\n \"max_primary_shard_docs\": \"2000\"\n }\n}"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":279},"digest":"34be32410315bfda356a6dca9692be8a","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true,\n \"shards_acknowledged\": true,\n \"old_index\": \".ds-my-data-stream-2099.05.06-000001\",\n \"new_index\": \".ds-my-data-stream-2099.05.07-000002\",\n \"rolled_over\": true,\n \"dry_run\": false,\n \"lazy\": false,\n \"conditions\": {\n \"[max_age: 7d]\": false,\n \"[max_docs: 1000]\": true,\n \"[max_primary_shard_size: 50gb]\": false,\n \"[max_primary_shard_docs: 2000]\": false\n }\n}"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":315},"digest":"0a46cc8fe93e372909660a63dc52ae3b","lang":"console","found":["python","ruby","js"],"source":"# PUT \nPUT %3Cmy-index-%7Bnow%2Fd%7D-000001%3E\n{\n \"aliases\": {\n \"my-alias\": {\n \"is_write_index\": true\n }\n }\n}"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":333},"digest":"066e0bdcdfa3b8afa5d1e5777f73fccb","lang":"console","found":["python","ruby","js"],"source":"POST my-alias/_rollover\n{\n \"conditions\": {\n \"max_age\": \"7d\",\n \"max_docs\": 1000,\n \"max_primary_shard_size\": \"50gb\",\n \"max_primary_shard_docs\": \"2000\"\n }\n}"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":351},"digest":"6ed0ad0ee8f3e53b4218915ebf5526d4","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true,\n \"shards_acknowledged\": true,\n \"old_index\": \"my-index-2099.05.06-000001\",\n \"new_index\": \"my-index-2099.05.07-000002\",\n \"rolled_over\": true,\n \"dry_run\": false,\n \"lazy\": false,\n \"conditions\": {\n \"[max_age: 7d]\": false,\n \"[max_docs: 1000]\": true,\n \"[max_primary_shard_size: 50gb]\": false,\n \"[max_primary_shard_docs: 2000]\": false\n }\n}"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":375},"digest":"b1ee1b0b5f7af596e5f81743cfd3755f","lang":"console","found":["python","ruby","js"],"source":"# GET /,,/_search\nGET /%3Cmy-index-%7Bnow%2Fd%7D-*%3E%2C%3Cmy-index-%7Bnow%2Fd-1d%7D-*%3E%2C%3Cmy-index-%7Bnow%2Fd-2d%7D-*%3E/_search"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":386},"digest":"83b94f9e7b3a9abca8e165ea56927714","lang":"console","found":["python","ruby","js"],"source":"# PUT \nPUT %3Cmy-index-%7Bnow%2Fd%7D-000001%3E\n{\n \"aliases\": {\n \"my-write-alias\": { }\n }\n}"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":405},"digest":"950f1230536422567f99a205ff4165ec","lang":"console","found":["python","ruby","js"],"source":"POST my-write-alias/_rollover\n{\n \"conditions\": {\n \"max_age\": \"7d\",\n \"max_docs\": 1000,\n \"max_primary_shard_size\": \"50gb\",\n \"max_primary_shard_docs\": \"2000\"\n }\n}"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":423},"digest":"6ed0ad0ee8f3e53b4218915ebf5526d4","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true,\n \"shards_acknowledged\": true,\n \"old_index\": \"my-index-2099.05.06-000001\",\n \"new_index\": \"my-index-2099.05.07-000002\",\n \"rolled_over\": true,\n \"dry_run\": false,\n \"lazy\": false,\n \"conditions\": {\n \"[max_age: 7d]\": false,\n \"[max_docs: 1000]\": true,\n \"[max_primary_shard_size: 50gb]\": false,\n \"[max_primary_shard_docs: 2000]\": false\n }\n}"},
{"source_location":{"file":"indices/rollover-index.asciidoc","line":451},"digest":"55096381f811388fafd8e244dd2402c8","lang":"console","found":["python","ruby","js"],"source":"POST my-alias/_rollover\n{\n \"settings\": {\n \"index.number_of_shards\": 2\n }\n}"},
{"source_location":{"file":"indices/shrink-index.asciidoc","line":17},"digest":"3c6abb9885cb1a997fcdd16f7fa4f673","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_shrink/shrunk-my-index-000001"},
{"source_location":{"file":"indices/shrink-index.asciidoc","line":52},"digest":"52a2d119addb15366a935115518335fd","lang":"console","found":["python","ruby","js"],"source":"PUT /my_source_index/_settings\n{\n \"settings\": {\n \"index.number_of_replicas\": 0, <1>\n \"index.routing.allocation.require._name\": \"shrink_node_name\" <2>\n }\n}"},
{"source_location":{"file":"indices/shrink-index.asciidoc","line":76},"digest":"89d2a3748dc14c6d5d4c6f94b9b03938","lang":"console","found":["python","ruby","js"],"source":"PUT /my_source_index/_block/write"},
{"source_location":{"file":"indices/shrink-index.asciidoc","line":125},"digest":"f3594de7ef39ab09b0bb12c1e76bfe6b","lang":"console","found":["python","ruby","js"],"source":"POST /my_source_index/_shrink/my_target_index\n{\n \"settings\": {\n \"index.routing.allocation.require._name\": null, <1>\n \"index.blocks.write\": null <2>\n }\n}"},
{"source_location":{"file":"indices/shrink-index.asciidoc","line":168},"digest":"76c167d8ab305cb43b594f140c902dfe","lang":"console","found":["python","ruby","js"],"source":"POST /my_source_index/_shrink/my_target_index\n{\n \"settings\": {\n \"index.number_of_replicas\": 1,\n \"index.number_of_shards\": 1, <1>\n \"index.codec\": \"best_compression\" <2>\n },\n \"aliases\": {\n \"my_search_indices\": {}\n }\n}"},
{"source_location":{"file":"indices/simulate-index.asciidoc","line":39},"digest":"caaafef1a76c2bec677704c2dc233218","lang":"console","found":["python","js"],"source":"POST /_index_template/_simulate_index/my-index-000001"},
{"source_location":{"file":"indices/simulate-index.asciidoc","line":151},"digest":"d01d309b0257d6fbca6d0941adeb3256","lang":"console","found":["python","ruby","js"],"source":"PUT /_component_template/ct1 <1>\n{\n \"template\": {\n \"settings\": {\n \"index.number_of_shards\": 2\n }\n }\n}\n\nPUT /_component_template/ct2 <2>\n{\n \"template\": {\n \"settings\": {\n \"index.number_of_replicas\": 0\n },\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date\"\n }\n }\n }\n }\n}\n\nPUT /_index_template/final-template <3>\n{\n \"index_patterns\": [\"my-index-*\"],\n \"composed_of\": [\"ct1\", \"ct2\"],\n \"priority\": 5\n}\n\nPOST /_index_template/_simulate_index/my-index-000001 <4>"},
{"source_location":{"file":"indices/simulate-index.asciidoc","line":194},"digest":"12dacfa19779969981eb8a679dcfb6d3","lang":"console-result","found":[],"source":"{\n \"template\" : {\n \"settings\" : {\n \"index\" : {\n \"number_of_shards\" : \"2\",\n \"number_of_replicas\" : \"0\",\n \"routing\" : {\n \"allocation\" : {\n \"include\" : {\n \"_tier_preference\" : \"data_content\"\n }\n }\n }\n }\n },\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n }\n }\n },\n \"aliases\" : { }\n },\n \"overlapping\" : [\n {\n \"name\" : \"template_1\",\n \"index_patterns\" : [\n \"my-index-*\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"indices/simulate-template.asciidoc","line":61},"digest":"0f7aa40ad26d59a9268630b980a3d594","lang":"console","found":["python","js"],"source":"POST /_index_template/_simulate/template_1"},
{"source_location":{"file":"indices/simulate-template.asciidoc","line":157},"digest":"3c7621a81fa982b79f040a6d2611530e","lang":"console","found":["python","ruby","js"],"source":"PUT /_component_template/ct1 <1>\n{\n \"template\": {\n \"settings\": {\n \"index.number_of_shards\": 2\n }\n }\n}\n\nPUT /_component_template/ct2 <2>\n{\n \"template\": {\n \"settings\": {\n \"index.number_of_replicas\": 0\n },\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date\"\n }\n }\n }\n }\n}\n\nPUT /_index_template/final-template <3>\n{\n \"index_patterns\": [\"my-index-*\"],\n \"composed_of\": [\"ct1\", \"ct2\"],\n \"priority\": 5\n}\n\nPOST /_index_template/_simulate/final-template <4>"},
{"source_location":{"file":"indices/simulate-template.asciidoc","line":200},"digest":"ceb8689343501db5e946d25db0db1d2b","lang":"console-result","found":[],"source":"{\n \"template\" : {\n \"settings\" : {\n \"index\" : {\n \"number_of_shards\" : \"2\", <1>\n \"number_of_replicas\" : \"0\", <2>\n \"routing\" : {\n \"allocation\" : {\n \"include\" : {\n \"_tier_preference\" : \"data_content\"\n }\n }\n }\n }\n },\n \"mappings\" : { <3>\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n }\n }\n },\n \"aliases\" : { }\n },\n \"overlapping\" : [ ]\n}"},
{"source_location":{"file":"indices/simulate-template.asciidoc","line":241},"digest":"9feff356f302ea4915347ab71cc4887a","lang":"console","found":["python","ruby","js"],"source":"POST /_index_template/_simulate\n{\n \"index_patterns\": [\"my-index-*\"],\n \"composed_of\": [\"ct2\"],\n \"priority\": 10,\n \"template\": {\n \"settings\": {\n \"index.number_of_replicas\": 1\n }\n }\n}"},
{"source_location":{"file":"indices/simulate-template.asciidoc","line":259},"digest":"2b06332affcb6458cbafb44b28d8f9ec","lang":"console-result","found":[],"source":"{\n \"template\" : {\n \"settings\" : {\n \"index\" : {\n \"number_of_replicas\" : \"1\",\n \"routing\" : {\n \"allocation\" : {\n \"include\" : {\n \"_tier_preference\" : \"data_content\"\n }\n }\n }\n }\n },\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n }\n }\n },\n \"aliases\" : { }\n },\n \"overlapping\" : [\n {\n \"name\" : \"final-template\",\n \"index_patterns\" : [\n \"my-index-*\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"indices/split-index.asciidoc","line":16},"digest":"cafed0e2c2b1d1574eb4a5ecd514a97a","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_split/split-my-index-000001\n{\n \"settings\": {\n \"index.number_of_shards\": 2\n }\n}"},
{"source_location":{"file":"indices/split-index.asciidoc","line":50},"digest":"89d2a3748dc14c6d5d4c6f94b9b03938","lang":"console","found":["python","ruby","js"],"source":"PUT /my_source_index/_block/write"},
{"source_location":{"file":"indices/split-index.asciidoc","line":90},"digest":"ebb1c7554e91adb4552599f3e5de1865","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"index\": {\n \"number_of_routing_shards\": 30\n }\n }\n}"},
{"source_location":{"file":"indices/split-index.asciidoc","line":175},"digest":"2e796e5ca59768d4426abbf9a049db3e","lang":"console","found":["python","ruby","js"],"source":"POST /my_source_index/_split/my_target_index\n{\n \"settings\": {\n \"index.number_of_shards\": 2\n }\n}"},
{"source_location":{"file":"indices/split-index.asciidoc","line":209},"digest":"f2f1cae094855a45fd8f73478bec8e70","lang":"console","found":["python","ruby","js"],"source":"POST /my_source_index/_split/my_target_index\n{\n \"settings\": {\n \"index.number_of_shards\": 5 <1>\n },\n \"aliases\": {\n \"my_search_indices\": {}\n }\n}"},
{"source_location":{"file":"indices/update-settings.asciidoc","line":19},"digest":"ea5391267ced860c00214c096e08c8d4","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"number_of_replicas\" : 2\n }\n}"},
{"source_location":{"file":"indices/update-settings.asciidoc","line":97},"digest":"7cd3d8388c51a9f6ee3f730cdaddbb89","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"refresh_interval\" : null\n }\n}"},
{"source_location":{"file":"indices/update-settings.asciidoc","line":121},"digest":"f4f557716049b23f8840d58d71e748f0","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"refresh_interval\" : \"-1\"\n }\n}"},
{"source_location":{"file":"indices/update-settings.asciidoc","line":138},"digest":"178c920d5e8ec0071f77290fa059802c","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"refresh_interval\" : \"1s\"\n }\n}"},
{"source_location":{"file":"indices/update-settings.asciidoc","line":151},"digest":"dbc50b8c934171e94604575a8b36f349","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_forcemerge?max_num_segments=5"},
{"source_location":{"file":"indices/update-settings.asciidoc","line":187},"digest":"c0ebaa33e750b87555dc352073f692e8","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_close\n\nPUT /my-index-000001/_settings\n{\n \"analysis\" : {\n \"analyzer\":{\n \"content\":{\n \"type\":\"custom\",\n \"tokenizer\":\"whitespace\"\n }\n }\n }\n}\n\nPOST /my-index-000001/_open"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":19},"digest":"56a1aa4f7fa62f2289e20607e3039bf3","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_mapping\n{\n \"properties\": {\n \"email\": {\n \"type\": \"keyword\"\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":106},"digest":"12433d2b637d002e8d5c9a1adce69d3b","lang":"console","found":["php","python","ruby","go","js"],"source":"PUT /publications"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":114},"digest":"e4be53736bcc02b03068fd72fdbfe271","lang":"console","found":["php","python","ruby","go","js"],"source":"PUT /publications/_mapping\n{\n \"properties\": {\n \"title\": { \"type\": \"text\"}\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":131},"digest":"30f3e3b9df46afd12e68bc71f18483b4","lang":"console","found":["python","ruby","js"],"source":"# Create the two indices\nPUT /my-index-000001\nPUT /my-index-000002\n\n# Update both mappings\nPUT /my-index-000001,my-index-000002/_mapping\n{\n \"properties\": {\n \"user\": {\n \"properties\": {\n \"name\": {\n \"type\": \"keyword\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":162},"digest":"a692b4c0ca7825c467880b346841f5a5","lang":"console","found":["python","ruby","go","js"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"name\": {\n \"properties\": {\n \"first\": {\n \"type\": \"text\"\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":183},"digest":"0246f73cc2ed3dfec577119e8cd15404","lang":"console","found":["python","ruby","go","js"],"source":"PUT /my-index-000001/_mapping\n{\n \"properties\": {\n \"name\": {\n \"properties\": {\n \"last\": {\n \"type\": \"text\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":218},"digest":"a5f9eb40087921e67d820775acf71522","lang":"console","found":["python","ruby","go","js"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"city\": {\n \"type\": \"text\"\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":238},"digest":"e821d27a8b810821707ba860e31f8b78","lang":"console","found":["python","ruby","go","js"],"source":"PUT /my-index-000001/_mapping\n{\n \"properties\": {\n \"city\": {\n \"type\": \"text\",\n \"fields\": {\n \"raw\": {\n \"type\": \"keyword\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":271},"digest":"5f1ed9cfdc149763b444acfbe10b0e16","lang":"console","found":["python","ruby","go","js"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"user_id\": {\n \"type\": \"keyword\",\n \"ignore_above\": 20\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":288},"digest":"d7fe687201ac87b307cd06ed015dd317","lang":"console","found":["python","ruby","go","js"],"source":"PUT /my-index-000001/_mapping\n{\n \"properties\": {\n \"user_id\": {\n \"type\": \"keyword\",\n \"ignore_above\": 100\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":327},"digest":"c6bdd5c7de79d6d9ac8e33a397b511e8","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001\n{\n \"mappings\" : {\n \"properties\": {\n \"user_id\": {\n \"type\": \"long\"\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":345},"digest":"50b5c0332949d2154c72b629b5fa6222","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_doc?refresh=wait_for\n{\n \"user_id\" : 12345\n}\n\nPOST /my-index-000001/_doc?refresh=wait_for\n{\n \"user_id\" : 12346\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":364},"digest":"cdb68b3f565df7c85e52a55864b37d40","lang":"console","found":["python","ruby","js"],"source":"PUT /my-new-index-000001\n{\n \"mappings\" : {\n \"properties\": {\n \"user_id\": {\n \"type\": \"keyword\"\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":383},"digest":"c526fca1609b4c3c1d12dfd218d69a50","lang":"console","found":["python","ruby","js"],"source":"POST /_reindex\n{\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-new-index-000001\"\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":411},"digest":"beb0b9ff4f68672273fcff1b7bae706b","lang":"console","found":["python","ruby","go","js"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"user_identifier\": {\n \"type\": \"keyword\"\n }\n }\n }\n}"},
{"source_location":{"file":"indices/put-mapping.asciidoc","line":428},"digest":"a72613de3774571ba24def4b495161b5","lang":"console","found":["python","ruby","go","js"],"source":"PUT /my-index-000001/_mapping\n{\n \"properties\": {\n \"user_id\": {\n \"type\": \"alias\",\n \"path\": \"user_identifier\"\n }\n }\n}"},
{"source_location":{"file":"ilm/apis/put-lifecycle.asciidoc","line":66},"digest":"cba3462a307e2483c14e3e198f6960e3","lang":"console","found":["python","ruby","js"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"_meta\": {\n \"description\": \"used for nginx log\",\n \"project\": {\n \"name\": \"myProject\",\n \"department\": \"myDepartment\"\n }\n },\n \"phases\": {\n \"warm\": {\n \"min_age\": \"10d\",\n \"actions\": {\n \"forcemerge\": {\n \"max_num_segments\": 1\n }\n }\n },\n \"delete\": {\n \"min_age\": \"30d\",\n \"actions\": {\n \"delete\": {}\n }\n }\n }\n }\n}"},
{"source_location":{"file":"ilm/apis/put-lifecycle.asciidoc","line":100},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ilm/apis/get-lifecycle.asciidoc","line":82},"digest":"2e7f4b9be999422a12abb680572b13c8","lang":"console","found":["python","ruby","js"],"source":"GET _ilm/policy/my_policy"},
{"source_location":{"file":"ilm/apis/get-lifecycle.asciidoc","line":91},"digest":"f362fb396fa4c561289de3d54c76637a","lang":"console-result","found":[],"source":"{\n \"my_policy\": {\n \"version\": 1, <1>\n \"modified_date\": 82392349, <2>\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"min_age\": \"10d\",\n \"actions\": {\n \"forcemerge\": {\n \"max_num_segments\": 1\n }\n }\n },\n \"delete\": {\n \"min_age\": \"30d\",\n \"actions\": {\n \"delete\": {\n \"delete_searchable_snapshot\": true\n }\n }\n }\n }\n },\n \"in_use_by\" : { <3>\n \"indices\" : [],\n \"data_streams\" : [],\n \"composable_templates\" : []\n }\n }\n}"},
{"source_location":{"file":"ilm/apis/delete-lifecycle.asciidoc","line":82},"digest":"af517b6936fa41d124d68b107b2efdc3","lang":"console","found":["python","ruby","js"],"source":"DELETE _ilm/policy/my_policy"},
{"source_location":{"file":"ilm/apis/delete-lifecycle.asciidoc","line":90},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ilm/apis/move-to-step.asciidoc","line":156},"digest":"a45605347d6438e7aecdf3b37198616d","lang":"console","found":["python","js"],"source":"POST _ilm/move/my-index-000001\n{\n \"current_step\": { <1>\n \"phase\": \"new\",\n \"action\": \"complete\",\n \"name\": \"complete\"\n },\n \"next_step\": { <2>\n \"phase\": \"warm\",\n \"action\": \"forcemerge\", <3>\n \"name\": \"forcemerge\" <4>\n }\n}"},
{"source_location":{"file":"ilm/apis/move-to-step.asciidoc","line":180},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ilm/apis/move-to-step.asciidoc","line":194},"digest":"46064e81620162a23e75002a7eeb8b10","lang":"console","found":["python","js"],"source":"POST _ilm/move/my-index-000001\n{\n \"current_step\": {\n \"phase\": \"hot\",\n \"action\": \"complete\",\n \"name\": \"complete\"\n },\n \"next_step\": {\n \"phase\": \"warm\"\n }\n}"},
{"source_location":{"file":"ilm/apis/remove-policy-from-index.asciidoc","line":93},"digest":"2720e613d520ce352b62e990c2d283f7","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_ilm/remove"},
{"source_location":{"file":"ilm/apis/remove-policy-from-index.asciidoc","line":101},"digest":"7464040de4facd0800a50d9488d41808","lang":"console-result","found":[],"source":"{\n \"has_failures\" : false,\n \"failed_indexes\" : []\n}"},
{"source_location":{"file":"ilm/apis/get-status.asciidoc","line":66},"digest":"182df084f028479ecbe8d7648ddad892","lang":"console","found":["python","ruby","js"],"source":"GET _ilm/status"},
{"source_location":{"file":"ilm/apis/get-status.asciidoc","line":73},"digest":"99e0bec31e49636bc0053ac66bc29352","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"RUNNING\"\n}"},
{"source_location":{"file":"ilm/apis/explain.asciidoc","line":106},"digest":"d14fe5838fc02224f4b5ade2626d6026","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_ilm/explain?human"},
{"source_location":{"file":"ilm/apis/explain.asciidoc","line":115},"digest":"7ff336bca5b37780ce95b1094ba54e72","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \"my-index-000001\": {\n \"index\": \"my-index-000001\",\n \"index_creation_date_millis\": 1538475653281, <1>\n \"index_creation_date\": \"2018-10-15T13:45:21.981Z\",\n \"time_since_index_creation\": \"15s\", <2>\n \"managed\": true, <3>\n \"policy\": \"my_policy\", <4>\n \"lifecycle_date_millis\": 1538475653281, <5>\n \"lifecycle_date\": \"2018-10-15T13:45:21.981Z\",\n \"age\": \"15s\", <6>\n \"phase\": \"new\",\n \"phase_time_millis\": 1538475653317, <7>\n \"phase_time\": \"2018-10-15T13:45:22.577Z\",\n \"action\": \"complete\"\n \"action_time_millis\": 1538475653317, <8>\n \"action_time\": \"2018-10-15T13:45:22.577Z\",\n \"step\": \"complete\",\n \"step_time_millis\": 1538475653317, <9>\n \"step_time\": \"2018-10-15T13:45:22.577Z\"\n }\n }\n}"},
{"source_location":{"file":"ilm/apis/explain.asciidoc","line":162},"digest":"0951ec38ced25379b224149290b41d2e","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \"test-000069\": {\n \"index\": \"test-000069\",\n \"index_creation_date_millis\": 1538475653281,\n \"time_since_index_creation\": \"25.14s\",\n \"managed\": true,\n \"policy\": \"my_lifecycle3\",\n \"lifecycle_date_millis\": 1538475653281,\n \"lifecycle_date\": \"2018-10-15T13:45:21.981Z\",\n \"age\": \"25.14s\",\n \"phase\": \"hot\",\n \"phase_time_millis\": 1538475653317,\n \"phase_time\": \"2018-10-15T13:45:22.577Z\",\n \"action\": \"rollover\",\n \"action_time_millis\": 1538475653317,\n \"action_time\": \"2018-10-15T13:45:22.577Z\",\n \"step\": \"attempt-rollover\",\n \"step_time_millis\": 1538475653317,\n \"step_time\": \"2018-10-15T13:45:22.577Z\",\n \"phase_execution\": {\n \"policy\": \"my_lifecycle3\",\n \"phase_definition\": { <1>\n \"min_age\": \"0ms\",\n \"actions\": {\n \"rollover\": {\n \"max_age\": \"30s\",\n \"max_primary_shard_docs\": 200000000, <2>\n \"min_docs\": 1\n }\n }\n },\n \"version\": 3, <3>\n \"modified_date\": \"2018-10-15T13:21:41.576Z\", <4>\n \"modified_date_in_millis\": 1539609701576 <5>\n }\n }\n }\n}"},
{"source_location":{"file":"ilm/apis/explain.asciidoc","line":216},"digest":"82d017ac4d193217000d9c88545f8139","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \"test-000020\": {\n \"index\": \"test-000020\",\n \"index_creation_date_millis\": 1538475653281,\n \"time_since_index_creation\": \"4.12m\",\n \"managed\": true,\n \"policy\": \"my_lifecycle3\",\n \"lifecycle_date_millis\": 1538475653281,\n \"lifecycle_date\": \"2018-10-15T13:45:21.981Z\",\n \"age\": \"4.12m\",\n \"phase\": \"warm\",\n \"phase_time_millis\": 1538475653317,\n \"phase_time\": \"2018-10-15T13:45:22.577Z\",\n \"action\": \"allocate\",\n \"action_time_millis\": 1538475653317,\n \"action_time\": \"2018-10-15T13:45:22.577Z\",\n \"step\": \"check-allocation\",\n \"step_time_millis\": 1538475653317,\n \"step_time\": \"2018-10-15T13:45:22.577Z\",\n \"step_info\": { <1>\n \"message\": \"Waiting for all shard copies to be active\",\n \"shards_left_to_allocate\": -1,\n \"all_shards_active\": false,\n \"number_of_replicas\": 2\n },\n \"phase_execution\": {\n \"policy\": \"my_lifecycle3\",\n \"phase_definition\": {\n \"min_age\": \"0ms\",\n \"actions\": {\n \"allocate\": {\n \"number_of_replicas\": 2,\n \"include\": {\n \"box_type\": \"warm\"\n },\n \"exclude\": {},\n \"require\": {}\n },\n \"forcemerge\": {\n \"max_num_segments\": 1\n }\n }\n },\n \"version\": 2,\n \"modified_date\": \"2018-10-15T13:20:02.489Z\",\n \"modified_date_in_millis\": 1539609602489\n }\n }\n }\n}"},
{"source_location":{"file":"ilm/apis/explain.asciidoc","line":282},"digest":"73b6f537456ca086dfca57eae4d2a4c5","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \"test-000056\": {\n \"index\": \"test-000056\",\n \"index_creation_date_millis\": 1538475653281,\n \"time_since_index_creation\": \"50.1d\",\n \"managed\": true,\n \"policy\": \"my_lifecycle3\",\n \"lifecycle_date_millis\": 1538475653281,\n \"lifecycle_date\": \"2018-10-15T13:45:21.981Z\",\n \"age\": \"50.1d\",\n \"phase\": \"hot\",\n \"phase_time_millis\": 1538475653317,\n \"phase_time\": \"2018-10-15T13:45:22.577Z\",\n \"action\": \"rollover\",\n \"action_time_millis\": 1538475653317,\n \"action_time\": \"2018-10-15T13:45:22.577Z\",\n \"step\": \"ERROR\",\n \"step_time_millis\": 1538475653317,\n \"step_time\": \"2018-10-15T13:45:22.577Z\",\n \"failed_step\": \"check-rollover-ready\", <1>\n \"is_auto_retryable_error\": true, <2>\n \"failed_step_retry_count\": 1, <3>\n \"step_info\": { <4>\n \"type\": \"cluster_block_exception\",\n \"reason\": \"index [test-000057/H7lF9n36Rzqa-KfKcnGQMg] blocked by: [FORBIDDEN/5/index read-only (api)\",\n \"index_uuid\": \"H7lF9n36Rzqa-KfKcnGQMg\",\n \"index\": \"test-000057\"\n },\n \"previous_step_info\": { <5>\n \"type\": \"cluster_block_exception\",\n \"reason\": \"index [test-000057/H7lF9n36Rzqa-KfKcnGQMg] blocked by: [FORBIDDEN/5/index read-only (api)\",\n \"index_uuid\": \"H7lF9n36Rzqa-KfKcnGQMg\",\n \"index\": \"test-000057\"\n },\n \"phase_execution\": {\n \"policy\": \"my_lifecycle3\",\n \"phase_definition\": {\n \"min_age\": \"0ms\",\n \"actions\": {\n \"rollover\": {\n \"max_age\": \"30s\"\n }\n }\n },\n \"version\": 3,\n \"modified_date\": \"2018-10-15T13:21:41.576Z\",\n \"modified_date_in_millis\": 1539609701576\n }\n }\n }\n}"},
{"source_location":{"file":"ilm/apis/start.asciidoc","line":81},"digest":"72ae3851160fcf02b8e2cdfd4e57d238","lang":"console","found":["python","ruby","js"],"source":"POST _ilm/start"},
{"source_location":{"file":"ilm/apis/start.asciidoc","line":89},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ilm/apis/stop.asciidoc","line":85},"digest":"585a34ad79aee16678b37da785933ac8","lang":"console","found":["python","ruby","js"],"source":"POST _ilm/stop"},
{"source_location":{"file":"ilm/apis/stop.asciidoc","line":93},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ilm/apis/migrate-to-data-tiers.asciidoc","line":160},"digest":"0eae571e9e1c40a40cb4b1c9530a8987","lang":"console","found":["python","ruby","js"],"source":"POST /_ilm/migrate_to_data_tiers\n{\n \"legacy_template_to_delete\": \"global-template\",\n \"node_attribute\": \"custom_attribute_name\"\n}"},
{"source_location":{"file":"ilm/apis/migrate-to-data-tiers.asciidoc","line":171},"digest":"d90abf19f59821ce7f5ea41bc305e6c9","lang":"console-result","found":[],"source":"{\n \"dry_run\": false,\n \"removed_legacy_template\":\"global-template\", <1>\n \"migrated_ilm_policies\":[\"policy_with_allocate_action\"], <2>\n \"migrated_indices\":[\"warm-index-to-migrate-000001\"], <3>\n \"migrated_legacy_templates\":[\"a-legacy-template\"], <4>\n \"migrated_composable_templates\":[\"a-composable-template\"], <5>\n \"migrated_component_templates\":[\"a-component-template\"] <6>\n}"},
{"source_location":{"file":"inference/inference-apis.asciidoc","line":114},"digest":"5ceb734e3affe00e2cdc29af748d95bf","lang":"console","found":["python","js"],"source":"PUT _inference/sparse_embedding/small_chunk_size\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1\n },\n \"chunking_settings\": {\n \"strategy\": \"sentence\",\n \"max_chunk_size\": 100,\n \"sentence_overlap\": 0\n }\n}"},
{"source_location":{"file":"inference/delete-inference.asciidoc","line":70},"digest":"4e3414fc712b16311f9e433dd366f49d","lang":"console","found":["python","ruby","js"],"source":"DELETE /_inference/sparse_embedding/my-elser-model"},
{"source_location":{"file":"inference/delete-inference.asciidoc","line":79},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"inference/get-inference.asciidoc","line":74},"digest":"a4a3c3cd09efa75168dab90105afb2e9","lang":"console","found":["python","ruby","js"],"source":"GET _inference/sparse_embedding/my-elser-model"},
{"source_location":{"file":"inference/get-inference.asciidoc","line":83},"digest":"19f731c539c36be9997e1b98bd7706e5","lang":"console-result","found":[],"source":"{\n \"inference_id\": \"my-elser-model\",\n \"task_type\": \"sparse_embedding\",\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1,\n \"model_id\": \".elser_model_2\"\n },\n \"chunking_settings\": {\n \"strategy\": \"sentence\",\n \"max_chunk_size\": 250,\n \"sentence_overlap\": 1\n }\n}"},
{"source_location":{"file":"inference/post-inference.asciidoc","line":107},"digest":"b45a8c6fc746e9c90fd181e69a605fad","lang":"console","found":["python","ruby","js"],"source":"POST _inference/completion/openai_chat_completions\n{\n \"input\": \"What is Elastic?\"\n}"},
{"source_location":{"file":"inference/post-inference.asciidoc","line":120},"digest":"945f4be1f88ca2eb5b55e6001332abc1","lang":"console-result","found":[],"source":"{\n \"completion\": [\n {\n \"result\": \"Elastic is a company that provides a range of software solutions for search, logging, security, and analytics. Their flagship product is Elasticsearch, an open-source, distributed search engine that allows users to search, analyze, and visualize large volumes of data in real-time. Elastic also offers products such as Kibana, a data visualization tool, and Logstash, a log management and pipeline tool, as well as various other tools and solutions for data analysis and management.\"\n }\n ]\n}"},
{"source_location":{"file":"inference/post-inference.asciidoc","line":138},"digest":"f1b24217b1d9ba6ea5e4fa6e6f412022","lang":"console","found":["python","ruby","js"],"source":"POST _inference/rerank/cohere_rerank\n{\n \"input\": [\"luke\", \"like\", \"leia\", \"chewy\",\"r2d2\", \"star\", \"wars\"],\n \"query\": \"star wars main character\"\n}"},
{"source_location":{"file":"inference/post-inference.asciidoc","line":151},"digest":"fca61f8c1d838d8594e3f07f99a9f90d","lang":"console-result","found":[],"source":"{\n \"rerank\": [\n {\n \"index\": \"2\",\n \"relevance_score\": \"0.011597361\",\n \"text\": \"leia\"\n },\n {\n \"index\": \"0\",\n \"relevance_score\": \"0.006338922\",\n \"text\": \"luke\"\n },\n {\n \"index\": \"5\",\n \"relevance_score\": \"0.0016166499\",\n \"text\": \"star\"\n },\n {\n \"index\": \"4\",\n \"relevance_score\": \"0.0011695103\",\n \"text\": \"r2d2\"\n },\n {\n \"index\": \"1\",\n \"relevance_score\": \"5.614787E-4\",\n \"text\": \"like\"\n },\n {\n \"index\": \"6\",\n \"relevance_score\": \"3.7850367E-4\",\n \"text\": \"wars\"\n },\n {\n \"index\": \"3\",\n \"relevance_score\": \"1.2508839E-5\",\n \"text\": \"chewy\"\n }\n ]\n}"},
{"source_location":{"file":"inference/post-inference.asciidoc","line":202},"digest":"13ecdf99114098c76b050397d9c3d4e6","lang":"console","found":["python","ruby","js"],"source":"POST _inference/sparse_embedding/my-elser-model\n{\n \"input\": \"The sky above the port was the color of television tuned to a dead channel.\"\n}"},
{"source_location":{"file":"inference/post-inference.asciidoc","line":215},"digest":"272a42202173d1e45101eceecc771d9f","lang":"console-result","found":[],"source":"{\n \"sparse_embedding\": [\n {\n \"port\": 2.1259406,\n \"sky\": 1.7073475,\n \"color\": 1.6922266,\n \"dead\": 1.6247464,\n \"television\": 1.3525393,\n \"above\": 1.2425821,\n \"tuned\": 1.1440028,\n \"colors\": 1.1218185,\n \"tv\": 1.0111054,\n \"ports\": 1.0067928,\n \"poem\": 1.0042328,\n \"channel\": 0.99471164,\n \"tune\": 0.96235967,\n \"scene\": 0.9020516,\n (...)\n },\n (...)\n ]\n}"},
{"source_location":{"file":"inference/post-inference.asciidoc","line":249},"digest":"7429b16221fe741fd31b0584786dd0b0","lang":"console","found":["python","js"],"source":"POST _inference/text_embedding/my-cohere-endpoint\n{\n \"input\": \"The sky above the port was the color of television tuned to a dead channel.\",\n \"task_settings\": {\n \"input_type\": \"ingest\"\n }\n}"},
{"source_location":{"file":"inference/post-inference.asciidoc","line":265},"digest":"6a5733fefd25919d2a212a18b91b636d","lang":"console-result","found":[],"source":"{\n \"text_embedding\": [\n {\n \"embedding\": [\n {\n 0.018569946,\n -0.036895752,\n 0.01486969,\n -0.0045204163,\n -0.04385376,\n 0.0075950623,\n 0.04260254,\n -0.004005432,\n 0.007865906,\n 0.030792236,\n -0.050476074,\n 0.011795044,\n -0.011642456,\n -0.010070801,\n (...)\n },\n (...)\n ]\n }\n ]\n}"},
{"source_location":{"file":"inference/chat-completion-inference.asciidoc","line":305},"digest":"120fcf9f55128d6a81d5e87a9c235bbd","lang":"console","found":["python","js"],"source":"POST _inference/chat_completion/openai-completion/_stream\n{\n \"model\": \"gpt-4o\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"What is Elastic?\"\n }\n ]\n}"},
{"source_location":{"file":"inference/chat-completion-inference.asciidoc","line":322},"digest":"82bb6c61dab959f4446dc5ecab7ecbdf","lang":"console","found":["python","js"],"source":"POST _inference/chat_completion/openai-completion/_stream\n{\n \"messages\": [\n {\n \"role\": \"assistant\",\n \"content\": \"Let's find out what the weather is\",\n \"tool_calls\": [ <1>\n {\n \"id\": \"call_KcAjWtAww20AihPHphUh46Gd\",\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_weather\",\n \"arguments\": \"{\\\"location\\\":\\\"Boston, MA\\\"}\"\n }\n }\n ]\n },\n { <2>\n \"role\": \"tool\",\n \"content\": \"The weather is cold\",\n \"tool_call_id\": \"call_KcAjWtAww20AihPHphUh46Gd\"\n }\n ]\n}"},
{"source_location":{"file":"inference/chat-completion-inference.asciidoc","line":356},"digest":"45954b8aaedfed57012be8b6538b0a24","lang":"console","found":["python","js"],"source":"POST _inference/chat_completion/openai-completion/_stream\n{\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": [\n {\n \"type\": \"text\",\n \"text\": \"What's the price of a scarf?\"\n }\n ]\n }\n ],\n \"tools\": [\n {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_price\",\n \"description\": \"Get the current price of a item\",\n \"parameters\": {\n \"type\": \"object\",\n \"properties\": {\n \"item\": {\n \"id\": \"123\"\n }\n }\n }\n }\n }\n ],\n \"tool_choice\": {\n \"type\": \"function\",\n \"function\": {\n \"name\": \"get_current_price\"\n }\n }\n}"},
{"source_location":{"file":"inference/stream-inference.asciidoc","line":92},"digest":"4b91ad7c9b44e07db4a4e81390f19ad3","lang":"console","found":["python","js"],"source":"POST _inference/completion/openai-completion/_stream\n{\n \"input\": \"What is Elastic?\"\n}"},
{"source_location":{"file":"inference/update-inference.asciidoc","line":83},"digest":"141ef0ebaa3b0772892b79b9bb85efb0","lang":"console","found":["python","js"],"source":"PUT _inference/my-inference-endpoint/_update\n{\n \"service_settings\": {\n \"api_key\": \"\"\n }\n}"},
{"source_location":{"file":"inference/elastic-infer-service.asciidoc","line":100},"digest":"4de4bb55bbc0a76c75d256f245a3ee3f","lang":"console","found":["js"],"source":"PUT _inference/sparse_embedding/elser-model-eis\n{\n \"service\": \"elastic\",\n \"service_settings\": {\n \"model_name\": \"elser\"\n }\n}\n"},
{"source_location":{"file":"inference/elastic-infer-service.asciidoc","line":115},"digest":"d6a4548b29e939fb197189c20c7c016f","lang":"console","found":["js"],"source":"PUT /_inference/chat_completion/chat-completion-endpoint\n{\n \"service\": \"elastic\",\n \"service_settings\": {\n \"model_id\": \"model-1\"\n }\n}"},
{"source_location":{"file":"inference/service-alibabacloud-ai-search.asciidoc","line":174},"digest":"63a53fcb0717ae9033a679cbfc932851","lang":"console","found":["python","js"],"source":"PUT _inference/completion/alibabacloud_ai_search_completion\n{\n \"service\": \"alibabacloud-ai-search\",\n \"service_settings\": {\n \"host\" : \"default-j01.platform-cn-shanghai.opensearch.aliyuncs.com\",\n \"api_key\": \"{{API_KEY}}\",\n \"service_id\": \"ops-qwen-turbo\",\n \"workspace\" : \"default\"\n }\n}"},
{"source_location":{"file":"inference/service-alibabacloud-ai-search.asciidoc","line":192},"digest":"aa676d54a59dee87ecd28bcc1edce59b","lang":"console","found":["python","js"],"source":"PUT _inference/rerank/alibabacloud_ai_search_rerank\n{\n \"service\": \"alibabacloud-ai-search\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"service_id\": \"ops-bge-reranker-larger\",\n \"host\": \"default-j01.platform-cn-shanghai.opensearch.aliyuncs.com\",\n \"workspace\": \"default\"\n }\n}"},
{"source_location":{"file":"inference/service-alibabacloud-ai-search.asciidoc","line":210},"digest":"52f4c5eb08d39f98e2e2f5527ece9731","lang":"console","found":["python","js"],"source":"PUT _inference/sparse_embedding/alibabacloud_ai_search_sparse\n{\n \"service\": \"alibabacloud-ai-search\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"service_id\": \"ops-text-sparse-embedding-001\",\n \"host\": \"default-j01.platform-cn-shanghai.opensearch.aliyuncs.com\",\n \"workspace\": \"default\"\n }\n}"},
{"source_location":{"file":"inference/service-alibabacloud-ai-search.asciidoc","line":228},"digest":"986f892bfa4dfdf1da8455fdf84a4b0c","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/alibabacloud_ai_search_embeddings\n{\n \"service\": \"alibabacloud-ai-search\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"service_id\": \"ops-text-embedding-001\",\n \"host\": \"default-j01.platform-cn-shanghai.opensearch.aliyuncs.com\",\n \"workspace\": \"default\"\n }\n}"},
{"source_location":{"file":"inference/service-amazon-bedrock.asciidoc","line":162},"digest":"0ad8edd10542ec2c4d5d8700d7e2ba97","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/amazon_bedrock_embeddings\n{\n \"service\": \"amazonbedrock\",\n \"service_settings\": {\n \"access_key\": \"\",\n \"secret_key\": \"\",\n \"region\": \"us-east-1\",\n \"provider\": \"amazontitan\",\n \"model\": \"amazon.titan-embed-text-v2:0\"\n }\n}"},
{"source_location":{"file":"inference/service-amazon-bedrock.asciidoc","line":180},"digest":"82844ef45e11c0eece100d3109db3182","lang":"console","found":["python","js"],"source":"PUT _inference/completion/amazon_bedrock_completion\n{\n \"service\": \"amazonbedrock\",\n \"service_settings\": {\n \"access_key\": \"\",\n \"secret_key\": \"\",\n \"region\": \"us-east-1\",\n \"provider\": \"amazontitan\",\n \"model\": \"amazon.titan-text-premier-v1:0\"\n }\n}"},
{"source_location":{"file":"inference/service-anthropic.asciidoc","line":137},"digest":"398389933901b572a06a752bc780af7c","lang":"console","found":["python","js"],"source":"PUT _inference/completion/anthropic_completion\n{\n \"service\": \"anthropic\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"model_id\": \"\"\n },\n \"task_settings\": {\n \"max_tokens\": 1024\n }\n}"},
{"source_location":{"file":"inference/service-azure-ai-studio.asciidoc","line":168},"digest":"1dadb7efe27b6c0c231eb6535e413bd9","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/azure_ai_studio_embeddings\n{\n \"service\": \"azureaistudio\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"target\": \"\",\n \"provider\": \"\",\n \"endpoint_type\": \"\"\n }\n}"},
{"source_location":{"file":"inference/service-azure-ai-studio.asciidoc","line":185},"digest":"6ddd4e657efbf45def430a6419825796","lang":"console","found":["python","js"],"source":"PUT _inference/completion/azure_ai_studio_completion\n{\n \"service\": \"azureaistudio\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"target\": \"\",\n \"provider\": \"\",\n \"endpoint_type\": \"\"\n }\n}"},
{"source_location":{"file":"inference/service-azure-openai.asciidoc","line":147},"digest":"77b90f6787195767b6da60d8532714b4","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/azure_openai_embeddings\n{\n \"service\": \"azureopenai\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"resource_name\": \"\",\n \"deployment_id\": \"\",\n \"api_version\": \"2024-02-01\"\n }\n}"},
{"source_location":{"file":"inference/service-azure-openai.asciidoc","line":165},"digest":"f57ce7de0946e9416ddb9150e95f4b74","lang":"console","found":["python","js"],"source":"PUT _inference/completion/azure_openai_completion\n{\n \"service\": \"azureopenai\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"resource_name\": \"\",\n \"deployment_id\": \"\",\n \"api_version\": \"2024-02-01\"\n }\n}"},
{"source_location":{"file":"inference/service-cohere.asciidoc","line":196},"digest":"9a203aae3e1412d919546276fb52a5ca","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/cohere-embeddings\n{\n \"service\": \"cohere\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"model_id\": \"embed-english-light-v3.0\",\n \"embedding_type\": \"byte\"\n }\n}"},
{"source_location":{"file":"inference/service-cohere.asciidoc","line":214},"digest":"8619bd17bbfe33490b1f277007f654db","lang":"console","found":["python","js"],"source":"PUT _inference/rerank/cohere-rerank\n{\n \"service\": \"cohere\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"model_id\": \"rerank-english-v3.0\"\n },\n \"task_settings\": {\n \"top_n\": 10,\n \"return_documents\": true\n }\n}"},
{"source_location":{"file":"inference/service-elasticsearch.asciidoc","line":140},"digest":"ad9889fd8a4b5930e312a51f3bc996dc","lang":"console","found":["python","js"],"source":"PUT _inference/sparse_embedding/my-elser-model\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"adaptive_allocations\": { <1>\n \"enabled\": true,\n \"min_number_of_allocations\": 1,\n \"max_number_of_allocations\": 4\n },\n \"num_threads\": 1,\n \"model_id\": \".elser_model_2\" <2>\n }\n}"},
{"source_location":{"file":"inference/service-elasticsearch.asciidoc","line":176},"digest":"30d051f534aeb884176eedb2c11dac85","lang":"console","found":["python","js"],"source":"PUT _inference/rerank/my-elastic-rerank\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"model_id\": \".rerank-v1\", <1>\n \"num_threads\": 1,\n \"adaptive_allocations\": { <2>\n \"enabled\": true,\n \"min_number_of_allocations\": 1,\n \"max_number_of_allocations\": 4\n }\n }\n}"},
{"source_location":{"file":"inference/service-elasticsearch.asciidoc","line":204},"digest":"00fea15cbca83be9d5f1a024ff2ec708","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/my-e5-model\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1,\n \"model_id\": \".multilingual-e5-small\" <1>\n }\n}"},
{"source_location":{"file":"inference/service-elasticsearch.asciidoc","line":236},"digest":"4c9350ed09b28f00e297ebe73c3b95a2","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/my-msmarco-minilm-model <1>\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1,\n \"model_id\": \"msmarco-MiniLM-L12-cos-v5\" <2>\n }\n}"},
{"source_location":{"file":"inference/service-elasticsearch.asciidoc","line":264},"digest":"083b92e8ea264e49bf9fd40fc6a3094b","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/my-e5-model\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"adaptive_allocations\": {\n \"enabled\": true,\n \"min_number_of_allocations\": 3,\n \"max_number_of_allocations\": 10\n },\n \"num_threads\": 1,\n \"model_id\": \".multilingual-e5-small\"\n }\n}"},
{"source_location":{"file":"inference/service-elasticsearch.asciidoc","line":289},"digest":"85f9fc6f98e8573efed9b034e853d5ae","lang":"console","found":["python","js"],"source":"PUT _inference/sparse_embedding/use_existing_deployment\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"deployment_id\": \".elser_model_2\" <1>\n }\n}"},
{"source_location":{"file":"inference/service-elasticsearch.asciidoc","line":304},"digest":"8f534b81e42a9793ac819fb9652f650b","lang":"console-result","found":[],"source":"{\n \"inference_id\": \"use_existing_deployment\",\n \"task_type\": \"sparse_embedding\",\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 2,\n \"num_threads\": 1,\n \"model_id\": \".elser_model_2\",\n \"deployment_id\": \".elser_model_2\"\n },\n \"chunking_settings\": {\n \"strategy\": \"sentence\",\n \"max_chunk_size\": 250,\n \"sentence_overlap\": 1\n }\n}"},
{"source_location":{"file":"inference/service-elser.asciidoc","line":128},"digest":"565386eee0951865a684e41fab53b40c","lang":"console","found":["python","js"],"source":"PUT _inference/sparse_embedding/my-elser-model\n{\n \"service\": \"elser\",\n \"service_settings\": {\n \"adaptive_allocations\": {\n \"enabled\": true,\n \"min_number_of_allocations\": 3,\n \"max_number_of_allocations\": 10\n },\n \"num_threads\": 1\n }\n}"},
{"source_location":{"file":"inference/service-elser.asciidoc","line":157},"digest":"cedb56a71cc743d80263ce352bb21720","lang":"console","found":["python","js"],"source":"PUT _inference/sparse_embedding/my-elser-model\n{\n \"service\": \"elser\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1\n }\n}"},
{"source_location":{"file":"inference/service-elser.asciidoc","line":172},"digest":"85eb7282ac0193478132d3de11f3ffec","lang":"console-result","found":[],"source":"{\n \"inference_id\": \"my-elser-model\",\n \"task_type\": \"sparse_embedding\",\n \"service\": \"elser\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1\n },\n \"task_settings\": {}\n}"},
{"source_location":{"file":"inference/service-google-ai-studio.asciidoc","line":103},"digest":"e9fc47015922d51c2b05e502ce9c622e","lang":"console","found":["python","js"],"source":"PUT _inference/completion/google_ai_studio_completion\n{\n \"service\": \"googleaistudio\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"model_id\": \"\"\n }\n}"},
{"source_location":{"file":"inference/service-google-vertex-ai.asciidoc","line":133},"digest":"04de2e3a9c00c2056b07bf9cf9e63a99","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/google_vertex_ai_embeddings\n{\n \"service\": \"googlevertexai\",\n \"service_settings\": {\n \"service_account_json\": \"\",\n \"model_id\": \"\",\n \"location\": \"\",\n \"project_id\": \"\"\n }\n}"},
{"source_location":{"file":"inference/service-google-vertex-ai.asciidoc","line":151},"digest":"1a9e03ce0355872a7db27fedc783fbec","lang":"console","found":["python","js"],"source":"PUT _inference/rerank/google_vertex_ai_rerank\n{\n \"service\": \"googlevertexai\",\n \"service_settings\": {\n \"service_account_json\": \"\",\n \"project_id\": \"\"\n }\n}"},
{"source_location":{"file":"inference/service-hugging-face.asciidoc","line":107},"digest":"eee6110831c08b9c1b3f56b24656e95b","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/hugging-face-embeddings\n{\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"\", <1>\n \"url\": \"\" <2>\n }\n}"},
{"source_location":{"file":"inference/service-jinaai.asciidoc","line":155},"digest":"fff86117c47f974074284644e8a97a99","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/jinaai-embeddings\n{\n \"service\": \"jinaai\",\n \"service_settings\": {\n \"model_id\": \"jina-embeddings-v3\",\n \"api_key\": \"\"\n }\n}"},
{"source_location":{"file":"inference/service-jinaai.asciidoc","line":169},"digest":"bf3c3bc41c593a80faebef1df353e483","lang":"console","found":["python","js"],"source":"PUT _inference/rerank/jinaai-rerank\n{\n \"service\": \"jinaai\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"model_id\": \"jina-reranker-v2-base-multilingual\"\n },\n \"task_settings\": {\n \"top_n\": 10,\n \"return_documents\": true\n }\n}"},
{"source_location":{"file":"inference/service-jinaai.asciidoc","line":188},"digest":"41d24383d29b2808a65258a0a3256e96","lang":"console","found":["python","js"],"source":"PUT jinaai-index\n{\n \"mappings\": {\n \"properties\": {\n \"content\": {\n \"type\": \"semantic_text\",\n \"inference_id\": \"jinaai-embeddings\"\n }\n }\n }\n}"},
{"source_location":{"file":"inference/service-jinaai.asciidoc","line":204},"digest":"9250ac57ec81d5192e8ad4c462438489","lang":"console","found":["python","js"],"source":"PUT jinaai-index/_bulk\n{ \"index\" : { \"_index\" : \"jinaai-index\", \"_id\" : \"1\" } }\n{\"content\": \"Sarah Johnson is a talented marine biologist working at the Oceanographic Institute. Her groundbreaking research on coral reef ecosystems has garnered international attention and numerous accolades.\"}\n{ \"index\" : { \"_index\" : \"jinaai-index\", \"_id\" : \"2\" } }\n{\"content\": \"She spends months at a time diving in remote locations, meticulously documenting the intricate relationships between various marine species. \"}\n{ \"index\" : { \"_index\" : \"jinaai-index\", \"_id\" : \"3\" } }\n{\"content\": \"Her dedication to preserving these delicate underwater environments has inspired a new generation of conservationists.\"}"},
{"source_location":{"file":"inference/service-jinaai.asciidoc","line":218},"digest":"5836b09198feb1269ed12839b416123d","lang":"console","found":["python","js"],"source":"GET jinaai-index/_search\n{\n \"query\": {\n \"semantic\": {\n \"field\": \"content\",\n \"query\": \"who inspired taking care of the sea?\"\n }\n }\n}"},
{"source_location":{"file":"inference/service-jinaai.asciidoc","line":232},"digest":"d3672a87a857ddb87519788236e57497","lang":"console","found":["python","js"],"source":"POST jinaai-index/_search\n{\n \"retriever\": {\n \"text_similarity_reranker\": {\n \"retriever\": {\n \"standard\": {\n \"query\": {\n \"semantic\": {\n \"field\": \"content\",\n \"query\": \"who inspired taking care of the sea?\"\n }\n }\n }\n },\n \"field\": \"content\",\n \"rank_window_size\": 100,\n \"inference_id\": \"jinaai-rerank\",\n \"inference_text\": \"who inspired taking care of the sea?\"\n }\n }\n}"},
{"source_location":{"file":"inference/service-mistral.asciidoc","line":113},"digest":"99803d7b111b862c0c82e9908e549b16","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/mistral-embeddings-test\n{\n \"service\": \"mistral\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"model\": \"mistral-embed\" <1>\n }\n}"},
{"source_location":{"file":"inference/service-openai.asciidoc","line":161},"digest":"48e142e6c69014e0509d4c9251749d77","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/openai-embeddings\n{\n \"service\": \"openai\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"model_id\": \"text-embedding-3-small\",\n \"dimensions\": 128\n }\n}"},
{"source_location":{"file":"inference/service-openai.asciidoc","line":177},"digest":"59d736a4d064ed2013c7ead8e32e0998","lang":"console","found":["python","js"],"source":"PUT _inference/completion/openai-completion\n{\n \"service\": \"openai\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"model_id\": \"gpt-3.5-turbo\"\n }\n}"},
{"source_location":{"file":"inference/service-watsonx-ai.asciidoc","line":102},"digest":"0e31b8ad176b31028becf9500989bcbd","lang":"console","found":["python","js"],"source":"PUT _inference/text_embedding/watsonx-embeddings\n{\n \"service\": \"watsonxai\",\n \"service_settings\": {\n \"api_key\": \"\", <1>\n \"url\": \"\", <2>\n \"model_id\": \"ibm/slate-30m-english-rtrvr\",\n \"project_id\": \"\", <3>\n \"api_version\": \"2024-03-14\" <4>\n }\n}\n"},
{"source_location":{"file":"rest-api/info.asciidoc","line":57},"digest":"9054187cbab5c9e1c4ca2a4dba6a5db0","lang":"console","found":["python","ruby","js"],"source":"GET /_xpack"},
{"source_location":{"file":"rest-api/info.asciidoc","line":64},"digest":"75de0642e995798a85abb53dbb36e28c","lang":"console-result","found":[],"source":"{\n \"build\" : {\n \"hash\" : \"2798b1a3ce779b3611bb53a0082d4d741e4d3168\",\n \"date\" : \"2015-04-07T13:34:42Z\"\n },\n \"license\" : {\n \"uid\" : \"893361dc-9749-4997-93cb-xxx\",\n \"type\" : \"trial\",\n \"mode\" : \"trial\",\n \"status\" : \"active\",\n \"expiry_date_in_millis\" : 1542665112332\n },\n \"features\" : {\n \"ccr\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"aggregate_metric\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"analytics\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"archive\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"enrich\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"graph\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"ilm\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"logstash\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"ml\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"esql\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"monitoring\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"rollup\": {\n \"available\": true,\n \"enabled\": true\n },\n \"searchable_snapshots\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"security\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"slm\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"spatial\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"eql\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"sql\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"transform\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"voting_only\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"watcher\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"data_streams\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"data_tiers\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"enterprise_search\": {\n \"available\": true,\n \"enabled\": true\n },\n \"universal_profiling\": {\n \"available\": true,\n \"enabled\": true\n },\n \"logsdb\": {\n \"available\": true,\n \"enabled\": true\n }\n },\n \"tagline\" : \"You know, for X\"\n}"},
{"source_location":{"file":"rest-api/info.asciidoc","line":199},"digest":"b11a0675e49df0709be693297ca73a2c","lang":"console","found":["python","ruby","js"],"source":"GET /_xpack?categories=build,features"},
{"source_location":{"file":"rest-api/info.asciidoc","line":206},"digest":"4ed946065faa92f9950f04e402676a97","lang":"console","found":["python","ruby","js"],"source":"GET /_xpack?human=false"},
{"source_location":{"file":"ingest/apis/put-pipeline.asciidoc","line":17},"digest":"6689aa213884196b47a6f482d4993749","lang":"console","found":["python","ruby","js"],"source":"PUT _ingest/pipeline/my-pipeline-id\n{\n \"description\" : \"My optional pipeline description\",\n \"processors\" : [\n {\n \"set\" : {\n \"description\" : \"My optional processor description\",\n \"field\": \"my-keyword-field\",\n \"value\": \"foo\"\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/put-pipeline.asciidoc","line":126},"digest":"04d6ce0c903bd468afbecd3aa1c4a78a","lang":"console","found":["python","ruby","js"],"source":"PUT /_ingest/pipeline/my-pipeline-id\n{\n \"description\" : \"My optional pipeline description\",\n \"processors\" : [\n {\n \"set\" : {\n \"description\" : \"My optional processor description\",\n \"field\": \"my-keyword-field\",\n \"value\": \"foo\"\n }\n }\n ],\n \"_meta\": {\n \"reason\": \"set my-keyword-field to foo\",\n \"serialization\": {\n \"class\": \"MyPipeline\",\n \"id\": 10\n }\n }\n}"},
{"source_location":{"file":"ingest/apis/get-pipeline.asciidoc","line":36},"digest":"6a3a86ff58e5f20950d429cf2832c229","lang":"console","found":["python","ruby","js"],"source":"GET /_ingest/pipeline/my-pipeline-id"},
{"source_location":{"file":"ingest/apis/get-pipeline.asciidoc","line":82},"digest":"6a3a86ff58e5f20950d429cf2832c229","lang":"console","found":["python","ruby","js"],"source":"GET /_ingest/pipeline/my-pipeline-id"},
{"source_location":{"file":"ingest/apis/get-pipeline.asciidoc","line":90},"digest":"82161823bc1112102b52bbb836311b94","lang":"console-result","found":[],"source":"{\n \"my-pipeline-id\" : {\n \"description\" : \"describe pipeline\",\n \"version\" : 123,\n \"processors\" : [\n {\n \"set\" : {\n \"field\" : \"foo\",\n \"value\" : \"bar\"\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"ingest/apis/delete-pipeline.asciidoc","line":34},"digest":"dff61a76d5ef9ca8cbe59a416269a84b","lang":"console","found":["python","ruby","js"],"source":"DELETE /_ingest/pipeline/my-pipeline-id"},
{"source_location":{"file":"ingest/apis/delete-pipeline.asciidoc","line":79},"digest":"a7cf31f4b907e4c00132aca75f55790c","lang":"console","found":["python","ruby","js"],"source":"DELETE /_ingest/pipeline/pipeline-one"},
{"source_location":{"file":"ingest/apis/delete-pipeline.asciidoc","line":88},"digest":"c6b5c695a9b757b5e7325345b206bde5","lang":"console","found":["python","ruby","js"],"source":"DELETE /_ingest/pipeline/pipeline-*"},
{"source_location":{"file":"ingest/apis/delete-pipeline.asciidoc","line":97},"digest":"11e772ff5dbb73408ae30a1a367a0d9b","lang":"console","found":["python","ruby","js"],"source":"DELETE /_ingest/pipeline/*"},
{"source_location":{"file":"ingest/apis/simulate-pipeline.asciidoc","line":37},"digest":"67ffa135c50c43d6788636c88078c7d1","lang":"console","found":["python","js"],"source":"POST /_ingest/pipeline/my-pipeline-id/_simulate\n{\n \"docs\": [\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-pipeline.asciidoc","line":156},"digest":"67ffa135c50c43d6788636c88078c7d1","lang":"console","found":["python","js"],"source":"POST /_ingest/pipeline/my-pipeline-id/_simulate\n{\n \"docs\": [\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-pipeline.asciidoc","line":181},"digest":"a9bc8b084309ca06fee316df844ab975","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_id\": \"id\",\n \"_index\": \"index\",\n \"_version\": \"-3\",\n \"_source\": {\n \"field2\": \"_value\",\n \"foo\": \"bar\"\n },\n \"_ingest\": {\n \"timestamp\": \"2017-05-04T22:30:03.187Z\"\n }\n }\n },\n {\n \"doc\": {\n \"_id\": \"id\",\n \"_index\": \"index\",\n \"_version\": \"-3\",\n \"_source\": {\n \"field2\": \"_value\",\n \"foo\": \"rab\"\n },\n \"_ingest\": {\n \"timestamp\": \"2017-05-04T22:30:03.188Z\"\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-pipeline.asciidoc","line":223},"digest":"17c2b0a6b0305804ff3b7fd3b4a68df3","lang":"console","found":["python","ruby","js"],"source":"POST /_ingest/pipeline/_simulate\n{\n \"pipeline\" :\n {\n \"description\": \"_description\",\n \"processors\": [\n {\n \"set\" : {\n \"field\" : \"field2\",\n \"value\" : \"_value\"\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-pipeline.asciidoc","line":260},"digest":"a9bc8b084309ca06fee316df844ab975","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_id\": \"id\",\n \"_index\": \"index\",\n \"_version\": \"-3\",\n \"_source\": {\n \"field2\": \"_value\",\n \"foo\": \"bar\"\n },\n \"_ingest\": {\n \"timestamp\": \"2017-05-04T22:30:03.187Z\"\n }\n }\n },\n {\n \"doc\": {\n \"_id\": \"id\",\n \"_index\": \"index\",\n \"_version\": \"-3\",\n \"_source\": {\n \"field2\": \"_value\",\n \"foo\": \"rab\"\n },\n \"_ingest\": {\n \"timestamp\": \"2017-05-04T22:30:03.188Z\"\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-pipeline.asciidoc","line":309},"digest":"a3a64d568fe93a22b042a8b31b9905b0","lang":"console","found":["python","ruby","js"],"source":"POST /_ingest/pipeline/_simulate?verbose=true\n{\n \"pipeline\" :\n {\n \"description\": \"_description\",\n \"processors\": [\n {\n \"set\" : {\n \"field\" : \"field2\",\n \"value\" : \"_value2\"\n }\n },\n {\n \"set\" : {\n \"field\" : \"field3\",\n \"value\" : \"_value3\"\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-pipeline.asciidoc","line":352},"digest":"5b212b84aaef524960c835a7d937eeb9","lang":"console-result","found":[],"source":"{\n \"docs\" : [\n {\n \"processor_results\" : [\n {\n \"processor_type\" : \"set\",\n \"status\" : \"success\",\n \"doc\" : {\n \"_index\" : \"index\",\n \"_id\" : \"id\",\n \"_version\": \"-3\",\n \"_source\" : {\n \"field2\" : \"_value2\",\n \"foo\" : \"bar\"\n },\n \"_ingest\" : {\n \"pipeline\" : \"_simulate_pipeline\",\n \"timestamp\" : \"2020-07-30T01:21:24.251836Z\"\n }\n }\n },\n {\n \"processor_type\" : \"set\",\n \"status\" : \"success\",\n \"doc\" : {\n \"_index\" : \"index\",\n \"_id\" : \"id\",\n \"_version\": \"-3\",\n \"_source\" : {\n \"field3\" : \"_value3\",\n \"field2\" : \"_value2\",\n \"foo\" : \"bar\"\n },\n \"_ingest\" : {\n \"pipeline\" : \"_simulate_pipeline\",\n \"timestamp\" : \"2020-07-30T01:21:24.251836Z\"\n }\n }\n }\n ]\n },\n {\n \"processor_results\" : [\n {\n \"processor_type\" : \"set\",\n \"status\" : \"success\",\n \"doc\" : {\n \"_index\" : \"index\",\n \"_id\" : \"id\",\n \"_version\": \"-3\",\n \"_source\" : {\n \"field2\" : \"_value2\",\n \"foo\" : \"rab\"\n },\n \"_ingest\" : {\n \"pipeline\" : \"_simulate_pipeline\",\n \"timestamp\" : \"2020-07-30T01:21:24.251863Z\"\n }\n }\n },\n {\n \"processor_type\" : \"set\",\n \"status\" : \"success\",\n \"doc\" : {\n \"_index\" : \"index\",\n \"_id\" : \"id\",\n \"_version\": \"-3\",\n \"_source\" : {\n \"field3\" : \"_value3\",\n \"field2\" : \"_value2\",\n \"foo\" : \"rab\"\n },\n \"_ingest\" : {\n \"pipeline\" : \"_simulate_pipeline\",\n \"timestamp\" : \"2020-07-30T01:21:24.251863Z\"\n }\n }\n }\n ]\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-ingest.asciidoc","line":62},"digest":"ccc613951c61f0b17e1ed8a2d3ae54a2","lang":"console","found":["python","js"],"source":"POST /_ingest/_simulate\n{\n \"docs\": [\n {\n \"_index\": \"my-index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_index\": \"my-index\",\n \"_id\": \"id\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ],\n \"pipeline_substitutions\": { <1>\n \"my-pipeline\": {\n \"processors\": [\n {\n \"set\": {\n \"field\": \"field3\",\n \"value\": \"value3\"\n }\n }\n ]\n }\n },\n \"component_template_substitutions\": { <2>\n \"my-component-template\": {\n \"template\": {\n \"mappings\": {\n \"dynamic\": \"true\",\n \"properties\": {\n \"field3\": {\n \"type\": \"keyword\"\n }\n }\n },\n \"settings\": {\n \"index\": {\n \"default_pipeline\": \"my-pipeline\"\n }\n }\n }\n }\n },\n \"index_template_substitutions\": { <3>\n \"my-index-template\": {\n \"index_patterns\": [\"my-index-*\"],\n \"composed_of\": [\"component_template_1\", \"component_template_2\"]\n }\n },\n \"mapping_addition\": { <4>\n \"dynamic\": \"strict\",\n \"properties\": {\n \"foo\": {\n \"type\": \"keyword\"\n }\n }\n }\n}"},
{"source_location":{"file":"ingest/apis/simulate-ingest.asciidoc","line":279},"digest":"19c00c6b29bc7dbc5e92b3668da2da93","lang":"console","found":["python","ruby","js"],"source":"POST /_ingest/_simulate\n{\n \"docs\": [\n {\n \"_index\": \"my-index\",\n \"_id\": \"123\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_index\": \"my-index\",\n \"_id\": \"456\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-ingest.asciidoc","line":304},"digest":"ba579829ea2427c12ac06ecc79656948","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_id\": \"123\",\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"field1\": \"value1\",\n \"field2\": \"value2\",\n \"foo\": \"bar\"\n },\n \"executed_pipelines\": [\n \"my-pipeline\",\n \"my-final-pipeline\"\n ]\n }\n },\n {\n \"doc\": {\n \"_id\": \"456\",\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"field1\": \"value1\",\n \"field2\": \"value2\",\n \"foo\": \"rab\"\n },\n \"executed_pipelines\": [\n \"my-pipeline\",\n \"my-final-pipeline\"\n ]\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-ingest.asciidoc","line":352},"digest":"bcdfaa4487747249699a86a0dcd22f5e","lang":"console","found":["python","ruby","js"],"source":"POST /_ingest/_simulate\n{\n \"docs\": [\n {\n \"_index\": \"my-index\",\n \"_id\": \"123\",\n \"_source\": {\n \"foo\": \"bar\"\n }\n },\n {\n \"_index\": \"my-index\",\n \"_id\": \"456\",\n \"_source\": {\n \"foo\": \"rab\"\n }\n }\n ],\n \"pipeline_substitutions\": {\n \"my-pipeline\": {\n \"processors\": [\n {\n \"uppercase\": {\n \"field\": \"foo\"\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"ingest/apis/simulate-ingest.asciidoc","line":388},"digest":"6e013ecf5dacf18e02ba1a6d11d09cc8","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_id\": \"123\",\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"field2\": \"value2\",\n \"foo\": \"BAR\"\n },\n \"executed_pipelines\": [\n \"my-pipeline\",\n \"my-final-pipeline\"\n ]\n }\n },\n {\n \"doc\": {\n \"_id\": \"456\",\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"field2\": \"value2\",\n \"foo\": \"RAB\"\n },\n \"executed_pipelines\": [\n \"my-pipeline\",\n \"my-final-pipeline\"\n ]\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/simulate-ingest.asciidoc","line":435},"digest":"e4b38973c74037335378d8480f1ce894","lang":"console","found":["python","js"],"source":"POST /_ingest/_simulate\n{\n \"docs\": [\n {\n \"_index\": \"my-index\",\n \"_id\": \"123\",\n \"_source\": {\n \"foo\": \"foo\"\n }\n },\n {\n \"_index\": \"my-index\",\n \"_id\": \"456\",\n \"_source\": {\n \"bar\": \"rab\"\n }\n }\n ],\n \"component_template_substitutions\": {\n \"my-mappings_template\": {\n \"template\": {\n \"mappings\": {\n \"dynamic\": \"strict\",\n \"properties\": {\n \"foo\": {\n \"type\": \"keyword\"\n },\n \"bar\": {\n \"type\": \"keyword\"\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"ingest/apis/simulate-ingest.asciidoc","line":477},"digest":"10454800a8f75bc145b2c236ad6f44f7","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_id\": \"123\",\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"foo\": \"foo\"\n },\n \"executed_pipelines\": []\n }\n },\n {\n \"doc\": {\n \"_id\": \"456\",\n \"_index\": \"my-index\",\n \"_version\": -3,\n \"_source\": {\n \"bar\": \"rab\"\n },\n \"executed_pipelines\": []\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/geoip-stats.asciidoc","line":17},"digest":"9af44592fb2e78fb17ad3e834bbef7a7","lang":"console","found":["python","ruby","js"],"source":"GET _ingest/geoip/stats"},
{"source_location":{"file":"ingest/apis/put-ip-location-database.asciidoc","line":22},"digest":"91e106a2affbc8df32cd940684a779ed","lang":"console","found":["python","js"],"source":"PUT _ingest/ip_location/database/my-database-1\n{\n \"name\": \"GeoIP2-Domain\",\n \"maxmind\": {\n \"account_id\": \"1234567\"\n }\n}"},
{"source_location":{"file":"ingest/apis/put-ip-location-database.asciidoc","line":40},"digest":"d4df39f72d3a3b80cd4042f6a21c3f19","lang":"console","found":["python","js"],"source":"PUT _ingest/ip_location/database/my-database-2\n{\n \"name\": \"standard_location\",\n \"ipinfo\": {\n }\n}"},
{"source_location":{"file":"ingest/apis/get-ip-location-database.asciidoc","line":16},"digest":"d8c053ee26c1533ce936ec81101d8e1b","lang":"console","found":["python","js"],"source":"GET /_ingest/ip_location/database/my-database-id"},
{"source_location":{"file":"ingest/apis/get-ip-location-database.asciidoc","line":61},"digest":"d8c053ee26c1533ce936ec81101d8e1b","lang":"console","found":["python","js"],"source":"GET /_ingest/ip_location/database/my-database-id"},
{"source_location":{"file":"ingest/apis/get-ip-location-database.asciidoc","line":69},"digest":"bf30c23171f550b82a259cbe45d23e93","lang":"console-result","found":[],"source":"{\n \"databases\" : [\n {\n \"id\" : \"my-database-id\",\n \"version\" : 1,\n \"modified_date_millis\" : 1723040276114,\n \"database\" : {\n \"name\" : \"GeoIP2-Domain\",\n \"maxmind\" : {\n \"account_id\" : \"1234567\"\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"ingest/apis/delete-ip-location-database.asciidoc","line":16},"digest":"7ba29f0be2297b54a640b0a17d7ef5ca","lang":"console","found":["python","js"],"source":"DELETE /_ingest/ip_location/database/my-database-id"},
{"source_location":{"file":"ingest/apis/delete-ip-location-database.asciidoc","line":58},"digest":"99fb82d49ac477e6a9dfdd71f9465374","lang":"console","found":["python","js"],"source":"DELETE /_ingest/ip_location/database/example-database-id"},
{"source_location":{"file":"licensing/delete-license.asciidoc","line":43},"digest":"4f8a4ad49e2bca6784c88ede18a1a709","lang":"console","found":["python","ruby","js"],"source":"DELETE /_license"},
{"source_location":{"file":"licensing/get-license.asciidoc","line":62},"digest":"11c395d1649733bcab853fe31ec393b2","lang":"console","found":["python","ruby","js"],"source":"GET /_license"},
{"source_location":{"file":"licensing/get-license.asciidoc","line":67},"digest":"a151a5db7e5b65046743be37fd9a02e9","lang":"console-result","found":[],"source":"{\n \"license\" : {\n \"status\" : \"active\",\n \"uid\" : \"cbff45e7-c553-41f7-ae4f-9205eabd80xx\",\n \"type\" : \"trial\",\n \"issue_date\" : \"2018-10-20T22:05:12.332Z\",\n \"issue_date_in_millis\" : 1540073112332,\n \"expiry_date\" : \"2018-11-19T22:05:12.332Z\",\n \"expiry_date_in_millis\" : 1542665112332,\n \"max_nodes\" : 1000,\n \"max_resource_units\" : null,\n \"issued_to\" : \"test\",\n \"issuer\" : \"elasticsearch\",\n \"start_date_in_millis\" : -1\n }\n}"},
{"source_location":{"file":"licensing/get-trial-status.asciidoc","line":46},"digest":"88cf60d3310a56d8ae12704abc05b565","lang":"console","found":["python","ruby","js"],"source":"GET /_license/trial_status"},
{"source_location":{"file":"licensing/get-trial-status.asciidoc","line":53},"digest":"cd83a052bf4f1fe11413e7aa51e5b9a5","lang":"console-result","found":[],"source":"{\n \"eligible_to_start_trial\": true\n}"},
{"source_location":{"file":"licensing/start-trial.asciidoc","line":44},"digest":"37f1f2e75ed95308ae436bbbb8d5645e","lang":"console","found":["python","ruby","js"],"source":"POST /_license/start_trial?acknowledge=true"},
{"source_location":{"file":"licensing/get-basic-status.asciidoc","line":41},"digest":"f92d2f5018a8843ffbb56ade15f84406","lang":"console","found":["python","ruby","js"],"source":"GET /_license/basic_status"},
{"source_location":{"file":"licensing/get-basic-status.asciidoc","line":48},"digest":"7539f49762b2e372c275d0d061009d19","lang":"console-result","found":[],"source":"{\n \"eligible_to_start_basic\": true\n}"},
{"source_location":{"file":"licensing/start-basic.asciidoc","line":48},"digest":"8699d35269a47ba867fa8cc766287413","lang":"console","found":["python","ruby","js"],"source":"POST /_license/start_basic"},
{"source_location":{"file":"licensing/start-basic.asciidoc","line":68},"digest":"f58fd031597e2c3df78bf0efd07206e3","lang":"console","found":["python","ruby","js"],"source":"POST /_license/start_basic?acknowledge=true"},
{"source_location":{"file":"licensing/update-license.asciidoc","line":69},"digest":"85f2839beeb71edb66988e5c82188be0","lang":"console","found":["python","js"],"source":"PUT _license\n{\n \"licenses\": [\n {\n \"uid\":\"893361dc-9749-4997-93cb-802e3d7fa4xx\",\n \"type\":\"basic\",\n \"issue_date_in_millis\":1411948800000,\n \"expiry_date_in_millis\":1914278399999,\n \"max_nodes\":1,\n \"issued_to\":\"issuedTo\",\n \"issuer\":\"issuer\",\n \"signature\":\"xx\"\n }\n ]\n}"},
{"source_location":{"file":"licensing/update-license.asciidoc","line":145},"digest":"46b1c1f6e0c86528be84c373eeb8d425","lang":"console","found":["python","js"],"source":"PUT _license?acknowledge=true\n{\n \"licenses\": [\n {\n \"uid\":\"893361dc-9749-4997-93cb-802e3d7fa4xx\",\n \"type\":\"basic\",\n \"issue_date_in_millis\":1411948800000,\n \"expiry_date_in_millis\":1914278399999,\n \"max_nodes\":1,\n \"issued_to\":\"issuedTo\",\n \"issuer\":\"issuer\",\n \"signature\":\"xx\"\n }\n ]\n}"},
{"source_location":{"file":"rest-api/logstash/put-pipeline.asciidoc","line":80},"digest":"8b301122cbf42be6eafeda714a36559e","lang":"console","found":["python","ruby","js"],"source":"PUT _logstash/pipeline/my_pipeline\n{\n \"description\": \"Sample pipeline for illustration purposes\",\n \"last_modified\": \"2021-01-02T02:50:51.250Z\",\n \"pipeline_metadata\": {\n \"type\": \"logstash_pipeline\",\n \"version\": \"1\"\n },\n \"username\": \"elastic\",\n \"pipeline\": \"input {}\\n filter { grok {} }\\n output {}\",\n \"pipeline_settings\": {\n \"pipeline.workers\": 1,\n \"pipeline.batch.size\": 125,\n \"pipeline.batch.delay\": 50,\n \"queue.type\": \"memory\",\n \"queue.max_bytes\": \"1gb\",\n \"queue.checkpoint.writes\": 1024\n }\n}"},
{"source_location":{"file":"rest-api/logstash/delete-pipeline.asciidoc","line":73},"digest":"5afbd9caed88c32f8a2968c07054f096","lang":"console","found":["python","ruby","js"],"source":"DELETE _logstash/pipeline/my_pipeline"},
{"source_location":{"file":"rest-api/logstash/get-pipeline.asciidoc","line":75},"digest":"6f855bc92b4cc6e6a63f95bce1cb4441","lang":"console","found":["python","ruby","js"],"source":"GET _logstash/pipeline/my_pipeline"},
{"source_location":{"file":"rest-api/logstash/get-pipeline.asciidoc","line":84},"digest":"617ee295760e58c507a47b30389d87bd","lang":"console-result","found":[],"source":"{\n \"my_pipeline\": {\n \"description\": \"Sample pipeline for illustration purposes\",\n \"last_modified\": \"2021-01-02T02:50:51.250Z\",\n \"pipeline_metadata\": {\n \"type\": \"logstash_pipeline\",\n \"version\": \"1\"\n },\n \"username\": \"elastic\",\n \"pipeline\": \"input {}\\n filter { grok {} }\\n output {}\",\n \"pipeline_settings\": {\n \"pipeline.workers\": 1,\n \"pipeline.batch.size\": 125,\n \"pipeline.batch.delay\": 50,\n \"queue.type\": \"memory\",\n \"queue.max_bytes\": \"1gb\",\n \"queue.checkpoint.writes\": 1024\n }\n }\n}"},
{"source_location":{"file":"ml/common/apis/get-ml-info.asciidoc","line":44},"digest":"4d7c0b52d3c0a084157428624c543c90","lang":"console","found":["python","ruby","js"],"source":"GET _ml/info"},
{"source_location":{"file":"ml/common/apis/get-ml-info.asciidoc","line":52},"digest":"246c2fe559c45d32a9efc0be7b35ccb1","lang":"console-result","found":[],"source":"{\n \"defaults\" : {\n \"anomaly_detectors\" : {\n \"categorization_analyzer\" : {\n \"char_filter\" : [\n \"first_line_with_letters\"\n ],\n \"tokenizer\" : \"ml_standard\",\n \"filter\" : [\n {\n \"type\" : \"stop\",\n \"stopwords\" : [\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n \"Sunday\",\n \"Mon\",\n \"Tue\",\n \"Wed\",\n \"Thu\",\n \"Fri\",\n \"Sat\",\n \"Sun\",\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n \"GMT\",\n \"UTC\"\n ]\n },\n {\n \"type\": \"limit\",\n \"max_token_count\": \"100\"\n }\n ]\n },\n \"model_memory_limit\" : \"1gb\",\n \"categorization_examples_limit\" : 4,\n \"model_snapshot_retention_days\" : 10,\n \"daily_model_snapshot_retention_after_days\" : 1\n },\n \"datafeeds\" : {\n \"scroll_size\" : 1000\n }\n },\n \"upgrade_mode\": false,\n \"native_code\" : {\n \"version\": \"7.0.0\",\n \"build_hash\": \"99a07c016d5a73\"\n },\n \"limits\" : {\n \"effective_max_model_memory_limit\": \"28961mb\",\n \"total_ml_memory\": \"86883mb\",\n \"total_ml_processors\": 16,\n \"max_single_ml_node_processors\": 16\n }\n}"},
{"source_location":{"file":"ml/common/apis/get-ml-memory.asciidoc","line":234},"digest":"6061aadb3b870791278212d1e8f52b39","lang":"console","found":["python","ruby","js"],"source":"GET _ml/memory/_stats?human"},
{"source_location":{"file":"ml/common/apis/get-ml-memory.asciidoc","line":242},"digest":"3f38aaa57d8648347aa857768df6b961","lang":"console-result","found":[],"source":"{\n \"_nodes\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"cluster_name\": \"my_cluster\",\n \"nodes\": {\n \"pQHNt5rXTTWNvUgOrdynKg\": {\n \"name\": \"node-0\",\n \"ephemeral_id\": \"ITZ6WGZnSqqeT_unfit2SQ\",\n \"transport_address\": \"127.0.0.1:9300\",\n \"attributes\": {\n \"ml.machine_memory\": \"68719476736\",\n \"ml.max_jvm_size\": \"536870912\"\n },\n \"roles\": [\n \"data\",\n \"data_cold\",\n \"data_content\",\n \"data_frozen\",\n \"data_hot\",\n \"data_warm\",\n \"ingest\",\n \"master\",\n \"ml\",\n \"remote_cluster_client\",\n \"transform\"\n ],\n \"mem\": {\n \"total\": \"64gb\",\n \"total_in_bytes\": 68719476736,\n \"adjusted_total\": \"64gb\",\n \"adjusted_total_in_bytes\": 68719476736,\n \"ml\": {\n \"max\": \"19.1gb\",\n \"max_in_bytes\": 20615843020,\n \"native_code_overhead\": \"0b\",\n \"native_code_overhead_in_bytes\": 0,\n \"anomaly_detectors\": \"0b\",\n \"anomaly_detectors_in_bytes\": 0,\n \"data_frame_analytics\": \"0b\",\n \"data_frame_analytics_in_bytes\": 0,\n \"native_inference\": \"0b\",\n \"native_inference_in_bytes\": 0\n }\n },\n \"jvm\": {\n \"heap_max\": \"512mb\",\n \"heap_max_in_bytes\": 536870912,\n \"java_inference_max\": \"204.7mb\",\n \"java_inference_max_in_bytes\": 214748364,\n \"java_inference\": \"0b\",\n \"java_inference_in_bytes\": 0\n }\n }\n }\n}"},
{"source_location":{"file":"ml/common/apis/set-upgrade-mode.asciidoc","line":80},"digest":"ae4aa368617637a390074535df86e64b","lang":"console","found":["python","ruby","js"],"source":"POST _ml/set_upgrade_mode?enabled=true&timeout=10m"},
{"source_location":{"file":"ml/common/apis/set-upgrade-mode.asciidoc","line":87},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ml/common/apis/set-upgrade-mode.asciidoc","line":102},"digest":"8e9e7dc5fad2b2b8e74ab4dc225d9c53","lang":"console","found":["python","ruby","js"],"source":"POST _ml/set_upgrade_mode?enabled=false&timeout=10m"},
{"source_location":{"file":"ml/anomaly-detection/apis/post-calendar-event.asciidoc","line":85},"digest":"c067182d385f59ce5952fb9a716fbf05","lang":"console","found":["python","ruby","js"],"source":"POST _ml/calendars/planned-outages/events\n{\n \"events\" : [\n {\"description\": \"event 1\", \"start_time\": 1513641600000, \"end_time\": 1513728000000},\n {\"description\": \"event 2\", \"start_time\": 1513814400000, \"end_time\": 1513900800000},\n {\"description\": \"event 3\", \"start_time\": 1514160000000, \"end_time\": 1514246400000}\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/post-calendar-event.asciidoc","line":100},"digest":"71c0384755fab7274e60b99a4952a4d7","lang":"console-result","found":[],"source":"{\n \"events\": [\n {\n \"description\": \"event 1\",\n \"start_time\": 1513641600000,\n \"end_time\": 1513728000000,\n \"skip_result\": true,\n \"skip_model_update\": true,\n \"calendar_id\": \"planned-outages\"\n },\n {\n \"description\": \"event 2\",\n \"start_time\": 1513814400000,\n \"end_time\": 1513900800000,\n \"skip_result\": true,\n \"skip_model_update\": true,\n \"calendar_id\": \"planned-outages\"\n },\n {\n \"description\": \"event 3\",\n \"start_time\": 1514160000000,\n \"end_time\": 1514246400000,\n \"skip_result\": true,\n \"skip_model_update\": true,\n \"calendar_id\": \"planned-outages\"\n }\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/post-calendar-event.asciidoc","line":132},"digest":"e017c2de6f93a8dd97f5c6e002dd5c4f","lang":"console","found":["python","js"],"source":"POST _ml/calendars/dst-germany/events\n{\n \"events\" : [\n {\"description\": \"Fall 2024\", \"start_time\": 1729994400000, \"end_time\": 1730167200000, \"skip_result\": false, \"skip_model_update\": false, \"force_time_shift\": -3600},\n {\"description\": \"Spring 2025\", \"start_time\": 1743296400000, \"end_time\": 1743469200000, \"skip_result\": false, \"skip_model_update\": false, \"force_time_shift\": 3600}\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/post-calendar-event.asciidoc","line":146},"digest":"295926e762b5b67ef1e1e8e8a4a8cf2c","lang":"console-result","found":[],"source":"{\n \"events\": [\n {\n \"description\": \"Fall 2024\",\n \"start_time\": 1729994400000,\n \"end_time\": 1730167200000,\n \"skip_result\": false,\n \"skip_model_update\": false,\n \"force_time_shift\": -3600,\n \"calendar_id\": \"dst-germany\"\n },\n {\n \"description\": \"Spring 2025\",\n \"start_time\": 1743296400000,\n \"end_time\": 1743469200000,\n \"skip_result\": false,\n \"skip_model_update\": false,\n \"force_time_shift\": 3600,\n \"calendar_id\": \"dst-germany\"\n }\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/put-calendar-job.asciidoc","line":42},"digest":"1b2ab75d3c8064fac6ecc63104396c02","lang":"console","found":["python","ruby","js"],"source":"PUT _ml/calendars/planned-outages/jobs/total-requests"},
{"source_location":{"file":"ml/anomaly-detection/apis/put-calendar-job.asciidoc","line":50},"digest":"1dae5fc15721297e0bbb7f75f4d688c8","lang":"console-result","found":[],"source":"{\n \"calendar_id\": \"planned-outages\",\n \"job_ids\": [\n \"total-requests\"\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/close-job.asciidoc","line":105},"digest":"75957a7d1b67e3d47899c5f18b32cb61","lang":"console","found":["python","ruby","js"],"source":"POST _ml/anomaly_detectors/low_request_rate/_close"},
{"source_location":{"file":"ml/anomaly-detection/apis/close-job.asciidoc","line":113},"digest":"bde804b8b2cf95aad1cf3ca64df67fa9","lang":"console-result","found":[],"source":"{\n \"closed\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/put-job.asciidoc","line":420},"digest":"e095fc96504efecc588f97673912e3d3","lang":"console","found":["python","js"],"source":"PUT _ml/anomaly_detectors/test-job1?pretty\n{\n \"analysis_config\": {\n \"bucket_span\": \"15m\",\n \"detectors\": [\n {\n \"detector_description\": \"Sum of bytes\",\n \"function\": \"sum\",\n \"field_name\": \"bytes\"\n }\n ]\n },\n \"data_description\": {\n \"time_field\": \"timestamp\",\n \"time_format\": \"epoch_ms\"\n },\n \"analysis_limits\": {\n \"model_memory_limit\": \"11MB\"\n },\n \"model_plot_config\": {\n \"enabled\": true,\n \"annotations_enabled\": true\n },\n \"results_index_name\": \"test-job1\",\n \"datafeed_config\":\n {\n \"indices\": [\n \"kibana_sample_data_logs\"\n ],\n \"query\": {\n \"bool\": {\n \"must\": [\n {\n \"match_all\": {}\n }\n ]\n }\n },\n \"runtime_mappings\": {\n \"hour_of_day\": {\n \"type\": \"long\",\n \"script\": {\n \"source\": \"emit(doc['timestamp'].value.getHour());\"\n }\n }\n },\n \"datafeed_id\": \"datafeed-test-job1\"\n }\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/put-calendar.asciidoc","line":50},"digest":"e61b5abe85000cc954a42e2cd74f3a26","lang":"console","found":["python","ruby","js"],"source":"PUT _ml/calendars/planned-outages"},
{"source_location":{"file":"ml/anomaly-detection/apis/put-calendar.asciidoc","line":58},"digest":"171c0cd3b79df8fc5fe414cf9607f56f","lang":"console-result","found":[],"source":"{\n \"calendar_id\": \"planned-outages\",\n \"job_ids\": []\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/put-datafeed.asciidoc","line":168},"digest":"9c7c8051592b6af3adb5d7c490849068","lang":"console","found":["python","js"],"source":"PUT _ml/datafeeds/datafeed-test-job?pretty\n{\n \"indices\": [\n \"kibana_sample_data_logs\"\n ],\n \"query\": {\n \"bool\": {\n \"must\": [\n {\n \"match_all\": {}\n }\n ]\n }\n },\n \"job_id\": \"test-job\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/put-datafeed.asciidoc","line":191},"digest":"16b44e9a288bd721e5399e270a5052af","lang":"console-result","found":[],"source":"{\n \"datafeed_id\" : \"datafeed-test-job\",\n \"job_id\" : \"test-job\",\n \"authorization\" : {\n \"roles\" : [\n \"superuser\"\n ]\n },\n \"query_delay\" : \"91820ms\",\n \"chunking_config\" : {\n \"mode\" : \"auto\"\n },\n \"indices_options\" : {\n \"expand_wildcards\" : [\n \"open\"\n ],\n \"ignore_unavailable\" : false,\n \"allow_no_indices\" : true,\n \"ignore_throttled\" : true\n },\n \"query\" : {\n \"bool\" : {\n \"must\" : [\n {\n \"match_all\" : { }\n }\n ]\n }\n },\n \"indices\" : [\n \"kibana_sample_data_logs\"\n ],\n \"scroll_size\" : 1000,\n \"delayed_data_check_config\" : {\n \"enabled\" : true\n }\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/put-filter.asciidoc","line":57},"digest":"b4aec2a1d353852507c091bdb629b765","lang":"console","found":["python","ruby","js"],"source":"PUT _ml/filters/safe_domains\n{\n \"description\": \"A list of safe domains\",\n \"items\": [\"*.google.com\", \"wikipedia.org\"]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/put-filter.asciidoc","line":69},"digest":"e5edabc3d3e627c7ed92623b855c05d9","lang":"console-result","found":[],"source":"{\n \"filter_id\": \"safe_domains\",\n \"description\": \"A list of safe domains\",\n \"items\": [\"*.google.com\", \"wikipedia.org\"]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-calendar.asciidoc","line":44},"digest":"63893e7e9479a9b60db71dcddcc79aaf","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/calendars/planned-outages"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-calendar.asciidoc","line":52},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-datafeed.asciidoc","line":49},"digest":"8a12cd824404d74f098d854716a26899","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/datafeeds/datafeed-total-requests"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-datafeed.asciidoc","line":57},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-calendar-event.asciidoc","line":49},"digest":"f6982ff80b9a64cd5fcac5b20908c906","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/calendars/planned-outages/events/LS8LJGEBMTCMA-qz49st"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-filter.asciidoc","line":46},"digest":"8c5d48252cd6d1ee26a2bb817f89c78e","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/filters/safe_domains"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-filter.asciidoc","line":54},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-forecast.asciidoc","line":75},"digest":"eb4e43b47867b54214a8630172dd0e21","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/anomaly_detectors/total-requests/_forecast/_all"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-job.asciidoc","line":74},"digest":"3ac8b5234e9d53859245cf8ab0094ca5","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/anomaly_detectors/total-requests"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-job.asciidoc","line":82},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-job.asciidoc","line":91},"digest":"ccec66fb20d5ede6c691e0890cfe402a","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/anomaly_detectors/total-requests?wait_for_completion=false"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-job.asciidoc","line":100},"digest":"7911626413c70672fd05359a832096c3","lang":"console-result","found":[],"source":"{\n \"task\": \"oTUltX4IQMOUUVeiohTt8A:39\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-calendar-job.asciidoc","line":42},"digest":"1b0b29e5cd7550c648d0892378e93804","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/calendars/planned-outages/jobs/total-requests"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-calendar-job.asciidoc","line":51},"digest":"f114ee8c6333648f1cfd511a4bc15655","lang":"console-result","found":[],"source":"{\n \"calendar_id\": \"planned-outages\",\n \"job_ids\": []\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-snapshot.asciidoc","line":49},"digest":"1e08e054c761353f99211cd18e8ca47b","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/anomaly_detectors/farequote/model_snapshots/1491948163"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-snapshot.asciidoc","line":57},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-expired-data.asciidoc","line":70},"digest":"7fd5883564d183603e60b37d286ac7e2","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/_delete_expired_data?timeout=1h"},
{"source_location":{"file":"ml/anomaly-detection/apis/delete-expired-data.asciidoc","line":78},"digest":"c852b65b9085718ec12e9fc5b41d8655","lang":"console-result","found":[],"source":"{\n \"deleted\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/estimate-model-memory.asciidoc","line":60},"digest":"d1b53bc9794e8609bd6f2245624bf977","lang":"console","found":["python","ruby","js"],"source":"POST _ml/anomaly_detectors/_estimate_model_memory\n{\n \"analysis_config\": {\n \"bucket_span\": \"5m\",\n \"detectors\": [\n {\n \"function\": \"sum\",\n \"field_name\": \"bytes\",\n \"by_field_name\": \"status\",\n \"partition_field_name\": \"app\"\n }\n ],\n \"influencers\": [ \"source_ip\", \"dest_ip\" ]\n },\n \"overall_cardinality\": {\n \"status\": 10,\n \"app\": 50\n },\n \"max_bucket_cardinality\": {\n \"source_ip\": 300,\n \"dest_ip\": 30\n }\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/estimate-model-memory.asciidoc","line":90},"digest":"f5047c61947ac5f5ac544b6aac384a67","lang":"console-result","found":[],"source":"{\n \"model_memory_estimate\": \"21mb\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/flush-job.asciidoc","line":81},"digest":"02520ac7816b2c4cf8fb413fd16122f2","lang":"console","found":["python","js"],"source":"POST _ml/anomaly_detectors/low_request_rate/_flush\n{\n \"calc_interim\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/flush-job.asciidoc","line":92},"digest":"aa814fa4e6fba339421d0c6c94680041","lang":"console-result","found":[],"source":"{\n \"flushed\": true,\n \"last_finalized_bucket_end\": 1455234900000\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/flush-job.asciidoc","line":108},"digest":"7ebfb30b3ece855c1b783d9210939469","lang":"console","found":["python","js"],"source":"POST _ml/anomaly_detectors/total-requests/_flush\n{\n \"advance_time\": \"1514804400000\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/flush-job.asciidoc","line":119},"digest":"f6622deb2aae0e2e468ff3b3285eaaa5","lang":"console-result","found":[],"source":"{\n \"flushed\": true,\n \"last_finalized_bucket_end\": 1514804400000\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/forecast.asciidoc","line":88},"digest":"591c7fb7451069829a14bba593136f1f","lang":"console","found":["python","js"],"source":"POST _ml/anomaly_detectors/low_request_rate/_forecast\n{\n \"duration\": \"10d\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-bucket.asciidoc","line":208},"digest":"f96d4614f2fc294339fef325b794355f","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/low_request_rate/results/buckets\n{\n \"anomaly_score\": 80,\n \"start\": \"1454530200001\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-calendar.asciidoc","line":95},"digest":"5fca6671bc8eaddc44ac488d1c3c6909","lang":"console","found":["python","ruby","js"],"source":"GET _ml/calendars/planned-outages"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-calendar.asciidoc","line":103},"digest":"e611275d3d0d39a05718b5468d3c51b4","lang":"console-result","found":[],"source":"{\n \"count\": 1,\n \"calendars\": [\n {\n \"calendar_id\": \"planned-outages\",\n \"job_ids\": [\n \"total-requests\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-category.asciidoc","line":154},"digest":"e8f1c9ee003d115ec8f55e57990df6e4","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/esxi_log/results/categories\n{\n \"page\":{\n \"size\": 1\n }\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-datafeed.asciidoc","line":80},"digest":"4fa9ee04188cbf0b38cfc28f6a56527d","lang":"console","found":["python","ruby","js"],"source":"GET _ml/datafeeds/datafeed-high_sum_total_sales"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-datafeed.asciidoc","line":88},"digest":"b9fe4828131e68dfe16c671e355c96fb","lang":"console-result","found":[],"source":"{\n \"count\" : 1,\n \"datafeeds\" : [\n {\n \"datafeed_id\" : \"datafeed-high_sum_total_sales\",\n \"job_id\" : \"high_sum_total_sales\",\n \"authorization\" : {\n \"roles\" : [\n \"superuser\"\n ]\n },\n \"query_delay\" : \"93169ms\",\n \"chunking_config\" : {\n \"mode\" : \"auto\"\n },\n \"indices_options\" : {\n \"expand_wildcards\" : [\n \"open\"\n ],\n \"ignore_unavailable\" : false,\n \"allow_no_indices\" : true,\n \"ignore_throttled\" : true\n },\n \"query\" : {\n \"bool\" : {\n \"filter\" : [\n {\n \"term\" : {\n \"event.dataset\" : \"sample_ecommerce\"\n }\n }\n ]\n }\n },\n \"indices\" : [\n \"kibana_sample_data_ecommerce\"\n ],\n \"scroll_size\" : 1000,\n \"delayed_data_check_config\" : {\n \"enabled\" : true\n }\n }\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-datafeed-stats.asciidoc","line":183},"digest":"f44d287c6937785eb09b91353c1deb1e","lang":"console","found":["python","ruby","js"],"source":"GET _ml/datafeeds/datafeed-high_sum_total_sales/_stats"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-datafeed-stats.asciidoc","line":191},"digest":"c624ca865592c473561bb8130efc0218","lang":"console-result","found":[],"source":"{\n \"count\" : 1,\n \"datafeeds\" : [\n {\n \"datafeed_id\" : \"datafeed-high_sum_total_sales\",\n \"state\" : \"started\",\n \"node\" : {\n \"id\" : \"7bmMXyWCRs-TuPfGJJ_yMw\",\n \"name\" : \"node-0\",\n \"ephemeral_id\" : \"hoXMLZB0RWKfR9UPPUCxXX\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"attributes\" : {\n \"ml.machine_memory\" : \"17179869184\",\n \"ml.max_open_jobs\" : \"512\"\n }\n },\n \"assignment_explanation\" : \"\",\n \"timing_stats\" : {\n \"job_id\" : \"high_sum_total_sales\",\n \"search_count\" : 7,\n \"bucket_count\" : 743,\n \"total_search_time_ms\" : 134.0,\n \"average_search_time_per_bucket_ms\" : 0.180349932705249,\n \"exponential_average_search_time_per_hour_ms\" : 11.514712961628677\n }\n }\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-influencer.asciidoc","line":158},"digest":"5bbccf103107e505c17ae59863753efd","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/high_sum_total_sales/results/influencers\n{\n \"sort\": \"influencer_score\",\n \"desc\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-job.asciidoc","line":240},"digest":"86280dcb49aa89083be4b2644daf1b7c","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/high_sum_total_sales"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-job-stats.asciidoc","line":381},"digest":"9298aaf8232a819e79b3bf8471245e98","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/low_request_rate/_stats"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-snapshot.asciidoc","line":248},"digest":"c873f9cd093e26515148f052e28c7805","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/high_sum_total_sales/model_snapshots\n{\n \"start\": \"1575402236000\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-job-model-snapshot-upgrade-stats.asciidoc","line":127},"digest":"77ca1a3193f75651e0bf9e8fe5227a04","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/low_request_rate/model_snapshots/_all/_upgrade/_stats"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-job-model-snapshot-upgrade-stats.asciidoc","line":135},"digest":"f635c41ff92b646f3ea9a0f0d6d9c4fe","lang":"console-result","found":[],"source":"{\n \"count\" : 1,\n \"model_snapshot_upgrades\" : [\n {\n \"job_id\" : \"low_request_rate\",\n \"snapshot_id\" : \"1828371\",\n \"state\" : \"saving_new_state\",\n \"node\" : {\n \"id\" : \"7bmMXyWCRs-TuPfGJJ_yMw\",\n \"name\" : \"node-0\",\n \"ephemeral_id\" : \"hoXMLZB0RWKfR9UPPUCxXX\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"attributes\" : {\n \"ml.machine_memory\" : \"17179869184\",\n \"ml.max_open_jobs\" : \"512\"\n }\n },\n \"assignment_explanation\" : \"\"\n }\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-overall-buckets.asciidoc","line":136},"digest":"e48e7da65c2b32d724fd7e3bfa175c6f","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/job-*/results/overall_buckets\n{\n \"overall_score\": 80,\n \"start\": \"1403532000000\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-overall-buckets.asciidoc","line":181},"digest":"405db6f3a01eceacfaa8b0ed3e4b3ac2","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/job-*/results/overall_buckets\n{\n \"top_n\": 2,\n \"overall_score\": 50.0,\n \"start\": \"1403532000000\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-calendar-event.asciidoc","line":118},"digest":"39d6f575c9458d9c941364dfd0493fa0","lang":"console","found":["python","ruby","js"],"source":"GET _ml/calendars/planned-outages/events"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-calendar-event.asciidoc","line":126},"digest":"8c820d98ef814220df1fed0dad919ca6","lang":"console-result","found":[],"source":"{\n \"count\": 3,\n \"events\": [\n {\n \"description\": \"event 1\",\n \"start_time\": 1513641600000,\n \"end_time\": 1513728000000,\n \"calendar_id\": \"planned-outages\",\n \"event_id\": \"LS8LJGEBMTCMA-qz49st\"\n },\n {\n \"description\": \"event 2\",\n \"start_time\": 1513814400000,\n \"end_time\": 1513900800000,\n \"calendar_id\": \"planned-outages\",\n \"event_id\": \"Li8LJGEBMTCMA-qz49st\"\n },\n {\n \"description\": \"event 3\",\n \"start_time\": 1514160000000,\n \"end_time\": 1514246400000,\n \"calendar_id\": \"planned-outages\",\n \"event_id\": \"Ly8LJGEBMTCMA-qz49st\"\n }\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-calendar-event.asciidoc","line":162},"digest":"12d5ff4b8d3d832b32a7e7e2a520d0bb","lang":"console","found":["python","ruby","js"],"source":"GET _ml/calendars/planned-outages/events?start=1635638400000&end=1635724800000"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-filter.asciidoc","line":72},"digest":"800861c15bb33ca01a46fb97dde7537a","lang":"console","found":["python","ruby","js"],"source":"GET _ml/filters/safe_domains"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-filter.asciidoc","line":80},"digest":"b72f41bb18115f07edacf2eb5e6ec8c4","lang":"console-result","found":[],"source":"{\n \"count\": 1,\n \"filters\": [\n {\n \"filter_id\": \"safe_domains\",\n \"description\": \"A list of safe domains\",\n \"items\": [\n \"*.google.com\",\n \"wikipedia.org\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/get-record.asciidoc","line":286},"digest":"20e3b181114e00c943a27a9bbcf85f15","lang":"console","found":["python","ruby","js"],"source":"GET _ml/anomaly_detectors/low_request_rate/results/records\n{\n \"sort\": \"record_score\",\n \"desc\": true,\n \"start\": \"1454944100000\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/open-job.asciidoc","line":74},"digest":"a6204edaa0bcf7b82a89ab4f6bda0914","lang":"console","found":["python","js"],"source":"POST _ml/anomaly_detectors/low_request_rate/_open\n{\n \"timeout\": \"35m\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/open-job.asciidoc","line":85},"digest":"b5835f0dd6c814da70c497d320f67f2a","lang":"console-result","found":[],"source":"{\n \"opened\" : true,\n \"node\" : \"node-1\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/preview-datafeed.asciidoc","line":116},"digest":"38eed000de433b540116928681c520d3","lang":"console","found":["python","ruby","js"],"source":"GET _ml/datafeeds/datafeed-high_sum_total_sales/_preview"},
{"source_location":{"file":"ml/anomaly-detection/apis/preview-datafeed.asciidoc","line":124},"digest":"cb9301147c1c73e6d4b6abfbe731e2f7","lang":"console-result","found":[],"source":"[\n {\n \"order_date\" : 1574294659000,\n \"category.keyword\" : \"Men's Clothing\",\n \"customer_full_name.keyword\" : \"Sultan Al Benson\",\n \"taxful_total_price\" : 35.96875\n },\n {\n \"order_date\" : 1574294918000,\n \"category.keyword\" : [\n \"Women's Accessories\",\n \"Women's Clothing\"\n ],\n \"customer_full_name.keyword\" : \"Pia Webb\",\n \"taxful_total_price\" : 83.0\n },\n {\n \"order_date\" : 1574295782000,\n \"category.keyword\" : [\n \"Women's Accessories\",\n \"Women's Shoes\"\n ],\n \"customer_full_name.keyword\" : \"Brigitte Graham\",\n \"taxful_total_price\" : 72.0\n }\n]"},
{"source_location":{"file":"ml/anomaly-detection/apis/preview-datafeed.asciidoc","line":157},"digest":"08c9af9dd519c011deedd406f3061836","lang":"console","found":["python","ruby","js"],"source":"POST _ml/datafeeds/_preview\n{\n \"datafeed_config\": {\n \"indices\" : [\n \"kibana_sample_data_ecommerce\"\n ],\n \"query\" : {\n \"bool\" : {\n \"filter\" : [\n {\n \"term\" : {\n \"_index\" : \"kibana_sample_data_ecommerce\"\n }\n }\n ]\n }\n },\n \"scroll_size\" : 1000\n },\n \"job_config\": {\n \"description\" : \"Find customers spending an unusually high amount in an hour\",\n \"analysis_config\" : {\n \"bucket_span\" : \"1h\",\n \"detectors\" : [\n {\n \"detector_description\" : \"High total sales\",\n \"function\" : \"high_sum\",\n \"field_name\" : \"taxful_total_price\",\n \"over_field_name\" : \"customer_full_name.keyword\"\n }\n ],\n \"influencers\" : [\n \"customer_full_name.keyword\",\n \"category.keyword\"\n ]\n },\n \"analysis_limits\" : {\n \"model_memory_limit\" : \"10mb\"\n },\n \"data_description\" : {\n \"time_field\" : \"order_date\",\n \"time_format\" : \"epoch_ms\"\n }\n }\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/preview-datafeed.asciidoc","line":209},"digest":"cb9301147c1c73e6d4b6abfbe731e2f7","lang":"console-result","found":[],"source":"[\n {\n \"order_date\" : 1574294659000,\n \"category.keyword\" : \"Men's Clothing\",\n \"customer_full_name.keyword\" : \"Sultan Al Benson\",\n \"taxful_total_price\" : 35.96875\n },\n {\n \"order_date\" : 1574294918000,\n \"category.keyword\" : [\n \"Women's Accessories\",\n \"Women's Clothing\"\n ],\n \"customer_full_name.keyword\" : \"Pia Webb\",\n \"taxful_total_price\" : 83.0\n },\n {\n \"order_date\" : 1574295782000,\n \"category.keyword\" : [\n \"Women's Accessories\",\n \"Women's Shoes\"\n ],\n \"customer_full_name.keyword\" : \"Brigitte Graham\",\n \"taxful_total_price\" : 72.0\n }\n]"},
{"source_location":{"file":"ml/anomaly-detection/apis/reset-job.asciidoc","line":62},"digest":"f1e2af6dbb30fc5335e7d0b5507a2a93","lang":"console","found":["python","ruby","js"],"source":"POST _ml/anomaly_detectors/total-requests/_reset"},
{"source_location":{"file":"ml/anomaly-detection/apis/reset-job.asciidoc","line":70},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/reset-job.asciidoc","line":79},"digest":"7dabae9b37d2cbd724f2a069be9e753b","lang":"console","found":["python","ruby","js"],"source":"POST _ml/anomaly_detectors/total-requests/_reset?wait_for_completion=false"},
{"source_location":{"file":"ml/anomaly-detection/apis/reset-job.asciidoc","line":88},"digest":"7911626413c70672fd05359a832096c3","lang":"console-result","found":[],"source":"{\n \"task\": \"oTUltX4IQMOUUVeiohTt8A:39\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/revert-snapshot.asciidoc","line":84},"digest":"3819d0a5c2eed635c88e9e7bf2e81584","lang":"console","found":["python","ruby","js"],"source":"POST _ml/anomaly_detectors/low_request_rate/model_snapshots/1637092688/_revert\n{\n \"delete_intervening_results\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/start-datafeed.asciidoc","line":115},"digest":"d7ae456f119246e95f2f4c37e7544b8c","lang":"console","found":["python","js"],"source":"POST _ml/datafeeds/datafeed-low_request_rate/_start\n{\n \"start\": \"2019-04-07T18:22:16Z\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/start-datafeed.asciidoc","line":126},"digest":"cf5c7db01c545fa26fe97bc7409d3ed1","lang":"console-result","found":[],"source":"{\n \"started\" : true,\n \"node\" : \"node-1\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/stop-datafeed.asciidoc","line":80},"digest":"fd60b4092c6552164862cec287359676","lang":"console","found":["python","ruby","js"],"source":"POST _ml/datafeeds/datafeed-low_request_rate/_stop\n{\n \"timeout\": \"30s\"\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/stop-datafeed.asciidoc","line":91},"digest":"5dcda409b93a4b4a031d6990cee66328","lang":"console-result","found":[],"source":"{\n \"stopped\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/update-datafeed.asciidoc","line":166},"digest":"4bfcb2861f1d572bd0d66acd66deab0b","lang":"console","found":["python","ruby","js"],"source":"POST _ml/datafeeds/datafeed-test-job/_update\n{\n \"query\": {\n \"term\": {\n \"geo.src\": \"US\"\n }\n }\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/update-datafeed.asciidoc","line":182},"digest":"0d981ec9bb9ccd3076f4049f44009bec","lang":"console-result","found":[],"source":"{\n \"datafeed_id\" : \"datafeed-test-job\",\n \"job_id\" : \"test-job\",\n \"authorization\" : {\n \"roles\" : [\n \"superuser\"\n ]\n },\n \"query_delay\" : \"64489ms\",\n \"chunking_config\" : {\n \"mode\" : \"auto\"\n },\n \"indices_options\" : {\n \"expand_wildcards\" : [\n \"open\"\n ],\n \"ignore_unavailable\" : false,\n \"allow_no_indices\" : true,\n \"ignore_throttled\" : true\n },\n \"query\" : {\n \"term\" : {\n \"geo.src\" : \"US\"\n }\n },\n \"indices\" : [\n \"kibana_sample_data_logs\"\n ],\n \"scroll_size\" : 1000,\n \"delayed_data_check_config\" : {\n \"enabled\" : true\n }\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/update-filter.asciidoc","line":50},"digest":"4d21725453955582ff12b4a1104aa7b6","lang":"console","found":["python","ruby","js"],"source":"POST _ml/filters/safe_domains/_update\n{\n \"description\": \"Updated list of domains\",\n \"add_items\": [\"*.myorg.com\"],\n \"remove_items\": [\"wikipedia.org\"]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/update-filter.asciidoc","line":63},"digest":"c1cdffb22de3a5beadff539c0e856e60","lang":"console-result","found":[],"source":"{\n \"filter_id\": \"safe_domains\",\n \"description\": \"Updated list of domains\",\n \"items\": [\"*.google.com\", \"*.myorg.com\"]\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/update-job.asciidoc","line":264},"digest":"421e68e2b9789f0e8c08760d9e685d1c","lang":"console","found":["python","ruby","js"],"source":"POST _ml/anomaly_detectors/low_request_rate/_update\n{\n \"description\":\"An updated job\",\n \"detectors\": {\n \"detector_index\": 0,\n \"description\": \"An updated detector description\"\n },\n \"groups\": [\"kibana_sample_data\",\"kibana_sample_web_logs\"],\n \"model_plot_config\": {\n \"enabled\": true\n },\n \"renormalization_window_days\": 30,\n \"background_persist_interval\": \"2h\",\n \"model_snapshot_retention_days\": 7,\n \"results_retention_days\": 60\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/update-snapshot.asciidoc","line":55},"digest":"3b9c54604535d97e8368d47148aecc6f","lang":"console","found":["python","ruby","js"],"source":"POST\n_ml/anomaly_detectors/it_ops_new_logs/model_snapshots/1491852978/_update\n{\n \"description\": \"Snapshot 1\",\n \"retain\": true\n}"},
{"source_location":{"file":"ml/anomaly-detection/apis/upgrade-job-model-snapshot.asciidoc","line":83},"digest":"a9dd9595e96c307b8c798beaeb571521","lang":"console","found":["python","js"],"source":"POST _ml/anomaly_detectors/low_request_rate/model_snapshots/1828371/_upgrade?timeout=45m&wait_for_completion=true"},
{"source_location":{"file":"ml/anomaly-detection/apis/upgrade-job-model-snapshot.asciidoc","line":91},"digest":"9b2607007f1a3123b9c5235d50253480","lang":"console-result","found":[],"source":"{\n \"completed\" : false,\n \"node\" : \"node-1\"\n}"},
{"source_location":{"file":"ml/df-analytics/apis/put-dfanalytics.asciidoc","line":580},"digest":"8c6f3bb8abae9ff1d21e776f16ad1c86","lang":"console","found":["python","js"],"source":"PUT _ml/data_frame/analytics/model-flight-delays-pre\n{\n \"source\": {\n \"index\": [\n \"kibana_sample_data_flights\" <1>\n ],\n \"query\": { <2>\n \"range\": {\n \"DistanceKilometers\": {\n \"gt\": 0\n }\n }\n },\n \"_source\": { <3>\n \"includes\": [],\n \"excludes\": [\n \"FlightDelay\",\n \"FlightDelayType\"\n ]\n }\n },\n \"dest\": { <4>\n \"index\": \"df-flight-delays\",\n \"results_field\": \"ml-results\"\n },\n \"analysis\": {\n \"regression\": {\n \"dependent_variable\": \"FlightDelayMin\",\n \"training_percent\": 90\n }\n },\n \"analyzed_fields\": { <5>\n \"includes\": [],\n \"excludes\": [\n \"FlightNum\"\n ]\n },\n \"model_memory_limit\": \"100mb\"\n}"},
{"source_location":{"file":"ml/df-analytics/apis/put-dfanalytics.asciidoc","line":650},"digest":"ce3c391c2b1915cfc44a2917bca71d19","lang":"console","found":["python","js"],"source":"PUT _ml/data_frame/analytics/loganalytics\n{\n \"description\": \"Outlier detection on log data\",\n \"source\": {\n \"index\": \"logdata\"\n },\n \"dest\": {\n \"index\": \"logdata_out\"\n },\n \"analysis\": {\n \"outlier_detection\": {\n \"compute_feature_influence\": true,\n \"outlier_fraction\": 0.05,\n \"standardization_enabled\": true\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/put-dfanalytics.asciidoc","line":675},"digest":"ee17c3adcf4fe3bacdd261a4774912d9","lang":"console-result","found":[],"source":"{\n \"id\" : \"loganalytics\",\n \"create_time\" : 1656364565517,\n \"version\" : \"8.4.0\",\n \"authorization\" : {\n \"roles\" : [\n \"superuser\"\n ]\n },\n \"description\" : \"Outlier detection on log data\",\n \"source\" : {\n \"index\" : [\n \"logdata\"\n ],\n \"query\" : {\n \"match_all\" : { }\n }\n },\n \"dest\" : {\n \"index\" : \"logdata_out\",\n \"results_field\" : \"ml\"\n },\n \"analysis\" : {\n \"outlier_detection\" : {\n \"compute_feature_influence\" : true,\n \"outlier_fraction\" : 0.05,\n \"standardization_enabled\" : true\n }\n },\n \"model_memory_limit\" : \"1gb\",\n \"allow_lazy_start\" : false,\n \"max_num_threads\" : 1\n}\n"},
{"source_location":{"file":"ml/df-analytics/apis/put-dfanalytics.asciidoc","line":723},"digest":"e8211247c280a3fbbbdd32850b743b7b","lang":"console","found":["python","js"],"source":"PUT _ml/data_frame/analytics/house_price_regression_analysis\n{\n \"source\": {\n \"index\": \"houses_sold_last_10_yrs\"\n },\n \"dest\": {\n \"index\": \"house_price_predictions\"\n },\n \"analysis\":\n {\n \"regression\": {\n \"dependent_variable\": \"price\"\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/put-dfanalytics.asciidoc","line":746},"digest":"1b6d27c2586c5679d4d6483539abdad2","lang":"console-result","found":[],"source":"{\n \"id\" : \"house_price_regression_analysis\",\n \"create_time\" : 1656364845151,\n \"version\" : \"8.4.0\",\n \"authorization\" : {\n \"roles\" : [\n \"superuser\"\n ]\n },\n \"source\" : {\n \"index\" : [\n \"houses_sold_last_10_yrs\"\n ],\n \"query\" : {\n \"match_all\" : { }\n }\n },\n \"dest\" : {\n \"index\" : \"house_price_predictions\",\n \"results_field\" : \"ml\"\n },\n \"analysis\" : {\n \"regression\" : {\n \"dependent_variable\" : \"price\",\n \"prediction_field_name\" : \"price_prediction\",\n \"training_percent\" : 100.0,\n \"randomize_seed\" : -3578554885299300212,\n \"loss_function\" : \"mse\",\n \"early_stopping_enabled\" : true\n }\n },\n \"model_memory_limit\" : \"1gb\",\n \"allow_lazy_start\" : false,\n \"max_num_threads\" : 1\n}\n"},
{"source_location":{"file":"ml/df-analytics/apis/put-dfanalytics.asciidoc","line":793},"digest":"ae82eb17c23cb8e5761cb6240a5ed0a6","lang":"console","found":["python","js"],"source":"PUT _ml/data_frame/analytics/student_performance_mathematics_0.3\n{\n \"source\": {\n \"index\": \"student_performance_mathematics\"\n },\n \"dest\": {\n \"index\":\"student_performance_mathematics_reg\"\n },\n \"analysis\":\n {\n \"regression\": {\n \"dependent_variable\": \"G3\",\n \"training_percent\": 70, <1>\n \"randomize_seed\": 19673948271 <2>\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/put-dfanalytics.asciidoc","line":822},"digest":"dac8ec8547bc446637fd97d9fa872f4f","lang":"console","found":["python","js"],"source":"PUT _ml/data_frame/analytics/flight_prices\n{\n \"source\": {\n \"index\": [\n \"kibana_sample_data_flights\"\n ]\n },\n \"dest\": {\n \"index\": \"kibana_sample_flight_prices\"\n },\n \"analysis\": {\n \"regression\": {\n \"dependent_variable\": \"AvgTicketPrice\",\n \"num_top_feature_importance_values\": 2,\n \"feature_processors\": [\n {\n \"frequency_encoding\": {\n \"field\": \"DestWeather\",\n \"feature_name\": \"DestWeather_frequency\",\n \"frequency_map\": {\n \"Rain\": 0.14604811155570188,\n \"Heavy Fog\": 0.14604811155570188,\n \"Thunder & Lightning\": 0.14604811155570188,\n \"Cloudy\": 0.14604811155570188,\n \"Damaging Wind\": 0.14604811155570188,\n \"Hail\": 0.14604811155570188,\n \"Sunny\": 0.14604811155570188,\n \"Clear\": 0.14604811155570188\n }\n }\n },\n {\n \"target_mean_encoding\": {\n \"field\": \"DestWeather\",\n \"feature_name\": \"DestWeather_targetmean\",\n \"target_map\": {\n \"Rain\": 626.5588814585794,\n \"Heavy Fog\": 626.5588814585794,\n \"Thunder & Lightning\": 626.5588814585794,\n \"Hail\": 626.5588814585794,\n \"Damaging Wind\": 626.5588814585794,\n \"Cloudy\": 626.5588814585794,\n \"Clear\": 626.5588814585794,\n \"Sunny\": 626.5588814585794\n },\n \"default_value\": 624.0249512020454\n }\n },\n {\n \"one_hot_encoding\": {\n \"field\": \"DestWeather\",\n \"hot_map\": {\n \"Rain\": \"DestWeather_Rain\",\n \"Heavy Fog\": \"DestWeather_Heavy Fog\",\n \"Thunder & Lightning\": \"DestWeather_Thunder & Lightning\",\n \"Cloudy\": \"DestWeather_Cloudy\",\n \"Damaging Wind\": \"DestWeather_Damaging Wind\",\n \"Hail\": \"DestWeather_Hail\",\n \"Clear\": \"DestWeather_Clear\",\n \"Sunny\": \"DestWeather_Sunny\"\n }\n }\n }\n ]\n }\n },\n \"analyzed_fields\": {\n \"includes\": [\n \"AvgTicketPrice\",\n \"Cancelled\",\n \"DestWeather\",\n \"FlightDelayMin\",\n \"DistanceMiles\"\n ]\n },\n \"model_memory_limit\": \"30mb\"\n}"},
{"source_location":{"file":"ml/df-analytics/apis/put-dfanalytics.asciidoc","line":914},"digest":"4fb0629146ca78b85e823edd405497bb","lang":"console","found":["python","js"],"source":"PUT _ml/data_frame/analytics/loan_classification\n{\n \"source\" : {\n \"index\": \"loan-applicants\"\n },\n \"dest\" : {\n \"index\": \"loan-applicants-classified\"\n },\n \"analysis\" : {\n \"classification\": {\n \"dependent_variable\": \"label\",\n \"training_percent\": 75,\n \"num_top_classes\": 2\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/delete-dfanalytics.asciidoc","line":57},"digest":"1c8b6768c4eefc76fcb38708152f561b","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/data_frame/analytics/loganalytics"},
{"source_location":{"file":"ml/df-analytics/apis/delete-dfanalytics.asciidoc","line":65},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":259},"digest":"d4b405ef0302227e050ac8f0e39068e1","lang":"console","found":["python","ruby","js"],"source":"POST _ml/data_frame/_evaluate\n{\n \"index\": \"my_analytics_dest_index\",\n \"evaluation\": {\n \"outlier_detection\": {\n \"actual_field\": \"is_outlier\",\n \"predicted_probability_field\": \"ml.outlier_score\"\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":276},"digest":"3b486424d5469101f3f9fde3fcdb8203","lang":"console-result","found":[],"source":"{\n \"outlier_detection\": {\n \"auc_roc\": {\n \"value\": 0.92584757746414444\n },\n \"confusion_matrix\": {\n \"0.25\": {\n \"tp\": 5,\n \"fp\": 9,\n \"tn\": 204,\n \"fn\": 5\n },\n \"0.5\": {\n \"tp\": 1,\n \"fp\": 5,\n \"tn\": 208,\n \"fn\": 9\n },\n \"0.75\": {\n \"tp\": 0,\n \"fp\": 4,\n \"tn\": 209,\n \"fn\": 10\n }\n },\n \"precision\": {\n \"0.25\": 0.35714285714285715,\n \"0.5\": 0.16666666666666666,\n \"0.75\": 0\n },\n \"recall\": {\n \"0.25\": 0.5,\n \"0.5\": 0.1,\n \"0.75\": 0\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":321},"digest":"0502284d4685c478eb68761f979f4303","lang":"console","found":["python","ruby","js"],"source":"POST _ml/data_frame/_evaluate\n{\n \"index\": \"house_price_predictions\", <1>\n \"query\": {\n \"bool\": {\n \"filter\": [\n { \"term\": { \"ml.is_training\": false } } <2>\n ]\n }\n },\n \"evaluation\": {\n \"regression\": {\n \"actual_field\": \"price\", <3>\n \"predicted_field\": \"ml.price_prediction\", <4>\n \"metrics\": {\n \"r_squared\": {},\n \"mse\": {},\n \"msle\": {\"offset\": 10},\n \"huber\": {\"delta\": 1.5}\n }\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":360},"digest":"24ad3c234f69f55a3fbe2d488e70178a","lang":"console","found":["python","ruby","js"],"source":"POST _ml/data_frame/_evaluate\n{\n \"index\": \"student_performance_mathematics_reg\",\n \"query\": {\n \"term\": {\n \"ml.is_training\": {\n \"value\": true <1>\n }\n }\n },\n \"evaluation\": {\n \"regression\": {\n \"actual_field\": \"G3\", <2>\n \"predicted_field\": \"ml.G3_prediction\", <3>\n \"metrics\": {\n \"r_squared\": {},\n \"mse\": {},\n \"msle\": {},\n \"huber\": {}\n }\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":401},"digest":"64622409407316d2d47094e692d9b516","lang":"console","found":["python","ruby","js"],"source":"POST _ml/data_frame/_evaluate\n{\n \"index\": \"student_performance_mathematics_reg\",\n \"query\": {\n \"term\": {\n \"ml.is_training\": {\n \"value\": false <1>\n }\n }\n },\n \"evaluation\": {\n \"regression\": {\n \"actual_field\": \"G3\", <2>\n \"predicted_field\": \"ml.G3_prediction\", <3>\n \"metrics\": {\n \"r_squared\": {},\n \"mse\": {},\n \"msle\": {},\n \"huber\": {}\n }\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":442},"digest":"388d3eda4f792d3fce044777739217e6","lang":"console","found":["python","ruby","js"],"source":"POST _ml/data_frame/_evaluate\n{\n \"index\": \"animal_classification\",\n \"evaluation\": {\n \"classification\": { <1>\n \"actual_field\": \"animal_class\", <2>\n \"predicted_field\": \"ml.animal_class_prediction\", <3>\n \"metrics\": {\n \"multiclass_confusion_matrix\" : {} <4>\n }\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":470},"digest":"c9b0865574c0db1f8ea02d507e215bfe","lang":"console-result","found":[],"source":"{\n \"classification\" : {\n \"multiclass_confusion_matrix\" : {\n \"confusion_matrix\" : [\n {\n \"actual_class\" : \"cat\", <1>\n \"actual_class_doc_count\" : 12, <2>\n \"predicted_classes\" : [ <3>\n {\n \"predicted_class\" : \"cat\",\n \"count\" : 12 <4>\n },\n {\n \"predicted_class\" : \"dog\",\n \"count\" : 0 <5>\n }\n ],\n \"other_predicted_class_doc_count\" : 0 <6>\n },\n {\n \"actual_class\" : \"dog\",\n \"actual_class_doc_count\" : 11,\n \"predicted_classes\" : [\n {\n \"predicted_class\" : \"dog\",\n \"count\" : 7\n },\n {\n \"predicted_class\" : \"cat\",\n \"count\" : 4\n }\n ],\n \"other_predicted_class_doc_count\" : 0\n }\n ],\n \"other_actual_class_count\" : 0\n }\n }\n }"},
{"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":523},"digest":"09e6e06ba562f4b9bac59455e9151a80","lang":"console","found":["python","ruby","js"],"source":"POST _ml/data_frame/_evaluate\n{\n \"index\": \"animal_classification\",\n \"evaluation\": {\n \"classification\": { <1>\n \"actual_field\": \"animal_class\", <2>\n \"metrics\": {\n \"auc_roc\" : { <3>\n \"class_name\": \"dog\" <4>\n }\n }\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":552},"digest":"70fe53e23c2ff4c7c22709e16879bac0","lang":"console-result","found":[],"source":"{\n \"classification\" : {\n \"auc_roc\" : {\n \"value\" : 0.8941788639536681\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/explain-dfanalytics.asciidoc","line":126},"digest":"8aa17bd25a3f2d634e5253b4b72fec4c","lang":"console","found":["python","js"],"source":"POST _ml/data_frame/analytics/_explain\n{\n \"source\": {\n \"index\": \"houses_sold_last_10_yrs\"\n },\n \"analysis\": {\n \"regression\": {\n \"dependent_variable\": \"price\"\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/explain-dfanalytics.asciidoc","line":145},"digest":"fdfac19398a52c398d60bcdd3d4f7c9d","lang":"console-result","found":[],"source":"{\n \"field_selection\": [\n {\n \"field\": \"number_of_bedrooms\",\n \"mappings_types\": [\"integer\"],\n \"is_included\": true,\n \"is_required\": false,\n \"feature_type\": \"numerical\"\n },\n {\n \"field\": \"postcode\",\n \"mappings_types\": [\"text\"],\n \"is_included\": false,\n \"is_required\": false,\n \"reason\": \"[postcode.keyword] is preferred because it is aggregatable\"\n },\n {\n \"field\": \"postcode.keyword\",\n \"mappings_types\": [\"keyword\"],\n \"is_included\": true,\n \"is_required\": false,\n \"feature_type\": \"categorical\"\n },\n {\n \"field\": \"price\",\n \"mappings_types\": [\"float\"],\n \"is_included\": true,\n \"is_required\": true,\n \"feature_type\": \"numerical\"\n }\n ],\n \"memory_estimation\": {\n \"expected_memory_without_disk\": \"128MB\",\n \"expected_memory_with_disk\": \"32MB\"\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/get-dfanalytics.asciidoc","line":218},"digest":"5ccfd9f4698dcd7cdfbc6bad60081aab","lang":"console","found":["python","ruby","js"],"source":"GET _ml/data_frame/analytics/loganalytics"},
{"source_location":{"file":"ml/df-analytics/apis/get-dfanalytics.asciidoc","line":226},"digest":"347c6b162bebdb3f2cf7f8812cdb6568","lang":"console-result","found":[],"source":"{\n \"count\" : 1,\n \"data_frame_analytics\" : [\n {\n \"id\" : \"loganalytics\",\n \"create_time\" : 1656364565517,\n \"version\" : \"8.4.0\",\n \"authorization\" : {\n \"roles\" : [\n \"superuser\"\n ]\n },\n \"description\" : \"Outlier detection on log data\",\n \"source\" : {\n \"index\" : [\n \"logdata\"\n ],\n \"query\" : {\n \"match_all\" : { }\n }\n },\n \"dest\" : {\n \"index\" : \"logdata_out\",\n \"results_field\" : \"ml\"\n },\n \"analysis\" : {\n \"outlier_detection\" : {\n \"compute_feature_influence\" : true,\n \"outlier_fraction\" : 0.05,\n \"standardization_enabled\" : true\n }\n },\n \"model_memory_limit\" : \"1gb\",\n \"allow_lazy_start\" : false,\n \"max_num_threads\" : 1\n }\n ]\n}"},
{"source_location":{"file":"ml/df-analytics/apis/get-dfanalytics-stats.asciidoc","line":539},"digest":"fad26f4fb5a1bc9c38db33394e877d94","lang":"console","found":["python","ruby","js"],"source":"GET _ml/data_frame/analytics/weblog-outliers/_stats"},
{"source_location":{"file":"ml/df-analytics/apis/get-dfanalytics-stats.asciidoc","line":545},"digest":"0c2b3feeab83f6fd68ebd1accb79ebd9","lang":"console-result","found":[],"source":"{\n \"count\" : 1,\n \"data_frame_analytics\" : [\n {\n \"id\" : \"weblog-outliers\",\n \"state\" : \"stopped\",\n \"progress\" : [\n {\n \"phase\" : \"reindexing\",\n \"progress_percent\" : 100\n },\n {\n \"phase\" : \"loading_data\",\n \"progress_percent\" : 100\n },\n {\n \"phase\" : \"computing_outliers\",\n \"progress_percent\" : 100\n },\n {\n \"phase\" : \"writing_results\",\n \"progress_percent\" : 100\n }\n ],\n \"data_counts\" : {\n \"training_docs_count\" : 1001,\n \"test_docs_count\" : 0,\n \"skipped_docs_count\" : 0\n },\n \"memory_usage\" : {\n \"timestamp\" : 1626264770206,\n \"peak_usage_bytes\" : 328011,\n \"status\" : \"ok\"\n },\n \"analysis_stats\" : {\n \"outlier_detection_stats\" : {\n \"timestamp\" : 1626264770206,\n \"parameters\" : {\n \"n_neighbors\" : 0,\n \"method\" : \"ensemble\",\n \"compute_feature_influence\" : true,\n \"feature_influence_threshold\" : 0.1,\n \"outlier_fraction\" : 0.05,\n \"standardization_enabled\" : true\n },\n \"timing_stats\" : {\n \"elapsed_time\" : 32\n }\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"ml/df-analytics/apis/preview-dfanalytics.asciidoc","line":75},"digest":"b85716ba42a57096452665c38995da7d","lang":"console","found":["python","js"],"source":"POST _ml/data_frame/analytics/_preview\n{\n \"config\": {\n \"source\": {\n \"index\": \"houses_sold_last_10_yrs\"\n },\n \"analysis\": {\n \"regression\": {\n \"dependent_variable\": \"price\"\n }\n }\n }\n}"},
{"source_location":{"file":"ml/df-analytics/apis/preview-dfanalytics.asciidoc","line":95},"digest":"368888b315d3719d5add258e4f70f07a","lang":"console-result","found":[],"source":"{\n \"feature_values\": [\n {\n \"number_of_bedrooms\": \"1\",\n \"postcode\": \"29655\",\n \"price\": \"140.4\"\n },\n ...\n ]\n}"},
{"source_location":{"file":"ml/df-analytics/apis/start-dfanalytics.asciidoc","line":88},"digest":"1a3a4b8a4bfee4ab84ddd13d8835f560","lang":"console","found":["python","js"],"source":"POST _ml/data_frame/analytics/loganalytics/_start"},
{"source_location":{"file":"ml/df-analytics/apis/start-dfanalytics.asciidoc","line":96},"digest":"f052c0460de9e53274506d780b23f202","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true,\n \"node\" : \"node-1\"\n}"},
{"source_location":{"file":"ml/df-analytics/apis/stop-dfanalytics.asciidoc","line":75},"digest":"db19cc7a26ca80106d86d688f4be67a8","lang":"console","found":["python","ruby","js"],"source":"POST _ml/data_frame/analytics/loganalytics/_stop"},
{"source_location":{"file":"ml/df-analytics/apis/stop-dfanalytics.asciidoc","line":83},"digest":"0cb51a35e30e7cb43c0d65adef177a84","lang":"console-result","found":[],"source":"{\n \"stopped\" : true\n}"},
{"source_location":{"file":"ml/df-analytics/apis/update-dfanalytics.asciidoc","line":98},"digest":"9f99be2d58c48a6bf8e892aa24604197","lang":"console","found":["python","js"],"source":"POST _ml/data_frame/analytics/loganalytics/_update\n{\n \"model_memory_limit\": \"200mb\"\n}"},
{"source_location":{"file":"ml/df-analytics/apis/update-dfanalytics.asciidoc","line":110},"digest":"328871cd9c70e0f4c53323d73169999a","lang":"console-result","found":[],"source":"{\n \"id\" : \"loganalytics\",\n \"create_time\" : 1656364565517,\n \"version\" : \"8.4.0\",\n \"authorization\" : {\n \"roles\" : [\n \"superuser\"\n ]\n },\n \"description\" : \"Outlier detection on log data\",\n \"source\" : {\n \"index\" : [\n \"logdata\"\n ],\n \"query\" : {\n \"match_all\" : { }\n }\n },\n \"dest\" : {\n \"index\" : \"logdata_out\",\n \"results_field\" : \"ml\"\n },\n \"analysis\" : {\n \"outlier_detection\" : {\n \"compute_feature_influence\" : true,\n \"outlier_fraction\" : 0.05,\n \"standardization_enabled\" : true\n }\n },\n \"model_memory_limit\" : \"200mb\",\n \"allow_lazy_start\" : false,\n \"max_num_threads\" : 1\n}"},
{"source_location":{"file":"ml/trained-models/apis/clear-trained-model-deployment-cache.asciidoc","line":49},"digest":"7e4cb3de3e3c75646b60f9f81ddc59cc","lang":"console","found":["python","ruby","js"],"source":"POST _ml/trained_models/elastic__distilbert-base-uncased-finetuned-conll03-english/deployment/cache/_clear"},
{"source_location":{"file":"ml/trained-models/apis/clear-trained-model-deployment-cache.asciidoc","line":57},"digest":"b29fb7982a289c9a23d34cba02cf123c","lang":"console-result","found":[],"source":"{\n \"cleared\": true\n}"},
{"source_location":{"file":"ml/trained-models/apis/put-trained-models-aliases.asciidoc","line":87},"digest":"147d341cb212dcc015c129a9c5dcf9c9","lang":"console","found":["python","ruby","js"],"source":"PUT _ml/trained_models/flight-delay-prediction-1574775339910/model_aliases/flight_delay_model"},
{"source_location":{"file":"ml/trained-models/apis/put-trained-models-aliases.asciidoc","line":99},"digest":"d50b030edfe6d1128eb76aa5ba9d4e27","lang":"console","found":["python","ruby","js"],"source":"PUT _ml/trained_models/flight-delay-prediction-1580004349800/model_aliases/flight_delay_model?reassign=true"},
{"source_location":{"file":"ml/trained-models/apis/put-trained-model-definition-part.asciidoc","line":70},"digest":"be6b0bfcdce1ef100af89f74da5d4748","lang":"console","found":["python","js"],"source":"PUT _ml/trained_models/elastic__distilbert-base-uncased-finetuned-conll03-english/definition/0\n{\n \"definition\": \"...\",\n \"total_definition_length\": 265632637,\n \"total_parts\": 64\n}"},
{"source_location":{"file":"ml/trained-models/apis/put-trained-model-definition-part.asciidoc","line":83},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ml/trained-models/apis/put-trained-model-vocabulary.asciidoc","line":69},"digest":"2d633b7f346b828d01f923ce9dbf6ad5","lang":"console","found":[],"source":"PUT _ml/trained_models/elastic__distilbert-base-uncased-finetuned-conll03-english/vocabulary\n{\n \"vocabulary\": [\n \"[PAD]\",\n \"[unused0]\",\n ...\n ]\n}"},
{"source_location":{"file":"ml/trained-models/apis/put-trained-model-vocabulary.asciidoc","line":84},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"ml/trained-models/apis/delete-trained-models-aliases.asciidoc","line":57},"digest":"821422f8a03dc98d024a15fc737fe9eb","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/trained_models/flight-delay-prediction-1574775339910/model_aliases/flight_delay_model"},
{"source_location":{"file":"ml/trained-models/apis/delete-trained-models.asciidoc","line":60},"digest":"cc90639f2e65bd89cb73296cac6135cf","lang":"console","found":["python","ruby","js"],"source":"DELETE _ml/trained_models/regression-job-one-1574775307356"},
{"source_location":{"file":"ml/trained-models/apis/delete-trained-models.asciidoc","line":69},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"ml/trained-models/apis/get-trained-models.asciidoc","line":1467},"digest":"4c174e228b6b74497b73ef2be80de7ad","lang":"console","found":["python","ruby","js"],"source":"GET _ml/trained_models/"},
{"source_location":{"file":"ml/trained-models/apis/get-trained-models-stats.asciidoc","line":412},"digest":"9225841fdcddaf83ebdb90c2b0399e20","lang":"console","found":["python","ruby","js"],"source":"GET _ml/trained_models/_stats"},
{"source_location":{"file":"ml/trained-models/apis/get-trained-models-stats.asciidoc","line":421},"digest":"b0a253a5d3a2bc2bb5050675c1730f50","lang":"console-result","found":[],"source":"{\n \"count\": 2,\n \"trained_model_stats\": [\n {\n \"model_id\": \"flight-delay-prediction-1574775339910\",\n \"pipeline_count\": 0,\n \"inference_stats\": {\n \"failure_count\": 0,\n \"inference_count\": 4,\n \"cache_miss_count\": 3,\n \"missing_all_fields_count\": 0,\n \"timestamp\": 1592399986979\n }\n },\n {\n \"model_id\": \"regression-job-one-1574775307356\",\n \"pipeline_count\": 1,\n \"inference_stats\": {\n \"failure_count\": 0,\n \"inference_count\": 178,\n \"cache_miss_count\": 3,\n \"missing_all_fields_count\": 0,\n \"timestamp\": 1592399986979\n },\n \"ingest\": {\n \"total\": {\n \"count\": 178,\n \"time_in_millis\": 8,\n \"current\": 0,\n \"failed\": 0\n },\n \"pipelines\": {\n \"flight-delay\": {\n \"count\": 178,\n \"time_in_millis\": 8,\n \"current\": 0,\n \"failed\": 0,\n \"processors\": [\n {\n \"inference\": {\n \"type\": \"inference\",\n \"stats\": {\n \"count\": 178,\n \"time_in_millis\": 7,\n \"current\": 0,\n \"failed\": 0\n }\n }\n }\n ]\n }\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":956},"digest":"35a272df8c919a12d7c3106a18245748","lang":"console","found":["python","ruby","js"],"source":"POST _ml/trained_models/lang_ident_model_1/_infer\n{\n \"docs\":[{\"text\": \"The fool doth think he is wise, but the wise man knows himself to be a fool.\"}]\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":967},"digest":"9dba1d3030959a81d193dde87a60af07","lang":"console-result","found":[],"source":"{\n \"inference_results\": [\n {\n \"predicted_value\": \"en\",\n \"prediction_probability\": 0.9999658805366392,\n \"prediction_score\": 0.9999658805366392\n }\n ]\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":987},"digest":"776b553df0e507c96dbdbaedecaca0cc","lang":"console","found":["python","ruby","js"],"source":"POST _ml/trained_models/model2/_infer\n{\n\t\"docs\": [{\"text_field\": \"The movie was awesome!!\"}]\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":998},"digest":"880db3183fcaa977d129d62a679f5c2c","lang":"console-result","found":[],"source":"{\n \"inference_results\": [{\n \"predicted_value\" : \"POSITIVE\",\n \"prediction_probability\" : 0.9998667964092964\n }]\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1012},"digest":"ff776c0fccf93e1c7050f7cb7efbae0b","lang":"console","found":["python","ruby","js"],"source":"POST _ml/trained_models/model2/_infer\n{\n\t\"docs\": [{\"text_field\": \"Hi my name is Josh and I live in Berlin\"}]\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1023},"digest":"4f645597e1009e893b7fa0ddba3e7207","lang":"console-result","found":[],"source":"{\n \"inference_results\": [{\n \"predicted_value\" : \"Hi my name is [Josh](PER&Josh) and I live in [Berlin](LOC&Berlin)\",\n \"entities\" : [\n {\n \"entity\" : \"Josh\",\n \"class_name\" : \"PER\",\n \"class_probability\" : 0.9977303419824,\n \"start_pos\" : 14,\n \"end_pos\" : 18\n },\n {\n \"entity\" : \"Berlin\",\n \"class_name\" : \"LOC\",\n \"class_probability\" : 0.9992474323902818,\n \"start_pos\" : 33,\n \"end_pos\" : 39\n }\n ]\n }]\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1052},"digest":"9cbb097e5498a9fde39e3b1d3b62a4d2","lang":"console","found":["python","ruby","js"],"source":"POST _ml/trained_models/model2/_infer\n{\n \"docs\": [\n {\n \"text_field\": \"This is a very happy person\"\n }\n ],\n \"inference_config\": {\n \"zero_shot_classification\": {\n \"labels\": [\n \"glad\",\n \"sad\",\n \"bad\",\n \"rad\"\n ],\n \"multi_label\": false\n }\n }\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1079},"digest":"0a7cd6c39c2f26b0feffe4cf3db6c5db","lang":"console-result","found":[],"source":"{\n \"inference_results\": [{\n \"predicted_value\" : \"glad\",\n \"top_classes\" : [\n {\n \"class_name\" : \"glad\",\n \"class_probability\" : 0.8061155063386439,\n \"class_score\" : 0.8061155063386439\n },\n {\n \"class_name\" : \"rad\",\n \"class_probability\" : 0.18218006158387956,\n \"class_score\" : 0.18218006158387956\n },\n {\n \"class_name\" : \"bad\",\n \"class_probability\" : 0.006325615787634201,\n \"class_score\" : 0.006325615787634201\n },\n {\n \"class_name\" : \"sad\",\n \"class_probability\" : 0.0053788162898424545,\n \"class_score\" : 0.0053788162898424545\n }\n ],\n \"prediction_probability\" : 0.8061155063386439\n }]\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1115},"digest":"3c345feb7c52fd54bcb5d5505fd8bc3b","lang":"console","found":["python","ruby","js"],"source":"POST _ml/trained_models/model2/_infer\n{\n \"docs\": [\n {\n \"text_field\": \"\"\n }\n ],\n \"inference_config\": {\n \"question_answering\": {\n \"question\": \"\"\n }\n }\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1135},"digest":"326297e76ab2f4f081295145a30d12ea","lang":"console-result","found":[],"source":"{\n \"predicted_value\": ,\n \"start_offset\": ,\n \"end_offset\": \n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1150},"digest":"095e3f21941a9cc75f398389a075152d","lang":"console","found":["python","js"],"source":"POST _ml/trained_models/cross-encoder__ms-marco-tinybert-l-2-v2/_infer\n{\n \"docs\":[{ \"text_field\": \"Berlin has a population of 3,520,031 registered inhabitants in an area of 891.82 square kilometers.\"}, {\"text_field\": \"New York City is famous for the Metropolitan Museum of Art.\"}],\n \"inference_config\": {\n \"text_similarity\": {\n \"text\": \"How many people live in Berlin?\"\n }\n }\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1167},"digest":"54a8ef726f2d754d61d98c56a79319fe","lang":"console-result","found":[],"source":"{\n \"inference_results\": [\n {\n \"predicted_value\": 7.235751628875732\n },\n {\n \"predicted_value\": -11.562295913696289\n }\n ]\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1185},"digest":"cee491dd0a8d10ed0cb11a2faa0c99f0","lang":"console","found":["python","ruby","js"],"source":"POST _ml/trained_models/model2/_infer\n{\n \"docs\": [{\"text_field\": \"The Amazon rainforest covers most of the Amazon basin in South America\"}],\n \"inference_config\": {\n \"ner\": {\n \"tokenization\": {\n \"bert\": {\n \"truncate\": \"first\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"ml/trained-models/apis/infer-trained-model.asciidoc","line":1206},"digest":"778547ddac52cb030de0f44bb5c5bbdc","lang":"console-result","found":[],"source":"{\n \"inference_results\": [{\n \"predicted_value\" : \"The [Amazon](LOC&Amazon) rainforest covers most of the [Amazon](LOC&Amazon) basin in [South America](LOC&South+America)\",\n \"entities\" : [\n {\n \"entity\" : \"Amazon\",\n \"class_name\" : \"LOC\",\n \"class_probability\" : 0.9505460915724254,\n \"start_pos\" : 4,\n \"end_pos\" : 10\n },\n {\n \"entity\" : \"Amazon\",\n \"class_name\" : \"LOC\",\n \"class_probability\" : 0.9969992804311777,\n \"start_pos\" : 41,\n \"end_pos\" : 47\n }\n ],\n \"is_truncated\" : true\n }]\n}"},
{"source_location":{"file":"ml/trained-models/apis/start-trained-model-deployment.asciidoc","line":166},"digest":"aa6282d4bc92c753c4bd7a5b166abece","lang":"console","found":["python","js"],"source":"POST _ml/trained_models/elastic__distilbert-base-uncased-finetuned-conll03-english/deployment/_start?wait_for=started&timeout=1m"},
{"source_location":{"file":"ml/trained-models/apis/start-trained-model-deployment.asciidoc","line":174},"digest":"8985326827126beab88b5b044389480f","lang":"console-result","found":[],"source":"{\n \"assignment\": {\n \"task_parameters\": {\n \"model_id\": \"elastic__distilbert-base-uncased-finetuned-conll03-english\",\n \"model_bytes\": 265632637,\n \"threads_per_allocation\" : 1,\n \"number_of_allocations\" : 1,\n \"queue_capacity\" : 10000,\n \"priority\": \"normal\"\n },\n \"routing_table\": {\n \"uckeG3R8TLe2MMNBQ6AGrw\": {\n \"routing_state\": \"started\",\n \"reason\": \"\"\n }\n },\n \"assignment_state\": \"started\",\n \"start_time\": \"2022-11-02T11:50:34.766591Z\"\n }\n}"},
{"source_location":{"file":"ml/trained-models/apis/start-trained-model-deployment.asciidoc","line":206},"digest":"0e5d25c7bb738c42d471020d678e2966","lang":"console","found":["python","js"],"source":"POST _ml/trained_models/my_model/deployment/_start?deployment_id=my_model_for_ingest"},
{"source_location":{"file":"ml/trained-models/apis/start-trained-model-deployment.asciidoc","line":214},"digest":"5837d5f50665ac0a26181d3aaeb3f204","lang":"console","found":["python","js"],"source":"POST _ml/trained_models/my_model/deployment/_start?deployment_id=my_model_for_search"},
{"source_location":{"file":"ml/trained-models/apis/start-trained-model-deployment.asciidoc","line":228},"digest":"4982c547be1ad9455ae836990aea92c5","lang":"console","found":["python","js"],"source":"POST _ml/trained_models/my_model/deployment/_start?deployment_id=my_model_for_search\n{\n \"adaptive_allocations\": {\n \"enabled\": true,\n \"min_number_of_allocations\": 3,\n \"max_number_of_allocations\": 10\n }\n}"},
{"source_location":{"file":"ml/trained-models/apis/stop-trained-model-deployment.asciidoc","line":73},"digest":"dbf93d02ab86a09929a21232b19709cc","lang":"console","found":["python","ruby","js"],"source":"POST _ml/trained_models/my_model_for_search/deployment/_stop"},
{"source_location":{"file":"ml/trained-models/apis/update-trained-model-deployment.asciidoc","line":80},"digest":"70cc66bf4054ebf0ad4955cb99d9ab80","lang":"console","found":["python","ruby","js"],"source":"POST _ml/trained_models/elastic__distilbert-base-uncased-finetuned-conll03-english/deployment/_update\n{\n \"number_of_allocations\": 4\n}"},
{"source_location":{"file":"ml/trained-models/apis/update-trained-model-deployment.asciidoc","line":91},"digest":"cc9c1a787723585faeb0b8923117dd08","lang":"console-result","found":[],"source":"{\n \"assignment\": {\n \"task_parameters\": {\n \"model_id\": \"elastic__distilbert-base-uncased-finetuned-conll03-english\",\n \"model_bytes\": 265632637,\n \"threads_per_allocation\" : 1,\n \"number_of_allocations\" : 4,\n \"queue_capacity\" : 1024\n },\n \"routing_table\": {\n \"uckeG3R8TLe2MMNBQ6AGrw\": {\n \"current_allocations\": 1,\n \"target_allocations\": 4,\n \"routing_state\": \"started\",\n \"reason\": \"\"\n }\n },\n \"assignment_state\": \"started\",\n \"start_time\": \"2022-11-02T11:50:34.766591Z\"\n }\n}"},
{"source_location":{"file":"ml/trained-models/apis/update-trained-model-deployment.asciidoc","line":121},"digest":"dfce1be1d035aff0b8fdf4a8839f7795","lang":"console","found":["python","js"],"source":"POST _ml/trained_models/elastic__distilbert-base-uncased-finetuned-conll03-english/deployment/_update\n{\n \"adaptive_allocations\": {\n \"enabled\": true,\n \"min_number_of_allocations\": 3,\n \"max_number_of_allocations\": 10\n }\n}"},
{"source_location":{"file":"migration/apis/deprecation.asciidoc","line":67},"digest":"135819da3a4bde684357c57a49ad8e85","lang":"console","found":["python","ruby","js"],"source":"GET /_migration/deprecations"},
{"source_location":{"file":"migration/apis/deprecation.asciidoc","line":146},"digest":"69f8b0f2a9ba47e11f363d788cee9d6d","lang":"console","found":["python","ruby","js"],"source":"GET /logstash-*/_migration/deprecations"},
{"source_location":{"file":"migration/apis/feature-migration.asciidoc","line":53},"digest":"85e2719d9fd6d2c2d47d28d39f2e3f7e","lang":"console","found":["python","ruby","js"],"source":"GET /_migration/system_features"},
{"source_location":{"file":"migration/apis/feature-migration.asciidoc","line":60},"digest":"08182085bcd8d57f4fd49619eed61feb","lang":"console-result","found":[],"source":"{\n \"features\" : [\n {\n \"feature_name\" : \"async_search\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"enrich\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"ent_search\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"fleet\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"geoip\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"kibana\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"logstash_management\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"machine_learning\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"searchable_snapshots\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"security\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"synonyms\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"tasks\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"transform\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n },\n {\n \"feature_name\" : \"watcher\",\n \"minimum_index_version\" : \"8100099\",\n \"migration_status\" : \"NO_MIGRATION_NEEDED\",\n \"indices\" : [ ]\n }\n ],\n \"migration_status\" : \"NO_MIGRATION_NEEDED\"\n}"},
{"source_location":{"file":"migration/apis/feature-migration.asciidoc","line":158},"digest":"008ed823c89e703c447ac89c6b689833","lang":"console","found":["python","ruby","js"],"source":"POST /_migration/system_features"},
{"source_location":{"file":"migration/apis/feature-migration.asciidoc","line":165},"digest":"daa6c928819a3ba77b9ffb9987f8c919","lang":"console-result","found":[],"source":"{\n \"accepted\" : true,\n \"features\" : [\n {\n \"feature_name\" : \"security\" <1>\n }\n ]\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":105},"digest":"29aeabacb1fdf5b083d5f091b6d1bd44","lang":"console","found":[],"source":"POST _migration/reindex\n{\n \"source\": {\n \"index\": \"my-data-stream\"\n },\n \"mode\": \"upgrade\"\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":143},"digest":"46b771a9932c3fa6057a7b2679c72ef0","lang":"console","found":[],"source":"GET /_migration/reindex/my-data-stream/_status"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":151},"digest":"505bf5b3f9ced62e9bcbd9129822e099","lang":"console-result","found":[],"source":"{\n \"start_time_millis\": 1737676174349,\n \"complete\": false,\n \"total_indices_in_data_stream\": 4,\n \"total_indices_requiring_upgrade\": 3,\n \"successes\": 0,\n \"in_progress\": [\n {\n \"index\": \".ds-my-data-stream-2025.01.23-000001\",\n \"total_doc_count\": 10000000,\n \"reindexed_doc_count\": 999999\n }\n ],\n \"pending\": 2,\n \"errors\": []\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":188},"digest":"31df20ef9535f05e9c08559a496a5285","lang":"console-result","found":[],"source":"{\n \"start_time_millis\": 1737676174349,\n \"complete\": false,\n \"total_indices_in_data_stream\": 4,\n \"total_indices_requiring_upgrade\": 3,\n \"successes\": 1,\n \"in_progress\": [\n {\n \"index\": \".ds-my-data-stream-2025.01.23-000002\",\n \"total_doc_count\": 10000000,\n \"reindexed_doc_count\": 1000\n }\n ],\n \"pending\": 1,\n \"errors\": []\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":224},"digest":"15ac33d641b376d9494075eb1f0d4066","lang":"console","found":[],"source":"POST /_migration/reindex/my-data-stream/_cancel"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":232},"digest":"537bce129338d9227bccb6a0283dab45","lang":"console","found":["js"],"source":"PUT /_cluster/settings\n{\n \"persistent\" : {\n \"migrate.data_stream_reindex_max_request_per_second\" : 10000\n }\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":249},"digest":"92479fb9e59c513da79fdff1e427d7f4","lang":"console-result","found":[],"source":"{\n \"start_time_millis\": 1737676174349,\n \"complete\": true,\n \"total_indices_in_data_stream\": 4,\n \"total_indices_requiring_upgrade\": 2,\n \"successes\": 2,\n \"in_progress\": [],\n \"pending\": 0,\n \"errors\": []\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":273},"digest":"00ad41bde67beac991534ae0e04b1296","lang":"console","found":["js"],"source":"GET _data_stream/my-data-stream?filter_path=data_streams.indices.index_name"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":281},"digest":"bd7689022b16f7ebbf95d58c44aa055e","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"indices\": [\n {\n \"index_name\": \".migrated-ds-my-data-stream-2025.01.23-000003\"\n },\n {\n \"index_name\": \".migrated-ds-my-data-stream-2025.01.23-000002\"\n },\n {\n \"index_name\": \".migrated-ds-my-data-stream-2025.01.23-000001\"\n },\n {\n \"index_name\": \".ds-my-data-stream-2025.01.23-000004\"\n }\n ]\n }\n ]\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":310},"digest":"a675fafa7c688cb3ea1be09bf887ebf0","lang":"console","found":["js"],"source":"GET .migrated-ds-my-data-stream-2025.01.23-000001?human&filter_path=*.settings.index.version.created_string"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":317},"digest":"f94c445fb1b98e187c0b737ade6dcf1c","lang":"console-result","found":[],"source":"{\n \".migrated-ds-my-data-stream-2025.01.23-000001\": {\n \"settings\": {\n \"index\": {\n \"version\": {\n \"created_string\": \"8.18.0\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex.asciidoc","line":338},"digest":"3e7392751e7f290a658d7162592ca8f5","lang":"console-result","found":[],"source":"{\n \"start_time_millis\": 1737676174349,\n \"complete\": false,\n \"total_indices_in_data_stream\": 4,\n \"total_indices_requiring_upgrade\": 3,\n \"successes\": 1,\n \"in_progress\": [],\n \"pending\": 1,\n \"errors\": [\n {\n \"index\": \".ds-my-data-stream-2025.01.23-000002\",\n \"message\": \"index [.ds-my-data-stream-2025.01.23-000002] does not exist\"\n }\n ]\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex-status.asciidoc","line":130},"digest":"adced6e22ef03c2ae3b14aa5bdd24fd9","lang":"console","found":[],"source":"GET _migration/reindex/my-data-stream/_status"},
{"source_location":{"file":"migration/apis/data-stream-reindex-status.asciidoc","line":136},"digest":"31df20ef9535f05e9c08559a496a5285","lang":"console-result","found":[],"source":"{\n \"start_time_millis\": 1737676174349,\n \"complete\": false,\n \"total_indices_in_data_stream\": 4,\n \"total_indices_requiring_upgrade\": 3,\n \"successes\": 1,\n \"in_progress\": [\n {\n \"index\": \".ds-my-data-stream-2025.01.23-000002\",\n \"total_doc_count\": 10000000,\n \"reindexed_doc_count\": 1000\n }\n ],\n \"pending\": 1,\n \"errors\": []\n}"},
{"source_location":{"file":"migration/apis/data-stream-reindex-cancel.asciidoc","line":41},"digest":"a60aaed30d7d26eaacbb2c0ed4ddc66d","lang":"console","found":[],"source":"POST _migration/reindex/my-data-stream/_cancel"},
{"source_location":{"file":"migration/apis/create-index-from-source.asciidoc","line":63},"digest":"3722dad876023e0757138dd5a6d3240e","lang":"console","found":["js"],"source":"PUT /my-index\n{\n \"settings\": {\n \"index\": {\n \"number_of_shards\": 3,\n \"blocks.write\": true\n }\n },\n \"mappings\": {\n \"properties\": {\n \"field1\": { \"type\": \"text\" }\n }\n }\n}"},
{"source_location":{"file":"migration/apis/create-index-from-source.asciidoc","line":85},"digest":"66915e95b723ee2f6e5164a94b8f98c1","lang":"console","found":[],"source":"POST _create_from/my-index/my-new-index"},
{"source_location":{"file":"migration/apis/create-index-from-source.asciidoc","line":94},"digest":"13d91782399ba1f291e103c18b5338cc","lang":"console","found":[],"source":"POST _create_from/my-index/my-new-index\n{\n \"settings_override\": {\n \"index\": {\n \"number_of_shards\": 5\n }\n },\n \"mappings_override\": {\n \"properties\": {\n \"field2\": { \"type\": \"boolean\" }\n }\n }\n}"},
{"source_location":{"file":"migration/apis/create-index-from-source.asciidoc","line":117},"digest":"2f9ee29fe49f7d206a41212aa5945296","lang":"console","found":[],"source":"POST _create_from/my-index/my-new-index\n{\n \"settings_override\": {\n \"index\": {\n \"blocks.write\": null,\n \"blocks.read\": null,\n \"blocks.read_only\": null,\n \"blocks.read_only_allow_delete\": null,\n \"blocks.metadata\": null\n }\n }\n}"},
{"source_location":{"file":"migration/apis/create-index-from-source.asciidoc","line":137},"digest":"dde92fdf3469349ffe2c81764333543a","lang":"console","found":[],"source":"POST _create_from/my-index/my-new-index\n{\n \"remove_index_blocks\": false\n}"},
{"source_location":{"file":"shutdown/apis/shutdown-put.asciidoc","line":102},"digest":"5305bc07c1bf90bab3e8db1de3e31b26","lang":"console","found":["python","ruby","js"],"source":"PUT /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown\n{\n \"type\": \"restart\", <1>\n \"reason\": \"Demonstrating how the node shutdown API works\",\n \"allocation_delay\": \"20m\"\n}"},
{"source_location":{"file":"shutdown/apis/shutdown-get.asciidoc","line":55},"digest":"532f371934b61fb4992d37bedcc085de","lang":"console","found":["python","ruby","js"],"source":"PUT /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown\n{\n \"type\": \"restart\",\n \"reason\": \"Demonstrating how the node shutdown API works\",\n \"allocation_delay\": \"10m\"\n}"},
{"source_location":{"file":"shutdown/apis/shutdown-get.asciidoc","line":67},"digest":"39760996f94ad34aaceaa16a5cc97993","lang":"console","found":["python","ruby","js"],"source":"GET /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown"},
{"source_location":{"file":"shutdown/apis/shutdown-get.asciidoc","line":76},"digest":"ad5521d81d94b99207bb8898877e0aab","lang":"console-result","found":[],"source":"{\n \"nodes\": [\n {\n \"node_id\": \"USpTGYaBSIKbgSUJR2Z9lg\",\n \"node_ephemeral_id\": null,\n \"type\": \"RESTART\",\n \"reason\": \"Demonstrating how the node shutdown API works\",\n \"shutdown_startedmillis\": 1624406108685,\n \"allocation_delay\": \"10m\",\n \"status\": \"COMPLETE\",\n \"shard_migration\": {\n \"status\": \"COMPLETE\",\n \"shard_migrations_remaining\": 0,\n \"explanation\": \"no shard relocation is necessary for a node restart\"\n },\n \"persistent_tasks\": {\n \"status\": \"COMPLETE\"\n },\n \"plugins\": {\n \"status\": \"COMPLETE\"\n }\n }\n ]\n}"},
{"source_location":{"file":"shutdown/apis/shutdown-delete.asciidoc","line":57},"digest":"37983daac3d9c8582583a507b3adb7f2","lang":"console","found":["python","ruby","js"],"source":"PUT /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown\n{\n \"type\": \"restart\",\n \"reason\": \"Demonstrating how the node shutdown API works\"\n}"},
{"source_location":{"file":"shutdown/apis/shutdown-delete.asciidoc","line":71},"digest":"6b3dcde0656d3a96dbcfed1ec814e10a","lang":"console","found":["python","ruby","js"],"source":"DELETE /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown"},
{"source_location":{"file":"shutdown/apis/shutdown-delete.asciidoc","line":80},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"query-rules/apis/put-query-ruleset.asciidoc","line":123},"digest":"6ce6cac9df216c52371c2e77e6e07ba1","lang":"console","found":["python","js"],"source":"PUT _query_rules/my-ruleset\n{\n \"rules\": [\n {\n \"rule_id\": \"my-rule1\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"contains\",\n \"metadata\": \"user_query\",\n \"values\": [ \"pugs\", \"puggles\" ]\n },\n {\n \"type\": \"exact\",\n \"metadata\": \"user_country\",\n \"values\": [ \"us\" ]\n }\n ],\n \"actions\": {\n \"ids\": [\n \"id1\",\n \"id2\"\n ]\n }\n },\n {\n \"rule_id\": \"my-rule2\",\n \"type\": \"exclude\",\n \"criteria\": [\n {\n \"type\": \"fuzzy\",\n \"metadata\": \"user_query\",\n \"values\": [ \"rescue dogs\" ]\n }\n ],\n \"actions\": {\n \"docs\": [\n {\n \"_index\": \"index1\",\n \"_id\": \"id3\"\n },\n {\n \"_index\": \"index2\",\n \"_id\": \"id4\"\n }\n ]\n }\n }\n ]\n}"},
{"source_location":{"file":"query-rules/apis/get-query-ruleset.asciidoc","line":108},"digest":"5fde0d78e9b2cc0519f8a63848ed344e","lang":"console","found":["python","js"],"source":"GET _query_rules/my-ruleset/"},
{"source_location":{"file":"query-rules/apis/get-query-ruleset.asciidoc","line":115},"digest":"29e690cd4b9cc617a2e34623fa3f715f","lang":"console-result","found":[],"source":"{\n \"ruleset_id\": \"my-ruleset\",\n \"rules\": [\n {\n \"rule_id\": \"my-rule1\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"contains\",\n \"metadata\": \"query_string\",\n \"values\": [ \"pugs\", \"puggles\" ]\n }\n ],\n \"actions\": {\n \"ids\": [\n \"id1\",\n \"id2\"\n ]\n }\n },\n {\n \"rule_id\": \"my-rule2\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"fuzzy\",\n \"metadata\": \"query_string\",\n \"values\": [ \"rescue dogs\" ]\n }\n ],\n \"actions\": {\n \"docs\": [\n {\n \"_index\": \"index1\",\n \"_id\": \"id3\"\n },\n {\n \"_index\": \"index2\",\n \"_id\": \"id4\"\n }\n ]\n }\n }\n ]\n}"},
{"source_location":{"file":"query-rules/apis/list-query-rulesets.asciidoc","line":164},"digest":"56db76c987106a870357854d3068ad98","lang":"console","found":["python","js"],"source":"GET _query_rules/"},
{"source_location":{"file":"query-rules/apis/list-query-rulesets.asciidoc","line":171},"digest":"61d6b9503459914c436930c3ae87d454","lang":"console","found":["python","js"],"source":"GET _query_rules/?from=0&size=3"},
{"source_location":{"file":"query-rules/apis/list-query-rulesets.asciidoc","line":178},"digest":"16b62e14c7f11a4584040a39ca6f87e6","lang":"console-result","found":[],"source":"{\n \"count\": 3,\n \"results\": [\n {\n \"ruleset_id\": \"ruleset-1\",\n \"rule_total_count\": 1,\n \"rule_criteria_types_counts\": {\n \"exact\": 1\n },\n \"rule_type_counts\": {\n \"pinned\": 1\n }\n },\n {\n \"ruleset_id\": \"ruleset-2\",\n \"rule_total_count\": 2,\n \"rule_criteria_types_counts\": {\n \"exact\": 1,\n \"fuzzy\": 1\n },\n \"rule_type_counts\": {\n \"pinned\": 2\n }\n },\n {\n \"ruleset_id\": \"ruleset-3\",\n \"rule_total_count\": 3,\n \"rule_criteria_types_counts\": {\n \"exact\": 1,\n \"fuzzy\": 2\n },\n \"rule_type_counts\": {\n \"pinned\": 2,\n \"exclude\": 1\n }\n }\n ]\n}"},
{"source_location":{"file":"query-rules/apis/delete-query-ruleset.asciidoc","line":75},"digest":"7e77509ab646276ff78f58bb38bec8dd","lang":"console","found":["python","js"],"source":"DELETE _query_rules/my-ruleset/"},
{"source_location":{"file":"query-rules/apis/put-query-rule.asciidoc","line":120},"digest":"c21aaedb5752a83489476fa3b5e2e9ff","lang":"console","found":["python","js"],"source":"PUT _query_rules/my-ruleset/_rule/my-rule1\n{\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"contains\",\n \"metadata\": \"user_query\",\n \"values\": [ \"pugs\", \"puggles\" ]\n },\n {\n \"type\": \"exact\",\n \"metadata\": \"user_country\",\n \"values\": [ \"us\" ]\n }\n ],\n \"actions\": {\n \"ids\": [\n \"id1\",\n \"id2\"\n ]\n }\n}"},
{"source_location":{"file":"query-rules/apis/get-query-rule.asciidoc","line":111},"digest":"24d806d1803158dacd4dda73c4204d3e","lang":"console","found":["python","js"],"source":"GET _query_rules/my-ruleset/_rule/my-rule1"},
{"source_location":{"file":"query-rules/apis/get-query-rule.asciidoc","line":118},"digest":"43694fa5191249f4b7f1a9d7d56822ac","lang":"console-result","found":[],"source":"{\n \"rule_id\": \"my-rule1\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"contains\",\n \"metadata\": \"query_string\",\n \"values\": [ \"pugs\", \"puggles\" ]\n }\n ],\n \"actions\": {\n \"ids\": [\n \"id1\",\n \"id2\"\n ]\n }\n}"},
{"source_location":{"file":"query-rules/apis/delete-query-rule.asciidoc","line":78},"digest":"b7f8bd33c22f3c93336ab57c2e091f73","lang":"console","found":["python","js"],"source":"DELETE _query_rules/my-ruleset/_rule/my-rule1"},
{"source_location":{"file":"query-rules/apis/test-query-ruleset.asciidoc","line":117},"digest":"e22a1da3c622611be6855e534c0709ae","lang":"console","found":["python","js"],"source":"POST _query_rules/my-ruleset/_test\n{\n \"match_criteria\": {\n \"query_string\": \"puggles\"\n }\n}"},
{"source_location":{"file":"query-rules/apis/test-query-ruleset.asciidoc","line":129},"digest":"0f2acbf107fb8f214c416d4fb00e76b3","lang":"console-result","found":[],"source":"{\n \"total_matched_rules\": 1,\n \"matched_rules\": [\n {\n \"ruleset_id\": \"my-ruleset\",\n \"rule_id\": \"my-rule1\"\n }\n ]\n}"},
{"source_location":{"file":"indices/apis/reload-analyzers.asciidoc","line":16},"digest":"ed09432c6069e41409f0a5e0d1d3842a","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_reload_search_analyzers\nPOST /my-index-000001/_cache/clear?request=true"},
{"source_location":{"file":"indices/apis/reload-analyzers.asciidoc","line":116},"digest":"df0d27d3abd286b75aef7ddcf0e6c66c","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"index\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_synonyms\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"synonym\" ]\n }\n },\n \"filter\": {\n \"synonym\": {\n \"type\": \"synonym_graph\",\n \"synonyms_path\": \"analysis/synonym.txt\", <1>\n \"updateable\": true <2>\n }\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"text\": {\n \"type\": \"text\",\n \"analyzer\": \"standard\",\n \"search_analyzer\": \"my_synonyms\" <3>\n }\n }\n }\n}"},
{"source_location":{"file":"indices/apis/reload-analyzers.asciidoc","line":160},"digest":"44db41b8465af951e366da97ade63bc1","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_reload_search_analyzers"},
{"source_location":{"file":"indices/apis/reload-analyzers.asciidoc","line":168},"digest":"6679f86497a8c543af57daf64a8fa3f3","lang":"console-result","found":[],"source":"{\n \"_shards\": {\n \"total\": 2,\n \"successful\": 2,\n \"failed\": 0\n },\n \"reload_details\": [\n {\n \"index\": \"my-index-000001\",\n \"reloaded_analyzers\": [\n \"my_synonyms\"\n ],\n \"reloaded_node_ids\": [\n \"mfdqTXn_T7SGr2Ho2KT8uw\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"rollup/apis/put-job.asciidoc","line":260},"digest":"4d2e6eb7fea407deeb7a859c267fda62","lang":"console","found":["python","js"],"source":"PUT _rollup/job/sensor\n{\n \"index_pattern\": \"sensor-*\",\n \"rollup_index\": \"sensor_rollup\",\n \"cron\": \"*/30 * * * * ?\",\n \"page_size\": 1000,\n \"groups\": { <1>\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"fixed_interval\": \"1h\",\n \"delay\": \"7d\"\n },\n \"terms\": {\n \"fields\": [ \"node\" ]\n }\n },\n \"metrics\": [ <2>\n {\n \"field\": \"temperature\",\n \"metrics\": [ \"min\", \"max\", \"sum\" ]\n },\n {\n \"field\": \"voltage\",\n \"metrics\": [ \"avg\" ]\n }\n ]\n}"},
{"source_location":{"file":"rollup/apis/put-job.asciidoc","line":300},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"rollup/apis/delete-job.asciidoc","line":85},"digest":"94246f45025ed394cd6415ed8d7a0588","lang":"console","found":["python","ruby","js"],"source":"DELETE _rollup/job/sensor"},
{"source_location":{"file":"rollup/apis/delete-job.asciidoc","line":94},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"rollup/apis/get-job.asciidoc","line":94},"digest":"d095b422d9803c02b62c01adffc85376","lang":"console","found":["python","ruby","js"],"source":"GET _rollup/job/sensor"},
{"source_location":{"file":"rollup/apis/get-job.asciidoc","line":103},"digest":"3f6747b07a942bf0efd68d3a50b2a6e4","lang":"console-result","found":[],"source":"{\n \"jobs\": [\n {\n \"config\": {\n \"id\": \"sensor\",\n \"index_pattern\": \"sensor-*\",\n \"rollup_index\": \"sensor_rollup\",\n \"cron\": \"*/30 * * * * ?\",\n \"groups\": {\n \"date_histogram\": {\n \"fixed_interval\": \"1h\",\n \"delay\": \"7d\",\n \"field\": \"timestamp\",\n \"time_zone\": \"UTC\"\n },\n \"terms\": {\n \"fields\": [\n \"node\"\n ]\n }\n },\n \"metrics\": [\n {\n \"field\": \"temperature\",\n \"metrics\": [\n \"min\",\n \"max\",\n \"sum\"\n ]\n },\n {\n \"field\": \"voltage\",\n \"metrics\": [\n \"avg\"\n ]\n }\n ],\n \"timeout\": \"20s\",\n \"page_size\": 1000\n },\n \"status\": {\n \"job_state\": \"stopped\"\n },\n \"stats\": {\n \"pages_processed\": 0,\n \"documents_processed\": 0,\n \"rollups_indexed\": 0,\n \"trigger_count\": 0,\n \"index_failures\": 0,\n \"index_time_in_ms\": 0,\n \"index_total\": 0,\n \"search_failures\": 0,\n \"search_time_in_ms\": 0,\n \"search_total\": 0,\n \"processing_time_in_ms\": 0,\n \"processing_total\": 0\n }\n }\n ]\n}"},
{"source_location":{"file":"rollup/apis/get-job.asciidoc","line":170},"digest":"b5bc1bb7278f2f95bc54790c78c928e0","lang":"console","found":["python","js"],"source":"PUT _rollup/job/sensor2 <1>\n{\n \"index_pattern\": \"sensor-*\",\n \"rollup_index\": \"sensor_rollup\",\n \"cron\": \"*/30 * * * * ?\",\n \"page_size\": 1000,\n \"groups\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"fixed_interval\": \"1h\",\n \"delay\": \"7d\"\n },\n \"terms\": {\n \"fields\": [ \"node\" ]\n }\n },\n \"metrics\": [\n {\n \"field\": \"temperature\",\n \"metrics\": [ \"min\", \"max\", \"sum\" ]\n },\n {\n \"field\": \"voltage\",\n \"metrics\": [ \"avg\" ]\n }\n ]\n}\n\nGET _rollup/job/_all <2>"},
{"source_location":{"file":"rollup/apis/rollup-caps.asciidoc","line":62},"digest":"838a4eabebba4c06100fb37dc30c7722","lang":"console","found":["python","js"],"source":"PUT _rollup/job/sensor\n{\n \"index_pattern\": \"sensor-*\",\n \"rollup_index\": \"sensor_rollup\",\n \"cron\": \"*/30 * * * * ?\",\n \"page_size\": 1000,\n \"groups\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"fixed_interval\": \"1h\",\n \"delay\": \"7d\"\n },\n \"terms\": {\n \"fields\": [ \"node\" ]\n }\n },\n \"metrics\": [\n {\n \"field\": \"temperature\",\n \"metrics\": [ \"min\", \"max\", \"sum\" ]\n },\n {\n \"field\": \"voltage\",\n \"metrics\": [ \"avg\" ]\n }\n ]\n}"},
{"source_location":{"file":"rollup/apis/rollup-caps.asciidoc","line":98},"digest":"a00311843b5f8f3e9f7d511334a828b1","lang":"console","found":["python","ruby","js"],"source":"GET _rollup/data/sensor-*"},
{"source_location":{"file":"rollup/apis/rollup-caps.asciidoc","line":107},"digest":"daffdcda9042b8ac26bc109a3b38173a","lang":"console-result","found":[],"source":"{\n \"sensor-*\" : {\n \"rollup_jobs\" : [\n {\n \"job_id\" : \"sensor\",\n \"rollup_index\" : \"sensor_rollup\",\n \"index_pattern\" : \"sensor-*\",\n \"fields\" : {\n \"node\" : [\n {\n \"agg\" : \"terms\"\n }\n ],\n \"temperature\" : [\n {\n \"agg\" : \"min\"\n },\n {\n \"agg\" : \"max\"\n },\n {\n \"agg\" : \"sum\"\n }\n ],\n \"timestamp\" : [\n {\n \"agg\" : \"date_histogram\",\n \"time_zone\" : \"UTC\",\n \"fixed_interval\" : \"1h\",\n \"delay\": \"7d\"\n }\n ],\n \"voltage\" : [\n {\n \"agg\" : \"avg\"\n }\n ]\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"rollup/apis/rollup-caps.asciidoc","line":171},"digest":"944806221eb89f5af2298ccdf2902277","lang":"console","found":["python","ruby","js"],"source":"GET _rollup/data/_all"},
{"source_location":{"file":"rollup/apis/rollup-caps.asciidoc","line":181},"digest":"f8cb1a04c2e487ff006b5ae0e1a7afbd","lang":"console","found":["python","ruby","js"],"source":"GET _rollup/data/sensor-1"},
{"source_location":{"file":"rollup/apis/rollup-caps.asciidoc","line":188},"digest":"ecde3c2fa2f4b771baec679a4cdf348f","lang":"console-result","found":[],"source":"{\n\n}"},
{"source_location":{"file":"rollup/apis/rollup-index-caps.asciidoc","line":59},"digest":"838a4eabebba4c06100fb37dc30c7722","lang":"console","found":["python","js"],"source":"PUT _rollup/job/sensor\n{\n \"index_pattern\": \"sensor-*\",\n \"rollup_index\": \"sensor_rollup\",\n \"cron\": \"*/30 * * * * ?\",\n \"page_size\": 1000,\n \"groups\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"fixed_interval\": \"1h\",\n \"delay\": \"7d\"\n },\n \"terms\": {\n \"fields\": [ \"node\" ]\n }\n },\n \"metrics\": [\n {\n \"field\": \"temperature\",\n \"metrics\": [ \"min\", \"max\", \"sum\" ]\n },\n {\n \"field\": \"voltage\",\n \"metrics\": [ \"avg\" ]\n }\n ]\n}"},
{"source_location":{"file":"rollup/apis/rollup-index-caps.asciidoc","line":95},"digest":"73d1a6c5ef90b7e35d43a0bfdc1e158d","lang":"console","found":["python","ruby","js"],"source":"GET /sensor_rollup/_rollup/data"},
{"source_location":{"file":"rollup/apis/rollup-index-caps.asciidoc","line":105},"digest":"b656c91a173b5aaaf21efb9ff882c0b6","lang":"console-result","found":[],"source":"{\n \"sensor_rollup\" : {\n \"rollup_jobs\" : [\n {\n \"job_id\" : \"sensor\",\n \"rollup_index\" : \"sensor_rollup\",\n \"index_pattern\" : \"sensor-*\",\n \"fields\" : {\n \"node\" : [\n {\n \"agg\" : \"terms\"\n }\n ],\n \"temperature\" : [\n {\n \"agg\" : \"min\"\n },\n {\n \"agg\" : \"max\"\n },\n {\n \"agg\" : \"sum\"\n }\n ],\n \"timestamp\" : [\n {\n \"agg\" : \"date_histogram\",\n \"time_zone\" : \"UTC\",\n \"fixed_interval\" : \"1h\",\n \"delay\": \"7d\"\n }\n ],\n \"voltage\" : [\n {\n \"agg\" : \"avg\"\n }\n ]\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"rollup/apis/rollup-index-caps.asciidoc","line":171},"digest":"642161d70dacf7d153767d37d3726838","lang":"console","found":["python","ruby","js"],"source":"GET /*_rollup/_rollup/data"},
{"source_location":{"file":"rollup/apis/rollup-search.asciidoc","line":84},"digest":"838a4eabebba4c06100fb37dc30c7722","lang":"console","found":["python","js"],"source":"PUT _rollup/job/sensor\n{\n \"index_pattern\": \"sensor-*\",\n \"rollup_index\": \"sensor_rollup\",\n \"cron\": \"*/30 * * * * ?\",\n \"page_size\": 1000,\n \"groups\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"fixed_interval\": \"1h\",\n \"delay\": \"7d\"\n },\n \"terms\": {\n \"fields\": [ \"node\" ]\n }\n },\n \"metrics\": [\n {\n \"field\": \"temperature\",\n \"metrics\": [ \"min\", \"max\", \"sum\" ]\n },\n {\n \"field\": \"voltage\",\n \"metrics\": [ \"avg\" ]\n }\n ]\n}"},
{"source_location":{"file":"rollup/apis/rollup-search.asciidoc","line":122},"digest":"f29b2674299ddf51a25ed87619025ede","lang":"console","found":["python","ruby","js"],"source":"GET /sensor_rollup/_rollup_search\n{\n \"size\": 0,\n \"aggregations\": {\n \"max_temperature\": {\n \"max\": {\n \"field\": \"temperature\"\n }\n }\n }\n}"},
{"source_location":{"file":"rollup/apis/rollup-search.asciidoc","line":144},"digest":"82742a24e16fbaffa950867499a39b97","lang":"console-result","found":[],"source":"{\n \"took\" : 102,\n \"timed_out\" : false,\n \"terminated_early\" : false,\n \"_shards\" : ... ,\n \"hits\" : {\n \"total\" : {\n \"value\": 0,\n \"relation\": \"eq\"\n },\n \"max_score\" : 0.0,\n \"hits\" : [ ]\n },\n \"aggregations\" : {\n \"max_temperature\" : {\n \"value\" : 202.0\n }\n }\n}"},
{"source_location":{"file":"rollup/apis/rollup-search.asciidoc","line":178},"digest":"75e6d66e94e61bd8a555beaaee255c36","lang":"console","found":["python","ruby","js"],"source":"GET sensor_rollup/_rollup_search\n{\n \"size\": 0,\n \"aggregations\": {\n \"avg_temperature\": {\n \"avg\": {\n \"field\": \"temperature\"\n }\n }\n }\n}"},
{"source_location":{"file":"rollup/apis/rollup-search.asciidoc","line":196},"digest":"183dc354ec6ee1ba3b4544bd2a233990","lang":"console-result","found":[],"source":"{\n \"error\": {\n \"root_cause\": [\n {\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"There is not a rollup job that has a [avg] agg with name [avg_temperature] which also satisfies all requirements of query.\",\n \"stack_trace\": ...\n }\n ],\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"There is not a rollup job that has a [avg] agg with name [avg_temperature] which also satisfies all requirements of query.\",\n \"stack_trace\": ...\n },\n \"status\": 400\n}"},
{"source_location":{"file":"rollup/apis/rollup-search.asciidoc","line":222},"digest":"1a9efb56adb2cd84faa9825a129381b9","lang":"console","found":["python","ruby","js"],"source":"GET sensor-1,sensor_rollup/_rollup_search <1>\n{\n \"size\": 0,\n \"aggregations\": {\n \"max_temperature\": {\n \"max\": {\n \"field\": \"temperature\"\n }\n }\n }\n}"},
{"source_location":{"file":"rollup/apis/rollup-search.asciidoc","line":254},"digest":"82742a24e16fbaffa950867499a39b97","lang":"console-result","found":[],"source":"{\n \"took\" : 102,\n \"timed_out\" : false,\n \"terminated_early\" : false,\n \"_shards\" : ... ,\n \"hits\" : {\n \"total\" : {\n \"value\": 0,\n \"relation\": \"eq\"\n },\n \"max_score\" : 0.0,\n \"hits\" : [ ]\n },\n \"aggregations\" : {\n \"max_temperature\" : {\n \"value\" : 202.0\n }\n }\n}"},
{"source_location":{"file":"rollup/apis/start-job.asciidoc","line":56},"digest":"618c9d42284c067891fb57034a4fd834","lang":"console","found":["python","ruby","js"],"source":"POST _rollup/job/sensor/_start"},
{"source_location":{"file":"rollup/apis/start-job.asciidoc","line":65},"digest":"1851f163178ac4046c8fc88b0293644f","lang":"console-result","found":[],"source":"{\n \"started\": true\n}"},
{"source_location":{"file":"rollup/apis/stop-job.asciidoc","line":81},"digest":"07a5fdeb7805cec1d28ba288b28f5ff5","lang":"console","found":["python","ruby","js"],"source":"POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s"},
{"source_location":{"file":"rest-api/root.asciidoc","line":17},"digest":"3d1ff6097e2359f927c88c2ccdb36252","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /"},
{"source_location":{"file":"rest-api/root.asciidoc","line":93},"digest":"d1cab4f82fabd571af25f8a58499e7f0","lang":"console-result","found":[],"source":"{\n \"name\": \"instance-0000000000\",\n \"cluster_name\": \"my_test_cluster\",\n \"cluster_uuid\": \"5QaxoN0pRZuOmWSxstBBwQ\",\n \"version\": {\n \"build_date\": \"2024-02-01T13:07:13.727175297Z\",\n \"minimum_wire_compatibility_version\": \"7.17.0\",\n \"build_hash\": \"6185ba65d27469afabc9bc951cded6c17c21e3f3\",\n \"number\": \"8.12.1\",\n \"lucene_version\": \"9.9.2\",\n \"minimum_index_compatibility_version\": \"7.0.0\",\n \"build_flavor\": \"default\",\n \"build_snapshot\": false,\n \"build_type\": \"docker\"\n },\n \"tagline\": \"You Know, for Search\"\n}"},
{"source_location":{"file":"scripting/apis/create-stored-script-api.asciidoc","line":17},"digest":"d80ac403d8d936ca9dec185c7da13f2f","lang":"console","found":["python","ruby","js"],"source":"PUT _scripts/my-stored-script\n{\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"Math.log(_score * 2) + params['my_modifier']\"\n }\n}"},
{"source_location":{"file":"scripting/apis/delete-stored-script-api.asciidoc","line":30},"digest":"f97aa2efabbf11a534073041eb2658c9","lang":"console","found":["python","ruby","js"],"source":"DELETE _scripts/my-stored-script"},
{"source_location":{"file":"scripting/apis/get-script-contexts-api.asciidoc","line":16},"digest":"7fb921376cbf66bf9f381bcdd62030ba","lang":"console","found":["python","ruby","js"],"source":"GET _script_context"},
{"source_location":{"file":"scripting/apis/get-script-languages-api.asciidoc","line":17},"digest":"ca3bcd6278510ebced5f74484033cb36","lang":"console","found":["python","ruby","js"],"source":"GET _script_language"},
{"source_location":{"file":"scripting/apis/get-stored-script-api.asciidoc","line":30},"digest":"5093bfd281dbe41bd0dba8ff979e6e47","lang":"console","found":["python","ruby","js"],"source":"GET _scripts/my-stored-script"},
{"source_location":{"file":"search/search.asciidoc","line":16},"digest":"3e8ed6ae016eb823cb00d9035b8ac459","lang":"console","found":["python","ruby","go","js"],"source":"GET /my-index-000001/_search"},
{"source_location":{"file":"search/search.asciidoc","line":915},"digest":"eec051555c8050d017d3fe38ea59e3a0","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search?from=40&size=20\n{\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"},
{"source_location":{"file":"search/search.asciidoc","line":931},"digest":"770bde344d91838169ff24b3de331be2","lang":"console-result","found":[],"source":"{\n \"took\": 5,\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\": 20,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.3862942,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"0\",\n \"_score\": 1.3862942,\n \"_source\": {\n \"@timestamp\": \"2099-11-15T14:12:12\",\n \"http\": {\n \"request\": {\n \"method\": \"get\"\n },\n \"response\": {\n \"status_code\": 200,\n \"bytes\": 1070000\n },\n \"version\": \"1.1\"\n },\n \"source\": {\n \"ip\": \"127.0.0.1\"\n },\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"user\": {\n \"id\": \"kimchy\"\n }\n }\n },\n ...\n ]\n }\n}"},
{"source_location":{"file":"search/async-search.asciidoc","line":21},"digest":"cd373a6eb1ef4748616500b26fab3006","lang":"console","found":["python","ruby","js"],"source":"POST /sales*/_async_search?size=0\n{\n \"sort\": [\n { \"date\": { \"order\": \"asc\" } }\n ],\n \"aggs\": {\n \"sale_date\": {\n \"date_histogram\": {\n \"field\": \"date\",\n \"calendar_interval\": \"1d\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/async-search.asciidoc","line":46},"digest":"3849c2b7e9d0242f272293aa42010b34","lang":"console-result","found":[],"source":"{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\", <1>\n \"is_partial\" : true, <2>\n \"is_running\" : true, <3>\n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986,\n \"response\" : {\n \"took\" : 1122,\n \"timed_out\" : false,\n \"num_reduce_phases\" : 0,\n \"_shards\" : {\n \"total\" : 562, <4>\n \"successful\" : 3, <5>\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 157483, <6>\n \"relation\" : \"gte\"\n },\n \"max_score\" : null,\n \"hits\" : [ ]\n }\n }\n}"},
{"source_location":{"file":"search/async-search.asciidoc","line":159},"digest":"14b81f96297952970b78a3216e059596","lang":"console","found":["python","ruby","js"],"source":"GET /_async_search/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc="},
{"source_location":{"file":"search/async-search.asciidoc","line":165},"digest":"962c20c7533305915d491a443e7c305a","lang":"console-result","found":[],"source":"{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\",\n \"is_partial\" : false, <1>\n \"is_running\" : false, <2>\n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986, <3>\n \"completion_time_in_millis\" : 1583945903130, <4>\n \"response\" : {\n \"took\" : 12144,\n \"timed_out\" : false,\n \"num_reduce_phases\" : 46, <5>\n \"_shards\" : {\n \"total\" : 562,\n \"successful\" : 188, <6>\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 456433,\n \"relation\" : \"eq\"\n },\n \"max_score\" : null,\n \"hits\" : [ ]\n },\n \"aggregations\" : { <7>\n \"sale_date\" : {\n \"buckets\" : []\n }\n }\n }\n}"},
{"source_location":{"file":"search/async-search.asciidoc","line":259},"digest":"acb850c08f51226eadb75be09e336076","lang":"console","found":["python","ruby","js"],"source":"GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc="},
{"source_location":{"file":"search/async-search.asciidoc","line":265},"digest":"f3a1cf8249da27480303a459ac2a1145","lang":"console-result","found":[],"source":"{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\",\n \"is_running\" : true,\n \"is_partial\" : true,\n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986,\n \"_shards\" : {\n \"total\" : 562,\n \"successful\" : 188, <1>\n \"skipped\" : 0,\n \"failed\" : 0\n }\n}"},
{"source_location":{"file":"search/async-search.asciidoc","line":289},"digest":"edeb3b3a9a4d15a5b0747ffcfb3572d6","lang":"console-result","found":[],"source":"{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\",\n \"is_running\" : false,\n \"is_partial\" : false,\n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986,\n \"_shards\" : {\n \"total\" : 562,\n \"successful\" : 562,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"completion_status\" : 200 <1>\n}"},
{"source_location":{"file":"search/async-search.asciidoc","line":311},"digest":"8c5a9a4766402f87aa6ddb9aeacc27b7","lang":"console-result","found":[],"source":"{\n \"id\" : \"FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc=\",\n \"is_running\" : false,\n \"is_partial\" : true,\n \"start_time_in_millis\" : 1583945890986,\n \"expiration_time_in_millis\" : 1584377890986,\n \"_shards\" : {\n \"total\" : 562,\n \"successful\" : 450,\n \"skipped\" : 0,\n \"failed\" : 112\n },\n \"completion_status\" : 503 <1>\n}"},
{"source_location":{"file":"search/async-search.asciidoc","line":340},"digest":"7a3a7fbd81e5050b42e8c1eca26c7c1d","lang":"console","found":["python","ruby","js"],"source":"DELETE /_async_search/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc="},
{"source_location":{"file":"search/point-in-time-api.asciidoc","line":46},"digest":"5987afb2c17c73fe3d860937565ef115","lang":"console","found":["python","ruby","js"],"source":"POST /my-index-000001/_pit?keep_alive=1m"},
{"source_location":{"file":"search/point-in-time-api.asciidoc","line":55},"digest":"c088ce5291ae28650b6091cdec489398","lang":"console","found":["python","js"],"source":"POST /_search <1>\n{\n \"size\": 100, <2>\n \"query\": {\n \"match\" : {\n \"title\" : \"elasticsearch\"\n }\n },\n \"pit\": {\n\t \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\", <3>\n\t \"keep_alive\": \"1m\" <4>\n }\n}"},
{"source_location":{"file":"search/point-in-time-api.asciidoc","line":101},"digest":"b16700002af3aa70639f3e88c733bf35","lang":"console","found":["python","js"],"source":"POST /my-index-000001/_pit?keep_alive=1m&allow_partial_search_results=true"},
{"source_location":{"file":"search/point-in-time-api.asciidoc","line":152},"digest":"72beebe779a258c225dee7b023e60c52","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_nodes/stats/indices/search"},
{"source_location":{"file":"search/point-in-time-api.asciidoc","line":165},"digest":"9ff9b2a73419a6c82f17a358b4991499","lang":"console","found":["python","ruby","js"],"source":"DELETE /_pit\n{\n \"id\" : \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\"\n}"},
{"source_location":{"file":"search/point-in-time-api.asciidoc","line":176},"digest":"dc6c3c097ec6fae32e02dc62648d9749","lang":"console-result","found":[],"source":"{\n \"succeeded\": true, <1>\n \"num_freed\": 3 <2>\n}"},
{"source_location":{"file":"search/point-in-time-api.asciidoc","line":196},"digest":"0ea2167ce7c87d311b20c4f8c698a8d0","lang":"console","found":["python","js"],"source":"GET /_search\n{\n \"slice\": {\n \"id\": 0, <1>\n \"max\": 2 <2>\n },\n \"query\": {\n \"match\": {\n \"message\": \"foo\"\n }\n },\n \"pit\": {\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\"\n }\n}\n\nGET /_search\n{\n \"slice\": {\n \"id\": 1,\n \"max\": 2\n },\n \"pit\": {\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\"\n },\n \"query\": {\n \"match\": {\n \"message\": \"foo\"\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":159},"digest":"a3646b59da66b9ab68bdbc8dc2e6a9be","lang":"console","found":["python","js"],"source":"GET /restaurants/_search\n{\n \"retriever\": { <1>\n \"standard\": { <2>\n \"query\": { <3>\n \"bool\": { <4>\n \"should\": [ <5>\n {\n \"match\": { <6>\n \"region\": \"Austria\"\n }\n }\n ],\n \"filter\": [ <7>\n {\n \"term\": { <8>\n \"year\": \"2019\" <9>\n }\n }\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":254},"digest":"43d9e314431336a6f084cea76dfd6489","lang":"console","found":["python","js"],"source":"GET /restaurants/_search\n{\n \"retriever\": {\n \"knn\": { <1>\n \"field\": \"vector\", <2>\n \"query_vector\": [10, 22, 77], <3>\n \"k\": 10, <4>\n \"num_candidates\": 10 <5>\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":314},"digest":"9169d19a80175ec94f80865d0f9bef4c","lang":"console","found":["python","js"],"source":"GET /restaurants/_search\n{\n \"retriever\": {\n \"rrf\": { <1>\n \"retrievers\": [ <2>\n {\n \"standard\": { <3>\n \"query\": {\n \"multi_match\": {\n \"query\": \"Austria\",\n \"fields\": [\n \"city\",\n \"region\"\n ]\n }\n }\n }\n },\n {\n \"knn\": { <4>\n \"field\": \"vector\",\n \"query_vector\": [10, 22, 77],\n \"k\": 10,\n \"num_candidates\": 10\n }\n }\n ],\n \"rank_constant\": 1, <5>\n \"rank_window_size\": 50 <6>\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":363},"digest":"6e6b78e6b689a5d6aa637271b6d084e2","lang":"console","found":["python","js"],"source":"GET movies/_search\n{\n \"retriever\": {\n \"rrf\": {\n \"retrievers\": [\n {\n \"standard\": {\n \"query\": {\n \"sparse_vector\": {\n \"field\": \"plot_embedding\",\n \"inference_id\": \"my-elser-model\",\n \"query\": \"films that explore psychological depths\"\n }\n }\n }\n },\n {\n \"standard\": {\n \"query\": {\n \"multi_match\": {\n \"query\": \"crime\",\n \"fields\": [\n \"plot\",\n \"title\"\n ]\n }\n }\n }\n },\n {\n \"knn\": {\n \"field\": \"vector\",\n \"query_vector\": [10, 22, 77],\n \"k\": 10,\n \"num_candidates\": 10\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":452},"digest":"36792c81c053e0555407d1e83e7e054f","lang":"console","found":["js"],"source":"GET movies/_search\n{\n \"size\": 10, <1>\n \"retriever\": {\n \"rescorer\": { <2>\n \"rescore\": {\n \"window_size\": 50, <3>\n \"query\": { <4>\n \"rescore_query\": {\n \"script_score\": {\n \"query\": {\n \"match_all\": {}\n },\n \"script\": {\n \"source\": \"cosineSimilarity(params.queryVector, 'product-vector_final_stage') + 1.0\",\n \"params\": {\n \"queryVector\": [-0.5, 90.0, -10, 14.8, -156.0]\n }\n }\n }\n }\n }\n },\n \"retriever\": { <5>\n \"rrf\": {\n \"rank_window_size\": 100, <6>\n \"retrievers\": [\n {\n \"standard\": {\n \"query\": {\n \"sparse_vector\": {\n \"field\": \"plot_embedding\",\n \"inference_id\": \"my-elser-model\",\n \"query\": \"films that explore psychological depths\"\n }\n }\n }\n },\n {\n \"standard\": {\n \"query\": {\n \"multi_match\": {\n \"query\": \"crime\",\n \"fields\": [\n \"plot\",\n \"title\"\n ]\n }\n }\n }\n },\n {\n \"knn\": {\n \"field\": \"vector\",\n \"query_vector\": [10, 22, 77],\n \"k\": 10,\n \"num_candidates\": 10\n }\n }\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":629},"digest":"79d206a528be704050a437adce2496dd","lang":"console","found":["python","js"],"source":"PUT _inference/rerank/my-elastic-rerank\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"model_id\": \".rerank-v1\",\n \"num_threads\": 1,\n \"adaptive_allocations\": { <1>\n \"enabled\": true,\n \"min_number_of_allocations\": 1,\n \"max_number_of_allocations\": 10\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":650},"digest":"a9f14efc26fdd3c37a71f06c310163d9","lang":"console","found":["python","js"],"source":"POST _search\n{\n \"retriever\": {\n \"text_similarity_reranker\": {\n \"retriever\": {\n \"standard\": {\n \"query\": {\n \"match\": {\n \"text\": \"How often does the moon hide the sun?\"\n }\n }\n }\n },\n \"field\": \"text\",\n \"inference_id\": \"my-elastic-rerank\",\n \"inference_text\": \"How often does the moon hide the sun?\",\n \"rank_window_size\": 100,\n \"min_score\": 0.5\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":684},"digest":"a1dda7e7c01be96a4acf7b725d70385f","lang":"console","found":["python","js"],"source":"GET /index/_search\n{\n \"retriever\": {\n \"text_similarity_reranker\": {\n \"retriever\": {\n \"standard\": {\n \"query\": {\n \"match_phrase\": {\n \"text\": \"landmark in Paris\"\n }\n }\n }\n },\n \"field\": \"text\",\n \"inference_id\": \"my-cohere-rerank-model\",\n \"inference_text\": \"Most famous landmark in Paris\",\n \"rank_window_size\": 100,\n \"min_score\": 0.5\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":748},"digest":"69541f0bb81ab3797926bb2a00607cda","lang":"console","found":["python","js"],"source":"PUT _inference/rerank/my-msmarco-minilm-model\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1,\n \"model_id\": \"cross-encoder__ms-marco-minilm-l-6-v2\"\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":764},"digest":"971fd23adb81bb5842c7750e0379336a","lang":"console","found":["python","js"],"source":"POST movies/_search\n{\n \"retriever\": {\n \"text_similarity_reranker\": {\n \"retriever\": {\n \"standard\": {\n \"query\": {\n \"match\": {\n \"genre\": \"drama\"\n }\n }\n }\n },\n \"field\": \"plot\",\n \"inference_id\": \"my-msmarco-minilm-model\",\n \"inference_text\": \"films that explore psychological depths\"\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":837},"digest":"828f0045747fde4888a947bb99e190e3","lang":"console","found":["python","js"],"source":"GET movies/_search\n{\n \"retriever\": {\n \"rule\": {\n \"match_criteria\": {\n \"query_string\": \"harry potter\"\n },\n \"ruleset_ids\": [\n \"my-ruleset\"\n ],\n \"retriever\": {\n \"standard\": {\n \"query\": {\n \"query_string\": {\n \"query\": \"harry potter\"\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/retriever.asciidoc","line":876},"digest":"853fc710cea79fb4e1a85fb6d149f9c5","lang":"console","found":["python","js"],"source":"GET movies/_search\n{\n \"retriever\": {\n \"rule\": { <1>\n \"match_criteria\": {\n \"query_string\": \"harry potter\"\n },\n \"ruleset_ids\": [\n \"my-ruleset\"\n ],\n \"retriever\": {\n \"rrf\": { <2>\n \"retrievers\": [\n {\n \"standard\": {\n \"query\": {\n \"query_string\": {\n \"query\": \"sorcerer's stone\"\n }\n }\n }\n },\n {\n \"standard\": {\n \"query\": {\n \"query_string\": {\n \"query\": \"chamber of secrets\"\n }\n }\n }\n }\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/rrf.asciidoc","line":53},"digest":"ee223e604bb695cad2517d28ae63ac34","lang":"console","found":["python","js"],"source":"GET example-index/_search\n{\n \"retriever\": {\n \"rrf\": { <3>\n \"retrievers\": [\n {\n \"standard\": { <2>\n \"query\": {\n \"term\": {\n \"text\": \"shoes\"\n }\n }\n }\n },\n {\n \"knn\": { <1>\n \"field\": \"vector\",\n \"query_vector\": [1.25, 2, 3.5],\n \"k\": 50,\n \"num_candidates\": 100\n }\n }\n ],\n \"rank_window_size\": 50,\n \"rank_constant\": 20\n }\n }\n}"},
{"source_location":{"file":"search/rrf.asciidoc","line":127},"digest":"0350ff5ebb8207c004eb771088339cb4","lang":"console","found":["python","js"],"source":"GET example-index/_search\n{\n \"retriever\": {\n \"rrf\": { <3>\n \"retrievers\": [\n {\n \"standard\": { <1>\n \"query\": {\n \"term\": {\n \"text\": \"blue shoes sale\"\n }\n }\n }\n },\n {\n \"standard\": { <2>\n \"query\": {\n \"sparse_vector\":{\n \"field\": \"ml.tokens\",\n \"inference_id\": \"my_elser_model\",\n \"query\": \"What blue shoes are on sale?\"\n }\n }\n }\n }\n ],\n \"rank_window_size\": 50,\n \"rank_constant\": 20\n }\n }\n}"},
{"source_location":{"file":"search/rrf.asciidoc","line":186},"digest":"3b1ff884f3bab390ae357e622c0544a9","lang":"console","found":["python","js"],"source":"PUT example-index\n{\n \"mappings\": {\n \"properties\": {\n \"text\" : {\n \"type\" : \"text\"\n },\n \"vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 1,\n \"index\": true,\n \"similarity\": \"l2_norm\",\n \"index_options\": {\n \"type\": \"hnsw\"\n }\n },\n \"integer\" : {\n \"type\" : \"integer\"\n }\n }\n }\n}\n\nPUT example-index/_doc/1\n{\n \"text\" : \"rrf\",\n \"vector\" : [5],\n \"integer\": 1\n}\n\nPUT example-index/_doc/2\n{\n \"text\" : \"rrf rrf\",\n \"vector\" : [4],\n \"integer\": 2\n}\n\nPUT example-index/_doc/3\n{\n \"text\" : \"rrf rrf rrf\",\n \"vector\" : [3],\n \"integer\": 1\n}\n\nPUT example-index/_doc/4\n{\n \"text\" : \"rrf rrf rrf rrf\",\n \"integer\": 2\n}\n\nPUT example-index/_doc/5\n{\n \"vector\" : [0],\n \"integer\": 1\n}\n\nPOST example-index/_refresh"},
{"source_location":{"file":"search/rrf.asciidoc","line":250},"digest":"7e74d1a54e816e8f40cfdaa01b070788","lang":"console","found":["python","js"],"source":"GET example-index/_search\n{\n \"retriever\": {\n \"rrf\": {\n \"retrievers\": [\n {\n \"standard\": {\n \"query\": {\n \"term\": {\n \"text\": \"rrf\"\n }\n }\n }\n },\n {\n \"knn\": {\n \"field\": \"vector\",\n \"query_vector\": [3],\n \"k\": 5,\n \"num_candidates\": 5\n }\n }\n ],\n \"rank_window_size\": 5,\n \"rank_constant\": 1\n }\n },\n \"size\": 3,\n \"aggs\": {\n \"int_count\": {\n \"terms\": {\n \"field\": \"integer\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/rrf.asciidoc","line":372},"digest":"464ec738d00e84f49c6c769b48bc049f","lang":"console-result","found":[],"source":"\"hits\" : [\n {\n \"_index\" : \"example-index\",\n \"_id\" : \"4\",\n \"_score\" : 0.16152832, <1>\n \"_source\" : {\n \"integer\" : 2,\n \"text\" : \"rrf rrf rrf rrf\"\n }\n },\n {\n \"_index\" : \"example-index\",\n \"_id\" : \"3\", <2>\n \"_score\" : 0.15876243,\n \"_source\" : {\n \"integer\" : 1,\n \"vector\" : [3],\n \"text\" : \"rrf rrf rrf\"\n }\n },\n {\n \"_index\" : \"example-index\",\n \"_id\" : \"2\", <3>\n \"_score\" : 0.15350538,\n \"_source\" : {\n \"integer\" : 2,\n \"vector\" : [4],\n \"text\" : \"rrf rrf\"\n }\n },\n {\n \"_index\" : \"example-index\",\n \"_id\" : \"1\", <4>\n \"_score\" : 0.13963442,\n \"_source\" : {\n \"integer\" : 1,\n \"vector\" : [5],\n \"text\" : \"rrf\"\n }\n }\n]"},
{"source_location":{"file":"search/rrf.asciidoc","line":425},"digest":"18f499a1ac0619546f0e8834b77e559a","lang":"console-result","found":[],"source":"\"hits\" : [\n {\n \"_index\" : \"example-index\",\n \"_id\" : \"3\", <1>\n \"_score\" : 1.0,\n \"_source\" : {\n \"integer\" : 1,\n \"vector\" : [3],\n \"text\" : \"rrf rrf rrf\"\n }\n },\n {\n \"_index\" : \"example-index\",\n \"_id\" : \"2\", <2>\n \"_score\" : 0.5,\n \"_source\" : {\n \"integer\" : 2,\n \"vector\" : [4],\n \"text\" : \"rrf rrf\"\n }\n },\n {\n \"_index\" : \"example-index\",\n \"_id\" : \"1\", <3>\n \"_score\" : 0.2,\n \"_source\" : {\n \"integer\" : 1,\n \"vector\" : [5],\n \"text\" : \"rrf\"\n }\n },\n {\n \"_index\" : \"example-index\",\n \"_id\" : \"5\", <4>\n \"_score\" : 0.1,\n \"_source\" : {\n \"integer\" : 1,\n \"vector\" : [0]\n }\n }\n]"},
{"source_location":{"file":"search/scroll-api.asciidoc","line":35},"digest":"c27b7d9836aa4ea756f59e9c42911721","lang":"console","found":["python","js"],"source":"GET /_search/scroll\n{\n \"scroll_id\" : \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\"\n}"},
{"source_location":{"file":"search/clear-scroll-api.asciidoc","line":31},"digest":"a69b1ce5cc9528fb3639185eaf241ae3","lang":"console","found":["python","ruby","go","js"],"source":"DELETE /_search/scroll\n{\n \"scroll_id\" : \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\"\n}"},
{"source_location":{"file":"search/search-template-api.asciidoc","line":43},"digest":"c956bf1f0829a5f0357c0494ed8b6ca3","lang":"console","found":["python","ruby","js"],"source":"GET my-index/_search/template\n{\n \"id\": \"my-search-template\",\n \"params\": {\n \"query_string\": \"hello world\",\n \"from\": 0,\n \"size\": 10\n }\n}"},
{"source_location":{"file":"search/multi-search-template-api.asciidoc","line":44},"digest":"774bfde8793dc4927f7cad2dd91c5b5f","lang":"console","found":["python","ruby","js"],"source":"GET my-index/_msearch/template\n{ }\n{ \"id\": \"my-search-template\", \"params\": { \"query_string\": \"hello world\", \"from\": 0, \"size\": 10 }}\n{ }\n{ \"id\": \"my-other-search-template\", \"params\": { \"query_type\": \"match_all\" }}"},
{"source_location":{"file":"search/render-search-template-api.asciidoc","line":39},"digest":"ad92a1a8bb1b0f26d1536fe8ba4ffd17","lang":"console","found":["python","ruby","js"],"source":"POST _render/template\n{\n \"id\": \"my-search-template\",\n \"params\": {\n \"query_string\": \"hello world\",\n \"from\": 20,\n \"size\": 10\n }\n}"},
{"source_location":{"file":"search/search-shards.asciidoc","line":16},"digest":"e8c348cabe15dfe58ab4c3cc13a963fe","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search_shards"},
{"source_location":{"file":"search/search-shards.asciidoc","line":78},"digest":"e8c348cabe15dfe58ab4c3cc13a963fe","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search_shards"},
{"source_location":{"file":"search/search-shards.asciidoc","line":86},"digest":"0e87c55eb8ebb713b69d7a08d3063d21","lang":"console-result","found":[],"source":"{\n \"nodes\": ...,\n \"indices\" : {\n \"my-index-000001\": { }\n },\n \"shards\": [\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 0,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"0TvkCyF7TAmM1wHP4a42-A\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ],\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 1,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"fMju3hd1QHWmWrIgFnI4Ww\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ],\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 2,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"Nwl0wbMBTHCWjEEbGYGapg\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ],\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 3,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"bU_KLGJISbW0RejwnwDPKw\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ],\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 4,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"DMs7_giNSwmdqVukF7UydA\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ]\n ]\n}"},
{"source_location":{"file":"search/search-shards.asciidoc","line":177},"digest":"afe87a2850326e0328fbebbefec2e839","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search_shards?routing=foo,bar"},
{"source_location":{"file":"search/search-shards.asciidoc","line":185},"digest":"083e4f2305affcd8e3c1ce88322df727","lang":"console-result","found":[],"source":"{\n \"nodes\": ...,\n \"indices\" : {\n \"my-index-000001\": { }\n },\n \"shards\": [\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 2,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"fMju3hd1QHWmWrIgFnI4Ww\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ],\n [\n {\n \"index\": \"my-index-000001\",\n \"node\": \"JklnKbD7Tyqi9TP3_Q_tBg\",\n \"relocating_node\": null,\n \"primary\": true,\n \"shard\": 3,\n \"state\": \"STARTED\",\n \"allocation_id\": {\"id\":\"0TvkCyF7TAmM1wHP4a42-A\"},\n \"relocation_failure_info\" : {\n \"failed_attempts\" : 0\n }\n }\n ]\n ]\n}"},
{"source_location":{"file":"search/suggesters.asciidoc","line":13},"digest":"c67b0f00c2e690303c0e5af2f51e0fea","lang":"console","found":["python","ruby","js"],"source":"POST my-index-000001/_search\n{\n \"query\" : {\n \"match\": {\n \"message\": \"tring out Elasticsearch\"\n }\n },\n \"suggest\" : {\n \"my-suggestion\" : {\n \"text\" : \"tring out Elasticsearch\",\n \"term\" : {\n \"field\" : \"message\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters.asciidoc","line":52},"digest":"c64b61bedb21b9def8fce5092e677af9","lang":"console","found":["python","ruby","js"],"source":"POST _search\n{\n \"suggest\": {\n \"my-suggest-1\" : {\n \"text\" : \"tring out Elasticsearch\",\n \"term\" : {\n \"field\" : \"message\"\n }\n },\n \"my-suggest-2\" : {\n \"text\" : \"kmichy\",\n \"term\" : {\n \"field\" : \"user.id\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters.asciidoc","line":81},"digest":"b53648eccf39f999e69495a1ef4b8a43","lang":"console-result","found":[],"source":"{\n \"_shards\": ...\n \"hits\": ...\n \"took\": 2,\n \"timed_out\": false,\n \"suggest\": {\n \"my-suggest-1\": [ {\n \"text\": \"tring\",\n \"offset\": 0,\n \"length\": 5,\n \"options\": [ {\"text\": \"trying\", \"score\": 0.8, \"freq\": 1 } ]\n }, {\n \"text\": \"out\",\n \"offset\": 6,\n \"length\": 3,\n \"options\": []\n }, {\n \"text\": \"elasticsearch\",\n \"offset\": 10,\n \"length\": 13,\n \"options\": []\n } ],\n \"my-suggest-2\": ...\n }\n}"},
{"source_location":{"file":"search/suggesters.asciidoc","line":128},"digest":"5275842787967b6db876025f4a1c6942","lang":"console","found":["php","python","ruby","go","js"],"source":"POST _search\n{\n \"suggest\": {\n \"text\" : \"tring out Elasticsearch\",\n \"my-suggest-1\" : {\n \"term\" : {\n \"field\" : \"message\"\n }\n },\n \"my-suggest-2\" : {\n \"term\" : {\n \"field\" : \"user\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/phrase-suggest.asciidoc","line":22},"digest":"5566cff431570f522e1fc5475b2ed875","lang":"console","found":["python","ruby","js"],"source":"PUT test\n{\n \"settings\": {\n \"index\": {\n \"number_of_shards\": 1,\n \"analysis\": {\n \"analyzer\": {\n \"trigram\": {\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\"lowercase\",\"shingle\"]\n },\n \"reverse\": {\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\"lowercase\",\"reverse\"]\n }\n },\n \"filter\": {\n \"shingle\": {\n \"type\": \"shingle\",\n \"min_shingle_size\": 2,\n \"max_shingle_size\": 3\n }\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"title\": {\n \"type\": \"text\",\n \"fields\": {\n \"trigram\": {\n \"type\": \"text\",\n \"analyzer\": \"trigram\"\n },\n \"reverse\": {\n \"type\": \"text\",\n \"analyzer\": \"reverse\"\n }\n }\n }\n }\n }\n}\nPOST test/_doc?refresh=true\n{\"title\": \"noble warriors\"}\nPOST test/_doc?refresh=true\n{\"title\": \"nobel prize\"}"},
{"source_location":{"file":"search/suggesters/phrase-suggest.asciidoc","line":80},"digest":"3b162509ed14eda44a9681cd1108fa39","lang":"console","found":["python","js"],"source":"POST test/_search\n{\n \"suggest\": {\n \"text\": \"noble prize\",\n \"simple_phrase\": {\n \"phrase\": {\n \"field\": \"title.trigram\",\n \"size\": 1,\n \"gram_size\": 3,\n \"direct_generator\": [ {\n \"field\": \"title.trigram\",\n \"suggest_mode\": \"always\"\n } ],\n \"highlight\": {\n \"pre_tag\": \"\",\n \"post_tag\": \"\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/phrase-suggest.asciidoc","line":107},"digest":"3af632e3611008f1290293e8cb653e4f","lang":"console-result","found":[],"source":"{\n \"_shards\": ...\n \"hits\": ...\n \"timed_out\": false,\n \"took\": 3,\n \"suggest\": {\n \"simple_phrase\" : [\n {\n \"text\" : \"noble prize\",\n \"offset\" : 0,\n \"length\" : 11,\n \"options\" : [ {\n \"text\" : \"nobel prize\",\n \"highlighted\": \"nobel prize\",\n \"score\" : 0.48614594\n }]\n }\n ]\n }\n}"},
{"source_location":{"file":"search/suggesters/phrase-suggest.asciidoc","line":221},"digest":"89a6b24618cafd60de1702a5b9f28a8d","lang":"console","found":["python","js"],"source":"POST test/_search\n{\n \"suggest\": {\n \"text\" : \"noble prize\",\n \"simple_phrase\" : {\n \"phrase\" : {\n \"field\" : \"title.trigram\",\n \"size\" : 1,\n \"direct_generator\" : [ {\n \"field\" : \"title.trigram\",\n \"suggest_mode\" : \"always\",\n \"min_word_length\" : 1\n } ],\n \"collate\": {\n \"query\": { <1>\n \"source\" : {\n \"match\": {\n \"{{field_name}}\" : \"{{suggestion}}\" <2>\n }\n }\n },\n \"params\": {\"field_name\" : \"title\"}, <3>\n \"prune\": true <4>\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/phrase-suggest.asciidoc","line":290},"digest":"203c3bb334384bdfb11ff1101ccfba25","lang":"console","found":["python","js"],"source":"POST test/_search\n{\n \"suggest\": {\n \"text\" : \"obel prize\",\n \"simple_phrase\" : {\n \"phrase\" : {\n \"field\" : \"title.trigram\",\n \"size\" : 1,\n \"smoothing\" : {\n \"laplace\" : {\n \"alpha\" : 0.7\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/phrase-suggest.asciidoc","line":410},"digest":"eb6d62f1d855a8e8fe9eab2656d47504","lang":"console","found":["python","js"],"source":"POST test/_search\n{\n \"suggest\": {\n \"text\" : \"obel prize\",\n \"simple_phrase\" : {\n \"phrase\" : {\n \"field\" : \"title.trigram\",\n \"size\" : 1,\n \"direct_generator\" : [ {\n \"field\" : \"title.trigram\",\n \"suggest_mode\" : \"always\"\n }, {\n \"field\" : \"title.reverse\",\n \"suggest_mode\" : \"always\",\n \"pre_filter\" : \"reverse\",\n \"post_filter\" : \"reverse\"\n } ]\n }\n }\n }\n}"},
{"source_location":{"file":"mapping/types/completion.asciidoc","line":12},"digest":"31ac1b68dc7c26a1d37350be47ae9381","lang":"console","found":["python","ruby","js"],"source":"PUT music\n{\n \"mappings\": {\n \"properties\": {\n \"suggest\": {\n \"type\": \"completion\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":47},"digest":"a4f259522b4dc10a0323aff58236c2c2","lang":"console","found":["python","ruby","js"],"source":"PUT music/_doc/1?refresh\n{\n \"suggest\" : {\n \"input\": [ \"Nevermind\", \"Nirvana\" ],\n \"weight\" : 34\n }\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":83},"digest":"a5217a93efabceee9be19949e484f930","lang":"console","found":["python","ruby","js"],"source":"PUT music/_doc/1?refresh\n{\n \"suggest\": [\n {\n \"input\": \"Nevermind\",\n \"weight\": 10\n },\n {\n \"input\": \"Nirvana\",\n \"weight\": 3\n }\n ]\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":104},"digest":"7c3414279d47e9c29105d061ed316ef8","lang":"console","found":["python","ruby","js"],"source":"PUT music/_doc/1?refresh\n{\n \"suggest\" : [ \"Nevermind\", \"Nirvana\" ]\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":121},"digest":"4e6b78ac991ed2d5f9a2e7c89f4fc471","lang":"console","found":["python","ruby","js"],"source":"POST music/_search?pretty\n{\n \"suggest\": {\n \"song-suggest\": {\n \"prefix\": \"nir\", <1>\n \"completion\": { <2>\n \"field\": \"suggest\" <3>\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":143},"digest":"92c5e36c94d3f183766862498044ec16","lang":"console-result","found":[],"source":"{\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\": ...\n \"took\": 2,\n \"timed_out\": false,\n \"suggest\": {\n \"song-suggest\" : [ {\n \"text\" : \"nir\",\n \"offset\" : 0,\n \"length\" : 3,\n \"options\" : [ {\n \"text\" : \"Nirvana\",\n \"_index\": \"music\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"_source\": {\n \"suggest\": [\"Nevermind\", \"Nirvana\"]\n }\n } ]\n } ]\n }\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":189},"digest":"a3f66deb467df86edbf66e1dca31da51","lang":"console","found":["python","ruby","js"],"source":"POST music/_search\n{\n \"_source\": \"suggest\", <1>\n \"suggest\": {\n \"song-suggest\": {\n \"prefix\": \"nir\",\n \"completion\": {\n \"field\": \"suggest\", <2>\n \"size\": 5 <3>\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":213},"digest":"a541260d94a95ea866859ad1930897ba","lang":"console-result","found":[],"source":"{\n \"took\": 6,\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 \"suggest\": {\n \"song-suggest\": [ {\n \"text\": \"nir\",\n \"offset\": 0,\n \"length\": 3,\n \"options\": [ {\n \"text\": \"Nirvana\",\n \"_index\": \"music\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"_source\": {\n \"suggest\": [ \"Nevermind\", \"Nirvana\" ]\n }\n } ]\n } ]\n }\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":279},"digest":"a6169bc057ce8654bd306ff4b062081b","lang":"console","found":["python","ruby","js"],"source":"POST music/_search?pretty\n{\n \"suggest\": {\n \"song-suggest\": {\n \"prefix\": \"nor\",\n \"completion\": {\n \"field\": \"suggest\",\n \"skip_duplicates\": true\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":304},"digest":"f329242d7c8406297eff9bf609870c37","lang":"console","found":["python","ruby","js"],"source":"POST music/_search?pretty\n{\n \"suggest\": {\n \"song-suggest\": {\n \"prefix\": \"nor\",\n \"completion\": {\n \"field\": \"suggest\",\n \"fuzzy\": {\n \"fuzziness\": 2\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/completion-suggest.asciidoc","line":362},"digest":"1a4f8beb6847678880ca113ee6fb75ca","lang":"console","found":["python","ruby","js"],"source":"POST music/_search?pretty\n{\n \"suggest\": {\n \"song-suggest\": {\n \"regex\": \"n[ever|i]r\",\n \"completion\": {\n \"field\": \"suggest\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/context-suggest.asciidoc","line":25},"digest":"6bfa0a9a50c4e94276c7d63af1c31d9e","lang":"console","found":["python","ruby","js"],"source":"PUT place\n{\n \"mappings\": {\n \"properties\": {\n \"suggest\": {\n \"type\": \"completion\",\n \"contexts\": [\n { <1>\n \"name\": \"place_type\",\n \"type\": \"category\"\n },\n { <2>\n \"name\": \"location\",\n \"type\": \"geo\",\n \"precision\": 4\n }\n ]\n }\n }\n }\n}\nPUT place_path_category\n{\n \"mappings\": {\n \"properties\": {\n \"suggest\": {\n \"type\": \"completion\",\n \"contexts\": [\n { <3>\n \"name\": \"place_type\",\n \"type\": \"category\",\n \"path\": \"cat\"\n },\n { <4>\n \"name\": \"location\",\n \"type\": \"geo\",\n \"precision\": 4,\n \"path\": \"loc\"\n }\n ]\n },\n \"loc\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/context-suggest.asciidoc","line":100},"digest":"dea4ac54c63a10c62eccd7b7f6543b86","lang":"console","found":["python","ruby","js"],"source":"PUT place/_doc/1\n{\n \"suggest\": {\n \"input\": [ \"timmy's\", \"starbucks\", \"dunkin donuts\" ],\n \"contexts\": {\n \"place_type\": [ \"cafe\", \"food\" ] <1>\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/context-suggest.asciidoc","line":118},"digest":"99b617a0a83fcfbe5755ccc724a4ce62","lang":"console","found":["python","ruby","js"],"source":"PUT place_path_category/_doc/1\n{\n \"suggest\": [\"timmy's\", \"starbucks\", \"dunkin donuts\"],\n \"cat\": [\"cafe\", \"food\"] <1>\n}"},
{"source_location":{"file":"search/suggesters/context-suggest.asciidoc","line":140},"digest":"c4272ad0309ffbcbe9ce96bf9fb4352a","lang":"console","found":["python","ruby","js"],"source":"POST place/_search?pretty\n{\n \"suggest\": {\n \"place_suggestion\": {\n \"prefix\": \"tim\",\n \"completion\": {\n \"field\": \"suggest\",\n \"size\": 10,\n \"contexts\": {\n \"place_type\": [ \"cafe\", \"restaurants\" ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/context-suggest.asciidoc","line":168},"digest":"25ae1a698f867ba5139605cc952436c0","lang":"console","found":["python","ruby","js"],"source":"POST place/_search?pretty\n{\n \"suggest\": {\n \"place_suggestion\": {\n \"prefix\": \"tim\",\n \"completion\": {\n \"field\": \"suggest\",\n \"size\": 10,\n \"contexts\": {\n \"place_type\": [ <1>\n { \"context\": \"cafe\" },\n { \"context\": \"restaurants\", \"boost\": 2 }\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/context-suggest.asciidoc","line":253},"digest":"eb09235533a1c65a0627ba05f7d4ad4d","lang":"console","found":["python","ruby","js"],"source":"PUT place/_doc/1\n{\n \"suggest\": {\n \"input\": \"timmy's\",\n \"contexts\": {\n \"location\": [\n {\n \"lat\": 43.6624803,\n \"lon\": -79.3863353\n },\n {\n \"lat\": 43.6624718,\n \"lon\": -79.3873227\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/context-suggest.asciidoc","line":282},"digest":"6febf0e6883b23b15ac213abc4bac326","lang":"console","found":["python","ruby","js"],"source":"POST place/_search\n{\n \"suggest\": {\n \"place_suggestion\": {\n \"prefix\": \"tim\",\n \"completion\": {\n \"field\": \"suggest\",\n \"size\": 10,\n \"contexts\": {\n \"location\": {\n \"lat\": 43.662,\n \"lon\": -79.380\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/context-suggest.asciidoc","line":315},"digest":"6521c3578dc4ad4a6db697700986e78e","lang":"console","found":["python","ruby","js"],"source":"POST place/_search?pretty\n{\n \"suggest\": {\n \"place_suggestion\": {\n \"prefix\": \"tim\",\n \"completion\": {\n \"field\": \"suggest\",\n \"size\": 10,\n \"contexts\": {\n \"location\": [ <1>\n {\n \"lat\": 43.6624803,\n \"lon\": -79.3863353,\n \"precision\": 2\n },\n {\n \"context\": {\n \"lat\": 43.6624803,\n \"lon\": -79.3863353\n },\n \"boost\": 2\n }\n ]\n }\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/misc.asciidoc","line":10},"digest":"e194e9cbe3eb2305f4f7cdda0cf529bd","lang":"console","found":["python","ruby","js"],"source":"POST _search?typed_keys\n{\n \"suggest\": {\n \"text\" : \"some test mssage\",\n \"my-first-suggester\" : {\n \"term\" : {\n \"field\" : \"message\"\n }\n },\n \"my-second-suggester\" : {\n \"phrase\" : {\n \"field\" : \"message\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/suggesters/misc.asciidoc","line":34},"digest":"e271c47fe54d36c6e09791d1a50ce314","lang":"console-result","found":[],"source":"{\n \"suggest\": {\n \"term#my-first-suggester\": [ <1>\n {\n \"text\": \"some\",\n \"offset\": 0,\n \"length\": 4,\n \"options\": []\n },\n {\n \"text\": \"test\",\n \"offset\": 5,\n \"length\": 4,\n \"options\": []\n },\n {\n \"text\": \"mssage\",\n \"offset\": 10,\n \"length\": 6,\n \"options\": [\n {\n \"text\": \"message\",\n \"score\": 0.8333333,\n \"freq\": 4\n }\n ]\n }\n ],\n \"phrase#my-second-suggester\": [ <2>\n {\n \"text\": \"some test mssage\",\n \"offset\": 0,\n \"length\": 16,\n \"options\": [\n {\n \"text\": \"some test message\",\n \"score\": 0.030227963\n }\n ]\n }\n ]\n },\n ...\n}"},
{"source_location":{"file":"search/multi-search.asciidoc","line":16},"digest":"06b5d3d56c4d4e3b61ae42ea26401c40","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_msearch\n{ }\n{\"query\" : {\"match\" : { \"message\": \"this is a test\"}}}\n{\"index\": \"my-index-000002\"}\n{\"query\" : {\"match_all\" : {}}}"},
{"source_location":{"file":"search/multi-search.asciidoc","line":318},"digest":"adc18ca0c344d81d68ec3b9422b54ff5","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_msearch\n{}\n{\"query\" : {\"match_all\" : {}}, \"from\" : 0, \"size\" : 10}\n{}\n{\"query\" : {\"match_all\" : {}}}\n{\"index\" : \"my-index-000002\"}\n{\"query\" : {\"match_all\" : {}}}"},
{"source_location":{"file":"search/count.asciidoc","line":16},"digest":"ad3b159657d4bcb373623fdc61acc3bf","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_count?q=user:kimchy"},
{"source_location":{"file":"search/count.asciidoc","line":112},"digest":"87416e6a1ca2da324dbed6deb05303eb","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_doc/1?refresh\n{\n \"user.id\": \"kimchy\"\n}\n\nGET /my-index-000001/_count?q=user:kimchy\n\nGET /my-index-000001/_count\n{\n \"query\" : {\n \"term\" : { \"user.id\" : \"kimchy\" }\n }\n}"},
{"source_location":{"file":"search/count.asciidoc","line":132},"digest":"7f479d260c265f21752b5ae7c980fd72","lang":"console-result","found":[],"source":"{\n \"count\": 1,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\": 0,\n \"failed\": 0\n }\n}"},
{"source_location":{"file":"search/validate.asciidoc","line":16},"digest":"f3b185131f40687c25d2f85e1231d8bd","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_validate/query?q=user.id:kimchy"},
{"source_location":{"file":"search/validate.asciidoc","line":93},"digest":"d4d450f536d747d5ef5050d2d8c66f09","lang":"console","found":["python","ruby","js"],"source":"PUT my-index-000001/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"user\" : { \"id\": \"kimchy\" }, \"@timestamp\" : \"2099-11-15T14:12:12\", \"message\" : \"trying out Elasticsearch\"}\n{\"index\":{\"_id\":2}}\n{\"user\" : { \"id\": \"kimchi\" }, \"@timestamp\" : \"2099-11-15T14:12:13\", \"message\" : \"My user ID is similar to kimchy!\"}"},
{"source_location":{"file":"search/validate.asciidoc","line":105},"digest":"f3b185131f40687c25d2f85e1231d8bd","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_validate/query?q=user.id:kimchy"},
{"source_location":{"file":"search/validate.asciidoc","line":114},"digest":"dde3105cdd6190eb8c8c392f5fcfcce5","lang":"console-result","found":[],"source":"{\"valid\":true,\"_shards\":{\"total\":1,\"successful\":1,\"failed\":0}}"},
{"source_location":{"file":"search/validate.asciidoc","line":122},"digest":"4ae494d1e62231e832fc0436b04e2014","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_validate/query\n{\n \"query\" : {\n \"bool\" : {\n \"must\" : {\n \"query_string\" : {\n \"query\" : \"*:*\"\n }\n },\n \"filter\" : {\n \"term\" : { \"user.id\" : \"kimchy\" }\n }\n }\n }\n}"},
{"source_location":{"file":"search/validate.asciidoc","line":149},"digest":"2d60e3bdfee7afbddee149f40450b8b5","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_validate/query\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"@timestamp:foo\",\n \"lenient\": false\n }\n }\n}"},
{"source_location":{"file":"search/validate.asciidoc","line":163},"digest":"bda06f3e3031f6ef16990d18c6e261d7","lang":"console-result","found":[],"source":"{\"valid\":false,\"_shards\":{\"total\":1,\"successful\":1,\"failed\":0}}"},
{"source_location":{"file":"search/validate.asciidoc","line":173},"digest":"75aba7b1d3a22dce62f26b8b1e6bee58","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_validate/query?explain=true\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"@timestamp:foo\",\n \"lenient\": false\n }\n }\n}"},
{"source_location":{"file":"search/validate.asciidoc","line":190},"digest":"cb8060c482b9c1c2dcd6599946632bbc","lang":"console-result","found":[],"source":"{\n \"valid\" : false,\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"failed\" : 0\n },\n \"explanations\" : [ {\n \"index\" : \"my-index-000001\",\n \"valid\" : false,\n \"error\" : \"my-index-000001/IAEc2nIXSSunQA_suI0MLw] QueryShardException[failed to create query:...failed to parse date field [foo]\"\n } ]\n}"},
{"source_location":{"file":"search/validate.asciidoc","line":214},"digest":"a5e793d82a4455cf4105dac82a156617","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_validate/query?rewrite=true\n{\n \"query\": {\n \"more_like_this\": {\n \"like\": {\n \"_id\": \"2\"\n },\n \"boost_terms\": 1\n }\n }\n}"},
{"source_location":{"file":"search/validate.asciidoc","line":233},"digest":"3699765f419f8b00a55b48cbc75849fc","lang":"console-result","found":[],"source":"{\n \"valid\": true,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"explanations\": [\n {\n \"index\": \"my-index-000001\",\n \"valid\": true,\n \"explanation\": \"((user:terminator^3.71334 plot:future^2.763601 plot:human^2.8415773 plot:sarah^3.4193945 plot:kyle^3.8244398 plot:cyborg^3.9177752 plot:connor^4.040236 plot:reese^4.7133346 ... )~6) -ConstantScore(_id:2)) #(ConstantScore(_type:_doc))^0.0\"\n }\n ]\n}"},
{"source_location":{"file":"search/validate.asciidoc","line":272},"digest":"1f6a190fa1aade1fb66680388f184ef9","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_validate/query?rewrite=true&all_shards=true\n{\n \"query\": {\n \"match\": {\n \"user.id\": {\n \"query\": \"kimchy\",\n \"fuzziness\": \"auto\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/validate.asciidoc","line":290},"digest":"8fd242c6680d084c3a665dad52289cb8","lang":"console-result","found":[],"source":"{\n \"valid\": true,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"explanations\": [\n {\n \"index\": \"my-index-000001\",\n \"shard\": 0,\n \"valid\": true,\n \"explanation\": \"(user.id:kimchi)^0.8333333 user.id:kimchy\"\n }\n ]\n}"},
{"source_location":{"file":"search/terms-enum.asciidoc","line":19},"digest":"f4b9baed3c6a82be3672cbc8999c2368","lang":"console","found":["python","ruby","js"],"source":"POST stackoverflow/_terms_enum\n{\n \"field\" : \"tags\",\n \"string\" : \"kiba\"\n}"},
{"source_location":{"file":"search/terms-enum.asciidoc","line":32},"digest":"edf2c337c1b748105f34144820297383","lang":"console-result","found":[],"source":"{\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"failed\": 0\n },\n \"terms\": [\n \"kibana\"\n ],\n \"complete\" : true\n}"},
{"source_location":{"file":"search/explain.asciidoc","line":17},"digest":"e0fcef99656799de6b88117d56f131e2","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_explain/0\n{\n \"query\" : {\n \"match\" : { \"message\" : \"elasticsearch\" }\n }\n}"},
{"source_location":{"file":"search/explain.asciidoc","line":105},"digest":"e0fcef99656799de6b88117d56f131e2","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_explain/0\n{\n \"query\" : {\n \"match\" : { \"message\" : \"elasticsearch\" }\n }\n}"},
{"source_location":{"file":"search/explain.asciidoc","line":119},"digest":"04cd39b8444d15e37028342439a71112","lang":"console-result","found":[],"source":"{\n \"_index\":\"my-index-000001\",\n \"_id\":\"0\",\n \"matched\":true,\n \"explanation\":{\n \"value\":1.6943598,\n \"description\":\"weight(message:elasticsearch in 0) [PerFieldSimilarity], result of:\",\n \"details\":[\n {\n \"value\":1.6943598,\n \"description\":\"score(freq=1.0), computed as boost * idf * tf from:\",\n \"details\":[\n {\n \"value\":2.2,\n \"description\":\"boost\",\n \"details\":[]\n },\n {\n \"value\":1.3862944,\n \"description\":\"idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:\",\n \"details\":[\n {\n \"value\":1,\n \"description\":\"n, number of documents containing term\",\n \"details\":[]\n },\n {\n \"value\":5,\n \"description\":\"N, total number of documents with field\",\n \"details\":[]\n }\n ]\n },\n {\n \"value\":0.5555556,\n \"description\":\"tf, computed as freq / (freq + k1 * (1 - b + b * dl / avgdl)) from:\",\n \"details\":[\n {\n \"value\":1.0,\n \"description\":\"freq, occurrences of term within document\",\n \"details\":[]\n },\n {\n \"value\":1.2,\n \"description\":\"k1, term saturation parameter\",\n \"details\":[]\n },\n {\n \"value\":0.75,\n \"description\":\"b, length normalization parameter\",\n \"details\":[]\n },\n {\n \"value\":3.0,\n \"description\":\"dl, length of field\",\n \"details\":[]\n },\n {\n \"value\":5.4,\n \"description\":\"avgdl, average length of field\",\n \"details\":[]\n }\n ]\n }\n ]\n }\n ]\n }\n}"},
{"source_location":{"file":"search/explain.asciidoc","line":198},"digest":"2e36fe22051a47e052e349854d9948b9","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_explain/0?q=message:search"},
{"source_location":{"file":"search/profile.asciidoc","line":40},"digest":"44b8a236d7cfb31c43c6d066ae16d8cd","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search\n{\n \"profile\": true,<1>\n \"query\" : {\n \"match\" : { \"message\" : \"GET /search\" }\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":58},"digest":"868c28c8fd50536d531103b929bb017d","lang":"console-result","found":[],"source":"{\n \"took\": 25,\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.17402273,\n \"hits\": [...] <1>\n },\n \"profile\": {\n \"shards\": [\n {\n \"id\": \"[q2aE02wS1R8qQFnYu6vDVQ][my-index-000001][0]\",\n \"node_id\": \"q2aE02wS1R8qQFnYu6vDVQ\",\n \"shard_id\": 0,\n \"index\": \"my-index-000001\",\n \"cluster\": \"(local)\",\n \"searches\": [\n {\n \"query\": [\n {\n \"type\": \"BooleanQuery\",\n \"description\": \"message:get message:search\",\n \"time_in_nanos\" : 11972972,\n \"breakdown\" : {\n \"set_min_competitive_score_count\": 0,\n \"match_count\": 5,\n \"shallow_advance_count\": 0,\n \"set_min_competitive_score\": 0,\n \"next_doc\": 39022,\n \"match\": 4456,\n \"next_doc_count\": 5,\n \"score_count\": 5,\n \"compute_max_score_count\": 0,\n \"compute_max_score\": 0,\n \"advance\": 84525,\n \"advance_count\": 1,\n \"score\": 37779,\n \"build_scorer_count\": 2,\n \"create_weight\": 4694895,\n \"shallow_advance\": 0,\n \"create_weight_count\": 1,\n \"build_scorer\": 7112295,\n \"count_weight\": 0,\n \"count_weight_count\": 0\n },\n \"children\": [\n {\n \"type\": \"TermQuery\",\n \"description\": \"message:get\",\n \"time_in_nanos\": 3801935,\n \"breakdown\": {\n \"set_min_competitive_score_count\": 0,\n \"match_count\": 0,\n \"shallow_advance_count\": 3,\n \"set_min_competitive_score\": 0,\n \"next_doc\": 0,\n \"match\": 0,\n \"next_doc_count\": 0,\n \"score_count\": 5,\n \"compute_max_score_count\": 3,\n \"compute_max_score\": 32487,\n \"advance\": 5749,\n \"advance_count\": 6,\n \"score\": 16219,\n \"build_scorer_count\": 3,\n \"create_weight\": 2382719,\n \"shallow_advance\": 9754,\n \"create_weight_count\": 1,\n \"build_scorer\": 1355007,\n \"count_weight\": 0,\n \"count_weight_count\": 0\n }\n },\n {\n \"type\": \"TermQuery\",\n \"description\": \"message:search\",\n \"time_in_nanos\": 205654,\n \"breakdown\": {\n \"set_min_competitive_score_count\": 0,\n \"match_count\": 0,\n \"shallow_advance_count\": 3,\n \"set_min_competitive_score\": 0,\n \"next_doc\": 0,\n \"match\": 0,\n \"next_doc_count\": 0,\n \"score_count\": 5,\n \"compute_max_score_count\": 3,\n \"compute_max_score\": 6678,\n \"advance\": 12733,\n \"advance_count\": 6,\n \"score\": 6627,\n \"build_scorer_count\": 3,\n \"create_weight\": 130951,\n \"shallow_advance\": 2512,\n \"create_weight_count\": 1,\n \"build_scorer\": 46153,\n \"count_weight\": 0,\n \"count_weight_count\": 0\n }\n }\n ]\n }\n ],\n \"rewrite_time\": 451233,\n \"collector\": [\n {\n \"name\": \"QueryPhaseCollector\",\n \"reason\": \"search_query_phase\",\n \"time_in_nanos\": 775274,\n \"children\" : [\n {\n \"name\": \"TopScoreDocCollector\",\n \"reason\": \"search_top_hits\",\n \"time_in_nanos\": 775274\n }\n ]\n }\n ]\n }\n ],\n \"aggregations\": [],\n \"fetch\": {\n \"type\": \"fetch\",\n \"description\": \"\",\n \"time_in_nanos\": 660555,\n \"breakdown\": {\n \"next_reader\": 7292,\n \"next_reader_count\": 1,\n \"load_stored_fields\": 299325,\n \"load_stored_fields_count\": 5,\n \"load_source\": 3863,\n \"load_source_count\": 5\n },\n \"debug\": {\n \"stored_fields\": [\"_id\", \"_routing\", \"_source\"]\n },\n \"children\": [\n {\n \"type\" : \"FetchFieldsPhase\",\n \"description\" : \"\",\n \"time_in_nanos\" : 238762,\n \"breakdown\" : {\n \"process_count\" : 5,\n \"process\" : 227914,\n \"next_reader\" : 10848,\n \"next_reader_count\" : 1\n }\n },\n {\n \"type\": \"FetchSourcePhase\",\n \"description\": \"\",\n \"time_in_nanos\": 20443,\n \"breakdown\": {\n \"next_reader\": 745,\n \"next_reader_count\": 1,\n \"process\": 19698,\n \"process_count\": 5\n },\n \"debug\": {\n \"fast_path\": 5\n }\n },\n {\n \"type\": \"StoredFieldsPhase\",\n \"description\": \"\",\n \"time_in_nanos\": 5310,\n \"breakdown\": {\n \"next_reader\": 745,\n \"next_reader_count\": 1,\n \"process\": 4445,\n \"process_count\": 5\n }\n }\n ]\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":263},"digest":"a19cadb97c634170487814a79518ae96","lang":"console-result","found":[],"source":"{\n \"profile\": {\n \"shards\": [\n {\n \"id\": \"[q2aE02wS1R8qQFnYu6vDVQ][my-index-000001][0]\", <1>\n \"node_id\": \"q2aE02wS1R8qQFnYu6vDVQ\",\n \"shard_id\": 0,\n \"index\": \"my-index-000001\",\n \"cluster\": \"(local)\", <2>\n \"searches\": [\n {\n \"query\": [...], <3>\n \"rewrite_time\": 51443, <4>\n \"collector\": [...] <5>\n }\n ],\n \"aggregations\": [...], <6>\n \"fetch\": {...} <7>\n }\n ]\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":362},"digest":"88b1a2cf17d7289db8c7e15d472efb4c","lang":"console-result","found":[],"source":"\"query\": [\n {\n \"type\": \"BooleanQuery\",\n \"description\": \"message:get message:search\",\n \"time_in_nanos\": \"11972972\",\n \"breakdown\": {...}, <1>\n \"children\": [\n {\n \"type\": \"TermQuery\",\n \"description\": \"message:get\",\n \"time_in_nanos\": \"3801935\",\n \"breakdown\": {...}\n },\n {\n \"type\": \"TermQuery\",\n \"description\": \"message:search\",\n \"time_in_nanos\": \"205654\",\n \"breakdown\": {...}\n }\n ]\n }\n]"},
{"source_location":{"file":"search/profile.asciidoc","line":416},"digest":"f025cead6c1af8c26dd75e971dd82e1a","lang":"console-result","found":[],"source":"\"breakdown\": {\n \"set_min_competitive_score_count\": 0,\n \"match_count\": 5,\n \"shallow_advance_count\": 0,\n \"set_min_competitive_score\": 0,\n \"next_doc\": 39022,\n \"match\": 4456,\n \"next_doc_count\": 5,\n \"score_count\": 5,\n \"compute_max_score_count\": 0,\n \"compute_max_score\": 0,\n \"advance\": 84525,\n \"advance_count\": 1,\n \"score\": 37779,\n \"build_scorer_count\": 2,\n \"create_weight\": 4694895,\n \"shallow_advance\": 0,\n \"create_weight_count\": 1,\n \"build_scorer\": 7112295,\n \"count_weight\": 0,\n \"count_weight_count\": 0\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":532},"digest":"1daca7c7b759afc3932c9a36aac18f71","lang":"console-result","found":[],"source":"\"collector\": [\n {\n \"name\": \"QueryPhaseCollector\",\n \"reason\": \"search_query_phase\",\n \"time_in_nanos\": 775274,\n \"children\" : [\n {\n \"name\": \"TopScoreDocCollector\",\n \"reason\": \"search_top_hits\",\n \"time_in_nanos\": 775274\n }\n ]\n }\n]"},
{"source_location":{"file":"search/profile.asciidoc","line":627},"digest":"97f5df84efec655f479fad78bc392d4d","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search\n{\n \"profile\": true,\n \"query\": {\n \"term\": {\n \"user.id\": {\n \"value\": \"elkbee\"\n }\n }\n },\n \"aggs\": {\n \"my_scoped_agg\": {\n \"terms\": {\n \"field\": \"http.response.status_code\"\n }\n },\n \"my_global_agg\": {\n \"global\": {},\n \"aggs\": {\n \"my_level_agg\": {\n \"terms\": {\n \"field\": \"http.response.status_code\"\n }\n }\n }\n }\n },\n \"post_filter\": {\n \"match\": {\n \"message\": \"search\"\n }\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":677},"digest":"b482c420206d7a37a4ee775094a7e2a0","lang":"console-result","found":[],"source":"{\n ...\n \"profile\": {\n \"shards\": [\n {\n \"id\": \"[P6xvulHtQRWuD4YnubWb7A][my-index-000001][0]\",\n \"node_id\": \"P6xvulHtQRWuD4YnubWb7A\",\n \"shard_id\": 0,\n \"index\": \"my-index-000001\",\n \"cluster\": \"(local)\",\n \"searches\": [\n {\n \"query\": [\n {\n \"type\": \"TermQuery\",\n \"description\": \"message:search\",\n \"time_in_nanos\": 141618,\n \"breakdown\": {\n \"set_min_competitive_score_count\": 0,\n \"match_count\": 0,\n \"shallow_advance_count\": 0,\n \"set_min_competitive_score\": 0,\n \"next_doc\": 0,\n \"match\": 0,\n \"next_doc_count\": 0,\n \"score_count\": 0,\n \"compute_max_score_count\": 0,\n \"compute_max_score\": 0,\n \"advance\": 3942,\n \"advance_count\": 4,\n \"count_weight_count\": 0,\n \"score\": 0,\n \"build_scorer_count\": 2,\n \"create_weight\": 38380,\n \"shallow_advance\": 0,\n \"count_weight\": 0,\n \"create_weight_count\": 1,\n \"build_scorer\": 99296\n }\n },\n {\n \"type\": \"TermQuery\",\n \"description\": \"user.id:elkbee\",\n \"time_in_nanos\": 163081,\n \"breakdown\": {\n \"set_min_competitive_score_count\": 0,\n \"match_count\": 0,\n \"shallow_advance_count\": 0,\n \"set_min_competitive_score\": 0,\n \"next_doc\": 2447,\n \"match\": 0,\n \"next_doc_count\": 4,\n \"score_count\": 4,\n \"compute_max_score_count\": 0,\n \"compute_max_score\": 0,\n \"advance\": 3552,\n \"advance_count\": 1,\n \"score\": 5027,\n \"count_weight_count\": 0,\n \"build_scorer_count\": 2,\n \"create_weight\": 107840,\n \"shallow_advance\": 0,\n \"count_weight\": 0,\n \"create_weight_count\": 1,\n \"build_scorer\": 44215\n }\n }\n ],\n \"rewrite_time\": 4769,\n \"collector\": [\n {\n \"name\": \"QueryPhaseCollector\",\n \"reason\": \"search_query_phase\",\n \"time_in_nanos\": 1945072,\n \"children\": [\n {\n \"name\": \"TopScoreDocCollector\",\n \"reason\": \"search_top_hits\",\n \"time_in_nanos\": 22577\n },\n {\n \"name\": \"AggregatorCollector: [my_scoped_agg, my_global_agg]\",\n \"reason\": \"aggregation\",\n \"time_in_nanos\": 867617\n }\n ]\n }\n ]\n }\n ],\n \"aggregations\": [...], <1>\n \"fetch\": {...}\n }\n ]\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":835},"digest":"97f5df84efec655f479fad78bc392d4d","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search\n{\n \"profile\": true,\n \"query\": {\n \"term\": {\n \"user.id\": {\n \"value\": \"elkbee\"\n }\n }\n },\n \"aggs\": {\n \"my_scoped_agg\": {\n \"terms\": {\n \"field\": \"http.response.status_code\"\n }\n },\n \"my_global_agg\": {\n \"global\": {},\n \"aggs\": {\n \"my_level_agg\": {\n \"terms\": {\n \"field\": \"http.response.status_code\"\n }\n }\n }\n }\n },\n \"post_filter\": {\n \"match\": {\n \"message\": \"search\"\n }\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":877},"digest":"f46bb9953495daaadbfd1daa09391aa6","lang":"console-result","found":[],"source":"{\n \"profile\": {\n \"shards\": [\n {\n \"aggregations\": [\n {\n \"type\": \"NumericTermsAggregator\",\n \"description\": \"my_scoped_agg\",\n \"time_in_nanos\": 79294,\n \"breakdown\": {\n \"reduce\": 0,\n \"build_aggregation\": 30885,\n \"build_aggregation_count\": 1,\n \"initialize\": 2623,\n \"initialize_count\": 1,\n \"reduce_count\": 0,\n \"collect\": 45786,\n \"collect_count\": 4,\n \"build_leaf_collector\": 18211,\n \"build_leaf_collector_count\": 1,\n \"post_collection\": 929,\n \"post_collection_count\": 1\n },\n \"debug\": {\n \"total_buckets\": 1,\n \"result_strategy\": \"long_terms\",\n \"built_buckets\": 1\n }\n },\n {\n \"type\": \"GlobalAggregator\",\n \"description\": \"my_global_agg\",\n \"time_in_nanos\": 104325,\n \"breakdown\": {\n \"reduce\": 0,\n \"build_aggregation\": 22470,\n \"build_aggregation_count\": 1,\n \"initialize\": 12454,\n \"initialize_count\": 1,\n \"reduce_count\": 0,\n \"collect\": 69401,\n \"collect_count\": 4,\n \"build_leaf_collector\": 8150,\n \"build_leaf_collector_count\": 1,\n \"post_collection\": 1584,\n \"post_collection_count\": 1\n },\n \"debug\": {\n \"built_buckets\": 1\n },\n \"children\": [\n {\n \"type\": \"NumericTermsAggregator\",\n \"description\": \"my_level_agg\",\n \"time_in_nanos\": 76876,\n \"breakdown\": {\n \"reduce\": 0,\n \"build_aggregation\": 13824,\n \"build_aggregation_count\": 1,\n \"initialize\": 1441,\n \"initialize_count\": 1,\n \"reduce_count\": 0,\n \"collect\": 61611,\n \"collect_count\": 4,\n \"build_leaf_collector\": 5564,\n \"build_leaf_collector_count\": 1,\n \"post_collection\": 471,\n \"post_collection_count\": 1\n },\n \"debug\": {\n \"total_buckets\": 1,\n \"result_strategy\": \"long_terms\",\n \"built_buckets\": 1\n }\n }\n ]\n }\n ]\n }\n ]\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":1023},"digest":"578808065fee8691355b8f25c35782cd","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search?filter_path=profile.shards.fetch\n{\n \"profile\": true,\n \"query\": {\n \"term\": {\n \"user.id\": {\n \"value\": \"elkbee\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":1041},"digest":"59f65f294933af73fd05ce1d244cfca3","lang":"console-result","found":[],"source":"{\n \"profile\": {\n \"shards\": [\n {\n \"fetch\": {\n \"type\": \"fetch\",\n \"description\": \"\",\n \"time_in_nanos\": 660555,\n \"breakdown\": {\n \"next_reader\": 7292,\n \"next_reader_count\": 1,\n \"load_stored_fields\": 299325,\n \"load_stored_fields_count\": 5,\n \"load_source\": 3863,\n \"load_source_count\": 5\n },\n \"debug\": {\n \"stored_fields\": [\"_id\", \"_routing\", \"_source\"]\n },\n \"children\": [\n {\n \"type\" : \"FetchFieldsPhase\",\n \"description\" : \"\",\n \"time_in_nanos\" : 238762,\n \"breakdown\" : {\n \"process_count\" : 5,\n \"process\" : 227914,\n \"next_reader\" : 10848,\n \"next_reader_count\" : 1\n }\n },\n {\n \"type\": \"FetchSourcePhase\",\n \"description\": \"\",\n \"time_in_nanos\": 20443,\n \"breakdown\": {\n \"next_reader\": 745,\n \"next_reader_count\": 1,\n \"process\": 19698,\n \"process_count\": 5\n },\n \"debug\": {\n \"fast_path\": 4\n }\n },\n {\n \"type\": \"StoredFieldsPhase\",\n \"description\": \"\",\n \"time_in_nanos\": 5310,\n \"breakdown\": {\n \"next_reader\": 745,\n \"next_reader_count\": 1,\n \"process\": 4445,\n \"process_count\": 5\n }\n }\n ]\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":1160},"digest":"558b3f9b987771e9f9f35e51a0d7e062","lang":"console","found":["python","ruby","js"],"source":"PUT my-dfs-index\n{\n \"settings\": {\n \"number_of_shards\": 2, <1>\n \"number_of_replicas\": 1\n },\n \"mappings\": {\n \"properties\": {\n \"my-keyword\": { \"type\": \"keyword\" }\n }\n }\n}\n\nPOST my-dfs-index/_bulk?refresh=true\n{ \"index\" : { \"_id\" : \"1\" } }\n{ \"my-keyword\" : \"a\" }\n{ \"index\" : { \"_id\" : \"2\" } }\n{ \"my-keyword\" : \"b\" }"},
{"source_location":{"file":"search/profile.asciidoc","line":1186},"digest":"b6e385760e036e36827f719b540d9c11","lang":"console","found":["python","ruby","js"],"source":"GET /my-dfs-index/_search?search_type=dfs_query_then_fetch&pretty&size=0 <1>\n{\n \"profile\": true, <2>\n \"query\": {\n \"term\": {\n \"my-keyword\": {\n \"value\": \"a\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":1209},"digest":"6ef93f300fa4465ad884f4ae5ac030a1","lang":"console-result","found":[],"source":"\"dfs\" : {\n \"statistics\" : {\n \"type\" : \"statistics\",\n \"description\" : \"collect term statistics\",\n \"time_in_nanos\" : 236955,\n \"breakdown\" : {\n \"term_statistics\" : 4815,\n \"collection_statistics\" : 27081,\n \"collection_statistics_count\" : 1,\n \"create_weight\" : 153278,\n \"term_statistics_count\" : 1,\n \"rewrite_count\" : 0,\n \"create_weight_count\" : 1,\n \"rewrite\" : 0\n }\n }\n}"},
{"source_location":{"file":"search/profile.asciidoc","line":1248},"digest":"7ebeb6cf26be5b5ecdfd408bd0fc3215","lang":"console","found":["python","ruby","js"],"source":"PUT my-knn-index\n{\n \"mappings\": {\n \"properties\": {\n \"my-vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 3,\n \"index\": true,\n \"similarity\": \"l2_norm\"\n }\n }\n }\n}\n\nPOST my-knn-index/_bulk?refresh=true\n{ \"index\": { \"_id\": \"1\" } }\n{ \"my-vector\": [1, 5, -20] }\n{ \"index\": { \"_id\": \"2\" } }\n{ \"my-vector\": [42, 8, -15] }\n{ \"index\": { \"_id\": \"3\" } }\n{ \"my-vector\": [15, 11, 23] }"},
{"source_location":{"file":"search/profile.asciidoc","line":1275},"digest":"49e8773a34fcbf825de38426cff5509c","lang":"console","found":["python","ruby","js"],"source":"POST my-knn-index/_search\n{\n \"profile\": true, <1>\n \"knn\": {\n \"field\": \"my-vector\",\n \"query_vector\": [-5, 9, -12],\n \"k\": 3,\n \"num_candidates\": 100\n }\n}"},
{"source_location":{"file":"search/field-caps.asciidoc","line":18},"digest":"38f7739f750f1411bccf511a0abaaea3","lang":"console","found":["python","ruby","js"],"source":"GET /_field_caps?fields=rating"},
{"source_location":{"file":"search/field-caps.asciidoc","line":191},"digest":"9200ed8d5f798a158def4c526e41269e","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_field_caps?fields=rating"},
{"source_location":{"file":"search/field-caps.asciidoc","line":201},"digest":"a985e6b7b2ead9c3f30a9bc97d8b598e","lang":"console","found":["python","ruby","js"],"source":"GET _field_caps?fields=rating,title"},
{"source_location":{"file":"search/field-caps.asciidoc","line":208},"digest":"bbaaf55104fc069818053c1a40261613","lang":"console-result","found":[],"source":"{\n \"indices\": [ \"index1\", \"index2\", \"index3\", \"index4\", \"index5\" ],\n \"fields\": {\n \"rating\": { <1>\n \"long\": {\n \"metadata_field\": false,\n \"searchable\": true,\n \"aggregatable\": false,\n \"indices\": [ \"index1\", \"index2\" ],\n \"non_aggregatable_indices\": [ \"index1\" ] <2>\n },\n \"keyword\": {\n \"metadata_field\": false,\n \"searchable\": false,\n \"aggregatable\": true,\n \"indices\": [ \"index3\", \"index4\" ],\n \"non_searchable_indices\": [ \"index4\" ] <3>\n }\n },\n \"title\": { <4>\n \"text\": {\n \"metadata_field\": false,\n \"searchable\": true,\n \"aggregatable\": false\n }\n }\n }\n}"},
{"source_location":{"file":"search/field-caps.asciidoc","line":251},"digest":"4e931cfac74e46e221cf4a9ab88a182d","lang":"console","found":["python","ruby","js"],"source":"GET _field_caps?fields=rating,title&include_unmapped"},
{"source_location":{"file":"search/field-caps.asciidoc","line":259},"digest":"9fe6fd5265c27dd532f402e940e0808c","lang":"console-result","found":[],"source":"{\n \"indices\": [ \"index1\", \"index2\", \"index3\" ],\n \"fields\": {\n \"rating\": {\n \"long\": {\n \"metadata_field\": false,\n \"searchable\": true,\n \"aggregatable\": false,\n \"indices\": [ \"index1\", \"index2\" ],\n \"non_aggregatable_indices\": [ \"index1\" ]\n },\n \"keyword\": {\n \"metadata_field\": false,\n \"searchable\": false,\n \"aggregatable\": true,\n \"indices\": [ \"index3\", \"index4\" ],\n \"non_searchable_indices\": [ \"index4\" ]\n },\n \"unmapped\": { <1>\n \"metadata_field\": false,\n \"indices\": [ \"index5\" ],\n \"searchable\": false,\n \"aggregatable\": false\n }\n },\n \"title\": {\n \"text\": {\n \"metadata_field\": false,\n \"indices\": [ \"index1\", \"index2\", \"index3\", \"index4\" ],\n \"searchable\": true,\n \"aggregatable\": false\n },\n \"unmapped\": { <2>\n \"metadata_field\": false,\n \"indices\": [ \"index5\" ],\n \"searchable\": false,\n \"aggregatable\": false\n }\n }\n }\n}"},
{"source_location":{"file":"search/field-caps.asciidoc","line":310},"digest":"91c01fcad9bf341d039a15dfc593dcd7","lang":"console","found":["python","ruby","js"],"source":"POST my-index-*/_field_caps?fields=rating\n{\n \"index_filter\": {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"2018\"\n }\n }\n }\n}"},
{"source_location":{"file":"search/rank-eval.asciidoc","line":263},"digest":"faf7d8b9827cf5c0db5c177f01dc31c4","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_rank_eval\n{\n \"requests\": [\n {\n \"id\": \"JFK query\",\n \"request\": { \"query\": { \"match_all\": {} } },\n \"ratings\": []\n } ],\n \"metric\": {\n \"precision\": {\n \"k\": 20,\n \"relevant_rating_threshold\": 1,\n \"ignore_unlabeled\": false\n }\n }\n}"},
{"source_location":{"file":"search/rank-eval.asciidoc","line":318},"digest":"0f4583c56cfe5bd59eeb35bfba02957c","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_rank_eval\n{\n \"requests\": [\n {\n \"id\": \"JFK query\",\n \"request\": { \"query\": { \"match_all\": {} } },\n \"ratings\": []\n } ],\n \"metric\": {\n \"recall\": {\n \"k\": 20,\n \"relevant_rating_threshold\": 1\n }\n }\n}"},
{"source_location":{"file":"search/rank-eval.asciidoc","line":359},"digest":"f2ec53c0ef5025de8890d0ff8ec287a0","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_rank_eval\n{\n \"requests\": [\n {\n \"id\": \"JFK query\",\n \"request\": { \"query\": { \"match_all\": {} } },\n \"ratings\": []\n } ],\n \"metric\": {\n \"mean_reciprocal_rank\": {\n \"k\": 20,\n \"relevant_rating_threshold\": 1\n }\n }\n}"},
{"source_location":{"file":"search/rank-eval.asciidoc","line":403},"digest":"bcae0f00ae1e6f08fa395ca741fe84f9","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_rank_eval\n{\n \"requests\": [\n {\n \"id\": \"JFK query\",\n \"request\": { \"query\": { \"match_all\": {} } },\n \"ratings\": []\n } ],\n \"metric\": {\n \"dcg\": {\n \"k\": 20,\n \"normalize\": false\n }\n }\n}"},
{"source_location":{"file":"search/rank-eval.asciidoc","line":459},"digest":"c1ad9ff64728a5bfeeb485e60ec694a1","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_rank_eval\n{\n \"requests\": [\n {\n \"id\": \"JFK query\",\n \"request\": { \"query\": { \"match_all\": {} } },\n \"ratings\": []\n } ],\n \"metric\": {\n \"expected_reciprocal_rank\": {\n \"maximum_relevance\": 3,\n \"k\": 20\n }\n }\n}"},
{"source_location":{"file":"search/search-vector-tile-api.asciidoc","line":38},"digest":"34be27141e3a476c138546190101c8bc","lang":"console","found":["python","js"],"source":"GET my-index/_mvt/my-geo-field/15/5271/12710"},
{"source_location":{"file":"search/search-vector-tile-api.asciidoc","line":119},"digest":"9a49b7572d571e00e20dbebdd30f9368","lang":"console","found":["python","js"],"source":"GET my-index/_search\n{\n \"size\": 10000,\n \"query\": {\n \"geo_bounding_box\": {\n \"my-geo-field\": {\n \"top_left\": {\n \"lat\": -40.979898069620134,\n \"lon\": -45\n },\n \"bottom_right\": {\n \"lat\": -66.51326044311186,\n \"lon\": 0\n }\n }\n }\n },\n \"aggregations\": {\n \"grid\": {\n \"geotile_grid\": {\n \"field\": \"my-geo-field\",\n \"precision\": 11,\n \"size\": 65536,\n \"bounds\": {\n \"top_left\": {\n \"lat\": -40.979898069620134,\n \"lon\": -45\n },\n \"bottom_right\": {\n \"lat\": -66.51326044311186,\n \"lon\": 0\n }\n }\n }\n },\n \"bounds\": {\n \"geo_bounds\": {\n \"field\": \"my-geo-field\",\n \"wrap_longitude\": false\n }\n }\n }\n}"},
{"source_location":{"file":"search/search-vector-tile-api.asciidoc","line":671},"digest":"db773f690edf659ac9b044dc854c77eb","lang":"console","found":["python","ruby","js"],"source":"PUT museums\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n },\n \"name\": {\n \"type\": \"keyword\"\n },\n \"price\": {\n \"type\": \"long\"\n },\n \"included\": {\n \"type\": \"boolean\"\n }\n }\n }\n}\n\nPOST museums/_bulk?refresh\n{ \"index\": { \"_id\": \"1\" } }\n{ \"location\": \"POINT (4.912350 52.374081)\", \"name\": \"NEMO Science Museum\", \"price\": 1750, \"included\": true }\n{ \"index\": { \"_id\": \"2\" } }\n{ \"location\": \"POINT (4.901618 52.369219)\", \"name\": \"Museum Het Rembrandthuis\", \"price\": 1500, \"included\": false }\n{ \"index\": { \"_id\": \"3\" } }\n{ \"location\": \"POINT (4.914722 52.371667)\", \"name\": \"Nederlands Scheepvaartmuseum\", \"price\":1650, \"included\": true }\n{ \"index\": { \"_id\": \"4\" } }\n{ \"location\": \"POINT (4.914722 52.371667)\", \"name\": \"Amsterdam Centre for Architecture\", \"price\":0, \"included\": true }"},
{"source_location":{"file":"search/search-vector-tile-api.asciidoc","line":707},"digest":"b88a2d96da1401d548a4540cca223d27","lang":"console","found":["python","js"],"source":"GET museums/_mvt/location/13/4207/2692\n{\n \"grid_agg\": \"geotile\",\n \"grid_precision\": 2,\n \"fields\": [\n \"name\",\n \"price\"\n ],\n \"query\": {\n \"term\": {\n \"included\": true\n }\n },\n \"aggs\": {\n \"min_price\": {\n \"min\": {\n \"field\": \"price\"\n }\n },\n \"max_price\": {\n \"max\": {\n \"field\": \"price\"\n }\n },\n \"avg_price\": {\n \"avg\": {\n \"field\": \"price\"\n }\n }\n }\n}"},
{"source_location":{"file":"search-application/apis/put-search-application.asciidoc","line":153},"digest":"41fd33a293a575bd71a1fac7bcc8b47c","lang":"console","found":["python","js"],"source":"PUT _application/search_application/my-app\n{\n \"indices\": [ \"index1\", \"index2\" ],\n \"template\": {\n \"script\": {\n \"source\": {\n \"query\": {\n \"query_string\": {\n \"query\": \"{{query_string}}\",\n \"default_field\": \"{{default_field}}\"\n }\n }\n },\n \"params\": {\n \"query_string\": \"*\",\n \"default_field\": \"*\"\n }\n },\n \"dictionary\": {\n \"properties\": {\n \"query_string\": {\n \"type\": \"string\"\n },\n \"default_field\": {\n \"type\": \"string\",\n \"enum\": [\n \"title\",\n \"description\"\n ]\n },\n \"additionalProperties\": false\n },\n \"required\": [\n \"query_string\"\n ]\n }\n }\n}"},
{"source_location":{"file":"search-application/apis/put-search-application.asciidoc","line":202},"digest":"b47945c7db8868dd36ba079b742f2a90","lang":"console","found":["python","js"],"source":"POST _application/search_application/my-app/_search\n{\n \"params\": {\n \"default_field\": \"author\",\n \"query_string\": \"Jane\"\n }\n}"},
{"source_location":{"file":"search-application/apis/get-search-application.asciidoc","line":93},"digest":"bde74dbbcef8ebf8541cae2c1711255f","lang":"console","found":["python","js"],"source":"GET _application/search_application/my-app/"},
{"source_location":{"file":"search-application/apis/get-search-application.asciidoc","line":100},"digest":"87bae21c46fa7322b70a658dd70e3a36","lang":"console-result","found":[],"source":"{\n \"name\": \"my-app\",\n \"indices\": [ \"index1\", \"index2\" ],\n \"updated_at_millis\": 1682105622204,\n \"template\": {\n \"script\": {\n \"source\": {\n \"query\": {\n \"query_string\": {\n \"query\": \"{{query_string}}\",\n \"default_field\": \"{{default_field}}\"\n }\n }\n },\n \"lang\": \"mustache\",\n \"options\": {\n \"content_type\": \"application/json;charset=utf-8\"\n },\n \"params\": {\n \"query_string\": \"*\",\n \"default_field\": \"*\"\n }\n }\n }\n}"},
{"source_location":{"file":"search-application/apis/list-search-applications.asciidoc","line":99},"digest":"10f7a2c0a952ba3bc3d20b7d5f310f41","lang":"console","found":["python","js"],"source":"GET _application/search_application/"},
{"source_location":{"file":"search-application/apis/list-search-applications.asciidoc","line":106},"digest":"5b0cc9e186a8f765a11141809b8b17b7","lang":"console","found":["python","js"],"source":"GET _application/search_application?from=0&size=3&q=app*"},
{"source_location":{"file":"search-application/apis/list-search-applications.asciidoc","line":113},"digest":"24ec48419e313ca120576ff4582b2d8d","lang":"console-result","found":[],"source":"{\n \"count\": 2,\n \"results\": [\n {\n \"name\": \"app-1\",\n \"updated_at_millis\": 1690981129366\n },\n {\n \"name\": \"app-2\",\n \"updated_at_millis\": 1691501823939\n }\n ]\n}"},
{"source_location":{"file":"search-application/apis/delete-search-application.asciidoc","line":75},"digest":"afbea723c4ba0d50c67d04ebb73a4101","lang":"console","found":["python","js"],"source":"DELETE _application/search_application/my-app/"},
{"source_location":{"file":"search-application/apis/search-application-search.asciidoc","line":130},"digest":"4f08d9e21d9f199acc77abfb83287878","lang":"console","found":["python","js"],"source":"POST _application/search_application/my-app/_search\n{\n \"params\": {\n \"query_string\": \"my first query\",\n \"text_fields\": [\n {\"name\": \"title\", \"boost\": 5},\n {\"name\": \"description\", \"boost\": 1}\n ]\n }\n}"},
{"source_location":{"file":"search-application/apis/search-application-search.asciidoc","line":146},"digest":"8a3da9cbfaf511dcb6579766035907da","lang":"console-result","found":[],"source":"{\n \"from\": 0,\n \"size\": 10,\n \"query\": {\n \"multi_match\": {\n \"query\": \"my first query\",\n \"fields\": [\n \"description^1.0\",\n \"title^5.0\"\n ]\n }\n },\n \"explain\": false\n}"},
{"source_location":{"file":"search-application/apis/search-application-search.asciidoc","line":171},"digest":"b692072774747ff2c46335ef85d5ec83","lang":"console-result","found":[],"source":"{\n \"took\": 5,\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\": 0.8630463,\n \"hits\": ...\n }\n}"},
{"source_location":{"file":"search-application/apis/search-application-render-query.asciidoc","line":119},"digest":"0dfde6a9d953822fd4b3aa0121ddd8fb","lang":"console","found":["python","js"],"source":"POST _application/search_application/my-app/_render_query\n{\n \"params\": {\n \"query_string\": \"my first query\",\n \"text_fields\": [\n {\"name\": \"title\", \"boost\": 5},\n {\"name\": \"description\", \"boost\": 1}\n ]\n }\n}"},
{"source_location":{"file":"search-application/apis/search-application-render-query.asciidoc","line":135},"digest":"8a3da9cbfaf511dcb6579766035907da","lang":"console-result","found":[],"source":"{\n \"from\": 0,\n \"size\": 10,\n \"query\": {\n \"multi_match\": {\n \"query\": \"my first query\",\n \"fields\": [\n \"description^1.0\",\n \"title^5.0\"\n ]\n }\n },\n \"explain\": false\n}"},
{"source_location":{"file":"searchable-snapshots/apis/mount-snapshot.asciidoc","line":134},"digest":"fc49437ce2e7916facf58128308c2aa3","lang":"console","found":["python","js"],"source":"POST /_snapshot/my_repository/my_snapshot/_mount?wait_for_completion=true\n{\n \"index\": \"my_docs\", <1>\n \"renamed_index\": \"docs\", <2>\n \"index_settings\": { <3>\n \"index.number_of_replicas\": 0\n },\n \"ignore_index_settings\": [ \"index.refresh_interval\" ] <4>\n}"},
{"source_location":{"file":"searchable-snapshots/apis/node-cache-stats.asciidoc","line":102},"digest":"aab3de5a8a3fefbe012fc2ed50dfe4d6","lang":"console","found":["python","ruby","js"],"source":"GET /_searchable_snapshots/cache/stats"},
{"source_location":{"file":"searchable-snapshots/apis/node-cache-stats.asciidoc","line":110},"digest":"f38b05bf148c7880ce050832548b66fc","lang":"console-result","found":[],"source":"{\n \"nodes\" : {\n \"eerrtBMtQEisohZzxBLUSw\" : {\n \"shared_cache\" : {\n \"reads\" : 6051,\n \"bytes_read_in_bytes\" : 5448829,\n \"writes\" : 37,\n \"bytes_written_in_bytes\" : 1208320,\n \"evictions\" : 5,\n \"num_regions\" : 65536,\n \"size_in_bytes\" : 1099511627776,\n \"region_size_in_bytes\" : 16777216\n }\n }\n }\n}"},
{"source_location":{"file":"searchable-snapshots/apis/shard-stats.asciidoc","line":79},"digest":"84c61160ca815e29e9973ba1380219dd","lang":"console","found":["python","ruby","js"],"source":"GET /my-index/_searchable_snapshots/stats"},
{"source_location":{"file":"searchable-snapshots/apis/clear-cache.asciidoc","line":75},"digest":"6fc778e9a888b16b937c5c2a7a1ec140","lang":"console","found":["python","ruby","js"],"source":"POST /my-index/_searchable_snapshots/cache/clear"},
{"source_location":{"file":"rest-api/security/authenticate.asciidoc","line":41},"digest":"55f4a15b84b724b9fbf2efd29a4da120","lang":"console","found":["python","js"],"source":"GET /_security/_authenticate"},
{"source_location":{"file":"rest-api/security/authenticate.asciidoc","line":48},"digest":"854f0b3b23758cc0fa19cf6af278e1d2","lang":"console-result","found":[],"source":"{\n \"username\": \"rdeniro\",\n \"roles\": [\n \"admin\"\n ],\n \"full_name\": null,\n \"email\": null,\n \"metadata\": { },\n \"enabled\": true,\n \"authentication_realm\": {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"lookup_realm\": {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"authentication_type\": \"realm\"\n}"},
{"source_location":{"file":"rest-api/security/change-password.asciidoc","line":76},"digest":"9410af79177dd1df9b7b16229a581e18","lang":"console","found":["python","js"],"source":"POST /_security/user/jacknich/_password\n{\n \"password\" : \"new-test-password\"\n}"},
{"source_location":{"file":"rest-api/security/change-password.asciidoc","line":87},"digest":"782a8820be17669905206e46d2c25178","lang":"console-result","found":[],"source":"{}"},
{"source_location":{"file":"rest-api/security/clear-cache.asciidoc","line":60},"digest":"a5e2b3588258430f2e595abda98e3943","lang":"console","found":["python","js"],"source":"POST /_security/realm/default_file/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-cache.asciidoc","line":67},"digest":"c1409f591a01589638d9b00436ce42c0","lang":"console","found":["python","js"],"source":"POST /_security/realm/default_file/_clear_cache?usernames=rdeniro,alpacino"},
{"source_location":{"file":"rest-api/security/clear-cache.asciidoc","line":75},"digest":"00272f75a6afea91f8554ef7cda0c1f2","lang":"console","found":["python","js"],"source":"POST /_security/realm/default_file,ldap1/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-cache.asciidoc","line":82},"digest":"073864d3f52f8f79aafdaa85a88ac46a","lang":"console","found":["python","js"],"source":"POST /_security/realm/*/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-roles-cache.asciidoc","line":48},"digest":"ee577c4c7cc723e99569ea2d1137adba","lang":"console","found":["python","js"],"source":"POST /_security/role/my_admin_role/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-roles-cache.asciidoc","line":55},"digest":"87c3e9963400a3e4b296ef8d1c86fae3","lang":"console","found":["python","js"],"source":"POST /_security/role/my_admin_role,my_test_role/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-roles-cache.asciidoc","line":62},"digest":"1e3553a73da487017f7a95088b6aa957","lang":"console","found":["python","js"],"source":"POST /_security/role/*/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-privileges-cache.asciidoc","line":49},"digest":"f6df4acf3c7a4f85706ff314b21ebcb2","lang":"console","found":["python","js"],"source":"POST /_security/privilege/myapp/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-privileges-cache.asciidoc","line":56},"digest":"f3fb3cba44988b6e9fee93316138b2cf","lang":"console","found":["python","js"],"source":"POST /_security/privilege/myapp,my-other-app/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-privileges-cache.asciidoc","line":63},"digest":"9a09d33ec11e20b6081cae882282ca60","lang":"console","found":["python","js"],"source":"POST /_security/privilege/*/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-api-key-cache.asciidoc","line":49},"digest":"f66643c54999426c5afa6d5a87435d4e","lang":"console","found":["python","js"],"source":"POST /_security/api_key/yVGMr3QByxdh1MSaicYx/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-api-key-cache.asciidoc","line":56},"digest":"49c052a748c943180db78fee8e144239","lang":"console","found":["python","js"],"source":"POST /_security/api_key/yVGMr3QByxdh1MSaicYx,YoiMaqREw0YVpjn40iMg/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-api-key-cache.asciidoc","line":63},"digest":"bd6f30e3caa3632260da42d9ff82c98c","lang":"console","found":["python","js"],"source":"POST /_security/api_key/*/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-service-token-caches.asciidoc","line":61},"digest":"da18bae37cda566c0254b30c15221b01","lang":"console","found":["python","js"],"source":"POST /_security/service/elastic/fleet-server/credential/token/token1/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-service-token-caches.asciidoc","line":68},"digest":"eafdabe80b21b90495555fa6d9089412","lang":"console","found":["python","js"],"source":"POST /_security/service/elastic/fleet-server/credential/token/token1,token2/_clear_cache"},
{"source_location":{"file":"rest-api/security/clear-service-token-caches.asciidoc","line":76},"digest":"f656c1e64268293ecc8ebd8065628faa","lang":"console","found":["python","js"],"source":"POST /_security/service/elastic/fleet-server/credential/token/*/_clear_cache"},
{"source_location":{"file":"rest-api/security/create-api-keys.asciidoc","line":134},"digest":"4a4b8a406681584a91c0e614c1fa4344","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"my-api-key\",\n \"expiration\": \"1d\", <1>\n \"role_descriptors\": { <2>\n \"role-a\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-a*\"],\n \"privileges\": [\"read\"]\n }\n ]\n },\n \"role-b\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-b*\"],\n \"privileges\": [\"all\"]\n }\n ]\n }\n },\n \"metadata\": {\n \"application\": \"my-application\",\n \"environment\": {\n \"level\": 1,\n \"trusted\": true,\n \"tags\": [\"dev\", \"staging\"]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/create-api-keys.asciidoc","line":178},"digest":"c998a7ff6ea618f1a7451fc9a9926d39","lang":"console-result","found":[],"source":"{\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\", <1>\n \"name\": \"my-api-key\",\n \"expiration\": 1544068612110, <2>\n \"api_key\": \"ui2lp2axTNmsyakw9tvNnw\", <3>\n \"encoded\": \"VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw==\" <4>\n}"},
{"source_location":{"file":"rest-api/security/create-api-keys.asciidoc","line":226},"digest":"1b076ceb1ead9f6897c2f351f0e45f74","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"my-restricted-api-key\",\n \"role_descriptors\": {\n \"my-restricted-role-descriptor\": {\n \"indices\": [\n {\n \"names\": [\"my-search-app\"],\n \"privileges\": [\"read\"]\n }\n ],\n \"restriction\": {\n \"workflows\": [\"search_application_query\"]\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/put-app-privileges.asciidoc","line":94},"digest":"4ee31fd4ea6d18f32ec28b7fa433441d","lang":"console","found":["python","js"],"source":"PUT /_security/privilege\n{\n \"myapp\": {\n \"read\": {\n \"actions\": [ <1>\n \"data:read/*\" , <2>\n \"action:login\" ],\n \"metadata\": { <3>\n \"description\": \"Read access to myapp\"\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/put-app-privileges.asciidoc","line":120},"digest":"81a9dd74f26c4b89341cac7ebeb4c0e6","lang":"console-result","found":[],"source":"{\n \"myapp\": {\n \"read\": {\n \"created\": true <1>\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/put-app-privileges.asciidoc","line":136},"digest":"ee90d1fb22b59d30da339d825303b912","lang":"console","found":["python","js"],"source":"PUT /_security/privilege\n{\n \"app01\": {\n \"read\": {\n \"actions\": [ \"action:login\", \"data:read/*\" ]\n },\n \"write\": {\n \"actions\": [ \"action:login\", \"data:write/*\" ]\n }\n },\n \"app02\": {\n \"all\": {\n \"actions\": [ \"*\" ]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/put-app-privileges.asciidoc","line":159},"digest":"7269308683a9eb4ef6420e918391b791","lang":"console-result","found":[],"source":"{\n \"app02\": {\n \"all\": {\n \"created\": true\n }\n },\n \"app01\": {\n \"read\": {\n \"created\": true\n },\n \"write\": {\n \"created\": true\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":119},"digest":"23b062c157235246d7c347b9047b2435","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping1\n{\n \"roles\": [ \"user\"],\n \"enabled\": true, <1>\n \"rules\": {\n \"field\" : { \"username\" : \"*\" }\n },\n \"metadata\" : { <2>\n \"version\" : 1\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":140},"digest":"cf8cff0fb254f0e1009a01651b1526e9","lang":"console-result","found":[],"source":"{\n \"role_mapping\" : {\n \"created\" : true <1>\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":153},"digest":"b176e0d428726705298184ef39ad5cb2","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping2\n{\n \"roles\": [ \"user\", \"admin\" ],\n \"enabled\": true,\n \"rules\": {\n \"field\" : { \"username\" : [ \"esadmin01\", \"esadmin02\" ] }\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":166},"digest":"e60b7f75ca806f2c74927c3d9409a986","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping3\n{\n \"roles\": [ \"ldap-user\" ],\n \"enabled\": true,\n \"rules\": {\n \"field\" : { \"realm.name\" : \"ldap1\" }\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":181},"digest":"7a23a385a63c87cab58fd494870450fd","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping4\n{\n \"roles\": [ \"superuser\" ],\n \"enabled\": true,\n \"rules\": {\n \"any\": [\n {\n \"field\": {\n \"username\": \"esadmin\"\n }\n },\n {\n \"field\": {\n \"groups\": \"cn=admins,dc=example,dc=com\"\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":212},"digest":"0c6fc67c2dd1c1771cd866ce471d74e1","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping4\n{\n \"roles\": [ \"superuser\" ],\n \"enabled\": true,\n \"rules\": {\n \"any\": [\n {\n \"field\": {\n \"username\": \"esadmin\"\n }\n },\n {\n \"field\": {\n \"groups\": [\n \"cn=admins,dc=example,dc=com\",\n \"cn=other,dc=example,dc=com\"\n ]\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":252},"digest":"5ad365ed9e1a3c26093a0f09666c133a","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping5\n{\n \"role_templates\": [\n {\n \"template\": { \"source\": \"{{#tojson}}groups{{/tojson}}\" }, <1>\n \"format\" : \"json\" <2>\n }\n ],\n \"rules\": {\n \"field\" : { \"realm.name\" : \"saml1\" }\n },\n \"enabled\": true\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":275},"digest":"7e5faa551f2c95ffd627da352563d450","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping6\n{\n \"roles\": [ \"example-user\" ],\n \"enabled\": true,\n \"rules\": {\n \"field\" : { \"dn\" : \"*,ou=subtree,dc=example,dc=com\" }\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":290},"digest":"b80e1f5b26bae4f3c2f8a604b7caaf17","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping7\n{\n \"roles\": [ \"ldap-example-user\" ],\n \"enabled\": true,\n \"rules\": {\n \"all\": [\n { \"field\" : { \"dn\" : \"*,ou=subtree,dc=example,dc=com\" } },\n { \"field\" : { \"realm.name\" : \"ldap1\" } }\n ]\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":314},"digest":"0d94d76b7f00d0459d1f8c962c144dcd","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping8\n{\n \"roles\": [ \"superuser\" ],\n \"enabled\": true,\n \"rules\": {\n \"all\": [\n {\n \"any\": [\n {\n \"field\": {\n \"dn\": \"*,ou=admin,dc=example,dc=com\"\n }\n },\n {\n \"field\": {\n \"username\": [ \"es-admin\", \"es-system\" ]\n }\n }\n ]\n },\n {\n \"field\": {\n \"groups\": \"cn=people,dc=example,dc=com\"\n }\n },\n {\n \"except\": {\n \"field\": {\n \"metadata.terminated_date\": null\n }\n }\n }\n ]\n }\n}"},
{"source_location":{"file":"rest-api/security/create-role-mappings.asciidoc","line":364},"digest":"50dc35d3d8705bd62aed20a15209476c","lang":"console","found":["python","js"],"source":"POST /_security/role_mapping/mapping9\n{\n \"rules\": { \"field\": { \"realm.name\": \"cloud-saml\" } },\n \"role_templates\": [\n { \"template\": { \"source\" : \"saml_user\" } }, <1>\n { \"template\": { \"source\" : \"_user_{{username}}\" } }\n ],\n \"enabled\": true\n}"},
{"source_location":{"file":"rest-api/security/create-roles.asciidoc","line":126},"digest":"dcfa7f479a33f459a2d222a92e651451","lang":"console","found":["python","js"],"source":"POST /_security/role/my_admin_role\n{\n \"description\": \"Grants full access to all management features within the cluster.\",\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [ \"index1\", \"index2\" ],\n \"privileges\": [\"all\"],\n \"field_security\" : { // optional\n \"grant\" : [ \"title\", \"body\" ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\" // optional\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [ \"admin\", \"read\" ],\n \"resources\": [ \"*\" ]\n }\n ],\n \"run_as\": [ \"other_user\" ], // optional\n \"metadata\" : { // optional\n \"version\" : 1\n }\n}"},
{"source_location":{"file":"rest-api/security/create-roles.asciidoc","line":159},"digest":"99fbe9dc648835eb750e963f3b5ea9ab","lang":"console-result","found":[],"source":"{\n \"role\": {\n \"created\": true <1>\n }\n}"},
{"source_location":{"file":"rest-api/security/create-roles.asciidoc","line":173},"digest":"3fe4264ace04405989141c43aadfff81","lang":"console","found":["python","js"],"source":"POST /_security/role/cli_or_drivers_minimal\n{\n \"cluster\": [\"cluster:monitor/main\"],\n \"indices\": [\n {\n \"names\": [\"test\"],\n \"privileges\": [\"read\", \"indices:admin/get\"]\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/create-roles.asciidoc","line":189},"digest":"5e021307d331a4483a5aa2198168451b","lang":"console","found":["python","js"],"source":"POST /_security/role/only_remote_access_role\n{\n \"remote_indices\": [\n {\n \"clusters\": [\"my_remote\"], <1>\n \"names\": [\"logs*\"], <2>\n \"privileges\": [\"read\", \"read_cross_cluster\", \"view_index_metadata\"] <3>\n }\n ],\n \"remote_cluster\": [\n {\n \"clusters\": [\"my_remote\"], <1>\n \"privileges\": [\"monitor_stats\"] <4>\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/bulk-create-roles.asciidoc","line":125},"digest":"63bf3480627a89b4b4ede4150e1d6bc0","lang":"console","found":["python","js"],"source":"POST /_security/role\n{\n \"roles\": {\n \"my_admin_role\": {\n \"cluster\": [\n \"all\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index1\",\n \"index2\"\n ],\n \"privileges\": [\n \"all\"\n ],\n \"field_security\": {\n \"grant\": [\n \"title\",\n \"body\"\n ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\"\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [\n \"admin\",\n \"read\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [\n \"other_user\"\n ],\n \"metadata\": {\n \"version\": 1\n }\n },\n \"my_user_role\": {\n \"cluster\": [\n \"all\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index1\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"field_security\": {\n \"grant\": [\n \"title\",\n \"body\"\n ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\"\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [\n \"admin\",\n \"read\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [\n \"other_user\"\n ],\n \"metadata\": {\n \"version\": 1\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/bulk-create-roles.asciidoc","line":218},"digest":"ad65ef718e83aacac44a88c7ead2a330","lang":"console-result","found":[],"source":"{\n \"created\": [ <1>\n \"my_admin_role\", <2>\n \"my_user_role\"\n ]\n}"},
{"source_location":{"file":"rest-api/security/bulk-create-roles.asciidoc","line":236},"digest":"eb9a41f7fc8bdf5559bb9db822ae3a65","lang":"console","found":["python","js"],"source":"POST /_security/role\n{\n \"roles\": {\n \"my_admin_role\": {\n \"cluster\": [\n \"bad_cluster_privilege\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index1\",\n \"index2\"\n ],\n \"privileges\": [\"all\"],\n \"field_security\": {\n \"grant\": [\n \"title\",\n \"body\"\n ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\"\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [\n \"admin\",\n \"read\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [\n \"other_user\"\n ],\n \"metadata\": {\n \"version\": 1\n }\n },\n \"my_user_role\": {\n \"cluster\": [\n \"all\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"index1\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"field_security\": {\n \"grant\": [\n \"title\",\n \"body\"\n ]\n },\n \"query\": \"{\\\"match\\\": {\\\"title\\\": \\\"foo\\\"}}\"\n }\n ],\n \"applications\": [\n {\n \"application\": \"myapp\",\n \"privileges\": [\n \"admin\",\n \"read\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [\n \"other_user\"\n ],\n \"metadata\": {\n \"version\": 1\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/bulk-create-roles.asciidoc","line":327},"digest":"360c6c07d350a2e203698dbf55e05734","lang":"console-result","found":[],"source":"{\n \"created\": [\n \"my_user_role\" <1>\n ],\n \"errors\": { <2>\n \"count\": 1, <3>\n \"details\": {\n \"my_admin_role\": { <4>\n \"type\": \"action_request_validation_exception\",\n \"reason\": \"Validation Failed: 1: unknown cluster privilege [bad_cluster_privilege]. a privilege must be either one of the predefined cluster privilege names [manage_own_api_key,manage_data_stream_global_retention,monitor_data_stream_global_retention,none,cancel_task,cross_cluster_replication,cross_cluster_search,delegate_pki,grant_api_key,manage_autoscaling,manage_index_templates,manage_logstash_pipelines,manage_oidc,manage_saml,manage_search_application,manage_search_query_rules,manage_search_synonyms,manage_service_account,manage_token,manage_user_profile,monitor_connector,monitor_enrich,monitor_inference,monitor_ml,monitor_rollup,monitor_snapshot,monitor_stats,monitor_text_structure,monitor_watcher,post_behavioral_analytics_event,read_ccr,read_connector_secrets,read_fleet_secrets,read_ilm,read_pipeline,read_security,read_slm,transport_client,write_connector_secrets,write_fleet_secrets,create_snapshot,manage_behavioral_analytics,manage_ccr,manage_connector,manage_enrich,manage_ilm,manage_inference,manage_ml,manage_rollup,manage_slm,manage_watcher,monitor_data_frame_transforms,monitor_transform,manage_api_key,manage_ingest_pipelines,manage_pipeline,manage_data_frame_transforms,manage_transform,manage_security,monitor,manage,all] or a pattern over one of the available cluster actions;\"\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/bulk-delete-roles.asciidoc","line":54},"digest":"44385b61342e20ea05f254015b2b04d7","lang":"console","found":["python","js"],"source":"DELETE /_security/role\n{\n \"names\": [\"my_admin_role\", \"my_user_role\"]\n}"},
{"source_location":{"file":"rest-api/security/bulk-delete-roles.asciidoc","line":65},"digest":"8e20a3677911f1d16fb2a843bbf490f9","lang":"console-result","found":[],"source":"{\n \"deleted\": [\n \"my_admin_role\",\n \"my_user_role\"\n ]\n}"},
{"source_location":{"file":"rest-api/security/bulk-delete-roles.asciidoc","line":77},"digest":"5deeed427f35cbaee4b8ddc45002a9d7","lang":"console","found":["python","js"],"source":"DELETE /_security/role\n{\n \"names\": [\"my_admin_role\", \"not_an_existing_role\"]\n}"},
{"source_location":{"file":"rest-api/security/bulk-delete-roles.asciidoc","line":86},"digest":"7a8842333949881d1384abcdca254784","lang":"console-result","found":[],"source":"{\n \"deleted\": [\n \"my_admin_role\"\n ],\n \"not_found\": [\n \"not_an_existing_role\"\n ]\n}"},
{"source_location":{"file":"rest-api/security/bulk-delete-roles.asciidoc","line":100},"digest":"2acf75803494fef29f9ca70671aa6be1","lang":"console","found":["python","js"],"source":"DELETE /_security/role\n{\n \"names\": [\"my_admin_role\", \"superuser\"]\n}"},
{"source_location":{"file":"rest-api/security/bulk-delete-roles.asciidoc","line":110},"digest":"fbb3cabdca03f9d7baf777e77cb543df","lang":"console-result","found":[],"source":"{\n \"deleted\": [\n \"my_admin_role\"\n ],\n \"errors\": {\n \"count\": 1,\n \"details\": {\n \"superuser\": {\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"role [superuser] is reserved and cannot be deleted\"\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/create-users.asciidoc","line":118},"digest":"47e6dfb5b09d954c9c0c33fda2b6c66d","lang":"console","found":["python","js"],"source":"POST /_security/user/jacknich\n{\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\" : [ \"admin\", \"other_role1\" ],\n \"full_name\" : \"Jack Nicholson\",\n \"email\" : \"jacknich@example.com\",\n \"metadata\" : {\n \"intelligence\" : 7\n }\n}"},
{"source_location":{"file":"rest-api/security/create-users.asciidoc","line":135},"digest":"2f6cf7203c981928aa739a504f3589b1","lang":"console-result","found":[],"source":"{\n \"created\": true <1>\n}"},
{"source_location":{"file":"rest-api/security/create-service-token.asciidoc","line":69},"digest":"f978088f5117d4addd55c11ee3777312","lang":"console","found":["python","js"],"source":"POST /_security/service/elastic/fleet-server/credential/token/token1"},
{"source_location":{"file":"rest-api/security/create-service-token.asciidoc","line":76},"digest":"59c4d24b830391c0c0fd0fbce39df151","lang":"console-result","found":[],"source":"{\n \"created\": true,\n \"token\": {\n \"name\": \"token1\",\n \"value\": \"AAEAAWVsYXN0aWM...vZmxlZXQtc2VydmVyL3Rva2VuMTo3TFdaSDZ\" <1>\n }\n}"},
{"source_location":{"file":"rest-api/security/create-service-token.asciidoc","line":103},"digest":"cc56be758d5d75febbd975786187c861","lang":"console","found":["python","js"],"source":"POST /_security/service/elastic/fleet-server/credential/token"},
{"source_location":{"file":"rest-api/security/create-service-token.asciidoc","line":111},"digest":"f7b4379151cfb072be0b422ae651c3ab","lang":"console-result","found":[],"source":"{\n \"created\": true,\n \"token\": {\n \"name\": \"Jk5J1HgBuyBK5TpDrdo4\",\n \"value\": \"AAEAAWVsYXN0aWM...vZmxlZXQtc2VydmVyL3Rva2VuMTo3TFdaSDZ\"\n }\n}"},
{"source_location":{"file":"rest-api/security/delegate-pki-authentication.asciidoc","line":83},"digest":"174b93c323aa8e9cc8ee2a3df5736810","lang":"console","found":[],"source":"POST /_security/delegate_pki\n{\n \"x509_certificate_chain\": [\"MIIDeDCCAmCgAwIBAgIUBzj/nGGKxP2iXawsSquHmQjCJmMwDQYJKoZIhvcNAQELBQAwUzErMCkGA1UEAxMiRWxhc3RpY3NlYXJjaCBUZXN0IEludGVybWVkaWF0ZSBDQTEWMBQGA1UECxMNRWxhc3RpY3NlYXJjaDEMMAoGA1UEChMDb3JnMB4XDTIzMDcxODE5MjkwNloXDTQzMDcxMzE5MjkwNlowSjEiMCAGA1UEAxMZRWxhc3RpY3NlYXJjaCBUZXN0IENsaWVudDEWMBQGA1UECxMNRWxhc3RpY3NlYXJjaDEMMAoGA1UEChMDb3JnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAllHL4pQkkfwAm/oLkxYYO+r950DEy1bjH+4viCHzNADLCTWO+lOZJVlNx7QEzJE3QGMdif9CCBBxQFMapA7oUFCLq84fPSQQu5AnvvbltVD9nwVtCs+9ZGDjMKsz98RhSLMFIkxdxi6HkQ3Lfa4ZSI4lvba4oo+T/GveazBDS+NgmKyq00EOXt3tWi1G9vEVItommzXWfv0agJWzVnLMldwkPqsw0W7zrpyT7FZS4iLbQADGceOW8fiauOGMkscu9zAnDR/SbWl/chYioQOdw6ndFLn1YIFPd37xL0WsdsldTpn0vH3YfzgLMffT/3P6YlwBegWzsx6FnM/93Ecb4wIDAQABo00wSzAJBgNVHRMEAjAAMB0GA1UdDgQWBBQKNRwjW+Ad/FN1Rpoqme/5+jrFWzAfBgNVHSMEGDAWgBRcya0c0x/PaI7MbmJVIylWgLqXNjANBgkqhkiG9w0BAQsFAAOCAQEACZ3PF7Uqu47lplXHP6YlzYL2jL0D28hpj5lGtdha4Muw1m/BjDb0Pu8l0NQ1z3AP6AVcvjNDkQq6Y5jeSz0bwQlealQpYfo7EMXjOidrft1GbqOMFmTBLpLA9SvwYGobSTXWTkJzonqVaTcf80HpMgM2uEhodwTcvz6v1WEfeT/HMjmdIsq4ImrOL9RNrcZG6nWfw0HR3JNOgrbfyEztEI471jHznZ336OEcyX7gQuvHE8tOv5+oD1d7s3Xg1yuFp+Ynh+FfOi3hPCuaHA+7F6fLmzMDLVUBAllugst1C3U+L/paD7tqIa4ka+KNPCbSfwazmJrt4XNiivPR4hwH5g==\"] <1>\n}"},
{"source_location":{"file":"rest-api/security/delegate-pki-authentication.asciidoc","line":94},"digest":"4f1415164aec530ffb78074937f11b5f","lang":"console-result","found":[],"source":"{\n \"access_token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"authentication\" : {\n \"username\" : \"Elasticsearch Test Client\",\n \"roles\" : [ ],\n \"full_name\" : null,\n \"email\" : null,\n \"metadata\" : {\n \"pki_dn\" : \"O=org, OU=Elasticsearch, CN=Elasticsearch Test Client\",\n \"pki_delegated_by_user\" : \"test_admin\",\n \"pki_delegated_by_realm\" : \"file\"\n },\n \"enabled\" : true,\n \"authentication_realm\" : {\n \"name\" : \"pki1\",\n \"type\" : \"pki\"\n },\n \"lookup_realm\" : {\n \"name\" : \"pki1\",\n \"type\" : \"pki\"\n },\n \"authentication_type\" : \"realm\"\n }\n}"},
{"source_location":{"file":"rest-api/security/delete-app-privileges.asciidoc","line":47},"digest":"ebd76a45e153c4656c5871e23b7b5508","lang":"console","found":["python","js"],"source":"DELETE /_security/privilege/myapp/read"},
{"source_location":{"file":"rest-api/security/delete-app-privileges.asciidoc","line":56},"digest":"b8ac8a2f22ee5934b077a82245fa3398","lang":"console-result","found":[],"source":"{\n \"myapp\": {\n \"read\": {\n \"found\" : true\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/delete-role-mappings.asciidoc","line":52},"digest":"261480571394632db40e88fbb6c59c2f","lang":"console","found":["python","js"],"source":"DELETE /_security/role_mapping/mapping1"},
{"source_location":{"file":"rest-api/security/delete-role-mappings.asciidoc","line":61},"digest":"5b5daa97b53b478943b50082703a323a","lang":"console-result","found":[],"source":"{\n \"found\" : true\n}"},
{"source_location":{"file":"rest-api/security/delete-roles.asciidoc","line":46},"digest":"cffce059425d3d21e7f9571500d63524","lang":"console","found":["python","js"],"source":"DELETE /_security/role/my_admin_role"},
{"source_location":{"file":"rest-api/security/delete-roles.asciidoc","line":55},"digest":"5b5daa97b53b478943b50082703a323a","lang":"console-result","found":[],"source":"{\n \"found\" : true\n}"},
{"source_location":{"file":"rest-api/security/delete-service-token.asciidoc","line":53},"digest":"3a5f2e2313614ea9693545edee22ac43","lang":"console","found":["python","js"],"source":"DELETE /_security/service/elastic/fleet-server/credential/token/token42"},
{"source_location":{"file":"rest-api/security/delete-service-token.asciidoc","line":63},"digest":"5b5daa97b53b478943b50082703a323a","lang":"console-result","found":[],"source":"{\n \"found\" : true\n}"},
{"source_location":{"file":"rest-api/security/delete-users.asciidoc","line":45},"digest":"ffd63dd186ab81b893faec3b3358fa09","lang":"console","found":["python","js"],"source":"DELETE /_security/user/jacknich"},
{"source_location":{"file":"rest-api/security/delete-users.asciidoc","line":54},"digest":"5b5daa97b53b478943b50082703a323a","lang":"console-result","found":[],"source":"{\n \"found\" : true\n}"},
{"source_location":{"file":"rest-api/security/disable-users.asciidoc","line":51},"digest":"bb293e1bdf0c6f6d9069eeb7edc9d399","lang":"console","found":["python","js"],"source":"PUT /_security/user/jacknich/_disable"},
{"source_location":{"file":"rest-api/security/enable-users.asciidoc","line":50},"digest":"adf36e2d8fc05c3719c91912481c4e19","lang":"console","found":["python","js"],"source":"PUT /_security/user/jacknich/_enable"},
{"source_location":{"file":"rest-api/security/enroll-kibana.asciidoc","line":34},"digest":"1db715eb00832686ecddb6603684fc26","lang":"console","found":["python","js"],"source":"GET /_security/enroll/kibana"},
{"source_location":{"file":"rest-api/security/enroll-node.asciidoc","line":35},"digest":"61a528b86d38c2f17a172326edf6b53b","lang":"console","found":[],"source":"GET /security/enroll/node"},
{"source_location":{"file":"rest-api/security/enroll-node.asciidoc","line":42},"digest":"3d26be75215c8459bc0b7d983956cd03","lang":"console-result","found":[],"source":"{\n \"http_ca_key\" : \"MIIJlAIBAzCCCVoGCSqGSIb3DQEHAaCCCUsEgglHMIIJQzCCA98GCSqGSIb3DQ....vsDfsA3UZBAjEPfhubpQysAICCAA=\", <1>\n \"http_ca_cert\" : \"MIIJlAIBAzCCCVoGCSqGSIb3DQEHAaCCCUsEgglHMIIJQzCCA98GCSqGSIb3DQ....vsDfsA3UZBAjEPfhubpQysAICCAA=\", <2>\n \"transport_ca_cert\" : \"MIIJlAIBAzCCCVoGCSqGSIb3DQEHAaCCCUsEgglHMIIJQzCCA98GCSqG....vsDfsA3UZBAjEPfhubpQysAICCAA=\", <3>\n \"transport_key\" : \"MIIEJgIBAzCCA98GCSqGSIb3DQEHAaCCA9AEggPMMIIDyDCCA8QGCSqGSIb3....YuEiOXvqZ6jxuVSQ0CAwGGoA==\", <4>\n \"transport_cert\" : \"MIIEJgIBAzCCA98GCSqGSIb3DQEHAaCCA9AEggPMMIIDyDCCA8QGCSqGSIb3....YuEiOXvqZ6jxuVSQ0CAwGGoA==\", <5>\n \"nodes_addresses\" : [ <6>\n \"192.168.1.2:9300\"\n ]\n}"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":98},"digest":"a3a2856ac2338a624a1fa5f31aec4db4","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"my-api-key\",\n \"role_descriptors\": {},\n \"metadata\": {\n \"application\": \"myapp\"\n }\n}"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":113},"digest":"82fb9d0875d69abc2d1724110e60e715","lang":"console-result","found":[],"source":"{\n \"id\":\"VuaCfGcBCdbkQm-e5aOx\",\n \"name\":\"my-api-key\",\n \"api_key\":\"ui2lp2axTNmsyakw9tvNnw\",\n \"encoded\": \"VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw==\"\n}"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":128},"digest":"0881397074d261ccc2db514daf116c31","lang":"console","found":["python","js"],"source":"GET /_security/api_key?id=VuaCfGcBCdbkQm-e5aOx&with_limited_by=true"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":207},"digest":"7b864d61767ab283cfd5f9b9ba784b1f","lang":"console","found":["python","js"],"source":"GET /_security/api_key?name=my-api-key"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":215},"digest":"d1e0fee64389e7c8d4c092030626b61f","lang":"console","found":["python","js"],"source":"GET /_security/api_key?name=my-*"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":223},"digest":"10d9da8a3b7061479be908c8c5c76cfb","lang":"console","found":["python","js"],"source":"GET /_security/api_key?realm_name=native1"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":231},"digest":"62eafc5b3ab75cc67314d5a8567d6077","lang":"console","found":["python","js"],"source":"GET /_security/api_key?username=myuser"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":239},"digest":"9608820dbeac261ba53fb89bb9400560","lang":"console","found":["python","js"],"source":"GET /_security/api_key?owner=true"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":246},"digest":"ca5ae0eb7709f3807bc6239cd4bd9141","lang":"console","found":["python","js"],"source":"GET /_security/api_key"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":253},"digest":"ce8eebfb810335803630abe83278bee7","lang":"console","found":["python","js"],"source":"GET /_security/api_key?active_only=true"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":261},"digest":"87c42ef733a50954e4d757fc0a08decc","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"my-api-key-1\",\n \"metadata\": {\n \"application\": \"my-application\"\n }\n}"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":275},"digest":"dffbbdc4025e5777c647d8818847b960","lang":"console","found":["python","js"],"source":"GET /_security/api_key?id=VuaCfGcBCdbkQm-e5aOx&owner=true"},
{"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":285},"digest":"30abc76a39e551f4b52c65002bb6405d","lang":"console","found":["python","js"],"source":"GET /_security/api_key?username=myuser&realm_name=native1"},
{"source_location":{"file":"rest-api/security/get-app-privileges.asciidoc","line":64},"digest":"cd8006165ac64f1ef99af48e5a35a25b","lang":"console","found":["python","js"],"source":"GET /_security/privilege/myapp/read"},
{"source_location":{"file":"rest-api/security/get-app-privileges.asciidoc","line":73},"digest":"86e449e6a7c3d64f0965b316b9780fad","lang":"console-result","found":[],"source":"{\n \"myapp\": {\n \"read\": {\n \"application\": \"myapp\",\n \"name\": \"read\",\n \"actions\": [\n \"data:read/*\",\n \"action:login\"\n ],\n \"metadata\": {\n \"description\": \"Read access to myapp\"\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/get-app-privileges.asciidoc","line":94},"digest":"3b18e9de638ff0b1c7a1f1f6bf1c24f3","lang":"console","found":["python","js"],"source":"GET /_security/privilege/myapp/"},
{"source_location":{"file":"rest-api/security/get-app-privileges.asciidoc","line":101},"digest":"0ddf705317d9c5095b4a1419a2e3bace","lang":"console","found":["python","js"],"source":"GET /_security/privilege/"},
{"source_location":{"file":"rest-api/security/get-builtin-privileges.asciidoc","line":64},"digest":"2623eb122cc0299b42fc9eca6e7f5e56","lang":"console","found":["python","js"],"source":"GET /_security/privilege/_builtin"},
{"source_location":{"file":"rest-api/security/get-builtin-privileges.asciidoc","line":71},"digest":"ae75e3d5cbc2183d5a704b94b3baea12","lang":"console-result","found":[],"source":"{\n \"cluster\" : [\n \"all\",\n \"cancel_task\",\n \"create_snapshot\",\n \"cross_cluster_replication\",\n \"cross_cluster_search\",\n \"delegate_pki\",\n \"grant_api_key\",\n \"manage\",\n \"manage_api_key\",\n \"manage_autoscaling\",\n \"manage_behavioral_analytics\",\n \"manage_ccr\",\n \"manage_connector\",\n \"manage_data_frame_transforms\",\n \"manage_data_stream_global_retention\",\n \"manage_enrich\",\n \"manage_ilm\",\n \"manage_index_templates\",\n \"manage_inference\",\n \"manage_ingest_pipelines\",\n \"manage_logstash_pipelines\",\n \"manage_ml\",\n \"manage_oidc\",\n \"manage_own_api_key\",\n \"manage_pipeline\",\n \"manage_rollup\",\n \"manage_saml\",\n \"manage_search_application\",\n \"manage_search_query_rules\",\n \"manage_search_synonyms\",\n \"manage_security\",\n \"manage_service_account\",\n \"manage_slm\",\n \"manage_token\",\n \"manage_transform\",\n \"manage_user_profile\",\n \"manage_watcher\",\n \"monitor\",\n \"monitor_connector\",\n \"monitor_data_frame_transforms\",\n \"monitor_data_stream_global_retention\",\n \"monitor_enrich\",\n \"monitor_inference\",\n \"monitor_ml\",\n \"monitor_rollup\",\n \"monitor_snapshot\",\n \"monitor_stats\",\n \"monitor_text_structure\",\n \"monitor_transform\",\n \"monitor_watcher\",\n \"none\",\n \"post_behavioral_analytics_event\",\n \"read_ccr\",\n \"read_connector_secrets\",\n \"read_fleet_secrets\",\n \"read_ilm\",\n \"read_pipeline\",\n \"read_security\",\n \"read_slm\",\n \"transport_client\",\n \"write_connector_secrets\",\n \"write_fleet_secrets\"\n ],\n \"index\" : [\n \"all\",\n \"auto_configure\",\n \"create\",\n \"create_doc\",\n \"create_index\",\n \"cross_cluster_replication\",\n \"cross_cluster_replication_internal\",\n \"delete\",\n \"delete_index\",\n \"index\",\n \"maintenance\",\n \"manage\",\n \"manage_data_stream_lifecycle\",\n \"manage_follow_index\",\n \"manage_ilm\",\n \"manage_leader_index\",\n \"monitor\",\n \"none\",\n \"read\",\n \"read_cross_cluster\",\n \"view_index_metadata\",\n \"write\"\n ],\n \"remote_cluster\" : [\n \"monitor_enrich\",\n \"monitor_stats\"\n ]\n}"},
{"source_location":{"file":"rest-api/security/get-role-mappings.asciidoc","line":70},"digest":"8b3a94495127efd9d56b2cd7f3eecdca","lang":"console","found":["python","js"],"source":"GET /_security/role_mapping/mapping1"},
{"source_location":{"file":"rest-api/security/get-role-mappings.asciidoc","line":77},"digest":"5658fa03086f1969f2e1fbc0215eed77","lang":"console-result","found":[],"source":"{\n \"mapping1\": {\n \"enabled\": true,\n \"roles\": [\n \"user\"\n ],\n \"rules\": {\n \"field\": {\n \"username\": \"*\"\n }\n },\n \"metadata\": {}\n }\n}"},
{"source_location":{"file":"rest-api/security/get-roles.asciidoc","line":64},"digest":"115529722ba30b0b0d51a7ff87e59198","lang":"console","found":["python","js"],"source":"GET /_security/role/my_admin_role"},
{"source_location":{"file":"rest-api/security/get-roles.asciidoc","line":70},"digest":"688b54390c87f5511ebf17f0f81bc66c","lang":"console-result","found":[],"source":"{\n \"my_admin_role\": {\n \"description\": \"Grants full access to all management features within the cluster.\",\n \"cluster\" : [ \"all\" ],\n \"indices\" : [\n {\n \"names\" : [ \"index1\", \"index2\" ],\n \"privileges\" : [ \"all\" ],\n \"allow_restricted_indices\" : false,\n \"field_security\" : {\n \"grant\" : [ \"title\", \"body\" ]}\n }\n ],\n \"applications\" : [ ],\n \"run_as\" : [ \"other_user\" ],\n \"metadata\" : {\n \"version\" : 1\n },\n \"transient_metadata\": {\n \"enabled\": true\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/get-roles.asciidoc","line":99},"digest":"128283698535116931dca9d16a16dca2","lang":"console","found":["python","js"],"source":"GET /_security/role"},
{"source_location":{"file":"rest-api/security/query-role.asciidoc","line":137},"digest":"1ead35c954963e83f89872048dabdbe9","lang":"console","found":["js"],"source":"POST /_security/_query/role\n{\n \"query\": {\n \"bool\": {\n \"must_not\": {\n \"term\": {\n \"metadata._reserved\": true\n }\n }\n }\n },\n \"sort\": [\"name\"]\n}"},
{"source_location":{"file":"rest-api/security/query-role.asciidoc","line":158},"digest":"a003eb0d3ee3ff9b78a38ce14523a3aa","lang":"console-result","found":[],"source":"{\n \"total\": 2,\n \"count\": 2,\n \"roles\": [ <1>\n {\n \"name\" : \"my_admin_role\",\n \"cluster\" : [\n \"all\"\n ],\n \"indices\" : [\n {\n \"names\" : [\n \"index1\",\n \"index2\"\n ],\n \"privileges\" : [\n \"all\"\n ],\n \"field_security\" : {\n \"grant\" : [\n \"title\",\n \"body\"\n ]\n },\n \"allow_restricted_indices\" : false\n }\n ],\n \"applications\" : [ ],\n \"run_as\" : [\n \"other_user\"\n ],\n \"metadata\" : {\n \"version\" : 1\n },\n \"transient_metadata\" : {\n \"enabled\" : true\n },\n \"description\" : \"Grants full access to all management features within the cluster.\",\n \"_sort\" : [\n \"my_admin_role\"\n ]\n },\n {\n \"name\" : \"my_user_role\",\n \"cluster\" : [ ],\n \"indices\" : [\n {\n \"names\" : [\n \"index1\",\n \"index2\"\n ],\n \"privileges\" : [\n \"all\"\n ],\n \"field_security\" : {\n \"grant\" : [\n \"title\",\n \"body\"\n ]\n },\n \"allow_restricted_indices\" : false\n }\n ],\n \"applications\" : [ ],\n \"run_as\" : [ ],\n \"metadata\" : {\n \"version\" : 1\n },\n \"transient_metadata\" : {\n \"enabled\" : true\n },\n \"description\" : \"Grants user access to some indicies.\",\n \"_sort\" : [\n \"my_user_role\"\n ]\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/query-role.asciidoc","line":247},"digest":"95c1b376652533c352bbf793c74d1b08","lang":"console","found":["python","js"],"source":"POST /_security/_query/role\n{\n \"query\": {\n \"match\": {\n \"description\": {\n \"query\": \"user access\"\n }\n }\n },\n \"size\": 1 <1>\n}"},
{"source_location":{"file":"rest-api/security/query-role.asciidoc","line":265},"digest":"65ab5ccd946237b715e5c88bdbea1c61","lang":"console-result","found":[],"source":"{\n \"total\": 2,\n \"count\": 1,\n \"roles\": [\n {\n \"name\" : \"my_user_role\",\n \"cluster\" : [ ],\n \"indices\" : [\n {\n \"names\" : [\n \"index1\",\n \"index2\"\n ],\n \"privileges\" : [\n \"all\"\n ],\n \"field_security\" : {\n \"grant\" : [\n \"title\",\n \"body\"\n ]\n },\n \"allow_restricted_indices\" : false\n }\n ],\n \"applications\" : [ ],\n \"run_as\" : [ ],\n \"metadata\" : {\n \"version\" : 1\n },\n \"transient_metadata\" : {\n \"enabled\" : true\n },\n \"description\" : \"Grants user access to some indicies.\"\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/get-service-accounts.asciidoc","line":63},"digest":"73fa0d6d03cd98ea538fff9e89d99eed","lang":"console","found":["python","js"],"source":"GET /_security/service/elastic/fleet-server"},
{"source_location":{"file":"rest-api/security/get-service-accounts.asciidoc","line":68},"digest":"d76537a5b49430437a65aea534d785aa","lang":"console-result","found":[],"source":"{\n \"elastic/fleet-server\": {\n \"role_descriptor\": {\n \"cluster\": [\n \"monitor\",\n \"manage_own_api_key\",\n \"read_fleet_secrets\",\n \"cluster:admin/xpack/connector/*\"\n ],\n \"indices\": [\n {\n \"names\": [\n \"logs-*\",\n \"metrics-*\",\n \"traces-*\",\n \".logs-endpoint.diagnostic.collection-*\",\n \".logs-endpoint.action.responses-*\",\n \".logs-endpoint.heartbeat-*\"\n ],\n \"privileges\": [\n \"write\",\n \"create_index\",\n \"auto_configure\"\n ],\n \"allow_restricted_indices\": false\n },\n {\n \"names\": [\n \"profiling-*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\"\n ],\n \"allow_restricted_indices\": false\n },\n {\n \"names\": [\n \"traces-apm.sampled-*\"\n ],\n \"privileges\": [\n \"read\",\n \"monitor\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": false\n },\n {\n \"names\": [\n \".fleet-secrets*\"\n ],\n \"privileges\": [\n \"read\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-actions*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-agents*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-artifacts*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-enrollment-api-keys*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-policies*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-policies-leader*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-servers*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \".fleet-fileds*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\"\n ],\n \"allow_restricted_indices\": true\n },\n {\n \"names\": [\n \"synthetics-*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"create_index\",\n \"auto_configure\"\n ],\n \"allow_restricted_indices\": false\n },\n {\n \"names\": [\n \".elastic-connectors*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\",\n \"view_index_metadata\"\n ],\n \"allow_restricted_indices\": false\n },\n {\n \"names\": [\n \"content-*\",\n \".search-acl-filter-*\"\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\",\n \"view_index_metadata\"\n ],\n \"allow_restricted_indices\": false\n },\n {\n \"names\": [\n \"agentless-*\",\n ],\n \"privileges\": [\n \"read\",\n \"write\",\n \"monitor\",\n \"create_index\",\n \"auto_configure\",\n \"maintenance\",\n \"view_index_metadata\"\n ],\n \"allow_restricted_indices\": false\n }\n ],\n \"applications\": [\n {\n \"application\": \"kibana-*\",\n \"privileges\": [\n \"reserved_fleet-setup\"\n ],\n \"resources\": [\n \"*\"\n ]\n }\n ],\n \"run_as\": [],\n \"metadata\": {},\n \"transient_metadata\": {\n \"enabled\": true\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/get-service-accounts.asciidoc","line":320},"digest":"03891265df2111a38e0b6b24c1b967e1","lang":"console","found":["python","js"],"source":"GET /_security/service"},
{"source_location":{"file":"rest-api/security/get-service-credentials.asciidoc","line":56},"digest":"f978088f5117d4addd55c11ee3777312","lang":"console","found":["python","js"],"source":"POST /_security/service/elastic/fleet-server/credential/token/token1"},
{"source_location":{"file":"rest-api/security/get-service-credentials.asciidoc","line":64},"digest":"601ad3b0ceccb3fcd282e5ec36748954","lang":"console","found":["python","js"],"source":"GET /_security/service/elastic/fleet-server/credential"},
{"source_location":{"file":"rest-api/security/get-settings.asciidoc","line":38},"digest":"dd71b0c9f9197684ff29c61062c55660","lang":"console","found":["python","js"],"source":"GET /_security/settings"},
{"source_location":{"file":"rest-api/security/get-tokens.asciidoc","line":117},"digest":"cee591c1fc70d4f180c623a3a6d07755","lang":"console","found":["python","js"],"source":"POST /_security/oauth2/token\n{\n \"grant_type\" : \"client_credentials\"\n}"},
{"source_location":{"file":"rest-api/security/get-tokens.asciidoc","line":128},"digest":"bb2930f9621255f8be3f45b4ca1c3099","lang":"console-result","found":[],"source":"{\n \"access_token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"authentication\" : {\n \"username\" : \"test_admin\",\n \"roles\" : [\n \"superuser\"\n ],\n \"full_name\" : null,\n \"email\" : null,\n \"metadata\" : { },\n \"enabled\" : true,\n \"authentication_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"lookup_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"authentication_type\" : \"realm\"\n }\n}"},
{"source_location":{"file":"rest-api/security/get-tokens.asciidoc","line":172},"digest":"e1337c6b76defd5a46d05220f9d9c9fc","lang":"console","found":["python","js"],"source":"POST /_security/oauth2/token\n{\n \"grant_type\" : \"password\",\n \"username\" : \"test_admin\",\n \"password\" : \"x-pack-test-password\"\n}"},
{"source_location":{"file":"rest-api/security/get-tokens.asciidoc","line":185},"digest":"6ec24dbe165d78b717a958ddff1b31ac","lang":"console-result","found":[],"source":"{\n \"access_token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"refresh_token\": \"vLBPvmAB6KvwvJZr27cS\",\n \"authentication\" : {\n \"username\" : \"test_admin\",\n \"roles\" : [\n \"superuser\"\n ],\n \"full_name\" : null,\n \"email\" : null,\n \"metadata\" : { },\n \"enabled\" : true,\n \"authentication_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"lookup_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"authentication_type\" : \"realm\"\n }\n}"},
{"source_location":{"file":"rest-api/security/get-tokens.asciidoc","line":222},"digest":"d48b274a4b6098ffef0c016c6c945fb9","lang":"console","found":["python","js"],"source":"POST /_security/oauth2/token\n{\n \"grant_type\": \"refresh_token\",\n \"refresh_token\": \"vLBPvmAB6KvwvJZr27cS\"\n}"},
{"source_location":{"file":"rest-api/security/get-tokens.asciidoc","line":236},"digest":"bde59dcb8348376c24b78f9a31190a54","lang":"console-result","found":[],"source":"{\n \"access_token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"refresh_token\": \"vLBPvmAB6KvwvJZr27cS\",\n \"authentication\" : {\n \"username\" : \"test_admin\",\n \"roles\" : [\n \"superuser\"\n ],\n \"full_name\" : null,\n \"email\" : null,\n \"metadata\" : { },\n \"enabled\" : true,\n \"authentication_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"lookup_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"authentication_type\" : \"token\"\n }\n}"},
{"source_location":{"file":"rest-api/security/get-user-privileges.asciidoc","line":40},"digest":"5b191f2dbfa46c774cc9b9b9e8d1d831","lang":"console","found":["python","js"],"source":"GET /_security/user/_privileges"},
{"source_location":{"file":"rest-api/security/get-user-privileges.asciidoc","line":45},"digest":"c55de72ed906c6fe82f3435ac63d2072","lang":"console-result","found":[],"source":"{\n \"cluster\" : [\n \"all\"\n ],\n \"global\" : [ ],\n \"indices\" : [\n {\n \"names\" : [\n \"*\"\n ],\n \"privileges\" : [\n \"all\"\n ],\n \"allow_restricted_indices\" : true\n }\n ],\n \"applications\" : [\n {\n \"application\" : \"*\",\n \"privileges\" : [\n \"*\"\n ],\n \"resources\" : [\n \"*\"\n ]\n }\n ],\n \"run_as\" : [\n \"*\"\n ]\n}"},
{"source_location":{"file":"rest-api/security/get-users.asciidoc","line":68},"digest":"3924ee252581ebb96ac0e60046125ae8","lang":"console","found":["python","js"],"source":"GET /_security/user/jacknich"},
{"source_location":{"file":"rest-api/security/get-users.asciidoc","line":74},"digest":"bac6203259754d2f09c1ebeecc9ded5d","lang":"console-result","found":[],"source":"{\n \"jacknich\": {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\", \"other_role1\"\n ],\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\",\n \"metadata\": { \"intelligence\" : 7 },\n \"enabled\": true\n }\n}"},
{"source_location":{"file":"rest-api/security/get-users.asciidoc","line":92},"digest":"568979150ce18739f8d3ea859355aaa3","lang":"console","found":["python","js"],"source":"GET /_security/user/jacknich?with_profile_uid=true"},
{"source_location":{"file":"rest-api/security/get-users.asciidoc","line":98},"digest":"926c347bc2bcdf127ec8270cb3adb6a8","lang":"console-result","found":[],"source":"{\n \"jacknich\": {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\", \"other_role1\"\n ],\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\",\n \"metadata\": { \"intelligence\" : 7 },\n \"enabled\": true,\n \"profile_uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\"\n }\n}"},
{"source_location":{"file":"rest-api/security/get-users.asciidoc","line":118},"digest":"abdbc81e799e28c833556b1c29f03ba6","lang":"console","found":["python","js"],"source":"GET /_security/user"},
{"source_location":{"file":"rest-api/security/grant-api-keys.asciidoc","line":133},"digest":"249bf48252c8cea47ef872541c8a884c","lang":"console","found":["python","js"],"source":"POST /_security/api_key/grant\n{\n \"grant_type\": \"password\",\n \"username\" : \"test_admin\",\n \"password\" : \"x-pack-test-password\",\n \"api_key\" : {\n \"name\": \"my-api-key\",\n \"expiration\": \"1d\",\n \"role_descriptors\": {\n \"role-a\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-a*\"],\n \"privileges\": [\"read\"]\n }\n ]\n },\n \"role-b\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-b*\"],\n \"privileges\": [\"all\"]\n }\n ]\n }\n },\n \"metadata\": {\n \"application\": \"my-application\",\n \"environment\": {\n \"level\": 1,\n \"trusted\": true,\n \"tags\": [\"dev\", \"staging\"]\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/grant-api-keys.asciidoc","line":178},"digest":"91c925fc71abe0ddfe52457e9130363b","lang":"console","found":["python","js"],"source":"POST /_security/api_key/grant\n{\n \"grant_type\": \"password\",\n \"username\" : \"test_admin\", <1>\n \"password\" : \"x-pack-test-password\", <2>\n \"run_as\": \"test_user\", <3>\n \"api_key\" : {\n \"name\": \"another-api-key\"\n }\n}"},
{"source_location":{"file":"rest-api/security/has-privileges.asciidoc","line":75},"digest":"9684e5fa8c22a07a372feb6fc1f5f7c0","lang":"console","found":["python","js"],"source":"GET /_security/user/_has_privileges\n{\n \"cluster\": [ \"monitor\", \"manage\" ],\n \"index\" : [\n {\n \"names\": [ \"suppliers\", \"products\" ],\n \"privileges\": [ \"read\" ]\n },\n {\n \"names\": [ \"inventory\" ],\n \"privileges\" : [ \"read\", \"write\" ]\n }\n ],\n \"application\": [\n {\n \"application\": \"inventory_manager\",\n \"privileges\" : [ \"read\", \"data:write/inventory\" ],\n \"resources\" : [ \"product/1852563\" ]\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/has-privileges.asciidoc","line":102},"digest":"099336bd3e681efc691078a0300781a5","lang":"console-result","found":[],"source":"{\n \"username\": \"rdeniro\",\n \"has_all_requested\" : false,\n \"cluster\" : {\n \"monitor\" : true,\n \"manage\" : false\n },\n \"index\" : {\n \"suppliers\" : {\n \"read\" : true\n },\n \"products\" : {\n \"read\" : true\n },\n \"inventory\" : {\n \"read\" : true,\n \"write\" : false\n }\n },\n \"application\" : {\n \"inventory_manager\" : {\n \"product/1852563\" : {\n \"read\": false,\n \"data:write/inventory\": false\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":89},"digest":"0aff04881be21eea45375ec4f4f50e66","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"my-api-key\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":100},"digest":"2e7c8437de4fb8053b5307bd3141e904","lang":"console-result","found":[],"source":"{\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\",\n \"name\": \"my-api-key\",\n \"api_key\": \"ui2lp2axTNmsyakw9tvNnw\",\n \"encoded\": \"VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw==\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":116},"digest":"1ff12523efbd59c213c676937757c460","lang":"console","found":["python","js"],"source":"DELETE /_security/api_key\n{\n \"ids\" : [ \"VuaCfGcBCdbkQm-e5aOx\" ]\n}"},
{"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":129},"digest":"f388e571224dd6850f8c9f9f08fca3da","lang":"console","found":["python","js"],"source":"DELETE /_security/api_key\n{\n \"name\" : \"my-api-key\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":140},"digest":"dde283eab92608e7bfbfa09c6482a12e","lang":"console","found":["python","js"],"source":"DELETE /_security/api_key\n{\n \"realm_name\" : \"native1\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":151},"digest":"e7d819634d765cde269e2669e2dc677f","lang":"console","found":["python","js"],"source":"DELETE /_security/api_key\n{\n \"username\" : \"myuser\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":162},"digest":"b22559a7c319f90bc63a41cac1c39b4c","lang":"console","found":["python","js"],"source":"DELETE /_security/api_key\n{\n \"ids\" : [\"VuaCfGcBCdbkQm-e5aOx\"],\n \"owner\" : \"true\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":174},"digest":"cfad3631be0634ee49c424f9ccec62d9","lang":"console","found":["python","js"],"source":"DELETE /_security/api_key\n{\n \"owner\" : \"true\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":185},"digest":"6c927313867647e0ef3cd3a37cb410cc","lang":"console","found":["python","js"],"source":"DELETE /_security/api_key\n{\n \"username\" : \"myuser\",\n \"realm_name\" : \"native1\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":78},"digest":"cee591c1fc70d4f180c623a3a6d07755","lang":"console","found":["python","js"],"source":"POST /_security/oauth2/token\n{\n \"grant_type\" : \"client_credentials\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":88},"digest":"f062ee568353dd9f38abcede73e82f92","lang":"console-result","found":[],"source":"{\n \"access_token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"authentication\" : {\n \"username\" : \"test_admin\",\n \"roles\" : [\n \"superuser\"\n ],\n \"full_name\" : null,\n \"email\" : null,\n \"metadata\" : { },\n \"enabled\" : true,\n \"authentication_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"lookup_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"authentication_type\" : \"realm\"\n }\n}"},
{"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":121},"digest":"dbf9abc37899352751dab0ede62af2fd","lang":"console","found":["python","js"],"source":"DELETE /_security/oauth2/token\n{\n \"token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":134},"digest":"e1337c6b76defd5a46d05220f9d9c9fc","lang":"console","found":["python","js"],"source":"POST /_security/oauth2/token\n{\n \"grant_type\" : \"password\",\n \"username\" : \"test_admin\",\n \"password\" : \"x-pack-test-password\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":146},"digest":"95af049c46396a02bc028e15675584c7","lang":"console-result","found":[],"source":"{\n \"access_token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"type\" : \"Bearer\",\n \"expires_in\" : 1200,\n \"refresh_token\": \"vLBPvmAB6KvwvJZr27cS\",\n \"authentication\" : {\n \"username\" : \"test_admin\",\n \"roles\" : [\n \"superuser\"\n ],\n \"full_name\" : null,\n \"email\" : null,\n \"metadata\" : { },\n \"enabled\" : true,\n \"authentication_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"lookup_realm\" : {\n \"name\" : \"file\",\n \"type\" : \"file\"\n },\n \"authentication_type\" : \"realm\"\n }\n}"},
{"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":181},"digest":"0c6f9c9da75293fae69659ac1d6329de","lang":"console","found":["python","js"],"source":"DELETE /_security/oauth2/token\n{\n \"refresh_token\" : \"vLBPvmAB6KvwvJZr27cS\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":194},"digest":"4bc4db44b8c74610b73f21a421099a13","lang":"console","found":["python","js"],"source":"DELETE /_security/oauth2/token\n{\n \"realm_name\" : \"saml1\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":205},"digest":"0280247e0cf2e561c548f22c9fb31163","lang":"console","found":["python","js"],"source":"DELETE /_security/oauth2/token\n{\n \"username\" : \"myuser\"\n}"},
{"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":216},"digest":"6dd2a107bc64fd6f058fb17c21640649","lang":"console","found":["python","js"],"source":"DELETE /_security/oauth2/token\n{\n \"username\" : \"myuser\",\n \"realm_name\" : \"saml1\"\n}"},
{"source_location":{"file":"rest-api/security/oidc-prepare-authentication-api.asciidoc","line":78},"digest":"e3019fd5f23458ae49ad9854c97d321c","lang":"console","found":["python","js"],"source":"POST /_security/oidc/prepare\n{\n \"realm\" : \"oidc1\"\n}"},
{"source_location":{"file":"rest-api/security/oidc-prepare-authentication-api.asciidoc","line":89},"digest":"52ad0524d2c48f08df49cd97f626eb80","lang":"console-result","found":[],"source":"{\n \"redirect\" : \"http://127.0.0.1:8080/c2id-login?scope=openid&response_type=id_token&redirect_uri=https%3A%2F%2Fmy.fantastic.rp%2Fcb&state=4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I&nonce=WaBPH0KqPVdG5HHdSxPRjfoZbXMCicm5v1OiAj0DUFM&client_id=elasticsearch-rp\",\n \"state\" : \"4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I\",\n \"nonce\" : \"WaBPH0KqPVdG5HHdSxPRjfoZbXMCicm5v1OiAj0DUFM\",\n \"realm\" : \"oidc1\"\n}"},
{"source_location":{"file":"rest-api/security/oidc-prepare-authentication-api.asciidoc","line":106},"digest":"57dc15e5ad663c342fd5c1d86fcd1b29","lang":"console","found":["python","js"],"source":"POST /_security/oidc/prepare\n{\n \"realm\" : \"oidc1\",\n \"state\" : \"lGYK0EcSLjqH6pkT5EVZjC6eIW5YCGgywj2sxROO\",\n \"nonce\" : \"zOBXLJGUooRrbLbQk5YCcyC8AXw3iloynvluYhZ5\"\n}"},
{"source_location":{"file":"rest-api/security/oidc-prepare-authentication-api.asciidoc","line":119},"digest":"17688a05da0b77d24215557d94b55932","lang":"console-result","found":[],"source":"{\n \"redirect\" : \"http://127.0.0.1:8080/c2id-login?scope=openid&response_type=id_token&redirect_uri=https%3A%2F%2Fmy.fantastic.rp%2Fcb&state=lGYK0EcSLjqH6pkT5EVZjC6eIW5YCGgywj2sxROO&nonce=zOBXLJGUooRrbLbQk5YCcyC8AXw3iloynvluYhZ5&client_id=elasticsearch-rp\",\n \"state\" : \"lGYK0EcSLjqH6pkT5EVZjC6eIW5YCGgywj2sxROO\",\n \"nonce\" : \"zOBXLJGUooRrbLbQk5YCcyC8AXw3iloynvluYhZ5\",\n \"realm\" : \"oidc1\"\n}"},
{"source_location":{"file":"rest-api/security/oidc-prepare-authentication-api.asciidoc","line":134},"digest":"d35c8cf7a98b3f112e1de8797ec6689d","lang":"console","found":["python","js"],"source":"POST /_security/oidc/prepare\n{\n \"iss\" : \"http://127.0.0.1:8080\",\n \"login_hint\": \"this_is_an_opaque_string\"\n}"},
{"source_location":{"file":"rest-api/security/oidc-prepare-authentication-api.asciidoc","line":146},"digest":"bce7bc9c3c18574531fe813fff284e32","lang":"console-result","found":[],"source":"{\n \"redirect\" : \"http://127.0.0.1:8080/c2id-login?login_hint=this_is_an_opaque_string&scope=openid&response_type=id_token&redirect_uri=https%3A%2F%2Fmy.fantastic.rp%2Fcb&state=4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I&nonce=WaBPH0KqPVdG5HHdSxPRjfoZbXMCicm5v1OiAj0DUFM&client_id=elasticsearch-rp\",\n \"state\" : \"4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I\",\n \"nonce\" : \"WaBPH0KqPVdG5HHdSxPRjfoZbXMCicm5v1OiAj0DUFM\",\n \"realm\" : \"oidc1\"\n}"},
{"source_location":{"file":"rest-api/security/oidc-authenticate-api.asciidoc","line":74},"digest":"9c01db07c9ac395b6370e3b33965c21f","lang":"console","found":["python","js"],"source":"POST /_security/oidc/authenticate\n{\n \"redirect_uri\" : \"https://oidc-kibana.elastic.co:5603/api/security/oidc/callback?code=jtI3Ntt8v3_XvcLzCFGq&state=4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I\",\n \"state\" : \"4dbrihtIAt3wBTwo6DxK-vdk-sSyDBV8Yf0AjdkdT5I\",\n \"nonce\" : \"WaBPH0KqPVdG5HHdSxPRjfoZbXMCicm5v1OiAj0DUFM\",\n \"realm\" : \"oidc1\"\n}"},
{"source_location":{"file":"rest-api/security/oidc-logout-api.asciidoc","line":53},"digest":"2a1eece9a59ac1773edcf0a932c26de0","lang":"console","found":["python","js"],"source":"POST /_security/oidc/logout\n{\n \"token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"refresh_token\": \"vLBPvmAB6KvwvJZr27cS\"\n}"},
{"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":295},"digest":"1a8d92e93481c432a91f7c213099800a","lang":"console","found":["python","js"],"source":"GET /_security/_query/api_key"},
{"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":373},"digest":"386eb7dcd3149db82605bf22c5d851bf","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"application-key-1\",\n \"metadata\": { \"application\": \"my-application\"}\n}"},
{"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":385},"digest":"a0573663116a1d2e75aa7df8d4d3c99f","lang":"console-result","found":[],"source":"{\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\",\n \"name\": \"application-key-1\",\n \"api_key\": \"ui2lp2axTNmsyakw9tvNnw\",\n \"encoded\": \"VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw==\"\n}"},
{"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":400},"digest":"de90249caeac6f1601a7e7e9f98f1bec","lang":"console","found":["python","js"],"source":"GET /_security/_query/api_key?with_limited_by=true\n{\n \"query\": {\n \"ids\": {\n \"values\": [\n \"VuaCfGcBCdbkQm-e5aOx\"\n ]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":474},"digest":"d4323be84152fa91abd76e966d4751dc","lang":"console","found":["python","js"],"source":"GET /_security/_query/api_key\n{\n \"query\": {\n \"term\": {\n \"name\": {\n \"value\": \"application-key-1\"\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":613},"digest":"1d252d9217c61c2c1cbe7a92f77b078f","lang":"console","found":["python","js"],"source":"POST /_security/_query/api_key\n{\n \"size\": 0,\n \"query\": {\n \"bool\": {\n \"must\": {\n \"term\": {\n \"invalidated\": false <1>\n }\n },\n \"should\": [ <2>\n {\n \"range\": { \"expiration\": { \"gte\": \"now\" } }\n },\n {\n \"bool\": { \"must_not\": { \"exists\": { \"field\": \"expiration\" } } }\n }\n ],\n \"minimum_should_match\": 1\n }\n },\n \"aggs\": {\n \"keys_by_username\": {\n \"composite\": {\n \"sources\": [ { \"usernames\": { \"terms\": { \"field\": \"username\" } } } ] <3>\n },\n \"aggs\": {\n \"expires_soon\": {\n \"filter\": {\n \"range\": { \"expiration\": { \"lte\": \"now+30d/d\" } } <4>\n },\n \"aggs\": {\n \"key_names\": { \"terms\": { \"field\": \"name\" } }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":663},"digest":"a4e2dcb11fd055558ea4848de5953bb9","lang":"console-result","found":[],"source":"{\n \"total\" : 4, <1>\n \"count\" : 0,\n \"api_keys\" : [ ],\n \"aggregations\" : {\n \"keys_by_username\" : {\n \"after_key\" : {\n \"usernames\" : \"king\"\n },\n \"buckets\" : [\n {\n \"key\" : {\n \"usernames\" : \"june\"\n },\n \"doc_count\" : 2, <2>\n \"expires_soon\" : {\n \"doc_count\" : 1,\n \"key_names\" : {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\" : [\n {\n \"key\" : \"june-key-10\",\n \"doc_count\" : 1\n }\n ]\n }\n }\n },\n {\n \"key\" : {\n \"usernames\" : \"king\"\n },\n \"doc_count\" : 2,\n \"expires_soon\" : {\n \"doc_count\" : 1, <3>\n \"key_names\" : {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\" : [ <4>\n {\n \"key\" : \"king-key-10\",\n \"doc_count\" : 1\n }\n ]\n }\n }\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":729},"digest":"2b5c69778eb3daba9fbd7242bcc2daf9","lang":"console","found":["python","js"],"source":"POST /_security/_query/api_key\n{\n \"size\": 0,\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"term\": {\n \"invalidated\": true\n }\n }\n }\n },\n \"aggs\": {\n \"invalidated_keys\": {\n \"composite\": {\n \"sources\": [\n { \"username\": { \"terms\": { \"field\": \"username\" } } },\n { \"key_name\": { \"terms\": { \"field\": \"name\" } } }\n ]\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":758},"digest":"a35c21134ca47d39b8442f5497b289f5","lang":"console-result","found":[],"source":"{\n \"total\" : 2,\n \"count\" : 0,\n \"api_keys\" : [ ],\n \"aggregations\" : {\n \"invalidated_keys\" : {\n \"after_key\" : {\n \"username\" : \"king\",\n \"key_name\" : \"king-key-no-expire\"\n },\n \"buckets\" : [\n {\n \"key\" : {\n \"username\" : \"june\",\n \"key_name\" : \"june-key-100\"\n },\n \"doc_count\" : 1\n },\n {\n \"key\" : {\n \"username\" : \"king\",\n \"key_name\" : \"king-key-no-expire\"\n },\n \"doc_count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/query-user.asciidoc","line":117},"digest":"88a283dfccc481f1afba79d9b3c61f51","lang":"console","found":["python","js"],"source":"GET /_security/_query/user"},
{"source_location":{"file":"rest-api/security/query-user.asciidoc","line":126},"digest":"f483a0503bad0d9977abd1c74d59b3ff","lang":"console-result","found":[],"source":"{\n \"total\": 2,\n \"count\": 2,\n \"users\": [ <1>\n {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\",\n \"other_role1\"\n ],\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\",\n \"metadata\": {\n \"intelligence\": 7\n },\n \"enabled\": true\n },\n {\n \"username\": \"sandrakn\",\n \"roles\": [\n \"admin\",\n \"other_role1\"\n ],\n \"full_name\": \"Sandra Knight\",\n \"email\": \"sandrakn@example.com\",\n \"metadata\": {\n \"intelligence\": 7\n },\n \"enabled\": true\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/query-user.asciidoc","line":167},"digest":"47e6dfb5b09d954c9c0c33fda2b6c66d","lang":"console","found":["python","js"],"source":"POST /_security/user/jacknich\n{\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\" : [ \"admin\", \"other_role1\" ],\n \"full_name\" : \"Jack Nicholson\",\n \"email\" : \"jacknich@example.com\",\n \"metadata\" : {\n \"intelligence\" : 7\n }\n}"},
{"source_location":{"file":"rest-api/security/query-user.asciidoc","line":183},"digest":"b5338124305e0319cded4717afab8c9d","lang":"console-result","found":[],"source":"{\n \"created\": true\n}"},
{"source_location":{"file":"rest-api/security/query-user.asciidoc","line":192},"digest":"e4ea514eb9a01716d9bbc5aa04ee0252","lang":"console","found":["python","js"],"source":"POST /_security/_query/user\n{\n \"query\": {\n \"prefix\": {\n \"roles\": \"other\"\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/query-user.asciidoc","line":206},"digest":"b1d3b51fdfd4891371b7b3f8cc4e99a3","lang":"console-result","found":[],"source":"{\n \"total\": 1,\n \"count\": 1,\n \"users\": [\n {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\",\n \"other_role1\"\n ],\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\",\n \"metadata\": {\n \"intelligence\": 7\n },\n \"enabled\": true\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/query-user.asciidoc","line":232},"digest":"10a16abe990288253ea25a1b1712fe3d","lang":"console","found":["python","js"],"source":"POST /_security/_query/user?with_profile_uid=true\n{\n \"query\": {\n \"prefix\": {\n \"roles\": \"other\"\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/query-user.asciidoc","line":245},"digest":"f87b4de9daf3791178a5b4146abc7e59","lang":"console-result","found":[],"source":"{\n \"total\": 1,\n \"count\": 1,\n \"users\": [\n {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\",\n \"other_role1\"\n ],\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\",\n \"metadata\": {\n \"intelligence\": 7\n },\n \"enabled\": true,\n \"profile_uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\"\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":92},"digest":"3e121b43773cbb6dffa9b483c86a1f8d","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"my-api-key\",\n \"role_descriptors\": {\n \"role-a\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-a*\"],\n \"privileges\": [\"read\"]\n }\n ]\n }\n },\n \"metadata\": {\n \"application\": \"my-application\",\n \"environment\": {\n \"level\": 1,\n \"trusted\": true,\n \"tags\": [\"dev\", \"staging\"]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":122},"digest":"2e7c8437de4fb8053b5307bd3141e904","lang":"console-result","found":[],"source":"{\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\",\n \"name\": \"my-api-key\",\n \"api_key\": \"ui2lp2axTNmsyakw9tvNnw\",\n \"encoded\": \"VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw==\"\n}"},
{"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":154},"digest":"76bc87c2592864152768687c2963d1d1","lang":"console","found":["python","js"],"source":"PUT /_security/api_key/VuaCfGcBCdbkQm-e5aOx\n{\n \"role_descriptors\": {\n \"role-a\": {\n \"indices\": [\n {\n \"names\": [\"*\"],\n \"privileges\": [\"write\"]\n }\n ]\n }\n },\n \"metadata\": {\n \"environment\": {\n \"level\": 2,\n \"trusted\": true,\n \"tags\": [\"production\"]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":182},"digest":"95e65c9325e827594b2135ac85b26c4a","lang":"console-result","found":[],"source":"{\n \"updated\": true\n}"},
{"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":206},"digest":"62ccee6ad356428c2d625742f961ceb7","lang":"console","found":["python","js"],"source":"PUT /_security/api_key/VuaCfGcBCdbkQm-e5aOx\n{\n \"role_descriptors\": {}\n}"},
{"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":217},"digest":"95e65c9325e827594b2135ac85b26c4a","lang":"console-result","found":[],"source":"{\n \"updated\": true\n}"},
{"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":258},"digest":"e2ec9e867f7141b304b53ebc59098f2a","lang":"console","found":["python","js"],"source":"PUT /_security/api_key/VuaCfGcBCdbkQm-e5aOx"},
{"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":266},"digest":"95e65c9325e827594b2135ac85b26c4a","lang":"console-result","found":[],"source":"{\n \"updated\": true\n}"},
{"source_location":{"file":"rest-api/security/update-settings.asciidoc","line":56},"digest":"c54597143ac86540726f6422fd98b22e","lang":"console","found":["python","js"],"source":"PUT /_security/settings\n{\n \"security\": {\n \"index.auto_expand_replicas\": \"0-all\"\n },\n \"security-tokens\": {\n \"index.auto_expand_replicas\": \"0-all\"\n },\n \"security-profile\": {\n \"index.auto_expand_replicas\": \"0-all\"\n }\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":87},"digest":"3e121b43773cbb6dffa9b483c86a1f8d","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"my-api-key\",\n \"role_descriptors\": {\n \"role-a\": {\n \"cluster\": [\"all\"],\n \"indices\": [\n {\n \"names\": [\"index-a*\"],\n \"privileges\": [\"read\"]\n }\n ]\n }\n },\n \"metadata\": {\n \"application\": \"my-application\",\n \"environment\": {\n \"level\": 1,\n \"trusted\": true,\n \"tags\": [\"dev\", \"staging\"]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":116},"digest":"2e7c8437de4fb8053b5307bd3141e904","lang":"console-result","found":[],"source":"{\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\",\n \"name\": \"my-api-key\",\n \"api_key\": \"ui2lp2axTNmsyakw9tvNnw\",\n \"encoded\": \"VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw==\"\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":131},"digest":"dc468865da947b4a9136a5b92878d918","lang":"console","found":["python","js"],"source":"POST /_security/api_key\n{\n \"name\": \"my-other-api-key\",\n \"metadata\": {\n \"application\": \"my-application\",\n \"environment\": {\n \"level\": 2,\n \"trusted\": true,\n \"tags\": [\"dev\", \"staging\"]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":149},"digest":"0fae916a1c7ae0baed2501a7cc47d632","lang":"console-result","found":[],"source":"{\n \"id\": \"H3_AhoIBA9hmeQJdg7ij\",\n \"name\": \"my-other-api-key\",\n \"api_key\": \"134G4ilmT_uGWXHRfJfXXA\",\n \"encoded\": \"SDNfQWhvSUJBOWhtZVFKZGc3aWo6MTM0RzRpbG1UX3VHV1hIUmZKZlhYQQ==\"\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":182},"digest":"80dd7f5882c59b9c1c90e8351937441f","lang":"console","found":["python","js"],"source":"POST /_security/api_key/_bulk_update\n{\n \"ids\": [\n \"VuaCfGcBCdbkQm-e5aOx\",\n \"H3_AhoIBA9hmeQJdg7ij\"\n ],\n \"role_descriptors\": {\n \"role-a\": {\n \"indices\": [\n {\n \"names\": [\"*\"],\n \"privileges\": [\"write\"]\n }\n ]\n }\n },\n \"metadata\": {\n \"environment\": {\n \"level\": 2,\n \"trusted\": true,\n \"tags\": [\"production\"]\n }\n },\n \"expiration\": \"30d\"\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":214},"digest":"7d6672bc04255423f2579d9256492d74","lang":"console-result","found":[],"source":"{\n \"updated\": [\n \"VuaCfGcBCdbkQm-e5aOx\",\n \"H3_AhoIBA9hmeQJdg7ij\"\n ],\n \"noops\": []\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":242},"digest":"c580990a70028bb49cca8a6bde86bbf6","lang":"console","found":["python","js"],"source":"POST /_security/api_key/_bulk_update\n{\n \"ids\": [\n \"VuaCfGcBCdbkQm-e5aOx\",\n \"H3_AhoIBA9hmeQJdg7ij\"\n ],\n \"role_descriptors\": {}\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":257},"digest":"7d6672bc04255423f2579d9256492d74","lang":"console-result","found":[],"source":"{\n \"updated\": [\n \"VuaCfGcBCdbkQm-e5aOx\",\n \"H3_AhoIBA9hmeQJdg7ij\"\n ],\n \"noops\": []\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":302},"digest":"6f3b723bf6179b96c3413597ed7f49e1","lang":"console","found":["python","js"],"source":"POST /_security/api_key/_bulk_update\n{\n \"ids\": [\n \"VuaCfGcBCdbkQm-e5aOx\",\n \"H3_AhoIBA9hmeQJdg7ij\"\n ]\n}"},
{"source_location":{"file":"rest-api/security/bulk-update-api-keys.asciidoc","line":316},"digest":"7d6672bc04255423f2579d9256492d74","lang":"console-result","found":[],"source":"{\n \"updated\": [\n \"VuaCfGcBCdbkQm-e5aOx\",\n \"H3_AhoIBA9hmeQJdg7ij\"\n ],\n \"noops\": []\n}"},
{"source_location":{"file":"rest-api/security/saml-prepare-authentication-api.asciidoc","line":85},"digest":"a5dfcfd1cfb3558e7912456669c92eee","lang":"console","found":["python","js"],"source":"POST /_security/saml/prepare\n{\n \"realm\" : \"saml1\"\n}"},
{"source_location":{"file":"rest-api/security/saml-prepare-authentication-api.asciidoc","line":96},"digest":"da3f280bc65b581fb3097be768061bee","lang":"console","found":["python","js"],"source":"POST /_security/saml/prepare\n{\n \"acs\" : \"https://kibana.org/api/security/saml/callback\"\n}"},
{"source_location":{"file":"rest-api/security/saml-authenticate-api.asciidoc","line":89},"digest":"8e208098a0156c4c92afe0a06960b230","lang":"console","found":["python","js"],"source":"POST /_security/saml/authenticate\n{\n \"content\" : \"PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMD.....\",\n \"ids\" : [\"4fee3b046395c4e751011e97f8900b5273d56685\"]\n}"},
{"source_location":{"file":"rest-api/security/saml-logout-api.asciidoc","line":72},"digest":"8d4dda5d988d568f4f4210a6387e026f","lang":"console","found":["python","js"],"source":"POST /_security/saml/logout\n{\n \"token\" : \"46ToAxZVaXVVZTVKOVF5YU04ZFJVUDVSZlV3\",\n \"refresh_token\" : \"mJdXLtmvTUSpoLwMvdBt_w\"\n}"},
{"source_location":{"file":"rest-api/security/saml-invalidate-api.asciidoc","line":88},"digest":"afc0a9cffc0100797a3f093094394763","lang":"console","found":["python","js"],"source":"POST /_security/saml/invalidate\n{\n \"query_string\" : \"SAMLRequest=nZFda4MwFIb%2FiuS%2BmviRpqFaClKQdbvo2g12M2KMraCJ9cRR9utnW4Wyi13sMie873MeznJ1aWrnS3VQGR0j4mLkKC1NUeljjA77zYyhVbIE0dR%2By7fmaHq7U%2BdegXWGpAZ%2B%2F4pR32luBFTAtWgUcCv56%2Fp5y30X87Yz1khTIycdgpUW9kY7WdsC9zxoXTvMvWuVV98YyMnSGH2SYE5pwALBIr9QKiwDGpW0oGVUznGeMyJZKFkQ4jBf5HnhUymjIhzCAL3KNFihbYx8TBYzzGaY7EnIyZwHzCWMfiDnbRIftkSjJr%2BFu0e9v%2B0EgOquRiiZjKpiVFp6j50T4WXoyNJ%2FEWC9fdqc1t%2F1%2B2F3aUpjzhPiXpqMz1%2FHSn4A&SigAlg=http%3A%2F%2Fwww.w3.org%2F2001%2F04%2Fxmldsig-more%23rsa-sha256&Signature=MsAYz2NFdovMG2mXf6TSpu5vlQQyEJAg%2B4KCwBqJTmrb3yGXKUtIgvjqf88eCAK32v3eN8vupjPC8LglYmke1ZnjK0%2FKxzkvSjTVA7mMQe2AQdKbkyC038zzRq%2FYHcjFDE%2Bz0qISwSHZY2NyLePmwU7SexEXnIz37jKC6NMEhus%3D\",\n \"realm\" : \"saml1\"\n}"},
{"source_location":{"file":"rest-api/security/saml-complete-logout-api.asciidoc","line":75},"digest":"e0d4a800de2d8f4062e69433586c38db","lang":"console","found":["python","js"],"source":"POST /_security/saml/complete_logout\n{\n \"realm\": \"saml1\",\n \"ids\": [ \"_1c368075e0b3...\" ],\n \"query_string\": \"SAMLResponse=fZHLasMwEEVbfb1bf...&SigAlg=http%3A%2F%2Fwww.w3.org%2F2000%2F09%2Fxmldsig%23rsa-sha1&Signature=CuCmFn%2BLqnaZGZJqK...\"\n}"},
{"source_location":{"file":"rest-api/security/saml-complete-logout-api.asciidoc","line":89},"digest":"d46e9739bbf25eb2f7225f58ab08b2a7","lang":"console","found":["python","js"],"source":"POST /_security/saml/complete_logout\n{\n \"realm\": \"saml1\",\n \"ids\": [ \"_1c368075e0b3...\" ],\n \"content\": \"PHNhbWxwOkxvZ291dFJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46...\"\n}"},
{"source_location":{"file":"rest-api/security/saml-sp-metadata.asciidoc","line":48},"digest":"31ab4ec26176857280af630bf84a2823","lang":"console","found":["python","js"],"source":"GET /_security/saml/metadata/saml1"},
{"source_location":{"file":"rest-api/security/saml-sp-metadata.asciidoc","line":54},"digest":"060a6c5cdfd519ab2810cee34f5fca5e","lang":"console-result","found":[],"source":"{\n \"metadata\" : \"\"\n}"},
{"source_location":{"file":"rest-api/security/ssl.asciidoc","line":90},"digest":"05f6049c677a156bdf9b83e71a3b87ed","lang":"console","found":["python","js"],"source":"GET /_ssl/certificates"},
{"source_location":{"file":"rest-api/security/activate-user-profile.asciidoc","line":104},"digest":"0721c8adec544d5ecea3fcc410e45feb","lang":"console","found":["python","js"],"source":"POST /_security/profile/_activate\n{\n \"grant_type\": \"password\",\n \"username\" : \"jacknich\",\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\"\n}"},
{"source_location":{"file":"rest-api/security/activate-user-profile.asciidoc","line":117},"digest":"d62bdebea0ec3146ef3f981f02ae6ab9","lang":"console-result","found":[],"source":"{\n \"uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\",\n \"enabled\": true,\n \"last_synchronized\": 1642650651037,\n \"user\": {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\", \"other_role1\"\n ],\n \"realm_name\": \"native\",\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\"\n },\n \"labels\": {},\n \"data\": {},\n \"_doc\": {\n \"_primary_term\": 88,\n \"_seq_no\": 66\n }\n}"},
{"source_location":{"file":"rest-api/security/disable-user-profile.asciidoc","line":65},"digest":"baadbfffcd0c16f51eb3537f516dc3ed","lang":"console","found":["python","js"],"source":"POST /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0/_disable"},
{"source_location":{"file":"rest-api/security/enable-user-profile.asciidoc","line":60},"digest":"7a0c633a67244e9703344d036e584d95","lang":"console","found":["python","js"],"source":"POST /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0/_enable"},
{"source_location":{"file":"rest-api/security/get-user-profile.asciidoc","line":69},"digest":"9143be4f137574271953a7a8107e175b","lang":"console","found":["python","js"],"source":"GET /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0"},
{"source_location":{"file":"rest-api/security/get-user-profile.asciidoc","line":77},"digest":"5fb73fe4280ac0de489640ee9193e806","lang":"console-result","found":[],"source":"{\n \"profiles\": [\n {\n \"uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\",\n \"enabled\": true,\n \"last_synchronized\": 1642650651037,\n \"user\": {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\", \"other_role1\"\n ],\n \"realm_name\": \"native\",\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\"\n },\n \"labels\": {\n \"direction\": \"north\"\n },\n \"data\": {}, <1>\n \"_doc\": {\n \"_primary_term\": 88,\n \"_seq_no\": 66\n }\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/get-user-profile.asciidoc","line":115},"digest":"13df08eefc9ba98e311793bbca74133b","lang":"console","found":["python","js"],"source":"GET /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0?data=app1.key1"},
{"source_location":{"file":"rest-api/security/get-user-profile.asciidoc","line":121},"digest":"65c9426792136ef3d3c8ad03f647e215","lang":"console-result","found":[],"source":"{\n \"profiles\": [\n {\n \"uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\",\n \"enabled\": true,\n \"last_synchronized\": 1642650651037,\n \"user\": {\n \"username\": \"jacknich\",\n \"roles\": [\n \"admin\", \"other_role1\"\n ],\n \"realm_name\": \"native\",\n \"full_name\": \"Jack Nicholson\",\n \"email\": \"jacknich@example.com\"\n },\n \"labels\": {\n \"direction\": \"north\"\n },\n \"data\": {\n \"app1\": {\n \"key1\": \"value1\"\n }\n },\n \"_doc\": {\n \"_primary_term\": 88,\n \"_seq_no\": 66\n }\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/suggest-user-profile.asciidoc","line":105},"digest":"7d880157a95f64ad339225d4af71c2de","lang":"console","found":["python","js"],"source":"POST /_security/profile/_suggest\n{\n \"name\": \"jack\", <1>\n \"hint\": {\n \"uids\": [ <2>\n \"u_8RKO7AKfEbSiIHZkZZ2LJy2MUSDPWDr3tMI_CkIGApU_0\",\n \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\"\n ],\n \"labels\": {\n \"direction\": [\"north\", \"east\"] <3>\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/suggest-user-profile.asciidoc","line":128},"digest":"1bff3511bf0e9c7adf12e0c60a72601f","lang":"console-result","found":[],"source":"{\n \"took\": 30,\n \"total\": {\n \"value\": 3,\n \"relation\": \"eq\"\n },\n \"profiles\": [\n {\n \"uid\": \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\",\n \"user\": {\n \"username\": \"jacknich\", <1>\n \"roles\": [ \"admin\", \"other_role1\" ],\n \"realm_name\": \"native\",\n \"email\" : \"jacknich@example.com\",\n \"full_name\": \"Jack Nicholson\"\n },\n \"labels\": {\n \"direction\": \"north\"\n },\n \"data\": {}\n },\n {\n \"uid\": \"u_8RKO7AKfEbSiIHZkZZ2LJy2MUSDPWDr3tMI_CkIGApU_0\",\n \"user\": {\n \"username\": \"jackspa\", <2>\n \"roles\": [ \"user\" ],\n \"realm_name\": \"native\",\n \"email\" : \"jackspa@example.com\",\n \"full_name\": \"Jack Sparrow\"\n },\n \"labels\": {\n \"direction\": \"south\"\n },\n \"data\": {}\n },\n {\n \"uid\": \"u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0\",\n \"user\": {\n \"username\": \"jackrea\", <3>\n \"roles\": [ \"admin\" ],\n \"realm_name\": \"native\",\n \"email\" : \"jackrea@example.com\",\n \"full_name\": \"Jack Reacher\"\n },\n \"labels\": {\n \"direction\": \"west\"\n },\n \"data\": {}\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/update-user-profile-data.asciidoc","line":106},"digest":"ba21a7fbb74180ff138d97032f28ace7","lang":"console","found":["python","js"],"source":"POST /_security/profile/u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0/_data\n{\n \"labels\": {\n \"direction\": \"east\"\n },\n \"data\": {\n \"app1\": {\n \"theme\": \"default\"\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/update-user-profile-data.asciidoc","line":124},"digest":"32b7963c5cabbe9cc7d15da62f5edda9","lang":"console","found":["python","js"],"source":"POST /_security/profile/u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0/_data\n{\n \"labels\": {\n \"direction\": \"west\"\n },\n \"data\": {\n \"app1\": {\n \"font\": \"large\"\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/update-user-profile-data.asciidoc","line":141},"digest":"4f666d710758578e2582850dac3ad144","lang":"console","found":["python","js"],"source":"GET /_security/profile/u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0?data=*"},
{"source_location":{"file":"rest-api/security/update-user-profile-data.asciidoc","line":147},"digest":"f46332f54923fa01a8e4e5735eaeff10","lang":"console-result","found":[],"source":"{\n \"profiles\": [\n {\n \"uid\": \"u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0\",\n \"enabled\": true,\n \"last_synchronized\": 1642650651037,\n \"user\": {\n \"username\": \"jackrea\",\n \"roles\": [\n \"admin\"\n ],\n \"realm_name\": \"native\",\n \"full_name\": \"Jack Reacher\",\n \"email\": \"jackrea@example.com\"\n },\n \"labels\": {\n \"direction\": \"west\"\n },\n \"data\": {\n \"app1\": {\n \"theme\": \"default\",\n \"font\": \"large\"\n }\n },\n \"_doc\": {\n \"_primary_term\": 88,\n \"_seq_no\": 66\n }\n }\n ]\n}"},
{"source_location":{"file":"rest-api/security/has-privileges-user-profile.asciidoc","line":104},"digest":"fce5c03a388c893cb11a6696e068543f","lang":"console","found":["python","js"],"source":"POST /_security/profile/_has_privileges\n{\n \"uids\": [\n \"u_LQPnxDxEjIH0GOUoFkZr5Y57YUwSkL9Joiq-g4OCbPc_0\",\n \"u_rzRnxDgEHIH0GOUoFkZr5Y27YUwSk19Joiq=g4OCxxB_1\",\n \"u_does-not-exist_0\"\n ],\n \"privileges\": {\n \"cluster\": [ \"monitor\", \"create_snapshot\", \"manage_ml\" ],\n \"index\" : [\n {\n \"names\": [ \"suppliers\", \"products\" ],\n \"privileges\": [ \"create_doc\"]\n },\n {\n \"names\": [ \"inventory\" ],\n \"privileges\" : [ \"read\", \"write\" ]\n }\n ],\n \"application\": [\n {\n \"application\": \"inventory_manager\",\n \"privileges\" : [ \"read\", \"data:write/inventory\" ],\n \"resources\" : [ \"product/1852563\" ]\n }\n ]\n }\n}"},
{"source_location":{"file":"rest-api/security/create-cross-cluster-api-key.asciidoc","line":111},"digest":"56563f91d9f0b74e9e4aae9cb221845b","lang":"console","found":["python","js"],"source":"POST /_security/cross_cluster/api_key\n{\n \"name\": \"my-cross-cluster-api-key\",\n \"expiration\": \"1d\", <1>\n \"access\": {\n \"search\": [ <2>\n {\n \"names\": [\"logs*\"]\n }\n ],\n \"replication\": [ <3>\n {\n \"names\": [\"archive*\"]\n }\n ]\n },\n \"metadata\": {\n \"description\": \"phase one\",\n \"environment\": {\n \"level\": 1,\n \"trusted\": true,\n \"tags\": [\"dev\", \"staging\"]\n }\n }\n}"},
{"source_location":{"file":"rest-api/security/create-cross-cluster-api-key.asciidoc","line":146},"digest":"1b45f1f7070331f50df7c92a74d7f452","lang":"console-result","found":[],"source":"{\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\", <1>\n \"name\": \"my-cross-cluster-api-key\",\n \"expiration\": 1544068612110, <2>\n \"api_key\": \"ui2lp2axTNmsyakw9tvNnw\", <3>\n \"encoded\": \"VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw==\" <4>\n}"},
{"source_location":{"file":"rest-api/security/create-cross-cluster-api-key.asciidoc","line":168},"digest":"701f1fffc65e9e51c96aa60261e2eae3","lang":"console","found":["python","js"],"source":"GET /_security/api_key?id=VuaCfGcBCdbkQm-e5aOx"},
{"source_location":{"file":"rest-api/security/update-cross-cluster-api-key.asciidoc","line":89},"digest":"839710129a165cf93c6e329abedf9089","lang":"console","found":["python","js"],"source":"POST /_security/cross_cluster/api_key\n{\n \"name\": \"my-cross-cluster-api-key\",\n \"access\": {\n \"search\": [\n {\n \"names\": [\"logs*\"]\n }\n ]\n },\n \"metadata\": {\n \"application\": \"search\"\n }\n}"},
{"source_location":{"file":"rest-api/security/update-cross-cluster-api-key.asciidoc","line":110},"digest":"433b60cec9f001cefb7d1c0eae9fd92c","lang":"console-result","found":[],"source":"{\n \"id\": \"VuaCfGcBCdbkQm-e5aOx\",\n \"name\": \"my-cross-cluster-api-key\",\n \"api_key\": \"ui2lp2axTNmsyakw9tvNnw\",\n \"encoded\": \"VnVhQ2ZHY0JDZGJrUW0tZTVhT3g6dWkybHAyYXhUTm1zeWFrdzl0dk5udw==\"\n}"},
{"source_location":{"file":"rest-api/security/update-cross-cluster-api-key.asciidoc","line":126},"digest":"701f1fffc65e9e51c96aa60261e2eae3","lang":"console","found":["python","js"],"source":"GET /_security/api_key?id=VuaCfGcBCdbkQm-e5aOx"},
{"source_location":{"file":"rest-api/security/update-cross-cluster-api-key.asciidoc","line":197},"digest":"3b64821fe9db73eb03860c60d775d7ff","lang":"console","found":["python","js"],"source":"PUT /_security/cross_cluster/api_key/VuaCfGcBCdbkQm-e5aOx\n{\n \"access\": {\n \"replication\": [\n {\n \"names\": [\"archive\"]\n }\n ]\n },\n \"metadata\": {\n \"application\": \"replication\"\n }\n}"},
{"source_location":{"file":"rest-api/security/update-cross-cluster-api-key.asciidoc","line":218},"digest":"95e65c9325e827594b2135ac85b26c4a","lang":"console-result","found":[],"source":"{\n \"updated\": true\n}"},
{"source_location":{"file":"snapshot-restore/apis/put-repo-api.asciidoc","line":16},"digest":"89b72dd7f747f6297c2b089e8bc807be","lang":"console","found":["python","ruby","js"],"source":"PUT /_snapshot/my_repository\n{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"my_backup_location\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/apis/verify-repo-api.asciidoc","line":31},"digest":"3fe5e6c0d5ea4586aa04f989ae54b72e","lang":"console","found":["python","ruby","js"],"source":"POST /_snapshot/my_repository/_verify"},
{"source_location":{"file":"snapshot-restore/apis/repo-analysis-api.asciidoc","line":32},"digest":"67aac8882fa476db8a5878b67ea08eb3","lang":"console","found":["python","ruby","js"],"source":"POST /_snapshot/my_repository/_analyze?blob_count=10&max_blob_size=1mb&timeout=120s"},
{"source_location":{"file":"snapshot-restore/apis/verify-repo-integrity-api.asciidoc","line":31},"digest":"84237aa9da49ab4b4c4e2b21d2548df2","lang":"console","found":["python","js"],"source":"POST /_snapshot/my_repository/_verify_integrity"},
{"source_location":{"file":"snapshot-restore/apis/get-repo-api.asciidoc","line":31},"digest":"218b9009f120e8ad33f710e019179562","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository"},
{"source_location":{"file":"snapshot-restore/apis/get-repo-api.asciidoc","line":125},"digest":"218b9009f120e8ad33f710e019179562","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository"},
{"source_location":{"file":"snapshot-restore/apis/get-repo-api.asciidoc","line":132},"digest":"f935f55429b031d1bd38d15f3bfa4fe8","lang":"console-result","found":[],"source":"{\n \"my_repository\" : {\n \"type\" : \"fs\",\n \"uuid\" : \"0JLknrXbSUiVPuLakHjBrQ\",\n \"settings\" : {\n \"location\" : \"my_backup_location\"\n }\n }\n}"},
{"source_location":{"file":"snapshot-restore/apis/delete-repo-api.asciidoc","line":33},"digest":"ff56ded50c65998c70f3c5691ddc6f86","lang":"console","found":["python","ruby","js"],"source":"DELETE /_snapshot/my_repository"},
{"source_location":{"file":"snapshot-restore/apis/clean-up-repo-api.asciidoc","line":32},"digest":"6aca241c0361d26f134712821e2d09a9","lang":"console","found":["python","ruby","js"],"source":"POST /_snapshot/my_repository/_cleanup"},
{"source_location":{"file":"snapshot-restore/apis/clean-up-repo-api.asciidoc","line":85},"digest":"6aca241c0361d26f134712821e2d09a9","lang":"console","found":["python","ruby","js"],"source":"POST /_snapshot/my_repository/_cleanup"},
{"source_location":{"file":"snapshot-restore/apis/clean-up-repo-api.asciidoc","line":92},"digest":"5e309dfb203bf2b89cd8a4c353c4b6f5","lang":"console-result","found":[],"source":"{\n \"results\": {\n \"deleted_bytes\": 20,\n \"deleted_blobs\": 5\n }\n}"},
{"source_location":{"file":"snapshot-restore/apis/clone-snapshot-api.asciidoc","line":16},"digest":"3bfa2362add163802fc2210cc2f37ba2","lang":"console","found":["python","ruby","js"],"source":"PUT /_snapshot/my_repository/source_snapshot/_clone/target_snapshot\n{\n \"indices\": \"index_a,index_b\"\n}"},
{"source_location":{"file":"snapshot-restore/apis/create-snapshot-api.asciidoc","line":31},"digest":"1f3dd84ab11bae09d3f99b1b3536e239","lang":"console","found":["python","ruby","js"],"source":"PUT /_snapshot/my_repository/my_snapshot"},
{"source_location":{"file":"snapshot-restore/apis/create-snapshot-api.asciidoc","line":166},"digest":"3f30310cc6d0adae6b0f61705624a695","lang":"console","found":["python","ruby","js"],"source":"PUT /_snapshot/my_repository/snapshot_2?wait_for_completion=true\n{\n \"indices\": \"index_1,index_2\",\n \"ignore_unavailable\": true,\n \"include_global_state\": false,\n \"metadata\": {\n \"taken_by\": \"user123\",\n \"taken_because\": \"backup before upgrading\"\n }\n}"},
{"source_location":{"file":"snapshot-restore/apis/create-snapshot-api.asciidoc","line":182},"digest":"11f673a80dbc98a6bfc0a6f5a2de3168","lang":"console-result","found":[],"source":"{\n \"snapshot\": {\n \"snapshot\": \"snapshot_2\",\n \"uuid\": \"vdRctLCxSketdKb54xw67g\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": false,\n \"metadata\": {\n \"taken_by\": \"user123\",\n \"taken_because\": \"backup before upgrading\"\n },\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-06-25T14:00:28.850Z\",\n \"start_time_in_millis\": 1593093628850,\n \"end_time\": \"2020-06-25T14:00:28.850Z\",\n \"end_time_in_millis\": 1593094752018,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n}"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":50},"digest":"a811b82ba4632bdd9065829085188bc9","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository/my_snapshot"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":357},"digest":"bfb8a15cd05b43094ffbce8078bad3e1","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository/snapshot_2"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":364},"digest":"58f488442a4d13c973dd02f0120f1a58","lang":"console-result","found":[],"source":"{\n \"snapshots\": [\n {\n \"snapshot\": \"snapshot_2\",\n \"uuid\": \"vdRctLCxSketdKb54xw67g\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.129Z\",\n \"start_time_in_millis\": 1593093628850,\n \"end_time\": \"2020-07-06T21:55:18.129Z\",\n \"end_time_in_millis\": 1593094752018,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n ],\n \"total\": 1,\n \"remaining\": 0\n}"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":408},"digest":"172155ca4bf6dfcbd489453f50739396","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository/snapshot*?size=2&sort=name"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":415},"digest":"de771f61decaf3dd487b6dbe4d90ed95","lang":"console-result","found":[],"source":"{\n \"snapshots\": [\n {\n \"snapshot\": \"snapshot_1\",\n \"uuid\": \"dKb54xw67gvdRctLCxSket\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.129Z\",\n \"start_time_in_millis\": 1593093628850,\n \"end_time\": \"2020-07-06T21:55:18.129Z\",\n \"end_time_in_millis\": 1593094752018,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n },\n {\n \"snapshot\": \"snapshot_2\",\n \"uuid\": \"vdRctLCxSketdKb54xw67g\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.130Z\",\n \"start_time_in_millis\": 1593093628851,\n \"end_time\": \"2020-07-06T21:55:18.130Z\",\n \"end_time_in_millis\": 1593094752019,\n \"duration_in_millis\": 1,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n ],\n \"next\": \"c25hcHNob3RfMixteV9yZXBvc2l0b3J5LHNuYXBzaG90XzI=\",\n \"total\": 3,\n \"remaining\": 1\n}"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":488},"digest":"eb964d8d7f27c057a4542448ba5b74e4","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository/snapshot*?size=2&sort=name&after=c25hcHNob3RfMixteV9yZXBvc2l0b3J5LHNuYXBzaG90XzI="},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":495},"digest":"97b39f3a137131ee49d7f59864d3ff22","lang":"console-result","found":[],"source":"{\n \"snapshots\": [\n {\n \"snapshot\": \"snapshot_3\",\n \"uuid\": \"dRctdKb54xw67gvLCxSket\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.129Z\",\n \"start_time_in_millis\": 1593093628850,\n \"end_time\": \"2020-07-06T21:55:18.129Z\",\n \"end_time_in_millis\": 1593094752018,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n ],\n \"total\": 3,\n \"remaining\": 0\n}"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":538},"digest":"708e7ec681be41791f232817a07cda82","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository/snapshot*?size=2&sort=name&offset=2"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":545},"digest":"97b39f3a137131ee49d7f59864d3ff22","lang":"console-result","found":[],"source":"{\n \"snapshots\": [\n {\n \"snapshot\": \"snapshot_3\",\n \"uuid\": \"dRctdKb54xw67gvLCxSket\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.129Z\",\n \"start_time_in_millis\": 1593093628850,\n \"end_time\": \"2020-07-06T21:55:18.129Z\",\n \"end_time_in_millis\": 1593094752018,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n ],\n \"total\": 3,\n \"remaining\": 0\n}"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":589},"digest":"06454a8e85e2d3479c90390bb955eb39","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository/snapshot*,-snapshot_3?sort=name"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":596},"digest":"e39b4fc663c24ded226b47e452c808af","lang":"console-result","found":[],"source":"{\n \"snapshots\": [\n {\n \"snapshot\": \"snapshot_1\",\n \"uuid\": \"dKb54xw67gvdRctLCxSket\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.129Z\",\n \"start_time_in_millis\": 1593093628850,\n \"end_time\": \"2020-07-06T21:55:18.129Z\",\n \"end_time_in_millis\": 1593094752018,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n },\n {\n \"snapshot\": \"snapshot_2\",\n \"uuid\": \"vdRctLCxSketdKb54xw67g\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.130Z\",\n \"start_time_in_millis\": 1593093628851,\n \"end_time\": \"2020-07-06T21:55:18.130Z\",\n \"end_time_in_millis\": 1593094752019,\n \"duration_in_millis\": 1,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n ],\n \"total\": 2,\n \"remaining\": 0\n}"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":670},"digest":"72bae0252b74ff6fd9f0702ff008d84a","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository/*?sort=name&from_sort_value=snapshot_2"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":677},"digest":"19c91a5df7bb9ae61744613c4ffffdbe","lang":"console-result","found":[],"source":"{\n \"snapshots\": [\n {\n \"snapshot\": \"snapshot_2\",\n \"uuid\": \"vdRctLCxSketdKb54xw67g\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.130Z\",\n \"start_time_in_millis\": 1593093628851,\n \"end_time\": \"2020-07-06T21:55:18.130Z\",\n \"end_time_in_millis\": 1593094752019,\n \"duration_in_millis\": 1,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n },\n {\n \"snapshot\": \"snapshot_3\",\n \"uuid\": \"dRctdKb54xw67gvLCxSket\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.129Z\",\n \"start_time_in_millis\": 1593093628850,\n \"end_time\": \"2020-07-06T21:55:18.129Z\",\n \"end_time_in_millis\": 1593094752018,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n ],\n \"total\": 2,\n \"remaining\": 0\n}"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":751},"digest":"beaf43b274b0f32cf3cf48f59e5cb1f2","lang":"console","found":["python","ruby","js"],"source":"GET /_snapshot/my_repository/snapshot_*?sort=start_time&from_sort_value=1577833200000"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":758},"digest":"ef3ca0432263fb59237ed2da26bd4ae3","lang":"console-result","found":[],"source":"{\n \"snapshots\": [\n {\n \"snapshot\": \"snapshot_1\",\n \"uuid\": \"dKb54xw67gvdRctLCxSket\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.128Z\",\n \"start_time_in_millis\": 1593093628849,\n \"end_time\": \"2020-07-06T21:55:18.129Z\",\n \"end_time_in_millis\": 1593093628850,\n \"duration_in_millis\": 1,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n },\n {\n \"snapshot\": \"snapshot_2\",\n \"uuid\": \"vdRctLCxSketdKb54xw67g\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.130Z\",\n \"start_time_in_millis\": 1593093628851,\n \"end_time\": \"2020-07-06T21:55:18.130Z\",\n \"end_time_in_millis\": 1593093628851,\n \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n },\n {\n \"snapshot\": \"snapshot_3\",\n \"uuid\": \"dRctdKb54xw67gvLCxSket\",\n \"repository\": \"my_repository\",\n \"version_id\": ,\n \"version\": ,\n \"indices\": [],\n \"data_streams\": [],\n \"feature_states\": [],\n \"include_global_state\": true,\n \"state\": \"SUCCESS\",\n \"start_time\": \"2020-07-06T21:55:18.131Z\",\n \"start_time_in_millis\": 1593093628852,\n \"end_time\": \"2020-07-06T21:55:18.135Z\",\n \"end_time_in_millis\": 1593093628856,\n \"duration_in_millis\": 4,\n \"failures\": [],\n \"shards\": {\n \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n ],\n \"total\": 3,\n \"remaining\": 0\n}"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-status-api.asciidoc","line":81},"digest":"2105f2d1d81977054a93163a175793ce","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/_status"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-status-api.asciidoc","line":333},"digest":"0601b5cb5328c9ebff30f4be1b210f93","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/my_repository/snapshot_2/_status"},
{"source_location":{"file":"snapshot-restore/apis/get-snapshot-status-api.asciidoc","line":338},"digest":"cf961eaa04c20e769d006b3e960f73ee","lang":"console-result","found":[],"source":"{\n \"snapshots\" : [\n {\n \"snapshot\" : \"snapshot_2\",\n \"repository\" : \"my_repository\",\n \"uuid\" : \"lNeQD1SvTQCqqJUMQSwmGg\",\n \"state\" : \"SUCCESS\",\n \"include_global_state\" : false,\n \"shards_stats\" : {\n \"initializing\" : 0,\n \"started\" : 0,\n \"finalizing\" : 0,\n \"done\" : 1,\n \"failed\" : 0,\n \"total\" : 1\n },\n \"stats\" : {\n \"incremental\" : {\n \"file_count\" : 3,\n \"size_in_bytes\" : 5969\n },\n \"total\" : {\n \"file_count\" : 4,\n \"size_in_bytes\" : 6024\n },\n \"start_time_in_millis\" : 1594829326691,\n \"time_in_millis\" : 205\n },\n \"indices\" : {\n \"index_1\" : {\n \"shards_stats\" : {\n \"initializing\" : 0,\n \"started\" : 0,\n \"finalizing\" : 0,\n \"done\" : 1,\n \"failed\" : 0,\n \"total\" : 1\n },\n \"stats\" : {\n \"incremental\" : {\n \"file_count\" : 3,\n \"size_in_bytes\" : 5969\n },\n \"total\" : {\n \"file_count\" : 4,\n \"size_in_bytes\" : 6024\n },\n \"start_time_in_millis\" : 1594829326896,\n \"time_in_millis\" : 0\n },\n \"shards\" : {\n \"0\" : {\n \"stage\" : \"DONE\",\n \"stats\" : {\n \"incremental\" : {\n \"file_count\" : 3,\n \"size_in_bytes\" : 5969\n },\n \"total\" : {\n \"file_count\" : 4,\n \"size_in_bytes\" : 6024\n },\n \"start_time_in_millis\" : 1594829326896,\n \"time_in_millis\" : 0\n }\n }\n }\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"snapshot-restore/apis/restore-snapshot-api.asciidoc","line":60},"digest":"5195a88194f7a139c635a84398d76205","lang":"console","found":["python","ruby","js"],"source":"POST /_snapshot/my_repository/my_snapshot/_restore"},
{"source_location":{"file":"snapshot-restore/apis/restore-snapshot-api.asciidoc","line":94},"digest":"aa7f62279b487989440d423c1ed4a1c0","lang":"console","found":["python","ruby","js"],"source":"GET _index_template/*?filter_path=index_templates.name,index_templates.index_template.index_patterns,index_templates.index_template.data_stream"},
{"source_location":{"file":"snapshot-restore/apis/restore-snapshot-api.asciidoc","line":248},"digest":"cc9dac8db7a1482e2fbe3235197c3de1","lang":"console","found":["python","ruby","js"],"source":"POST /_snapshot/my_repository/snapshot_2/_restore?wait_for_completion=true\n{\n \"indices\": \"index_1,index_2\",\n \"ignore_unavailable\": true,\n \"include_global_state\": false,\n \"rename_pattern\": \"index_(.+)\",\n \"rename_replacement\": \"restored_index_$1\",\n \"include_aliases\": false\n}"},
{"source_location":{"file":"snapshot-restore/apis/restore-snapshot-api.asciidoc","line":274},"digest":"afe30f159937b38d74c869570cfcd369","lang":"console","found":["python","ruby","js"],"source":"POST index_1/_close\n\nPOST /_snapshot/my_repository/snapshot_2/_restore?wait_for_completion=true\n{\n \"indices\": \"index_1\"\n}"},
{"source_location":{"file":"snapshot-restore/apis/delete-snapshot-api.asciidoc","line":36},"digest":"f04e1284d09ceb4443d67b2ef9c7f476","lang":"console","found":["python","ruby","js"],"source":"DELETE /_snapshot/my_repository/my_snapshot"},
{"source_location":{"file":"snapshot-restore/apis/delete-snapshot-api.asciidoc","line":78},"digest":"6dd4c02fe3d6b800648a04d3e2d29fc1","lang":"console","found":["python","ruby","js"],"source":"DELETE /_snapshot/my_repository/snapshot_2,snapshot_3"},
{"source_location":{"file":"snapshot-restore/apis/delete-snapshot-api.asciidoc","line":85},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"slm/apis/slm-put.asciidoc","line":124},"digest":"aa7cf5df36b867aee5e3314ac4b4fa68","lang":"console","found":["python","js"],"source":"PUT /_slm/policy/daily-snapshots\n{\n \"schedule\": \"0 30 1 * * ?\", <1>\n \"name\": \"\", <2>\n \"repository\": \"my_repository\", <3>\n \"config\": { <4>\n \"indices\": [\"data-*\", \"important\"], <5>\n \"ignore_unavailable\": false,\n \"include_global_state\": false\n },\n \"retention\": { <6>\n \"expire_after\": \"30d\", <7>\n \"min_count\": 5, <8>\n \"max_count\": 50 <9>\n }\n}"},
{"source_location":{"file":"slm/apis/slm-put.asciidoc","line":160},"digest":"2e09666d3ad5ad9afc22763ee6e97a2b","lang":"console","found":["python","js"],"source":"PUT /_slm/policy/hourly-snapshots\n{\n \"schedule\": \"1h\",\n \"name\": \"\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": [\"data-*\", \"important\"]\n }\n}"},
{"source_location":{"file":"slm/apis/slm-get.asciidoc","line":77},"digest":"f2175feadc2abe545899889e6d4ffcad","lang":"console","found":["python","ruby","js"],"source":"GET _slm/policy/daily-snapshots?human"},
{"source_location":{"file":"slm/apis/slm-get.asciidoc","line":85},"digest":"7cefd344e81b6ec54a2bc7fa3268b7bf","lang":"console-result","found":[],"source":"{\n \"daily-snapshots\": {\n \"version\": 1, <1>\n \"modified_date\": \"2099-05-06T01:30:00.000Z\", <2>\n \"modified_date_millis\": 4081757400000,\n \"policy\" : {\n \"schedule\": \"0 30 1 * * ?\",\n \"name\": \"\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": [\"data-*\", \"important\"],\n \"ignore_unavailable\": false,\n \"include_global_state\": false\n },\n \"retention\": {\n \"expire_after\": \"30d\",\n \"min_count\": 5,\n \"max_count\": 50\n }\n },\n \"stats\": {\n \"policy\": \"daily-snapshots\",\n \"snapshots_taken\": 0,\n \"snapshots_failed\": 0,\n \"snapshots_deleted\": 0,\n \"snapshot_deletion_failures\": 0\n },\n \"next_execution\": \"2099-05-07T01:30:00.000Z\", <3>\n \"next_execution_millis\": 4081843800000\n }\n}"},
{"source_location":{"file":"slm/apis/slm-get.asciidoc","line":132},"digest":"a159e1ce0cba7a35ce44db9bebad22f3","lang":"console","found":["python","ruby","js"],"source":"GET _slm/policy"},
{"source_location":{"file":"slm/apis/slm-delete.asciidoc","line":71},"digest":"1a1f3421717ff744ed83232729289bb0","lang":"console","found":["python","ruby","js"],"source":"DELETE /_slm/policy/daily-snapshots"},
{"source_location":{"file":"slm/apis/slm-execute.asciidoc","line":50},"digest":"0ab002c6618af75e1041a23c692327ad","lang":"console","found":[],"source":"POST /_slm/policy/daily-snapshots/_execute"},
{"source_location":{"file":"slm/apis/slm-execute.asciidoc","line":58},"digest":"80e9cf8fc73f6f5c65db578752235391","lang":"console-result","found":[],"source":"{\n \"snapshot_name\": \"daily-snap-2019.04.24-gwrqoo2xtea3q57vvg0uea\"\n}"},
{"source_location":{"file":"slm/apis/slm-execute-retention.asciidoc","line":40},"digest":"e71d300cd87f09a9527cf45395dd7eb1","lang":"console","found":["python","ruby","js"],"source":"POST /_slm/_execute_retention"},
{"source_location":{"file":"slm/apis/slm-get-status.asciidoc","line":48},"digest":"cde4104a29dfe942d55863cdd8718627","lang":"console","found":["python","ruby","js"],"source":"GET _slm/status"},
{"source_location":{"file":"slm/apis/slm-get-status.asciidoc","line":55},"digest":"99e0bec31e49636bc0053ac66bc29352","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"RUNNING\"\n}"},
{"source_location":{"file":"slm/apis/slm-stats.asciidoc","line":32},"digest":"55e8ddf643726dec51531ada0bec7143","lang":"console","found":["python","ruby","js"],"source":"GET /_slm/stats"},
{"source_location":{"file":"slm/apis/slm-start.asciidoc","line":46},"digest":"371962cf63e65c10026177c6a1bad0b6","lang":"console","found":["python","js"],"source":"POST _slm/start"},
{"source_location":{"file":"slm/apis/slm-start.asciidoc","line":53},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"slm/apis/slm-stop.asciidoc","line":52},"digest":"41195ef13af0465cdee1ae18f6c00fde","lang":"console","found":["python","js"],"source":"POST _slm/stop"},
{"source_location":{"file":"sql/apis/clear-sql-cursor-api.asciidoc","line":29},"digest":"5174c3c731fc1703e5b43ae2bae7a80e","lang":"console","found":["python","js"],"source":"POST _sql/close\n{\n \"cursor\": \"sDXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAAEWYUpOYklQMHhRUEtld3RsNnFtYU1hQQ==:BAFmBGRhdGUBZgVsaWtlcwFzB21lc3NhZ2UBZgR1c2Vy9f///w8=\"\n}"},
{"source_location":{"file":"sql/apis/delete-async-sql-search-api.asciidoc","line":18},"digest":"1ed26c7b445ab1c167bd9385e1f0066f","lang":"console","found":["python","ruby","js"],"source":"DELETE _sql/async/delete/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="},
{"source_location":{"file":"sql/apis/get-async-sql-search-api.asciidoc","line":18},"digest":"c187b52646cedeebe0716327add65642","lang":"console","found":["python","ruby","js"],"source":"GET _sql/async/FmdMX2pIang3UWhLRU5QS0lqdlppYncaMUpYQ05oSkpTc3kwZ21EdC1tbFJXQToxOTI=?format=json"},
{"source_location":{"file":"sql/apis/get-async-sql-search-status-api.asciidoc","line":18},"digest":"841d8b766902c8e3ae85c228a31383ac","lang":"console","found":["python","ruby","js"],"source":"GET _sql/async/status/FmdMX2pIang3UWhLRU5QS0lqdlppYncaMUpYQ05oSkpTc3kwZ21EdC1tbFJXQToxOTI=?format=json"},
{"source_location":{"file":"sql/apis/sql-search-api.asciidoc","line":17},"digest":"03c4b815bf1e6a8c5cfcc6ddf94bc093","lang":"console","found":["python","js"],"source":"POST _sql?format=txt\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC LIMIT 5\"\n}"},
{"source_location":{"file":"sql/apis/sql-translate-api.asciidoc","line":18},"digest":"6f48ab7cbb8a4a46d0e9272c07166eaf","lang":"console","found":["python","js"],"source":"POST _sql/translate\n{\n \"query\": \"SELECT * FROM library ORDER BY page_count DESC\",\n \"fetch_size\": 10\n}"},
{"source_location":{"file":"synonyms/apis/put-synonyms-set.asciidoc","line":67},"digest":"9e563b8d5a7845f644db8d5bbf453eb6","lang":"console","found":["python","ruby","js"],"source":"PUT _synonyms/my-synonyms-set\n{\n \"synonyms_set\": [\n {\n \"id\": \"test-1\",\n \"synonyms\": \"hello, hi\"\n },\n {\n \"synonyms\": \"bye, goodbye\"\n },\n {\n \"id\": \"test-2\",\n \"synonyms\": \"test => check\"\n }\n ]\n}"},
{"source_location":{"file":"synonyms/apis/put-synonyms-set.asciidoc","line":89},"digest":"3608e4fcd17dd8d5f88ec9a3db2f5d89","lang":"console","found":["python","js"],"source":"PUT _synonyms/my-synonyms-set\n{\n \"synonyms_set\": [\n {\n \"synonyms\": \"hello => hi => howdy\"\n }\n ]\n}"},
{"source_location":{"file":"synonyms/apis/put-synonyms-set.asciidoc","line":103},"digest":"288511aab7eee87764e66b9564a6a54c","lang":"console-result","found":[],"source":"{\n \"error\": {\n \"root_cause\": [\n {\n \"type\": \"action_request_validation_exception\",\n \"reason\": \"Validation Failed: 1: More than one explicit mapping specified in the same synonyms rule: [hello => hi => howdy];\",\n \"stack_trace\": ...\n }\n ],\n \"type\": \"action_request_validation_exception\",\n \"reason\": \"Validation Failed: 1: More than one explicit mapping specified in the same synonyms rule: [hello => hi => howdy];\",\n \"stack_trace\": ...\n },\n \"status\": 400\n}"},
{"source_location":{"file":"synonyms/apis/put-synonyms-set.asciidoc","line":131},"digest":"4cdcc3fde5cea165a3a7567962b9bd61","lang":"console","found":["python","ruby","js"],"source":"PUT _synonyms/my-synonyms-set\n{\n \"synonyms_set\": [\n {\n \"id\": \"test-1\",\n \"synonyms\": \"hello, hi\"\n }\n ]\n}\n\nPUT /test-index\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"synonyms_filter\": {\n \"type\": \"synonym_graph\",\n \"synonyms_set\": \"my-synonyms-set\",\n \"updateable\": true\n }\n },\n \"analyzer\": {\n \"my_index_analyzer\": {\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\"lowercase\"]\n },\n \"my_search_analyzer\": {\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\"lowercase\", \"synonyms_filter\"]\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"title\": {\n \"type\": \"text\",\n \"analyzer\": \"my_index_analyzer\",\n \"search_analyzer\": \"my_search_analyzer\"\n }\n }\n }\n}\n\nPUT _synonyms/my-synonyms-set\n{\n \"synonyms_set\": [\n {\n \"id\": \"test-1\",\n \"synonyms\": \"hello, hi, howdy\"\n }\n ]\n}"},
{"source_location":{"file":"synonyms/apis/put-synonyms-set.asciidoc","line":193},"digest":"8604e87f5467d88ae38a00f0518a456f","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\",\n \"reload_analyzers_details\": {\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"reload_details\": [\n {\n \"index\": \"test-index\",\n \"reloaded_analyzers\": [\n \"my_search_analyzer\"\n ],\n \"reloaded_node_ids\": [\n \"1wYFZzq8Sxeu_Jvt9mlbkg\"\n ]\n }\n ]\n }\n}"},
{"source_location":{"file":"synonyms/apis/get-synonyms-set.asciidoc","line":81},"digest":"4b5110a21676cc0e26e050a4b4552235","lang":"console","found":["python","ruby","js"],"source":"GET _synonyms/my-synonyms-set"},
{"source_location":{"file":"synonyms/apis/get-synonyms-set.asciidoc","line":90},"digest":"3b1754fc8773bac6114312cc45d0dd44","lang":"console-result","found":[],"source":"{\n \"count\": 3,\n \"synonyms_set\": [\n {\n \"id\": \"test-1\",\n \"synonyms\": \"hello, hi\"\n },\n {\n \"id\": \"test-2\",\n \"synonyms\": \"bye, goodbye\"\n },\n {\n \"id\": \"test-3\",\n \"synonyms\": \"test => check\"\n }\n ]\n}"},
{"source_location":{"file":"synonyms/apis/list-synonyms-sets.asciidoc","line":86},"digest":"e2bcc8f4ed2b4de82729e7a5a7c8f634","lang":"console","found":["python","ruby","js"],"source":"GET _synonyms"},
{"source_location":{"file":"synonyms/apis/list-synonyms-sets.asciidoc","line":93},"digest":"3ca56870525be8c275c7da0616007d73","lang":"console-result","found":[],"source":"{\n \"count\": 3,\n \"results\": [\n {\n \"synonyms_set\": \"ecommerce-synonyms\",\n \"count\": 2\n },\n {\n \"synonyms_set\": \"my-synonyms-set\",\n \"count\": 3\n },\n {\n \"synonyms_set\": \"new-ecommerce-synonyms\",\n \"count\": 1\n }\n ]\n}"},
{"source_location":{"file":"synonyms/apis/delete-synonyms-set.asciidoc","line":66},"digest":"3386fe07e90844dbcdbbe7c07f09e04a","lang":"console","found":["python","ruby","js"],"source":"DELETE _synonyms/my-synonyms-set"},
{"source_location":{"file":"synonyms/apis/delete-synonyms-set.asciidoc","line":166},"digest":"57fa0269123e8388207189c9860d6b0f","lang":"console-result","found":[],"source":"{\n \"error\": {\n \"root_cause\": [\n {\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"synonyms set [my-synonyms-set] cannot be deleted as it is used in the following indices: index-1, index-2\",\n \"stack_trace\": ...\n }\n ],\n \"type\": \"illegal_argument_exception\",\n \"reason\": \"synonyms set [my-synonyms-set] cannot be deleted as it is used in the following indices: index-1, index-2\",\n \"stack_trace\": ...\n },\n \"status\": 400\n}"},
{"source_location":{"file":"synonyms/apis/put-synonym-rule.asciidoc","line":113},"digest":"2c1e16e9ac24cfea979af2a69900d3c2","lang":"console","found":["python","ruby","js"],"source":"PUT _synonyms/my-synonyms-set/test-1\n{\n \"synonyms\": \"hello, hi, howdy\"\n}"},
{"source_location":{"file":"synonyms/apis/put-synonym-rule.asciidoc","line":121},"digest":"8604e87f5467d88ae38a00f0518a456f","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\",\n \"reload_analyzers_details\": {\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"reload_details\": [\n {\n \"index\": \"test-index\",\n \"reloaded_analyzers\": [\n \"my_search_analyzer\"\n ],\n \"reloaded_node_ids\": [\n \"1wYFZzq8Sxeu_Jvt9mlbkg\"\n ]\n }\n ]\n }\n}"},
{"source_location":{"file":"synonyms/apis/put-synonym-rule.asciidoc","line":151},"digest":"6097ae69c64454a92a89ef01b994e9f9","lang":"console","found":["python","js"],"source":"PUT _synonyms/my-synonyms-set/test-1\n{\n \"synonyms\": \"hello => hi => howdy\"\n}"},
{"source_location":{"file":"synonyms/apis/put-synonym-rule.asciidoc","line":160},"digest":"288511aab7eee87764e66b9564a6a54c","lang":"console-result","found":[],"source":"{\n \"error\": {\n \"root_cause\": [\n {\n \"type\": \"action_request_validation_exception\",\n \"reason\": \"Validation Failed: 1: More than one explicit mapping specified in the same synonyms rule: [hello => hi => howdy];\",\n \"stack_trace\": ...\n }\n ],\n \"type\": \"action_request_validation_exception\",\n \"reason\": \"Validation Failed: 1: More than one explicit mapping specified in the same synonyms rule: [hello => hi => howdy];\",\n \"stack_trace\": ...\n },\n \"status\": 400\n}"},
{"source_location":{"file":"synonyms/apis/get-synonym-rule.asciidoc","line":72},"digest":"80edd2124a822d9f9bf22ecc49d2c2e9","lang":"console","found":["python","ruby","js"],"source":"GET _synonyms/my-synonyms-set/test-1"},
{"source_location":{"file":"synonyms/apis/get-synonym-rule.asciidoc","line":77},"digest":"22944859c8695cade3ffacfeea108f75","lang":"console-result","found":[],"source":"{\n \"id\": \"test-1\",\n \"synonyms\": \"hello, hi\"\n}"},
{"source_location":{"file":"synonyms/apis/delete-synonym-rule.asciidoc","line":108},"digest":"a547bb926c25f670078b98fbe67de3cc","lang":"console","found":["python","ruby","js"],"source":"DELETE _synonyms/my-synonyms-set/test-1"},
{"source_location":{"file":"synonyms/apis/delete-synonym-rule.asciidoc","line":113},"digest":"a499f7b6851da6598b44df1dc3954fa2","lang":"console-result","found":[],"source":"{\n \"result\": \"deleted\",\n \"reload_analyzers_details\": {\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"reload_details\": [\n {\n \"index\": \"test-index\",\n \"reloaded_analyzers\": [\n \"my_search_analyzer\"\n ],\n \"reloaded_node_ids\": [\n \"1wYFZzq8Sxeu_Jvt9mlbkg\"\n ]\n }\n ]\n }\n}"},
{"source_location":{"file":"text-structure/apis/find-field-structure.asciidoc","line":95},"digest":"b62eaa20c4e0e48134a6d1d1b3c30b26","lang":"console","found":["python","ruby","js"],"source":"POST _bulk?refresh=true\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,042][INFO ][o.e.p.PluginsService ] [laptop] loaded module [rest-root]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-core]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-redact]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [ingest-user-agent]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-monitoring]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-s3]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-analytics]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-ent-search]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-autoscaling]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-painless]]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,059][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-expression]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:41,059][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-eql]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:43,291][INFO ][o.e.e.NodeEnvironment ] [laptop] heap size [16gb], compressed ordinary object pointers [true]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:46,098][INFO ][o.e.x.s.Security ] [laptop] Security is enabled\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:47,227][INFO ][o.e.x.p.ProfilingPlugin ] [laptop] Profiling is enabled\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:47,259][INFO ][o.e.x.p.ProfilingPlugin ] [laptop] profiling index templates will not be installed or reinstalled\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:47,755][INFO ][o.e.i.r.RecoverySettings ] [laptop] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:47,787][INFO ][o.e.d.DiscoveryModule ] [laptop] using discovery type [multi-node] and seed hosts providers [settings]\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:49,188][INFO ][o.e.n.Node ] [laptop] initialized\"}\n{\"index\":{\"_index\":\"test-logs\"}}\n{\"message\":\"[2024-03-05T10:52:49,199][INFO ][o.e.n.Node ] [laptop] starting ...\"}\n\nGET _text_structure/find_field_structure?index=test-logs&field=message"},
{"source_location":{"file":"text-structure/apis/find-field-structure.asciidoc","line":149},"digest":"af6b324025a95de41ceca7a862a15c53","lang":"console-result","found":[],"source":"{\n \"num_lines_analyzed\" : 22,\n \"num_messages_analyzed\" : 22,\n \"sample_start\" : \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\\n[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\\n\", <3>\n \"charset\" : \"UTF-8\",\n \"format\" : \"semi_structured_text\",\n \"multiline_start_pattern\" : \"^\\\\[\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}[T ]\\\\d{2}:\\\\d{2}\",\n \"grok_pattern\" : \"\\\\[%{TIMESTAMP_ISO8601:timestamp}\\\\]\\\\[%{LOGLEVEL:loglevel} \\\\]\\\\[.*\",\n \"ecs_compatibility\" : \"disabled\",\n \"timestamp_field\" : \"timestamp\",\n \"joda_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"java_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"need_client_timezone\" : true,\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n },\n \"loglevel\" : {\n \"type\" : \"keyword\"\n },\n \"message\" : {\n \"type\" : \"text\"\n }\n }\n },\n \"ingest_pipeline\" : {\n \"description\" : \"Ingest pipeline created by text structure finder\",\n \"processors\" : [\n {\n \"grok\" : {\n \"field\" : \"message\",\n \"patterns\" : [\n \"\\\\[%{TIMESTAMP_ISO8601:timestamp}\\\\]\\\\[%{LOGLEVEL:loglevel} \\\\]\\\\[.*\"\n ],\n \"ecs_compatibility\" : \"disabled\"\n }\n },\n {\n \"date\" : {\n \"field\" : \"timestamp\",\n \"timezone\" : \"{{ event.timezone }}\",\n \"formats\" : [\n \"ISO8601\"\n ]\n }\n },\n {\n \"remove\" : {\n \"field\" : \"timestamp\"\n }\n }\n ]\n },\n \"field_stats\" : {\n \"loglevel\" : {\n \"count\" : 22,\n \"cardinality\" : 1,\n \"top_hits\" : [\n {\n \"value\" : \"INFO\",\n \"count\" : 22\n }\n ]\n },\n \"message\" : {\n \"count\" : 22,\n \"cardinality\" : 22,\n \"top_hits\" : [\n {\n \"value\" : \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,042][INFO ][o.e.p.PluginsService ] [laptop] loaded module [rest-root]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [ingest-user-agent]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-core]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-redact]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-painless]]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-s3]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-analytics]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-autoscaling]\",\n \"count\" : 1\n }\n ]\n },\n \"timestamp\" : {\n \"count\" : 22,\n \"cardinality\" : 14,\n \"earliest\" : \"2024-03-05T10:52:36,256\",\n \"latest\" : \"2024-03-05T10:52:49,199\",\n \"top_hits\" : [\n {\n \"value\" : \"2024-03-05T10:52:41,044\",\n \"count\" : 6\n },\n {\n \"value\" : \"2024-03-05T10:52:41,043\",\n \"count\" : 3\n },\n {\n \"value\" : \"2024-03-05T10:52:41,059\",\n \"count\" : 2\n },\n {\n \"value\" : \"2024-03-05T10:52:36,256\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:41,038\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:41,042\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:43,291\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:46,098\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:47,227\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:47,259\",\n \"count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"text-structure/apis/find-message-structure.asciidoc","line":93},"digest":"77518e8c6198acfe77c0934fd2fe65cb","lang":"console","found":["python","ruby","js"],"source":"POST _text_structure/find_message_structure\n{\n \"messages\": [\n \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\",\n \"[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\",\n \"[2024-03-05T10:52:41,042][INFO ][o.e.p.PluginsService ] [laptop] loaded module [rest-root]\",\n \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-core]\",\n \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-redact]\",\n \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [ingest-user-agent]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-monitoring]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-s3]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-analytics]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-ent-search]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-autoscaling]\",\n \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-painless]]\",\n \"[2024-03-05T10:52:41,059][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-expression]\",\n \"[2024-03-05T10:52:41,059][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-eql]\",\n \"[2024-03-05T10:52:43,291][INFO ][o.e.e.NodeEnvironment ] [laptop] heap size [16gb], compressed ordinary object pointers [true]\",\n \"[2024-03-05T10:52:46,098][INFO ][o.e.x.s.Security ] [laptop] Security is enabled\",\n \"[2024-03-05T10:52:47,227][INFO ][o.e.x.p.ProfilingPlugin ] [laptop] Profiling is enabled\",\n \"[2024-03-05T10:52:47,259][INFO ][o.e.x.p.ProfilingPlugin ] [laptop] profiling index templates will not be installed or reinstalled\",\n \"[2024-03-05T10:52:47,755][INFO ][o.e.i.r.RecoverySettings ] [laptop] using rate limit [40mb] with [default=40mb, read=0b, write=0b, max=0b]\",\n \"[2024-03-05T10:52:47,787][INFO ][o.e.d.DiscoveryModule ] [laptop] using discovery type [multi-node] and seed hosts providers [settings]\",\n \"[2024-03-05T10:52:49,188][INFO ][o.e.n.Node ] [laptop] initialized\",\n \"[2024-03-05T10:52:49,199][INFO ][o.e.n.Node ] [laptop] starting ...\"\n ]\n}"},
{"source_location":{"file":"text-structure/apis/find-message-structure.asciidoc","line":127},"digest":"af6b324025a95de41ceca7a862a15c53","lang":"console-result","found":[],"source":"{\n \"num_lines_analyzed\" : 22,\n \"num_messages_analyzed\" : 22,\n \"sample_start\" : \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\\n[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\\n\", <3>\n \"charset\" : \"UTF-8\",\n \"format\" : \"semi_structured_text\",\n \"multiline_start_pattern\" : \"^\\\\[\\\\b\\\\d{4}-\\\\d{2}-\\\\d{2}[T ]\\\\d{2}:\\\\d{2}\",\n \"grok_pattern\" : \"\\\\[%{TIMESTAMP_ISO8601:timestamp}\\\\]\\\\[%{LOGLEVEL:loglevel} \\\\]\\\\[.*\",\n \"ecs_compatibility\" : \"disabled\",\n \"timestamp_field\" : \"timestamp\",\n \"joda_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"java_timestamp_formats\" : [\n \"ISO8601\"\n ],\n \"need_client_timezone\" : true,\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n },\n \"loglevel\" : {\n \"type\" : \"keyword\"\n },\n \"message\" : {\n \"type\" : \"text\"\n }\n }\n },\n \"ingest_pipeline\" : {\n \"description\" : \"Ingest pipeline created by text structure finder\",\n \"processors\" : [\n {\n \"grok\" : {\n \"field\" : \"message\",\n \"patterns\" : [\n \"\\\\[%{TIMESTAMP_ISO8601:timestamp}\\\\]\\\\[%{LOGLEVEL:loglevel} \\\\]\\\\[.*\"\n ],\n \"ecs_compatibility\" : \"disabled\"\n }\n },\n {\n \"date\" : {\n \"field\" : \"timestamp\",\n \"timezone\" : \"{{ event.timezone }}\",\n \"formats\" : [\n \"ISO8601\"\n ]\n }\n },\n {\n \"remove\" : {\n \"field\" : \"timestamp\"\n }\n }\n ]\n },\n \"field_stats\" : {\n \"loglevel\" : {\n \"count\" : 22,\n \"cardinality\" : 1,\n \"top_hits\" : [\n {\n \"value\" : \"INFO\",\n \"count\" : 22\n }\n ]\n },\n \"message\" : {\n \"count\" : 22,\n \"cardinality\" : 22,\n \"top_hits\" : [\n {\n \"value\" : \"[2024-03-05T10:52:36,256][INFO ][o.a.l.u.VectorUtilPanamaProvider] [laptop] Java vector incubator API enabled; uses preferredBitSize=128\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,038][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-url]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,042][INFO ][o.e.p.PluginsService ] [laptop] loaded module [rest-root]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [ingest-user-agent]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-core]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,043][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-redact]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [lang-painless]]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [repository-s3]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-analytics]\",\n \"count\" : 1\n },\n {\n \"value\" : \"[2024-03-05T10:52:41,044][INFO ][o.e.p.PluginsService ] [laptop] loaded module [x-pack-autoscaling]\",\n \"count\" : 1\n }\n ]\n },\n \"timestamp\" : {\n \"count\" : 22,\n \"cardinality\" : 14,\n \"earliest\" : \"2024-03-05T10:52:36,256\",\n \"latest\" : \"2024-03-05T10:52:49,199\",\n \"top_hits\" : [\n {\n \"value\" : \"2024-03-05T10:52:41,044\",\n \"count\" : 6\n },\n {\n \"value\" : \"2024-03-05T10:52:41,043\",\n \"count\" : 3\n },\n {\n \"value\" : \"2024-03-05T10:52:41,059\",\n \"count\" : 2\n },\n {\n \"value\" : \"2024-03-05T10:52:36,256\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:41,038\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:41,042\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:43,291\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:46,098\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:47,227\",\n \"count\" : 1\n },\n {\n \"value\" : \"2024-03-05T10:52:47,259\",\n \"count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"text-structure/apis/find-structure.asciidoc","line":101},"digest":"d870d5bd1f97fc75872a298fcddec513","lang":"console","found":["python","ruby","js"],"source":"POST _text_structure/find_structure\n{\"name\": \"Leviathan Wakes\", \"author\": \"James S.A. Corey\", \"release_date\": \"2011-06-02\", \"page_count\": 561}\n{\"name\": \"Hyperion\", \"author\": \"Dan Simmons\", \"release_date\": \"1989-05-26\", \"page_count\": 482}\n{\"name\": \"Dune\", \"author\": \"Frank Herbert\", \"release_date\": \"1965-06-01\", \"page_count\": 604}\n{\"name\": \"Dune Messiah\", \"author\": \"Frank Herbert\", \"release_date\": \"1969-10-15\", \"page_count\": 331}\n{\"name\": \"Children of Dune\", \"author\": \"Frank Herbert\", \"release_date\": \"1976-04-21\", \"page_count\": 408}\n{\"name\": \"God Emperor of Dune\", \"author\": \"Frank Herbert\", \"release_date\": \"1981-05-28\", \"page_count\": 454}\n{\"name\": \"Consider Phlebas\", \"author\": \"Iain M. Banks\", \"release_date\": \"1987-04-23\", \"page_count\": 471}\n{\"name\": \"Pandora's Star\", \"author\": \"Peter F. Hamilton\", \"release_date\": \"2004-03-02\", \"page_count\": 768}\n{\"name\": \"Revelation Space\", \"author\": \"Alastair Reynolds\", \"release_date\": \"2000-03-15\", \"page_count\": 585}\n{\"name\": \"A Fire Upon the Deep\", \"author\": \"Vernor Vinge\", \"release_date\": \"1992-06-01\", \"page_count\": 613}\n{\"name\": \"Ender's Game\", \"author\": \"Orson Scott Card\", \"release_date\": \"1985-06-01\", \"page_count\": 324}\n{\"name\": \"1984\", \"author\": \"George Orwell\", \"release_date\": \"1985-06-01\", \"page_count\": 328}\n{\"name\": \"Fahrenheit 451\", \"author\": \"Ray Bradbury\", \"release_date\": \"1953-10-15\", \"page_count\": 227}\n{\"name\": \"Brave New World\", \"author\": \"Aldous Huxley\", \"release_date\": \"1932-06-01\", \"page_count\": 268}\n{\"name\": \"Foundation\", \"author\": \"Isaac Asimov\", \"release_date\": \"1951-06-01\", \"page_count\": 224}\n{\"name\": \"The Giver\", \"author\": \"Lois Lowry\", \"release_date\": \"1993-04-26\", \"page_count\": 208}\n{\"name\": \"Slaughterhouse-Five\", \"author\": \"Kurt Vonnegut\", \"release_date\": \"1969-06-01\", \"page_count\": 275}\n{\"name\": \"The Hitchhiker's Guide to the Galaxy\", \"author\": \"Douglas Adams\", \"release_date\": \"1979-10-12\", \"page_count\": 180}\n{\"name\": \"Snow Crash\", \"author\": \"Neal Stephenson\", \"release_date\": \"1992-06-01\", \"page_count\": 470}\n{\"name\": \"Neuromancer\", \"author\": \"William Gibson\", \"release_date\": \"1984-07-01\", \"page_count\": 271}\n{\"name\": \"The Handmaid's Tale\", \"author\": \"Margaret Atwood\", \"release_date\": \"1985-06-01\", \"page_count\": 311}\n{\"name\": \"Starship Troopers\", \"author\": \"Robert A. Heinlein\", \"release_date\": \"1959-12-01\", \"page_count\": 335}\n{\"name\": \"The Left Hand of Darkness\", \"author\": \"Ursula K. Le Guin\", \"release_date\": \"1969-06-01\", \"page_count\": 304}\n{\"name\": \"The Moon is a Harsh Mistress\", \"author\": \"Robert A. Heinlein\", \"release_date\": \"1966-04-01\", \"page_count\": 288}"},
{"source_location":{"file":"text-structure/apis/find-structure.asciidoc","line":133},"digest":"8bbd688c88c1a59e72d69b209b60f1ef","lang":"console-result","found":[],"source":"{\n \"num_lines_analyzed\" : 24, <1>\n \"num_messages_analyzed\" : 24, <2>\n \"sample_start\" : \"{\\\"name\\\": \\\"Leviathan Wakes\\\", \\\"author\\\": \\\"James S.A. Corey\\\", \\\"release_date\\\": \\\"2011-06-02\\\", \\\"page_count\\\": 561}\\n{\\\"name\\\": \\\"Hyperion\\\", \\\"author\\\": \\\"Dan Simmons\\\", \\\"release_date\\\": \\\"1989-05-26\\\", \\\"page_count\\\": 482}\\n\", <3>\n \"charset\" : \"UTF-8\", <4>\n \"has_byte_order_marker\" : false, <5>\n \"format\" : \"ndjson\", <6>\n \"ecs_compatibility\" : \"disabled\", <7>\n \"timestamp_field\" : \"release_date\", <8>\n \"joda_timestamp_formats\" : [ <9>\n \"ISO8601\"\n ],\n \"java_timestamp_formats\" : [ <10>\n \"ISO8601\"\n ],\n \"need_client_timezone\" : true, <11>\n \"mappings\" : { <12>\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\"\n },\n \"author\" : {\n \"type\" : \"keyword\"\n },\n \"name\" : {\n \"type\" : \"keyword\"\n },\n \"page_count\" : {\n \"type\" : \"long\"\n },\n \"release_date\" : {\n \"type\" : \"date\",\n \"format\" : \"iso8601\"\n }\n }\n },\n \"ingest_pipeline\" : {\n \"description\" : \"Ingest pipeline created by text structure finder\",\n \"processors\" : [\n {\n \"date\" : {\n \"field\" : \"release_date\",\n \"timezone\" : \"{{ event.timezone }}\",\n \"formats\" : [\n \"ISO8601\"\n ]\n }\n }\n ]\n },\n \"field_stats\" : { <13>\n \"author\" : {\n \"count\" : 24,\n \"cardinality\" : 20,\n \"top_hits\" : [\n {\n \"value\" : \"Frank Herbert\",\n \"count\" : 4\n },\n {\n \"value\" : \"Robert A. Heinlein\",\n \"count\" : 2\n },\n {\n \"value\" : \"Alastair Reynolds\",\n \"count\" : 1\n },\n {\n \"value\" : \"Aldous Huxley\",\n \"count\" : 1\n },\n {\n \"value\" : \"Dan Simmons\",\n \"count\" : 1\n },\n {\n \"value\" : \"Douglas Adams\",\n \"count\" : 1\n },\n {\n \"value\" : \"George Orwell\",\n \"count\" : 1\n },\n {\n \"value\" : \"Iain M. Banks\",\n \"count\" : 1\n },\n {\n \"value\" : \"Isaac Asimov\",\n \"count\" : 1\n },\n {\n \"value\" : \"James S.A. Corey\",\n \"count\" : 1\n }\n ]\n },\n \"name\" : {\n \"count\" : 24,\n \"cardinality\" : 24,\n \"top_hits\" : [\n {\n \"value\" : \"1984\",\n \"count\" : 1\n },\n {\n \"value\" : \"A Fire Upon the Deep\",\n \"count\" : 1\n },\n {\n \"value\" : \"Brave New World\",\n \"count\" : 1\n },\n {\n \"value\" : \"Children of Dune\",\n \"count\" : 1\n },\n {\n \"value\" : \"Consider Phlebas\",\n \"count\" : 1\n },\n {\n \"value\" : \"Dune\",\n \"count\" : 1\n },\n {\n \"value\" : \"Dune Messiah\",\n \"count\" : 1\n },\n {\n \"value\" : \"Ender's Game\",\n \"count\" : 1\n },\n {\n \"value\" : \"Fahrenheit 451\",\n \"count\" : 1\n },\n {\n \"value\" : \"Foundation\",\n \"count\" : 1\n }\n ]\n },\n \"page_count\" : {\n \"count\" : 24,\n \"cardinality\" : 24,\n \"min_value\" : 180,\n \"max_value\" : 768,\n \"mean_value\" : 387.0833333333333,\n \"median_value\" : 329.5,\n \"top_hits\" : [\n {\n \"value\" : 180,\n \"count\" : 1\n },\n {\n \"value\" : 208,\n \"count\" : 1\n },\n {\n \"value\" : 224,\n \"count\" : 1\n },\n {\n \"value\" : 227,\n \"count\" : 1\n },\n {\n \"value\" : 268,\n \"count\" : 1\n },\n {\n \"value\" : 271,\n \"count\" : 1\n },\n {\n \"value\" : 275,\n \"count\" : 1\n },\n {\n \"value\" : 288,\n \"count\" : 1\n },\n {\n \"value\" : 304,\n \"count\" : 1\n },\n {\n \"value\" : 311,\n \"count\" : 1\n }\n ]\n },\n \"release_date\" : {\n \"count\" : 24,\n \"cardinality\" : 20,\n \"earliest\" : \"1932-06-01\",\n \"latest\" : \"2011-06-02\",\n \"top_hits\" : [\n {\n \"value\" : \"1985-06-01\",\n \"count\" : 3\n },\n {\n \"value\" : \"1969-06-01\",\n \"count\" : 2\n },\n {\n \"value\" : \"1992-06-01\",\n \"count\" : 2\n },\n {\n \"value\" : \"1932-06-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1951-06-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1953-10-15\",\n \"count\" : 1\n },\n {\n \"value\" : \"1959-12-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1965-06-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1966-04-01\",\n \"count\" : 1\n },\n {\n \"value\" : \"1969-10-15\",\n \"count\" : 1\n }\n ]\n }\n }\n}"},
{"source_location":{"file":"text-structure/apis/test-grok-pattern.asciidoc","line":60},"digest":"692606cc6d6462becc321d92961a3bac","lang":"console","found":["python","ruby","js"],"source":"GET _text_structure/test_grok_pattern\n{\n \"grok_pattern\": \"Hello %{WORD:first_name} %{WORD:last_name}\",\n \"text\": [\n \"Hello John Doe\",\n \"this does not match\"\n ]\n}"},
{"source_location":{"file":"text-structure/apis/test-grok-pattern.asciidoc","line":74},"digest":"992b98ec88ed1c59a1dcaa4affc9c308","lang":"console-result","found":[],"source":"{\n \"matches\": [\n {\n \"matched\": true,\n \"fields\": {\n \"first_name\": [\n {\n \"match\": \"John\",\n \"offset\": 6,\n \"length\": 4\n }\n ],\n \"last_name\": [\n {\n \"match\": \"Doe\",\n \"offset\": 11,\n \"length\": 3\n }\n ]\n }\n },\n {\n \"matched\": false\n }\n ]\n}"},
{"source_location":{"file":"transform/apis/put-transform.asciidoc","line":320},"digest":"58ca855be30049f8f0879e532db51ee2","lang":"console","found":["python","js"],"source":"PUT _transform/ecommerce_transform1\n{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\",\n \"query\": {\n \"term\": {\n \"geoip.continent_name\": {\n \"value\": \"Asia\"\n }\n }\n }\n },\n \"pivot\": {\n \"group_by\": {\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\",\n \"missing_bucket\": true\n }\n }\n },\n \"aggregations\": {\n \"max_price\": {\n \"max\": {\n \"field\": \"taxful_total_price\"\n }\n }\n }\n },\n \"description\": \"Maximum priced ecommerce data by customer_id in Asia\",\n \"dest\": {\n \"index\": \"kibana_sample_data_ecommerce_transform1\",\n \"pipeline\": \"add_timestamp_pipeline\"\n },\n \"frequency\": \"5m\",\n \"sync\": {\n \"time\": {\n \"field\": \"order_date\",\n \"delay\": \"60s\"\n }\n },\n \"retention_policy\": {\n \"time\": {\n \"field\": \"order_date\",\n \"max_age\": \"30d\"\n }\n }\n}"},
{"source_location":{"file":"transform/apis/put-transform.asciidoc","line":375},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"transform/apis/put-transform.asciidoc","line":384},"digest":"7106e6317e6368b9863cf64df9c6f0c9","lang":"console","found":["python","js"],"source":"PUT _transform/ecommerce_transform2\n{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\"\n },\n \"latest\": {\n \"unique_key\": [\"customer_id\"],\n \"sort\": \"order_date\"\n },\n \"description\": \"Latest order for each customer\",\n \"dest\": {\n \"index\": \"kibana_sample_data_ecommerce_transform2\"\n },\n \"frequency\": \"5m\",\n \"sync\": {\n \"time\": {\n \"field\": \"order_date\",\n \"delay\": \"60s\"\n }\n }\n}"},
{"source_location":{"file":"transform/apis/delete-transform.asciidoc","line":59},"digest":"70c736ecb3746dbe839af0e468712805","lang":"console","found":["python","ruby","js"],"source":"DELETE _transform/ecommerce_transform"},
{"source_location":{"file":"transform/apis/delete-transform.asciidoc","line":67},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"transform/apis/get-transform.asciidoc","line":106},"digest":"c65b00a285f510dcd2865aa3539b4e03","lang":"console","found":["python","ruby","js"],"source":"GET _transform?size=10"},
{"source_location":{"file":"transform/apis/get-transform.asciidoc","line":115},"digest":"9129dec88d35571b3166c6677297f03b","lang":"console","found":["python","ruby","js"],"source":"GET _transform/ecommerce_transform1"},
{"source_location":{"file":"transform/apis/get-transform.asciidoc","line":123},"digest":"2b3c048be6744493dda5c022667f5b24","lang":"console-result","found":[],"source":"{\n \"count\" : 1,\n \"transforms\" : [\n {\n \"id\" : \"ecommerce_transform1\",\n \"authorization\" : {\n \"roles\" : [\n \"superuser\"\n ]\n },\n \"version\" : \"8.4.0\",\n \"create_time\" : 1656023416565,\n \"source\" : {\n \"index\" : [\n \"kibana_sample_data_ecommerce\"\n ],\n \"query\" : {\n \"term\" : {\n \"geoip.continent_name\" : {\n \"value\" : \"Asia\"\n }\n }\n }\n },\n \"dest\" : {\n \"index\" : \"kibana_sample_data_ecommerce_transform1\",\n \"pipeline\" : \"add_timestamp_pipeline\"\n },\n \"frequency\" : \"5m\",\n \"sync\" : {\n \"time\" : {\n \"field\" : \"order_date\",\n \"delay\" : \"60s\"\n }\n },\n \"pivot\" : {\n \"group_by\" : {\n \"customer_id\" : {\n \"terms\" : {\n \"field\" : \"customer_id\"\n }\n }\n },\n \"aggregations\" : {\n \"max_price\" : {\n \"max\" : {\n \"field\" : \"taxful_total_price\"\n }\n }\n }\n },\n \"description\" : \"Maximum priced ecommerce data by customer_id in Asia\",\n \"settings\" : { },\n \"retention_policy\" : {\n \"time\" : {\n \"field\" : \"order_date\",\n \"max_age\" : \"30d\"\n }\n }\n }\n ]\n}"},
{"source_location":{"file":"transform/apis/get-transform-stats.asciidoc","line":328},"digest":"53c6256295111524d5ff2885bdcb99a9","lang":"console","found":["python","ruby","js"],"source":"GET _transform/_stats?from=5&size=10"},
{"source_location":{"file":"transform/apis/get-transform-stats.asciidoc","line":336},"digest":"0755471d7dce4785d2e7ed0c10182ea3","lang":"console","found":["python","ruby","js"],"source":"GET _transform/ecommerce-customer-transform/_stats"},
{"source_location":{"file":"transform/apis/get-transform-stats.asciidoc","line":344},"digest":"bd0107ca773e57e6accc153cc2571b26","lang":"console-result","found":[],"source":"{\n \"count\" : 1,\n \"transforms\" : [\n {\n \"id\" : \"ecommerce-customer-transform\",\n \"state\" : \"started\",\n \"node\" : {\n \"id\" : \"cpTIGMsVQ8Gqwqlxxxxxxx\",\n \"name\" : \"my.home\",\n \"ephemeral_id\" : \"5-L21nFsQxxxxxxxxxx-xx\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"attributes\" : { }\n },\n \"stats\" : {\n \"pages_processed\" : 78,\n \"documents_processed\" : 6027,\n \"documents_indexed\" : 68,\n \"documents_deleted\": 22,\n \"delete_time_in_ms\": 214,\n \"trigger_count\" : 168,\n \"index_time_in_ms\" : 412,\n \"index_total\" : 20,\n \"index_failures\" : 0,\n \"search_time_in_ms\" : 353,\n \"search_total\" : 78,\n \"search_failures\" : 0,\n \"processing_time_in_ms\" : 8,\n \"processing_total\" : 78,\n \"exponential_avg_checkpoint_duration_ms\" : 97.30637923893185,\n \"exponential_avg_documents_indexed\" : 2.2064915040974062,\n \"exponential_avg_documents_processed\" : 179.89419945785045\n },\n \"checkpointing\" : {\n \"last\" : {\n \"checkpoint\" : 20,\n \"timestamp_millis\" : 1585344558220,\n \"time_upper_bound_millis\" : 1585344498220\n },\n \"changes_last_detected_at\" : 1585344558219\n },\n \"health\": {\n \"status\": \"green\"\n }\n }\n ]\n}"},
{"source_location":{"file":"transform/apis/preview-transform.asciidoc","line":296},"digest":"c1ac9e53b04f7acee4b4933969d6b574","lang":"console","found":["python","js"],"source":"POST _transform/_preview\n{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\"\n },\n \"pivot\": {\n \"group_by\": {\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\",\n \"missing_bucket\": true\n }\n }\n },\n \"aggregations\": {\n \"max_price\": {\n \"max\": {\n \"field\": \"taxful_total_price\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"transform/apis/reset-transform.asciidoc","line":67},"digest":"048652b6abfe195da8ea8cef10ee01b1","lang":"console","found":["python","ruby","js"],"source":"POST _transform/ecommerce_transform/_reset"},
{"source_location":{"file":"transform/apis/reset-transform.asciidoc","line":75},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"transform/apis/schedule-now-transform.asciidoc","line":58},"digest":"0fe74ccd098c742619805a7c0bd0fae6","lang":"console","found":["python","ruby","js"],"source":"POST _transform/ecommerce_transform/_schedule_now"},
{"source_location":{"file":"transform/apis/schedule-now-transform.asciidoc","line":66},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"transform/apis/start-transform.asciidoc","line":85},"digest":"01bc0f2ed30eb3dd23511d01ce0ac6e1","lang":"console","found":["python","ruby","js"],"source":"POST _transform/ecommerce_transform/_start"},
{"source_location":{"file":"transform/apis/start-transform.asciidoc","line":93},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"transform/apis/stop-transform.asciidoc","line":87},"digest":"654882f545eca8d7047695f867c63072","lang":"console","found":["python","ruby","js"],"source":"POST _transform/ecommerce_transform/_stop"},
{"source_location":{"file":"transform/apis/stop-transform.asciidoc","line":95},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"},
{"source_location":{"file":"transform/apis/update-transform.asciidoc","line":263},"digest":"27384266370152add76471dd0332a2f1","lang":"console","found":["python","ruby","js"],"source":"POST _transform/simple-kibana-ecomm-pivot/_update\n{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\",\n \"query\": {\n \"term\": {\n \"geoip.continent_name\": {\n \"value\": \"Asia\"\n }\n }\n }\n },\n \"description\": \"Maximum priced ecommerce data by customer_id in Asia\",\n \"dest\": {\n \"index\": \"kibana_sample_data_ecommerce_transform_v2\",\n \"pipeline\": \"add_timestamp_pipeline\"\n },\n \"frequency\": \"15m\",\n \"sync\": {\n \"time\": {\n \"field\": \"order_date\",\n \"delay\": \"120s\"\n }\n }\n}"},
{"source_location":{"file":"transform/apis/update-transform.asciidoc","line":295},"digest":"4abdb4afb4c5c20485771393e3034698","lang":"console-result","found":[],"source":"{\n \"id\" : \"simple-kibana-ecomm-pivot\",\n \"authorization\" : {\n \"roles\" : [\n \"superuser\"\n ]\n },\n \"version\" : \"8.4.0\",\n \"create_time\" : 1656113450613,\n \"source\" : {\n \"index\" : [\n \"kibana_sample_data_ecommerce\"\n ],\n \"query\" : {\n \"term\" : {\n \"geoip.continent_name\" : {\n \"value\" : \"Asia\"\n }\n }\n }\n },\n \"dest\" : {\n \"index\" : \"kibana_sample_data_ecommerce_transform_v2\",\n \"pipeline\" : \"add_timestamp_pipeline\"\n },\n \"frequency\" : \"15m\",\n \"sync\" : {\n \"time\" : {\n \"field\" : \"order_date\",\n \"delay\" : \"120s\"\n }\n },\n \"pivot\" : {\n \"group_by\" : {\n \"customer_id\" : {\n \"terms\" : {\n \"field\" : \"customer_id\"\n }\n }\n },\n \"aggregations\" : {\n \"max_price\" : {\n \"max\" : {\n \"field\" : \"taxful_total_price\"\n }\n }\n }\n },\n \"description\" : \"Maximum priced ecommerce data by customer_id in Asia\",\n \"settings\" : { }\n}"},
{"source_location":{"file":"transform/apis/upgrade-transforms.asciidoc","line":103},"digest":"a2c3e284354e8d49cf51bb8dd5ef3613","lang":"console","found":["python","ruby","js"],"source":"POST _transform/_upgrade"},
{"source_location":{"file":"transform/apis/upgrade-transforms.asciidoc","line":111},"digest":"4fee12a023d234db0c373ea1a79c842d","lang":"console-result","found":[],"source":"{\n \"needs_update\": 0,\n \"updated\": 2,\n \"no_action\": 1\n}"},
{"source_location":{"file":"rest-api/usage.asciidoc","line":44},"digest":"43fe75fa9f3fca846598fdad58fd98cb","lang":"console","found":["python","ruby","js"],"source":"GET /_xpack/usage"},
{"source_location":{"file":"rest-api/usage.asciidoc","line":53},"digest":"22983bebac540a5c053e3ba4d6af6aa8","lang":"console-result","found":[],"source":"{\n \"security\" : {\n \"available\" : true,\n \"enabled\" : true,\n ...\n },\n \"monitoring\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"collection_enabled\" : false,\n \"enabled_exporters\" : {\n \"local\" : 1\n }\n },\n \"watcher\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"execution\" : {\n \"actions\" : {\n \"_all\" : {\n \"total\" : 0,\n \"total_time_in_ms\" : 0\n }\n }\n },\n \"watch\" : {\n \"input\" : {\n \"_all\" : {\n \"total\" : 0,\n \"active\" : 0\n }\n },\n \"trigger\" : {\n \"_all\" : {\n \"total\" : 0,\n \"active\" : 0\n }\n }\n },\n \"count\" : {\n \"total\" : 0,\n \"active\" : 0\n }\n },\n \"graph\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"ml\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"jobs\" : {\n \"_all\" : {\n \"count\" : 0,\n \"detectors\" : {\n ...\n },\n \"created_by\" : { },\n \"model_size\" : {\n ...\n },\n \"forecasts\" : {\n \"total\" : 0,\n \"forecasted_jobs\" : 0\n }\n }\n },\n \"datafeeds\" : {\n \"_all\" : {\n \"count\" : 0\n }\n },\n \"data_frame_analytics_jobs\" : {\n \"_all\" : {\n \"count\" : 0\n },\n \"analysis_counts\": { },\n \"memory_usage\": {\n \"peak_usage_bytes\": {\n \"min\": 0.0,\n \"max\": 0.0,\n \"avg\": 0.0,\n \"total\": 0.0\n }\n }\n },\n \"inference\" : {\n \"ingest_processors\" : {\n \"_all\" : {\n \"num_docs_processed\" : {\n \"max\" : 0,\n \"sum\" : 0,\n \"min\" : 0\n },\n \"pipelines\" : {\n \"count\" : 0\n },\n \"num_failures\" : {\n \"max\" : 0,\n \"sum\" : 0,\n \"min\" : 0\n },\n \"time_ms\" : {\n \"max\" : 0,\n \"sum\" : 0,\n \"min\" : 0\n }\n }\n },\n \"trained_models\" : {\n \"_all\" : {\n \"count\": 1\n },\n \"count\": {\n \"total\": 1,\n \"prepackaged\": 1,\n \"other\": 0\n },\n \"model_size_bytes\": {\n \"min\": 0.0,\n \"max\": 0.0,\n \"avg\": 0.0,\n \"total\": 0.0\n },\n \"estimated_operations\": {\n \"min\": 0.0,\n \"max\": 0.0,\n \"avg\": 0.0,\n \"total\": 0.0\n }\n },\n \"deployments\": {\n \"count\": 0,\n \"inference_counts\": {\n \"total\": 0.0,\n \"min\": 0.0,\n \"avg\": 0.0,\n \"max\": 0.0\n },\n \"stats_by_model\": [],\n \"model_sizes_bytes\": {\n \"total\": 0.0,\n \"min\": 0.0,\n \"avg\": 0.0,\n \"max\": 0.0\n },\n \"time_ms\": {\n \"avg\": 0.0\n }\n }\n },\n \"node_count\" : 1,\n \"memory\": {\n anomaly_detectors_memory_bytes: 0,\n data_frame_analytics_memory_bytes: 0,\n pytorch_inference_memory_bytes: 0,\n total_used_memory_bytes: 0\n }\n },\n \"inference\": {\n \"available\" : true,\n \"enabled\" : true,\n \"models\" : [\n ...\n ]\n },\n \"logstash\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"eql\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"esql\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"features\" : {\n \"eval\" : 0,\n \"stats\" : 0,\n \"dissect\": 0,\n \"grok\" : 0,\n \"limit\" : 0,\n \"where\" : 0,\n \"sort\" : 0,\n \"drop\" : 0,\n \"show\" : 0,\n \"rename\" : 0,\n \"mv_expand\" : 0,\n \"keep\" : 0,\n \"enrich\" : 0,\n \"from\" : 0,\n \"row\" : 0\n },\n \"queries\" : {\n \"rest\" : {\n \"total\" : 0,\n \"failed\" : 0\n },\n \"kibana\" : {\n \"total\" : 0,\n \"failed\" : 0\n },\n \"_all\" : {\n \"total\" : 0,\n \"failed\" : 0\n }\n }\n },\n \"sql\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"features\" : {\n \"having\" : 0,\n \"subselect\" : 0,\n \"limit\" : 0,\n \"orderby\" : 0,\n \"where\" : 0,\n \"join\" : 0,\n \"groupby\" : 0,\n \"command\" : 0,\n \"local\" : 0\n },\n \"queries\" : {\n \"rest\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"cli\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"canvas\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"odbc\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"jdbc\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"odbc32\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"odbc64\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"_all\" : {\n \"total\" : 0,\n \"paging\" : 0,\n \"failed\" : 0\n },\n \"translate\" : {\n \"count\" : 0\n }\n }\n },\n \"rollup\" : {\n \"available\" : true,\n \"enabled\" : true,\n ...\n },\n \"ilm\" : {\n \"policy_count\" : 3,\n \"policy_stats\" : [\n ...\n ]\n },\n \"slm\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"ccr\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"follower_indices_count\" : 0,\n \"auto_follow_patterns_count\" : 0\n },\n \"transform\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"voting_only\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"searchable_snapshots\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"indices_count\" : 0,\n \"full_copy_indices_count\" : 0,\n \"shared_cache_indices_count\" : 0\n },\n \"spatial\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"analytics\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"stats\": {\n \"boxplot_usage\" : 0,\n \"top_metrics_usage\" : 0,\n \"normalize_usage\" : 0,\n \"cumulative_cardinality_usage\" : 0,\n \"t_test_usage\" : 0,\n \"rate_usage\" : 0,\n \"string_stats_usage\" : 0,\n \"moving_percentiles_usage\" : 0,\n \"multi_terms_usage\" : 0\n }\n },\n \"data_streams\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"data_streams\" : 0,\n \"indices_count\" : 0\n },\n \"data_lifecycle\" : {\n \"available\": true,\n \"enabled\": true,\n \"count\": 0,\n \"default_rollover_used\": true,\n \"data_retention\": {\n \"configured_data_streams\": 0\n },\n \"effective_retention\": {\n \"retained_data_streams\": 0\n },\n \"global_retention\": {\n \"default\": {\n \"defined\": false\n },\n \"max\": {\n \"defined\": false\n }\n }\n },\n \"data_tiers\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"data_warm\" : {\n \"node_count\" : 0,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n },\n \"data_frozen\" : {\n \"node_count\" : 1,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n },\n \"data_cold\" : {\n \"node_count\" : 0,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n },\n \"data_content\" : {\n \"node_count\" : 0,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n },\n \"data_hot\" : {\n \"node_count\" : 0,\n \"index_count\" : 0,\n \"total_shard_count\" : 0,\n \"primary_shard_count\" : 0,\n \"doc_count\" : 0,\n \"total_size_bytes\" : 0,\n \"primary_size_bytes\" : 0,\n \"primary_shard_size_avg_bytes\" : 0,\n \"primary_shard_size_median_bytes\" : 0,\n \"primary_shard_size_mad_bytes\" : 0\n }\n },\n \"aggregate_metric\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"archive\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"indices_count\" : 0\n },\n \"health_api\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"invocations\": {\n \"total\": 0\n }\n },\n \"remote_clusters\": {\n \"size\": 0,\n \"mode\": {\n \"proxy\": 0,\n \"sniff\": 0\n },\n \"security\": {\n \"cert\": 0,\n \"api_key\": 0\n }\n },\n \"enterprise_search\" : {\n \"available\": true,\n \"enabled\": true,\n \"search_applications\" : {\n \"count\": 0\n },\n \"analytics_collections\": {\n \"count\": 0\n },\n \"query_rulesets\": {\n \"total_rule_count\": 0,\n \"total_count\": 0,\n \"min_rule_count\": 0,\n \"max_rule_count\": 0\n }\n },\n \"universal_profiling\" : {\n \"available\" : true,\n \"enabled\" : true\n },\n \"logsdb\": {\n \"available\": true,\n \"enabled\": true,\n \"indices_count\": 0,\n \"indices_with_synthetic_source\": 0,\n \"num_docs\": 0,\n \"size_in_bytes\": 0,\n \"has_custom_cutoff_date\": false\n }\n}"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":68},"digest":"9116ee8a5b00cc877291ed5559563f24","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/my_watch\n{\n \"trigger\" : {\n \"schedule\" : {\n \"yearly\" : { \"in\" : \"february\", \"on\" : 29, \"at\" : \"noon\" }\n }\n },\n \"input\": {\n \"simple\": {\n \"payload\": {\n \"send\": \"yes\"\n }\n }\n },\n \"condition\": {\n \"always\": {}\n },\n \"actions\": {\n \"test_index\": {\n \"throttle_period\": \"15m\",\n \"index\": {\n \"index\": \"test\"\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":102},"digest":"e827a9040e137410d62d10bb3b3cbb71","lang":"console","found":["python","js"],"source":"GET _watcher/watch/my_watch"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":109},"digest":"e2d293db79f536e0cd31d3a6871a2642","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"_version\": 1,\n \"_id\": \"my_watch\",\n \"status\": {\n \"version\": 1,\n \"actions\": {\n \"test_index\": {\n \"ack\": {\n \"timestamp\": \"2015-05-26T18:04:27.723Z\",\n \"state\": \"awaits_successful_execution\"\n }\n }\n },\n \"state\": ...\n },\n \"watch\": ...\n}"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":140},"digest":"bdc1afd2181154bb78797360f9dbb1a0","lang":"console","found":["python","js"],"source":"POST _watcher/watch/my_watch/_execute\n{\n \"record_execution\" : true\n}\n\nGET _watcher/watch/my_watch"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":153},"digest":"97c12a82b244e88ca1b3b3c707401b96","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_id\": \"my_watch\",\n \"_seq_no\": 1,\n \"_primary_term\": 1,\n \"_version\": 2,\n \"status\": {\n \"version\": 2,\n \"actions\": {\n \"test_index\": {\n \"ack\": {\n \"timestamp\": \"2015-05-26T18:04:27.723Z\",\n \"state\": \"ackable\"\n },\n \"last_execution\" : {\n \"timestamp\": \"2015-05-25T18:04:27.723Z\",\n \"successful\": true\n },\n \"last_successful_execution\" : {\n \"timestamp\": \"2015-05-25T18:04:27.723Z\",\n \"successful\": true\n }\n }\n },\n \"state\": ...,\n \"execution_state\": \"executed\",\n \"last_checked\": ...,\n \"last_met_condition\": ...\n },\n \"watch\": ...\n}"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":196},"digest":"1b0dc9d076bbb58c6a2953ef4323d2fc","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/my_watch/_ack/test_index\nGET _watcher/watch/my_watch"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":203},"digest":"1cfe00b731a1fdf0b2add0688c43a1c2","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_id\": \"my_watch\",\n \"_seq_no\": 2,\n \"_primary_term\": 1,\n \"_version\": 3,\n \"status\": {\n \"version\": 3,\n \"actions\": {\n \"test_index\": {\n \"ack\": {\n \"timestamp\": \"2015-05-26T18:04:27.723Z\",\n \"state\": \"acked\"\n },\n \"last_execution\" : {\n \"timestamp\": \"2015-05-25T18:04:27.723Z\",\n \"successful\": true\n },\n \"last_successful_execution\" : {\n \"timestamp\": \"2015-05-25T18:04:27.723Z\",\n \"successful\": true\n }\n }\n },\n \"state\": ...,\n \"execution_state\": \"executed\",\n \"last_checked\": ...,\n \"last_met_condition\": ...\n },\n \"watch\": ...\n}"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":251},"digest":"8051766cadded0892290bc2cc06e145c","lang":"console","found":["python","js"],"source":"POST _watcher/watch/my_watch/_ack/action1,action2"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":259},"digest":"df7dbac966b67404b8bfa9cdda5ef480","lang":"console","found":["python","js"],"source":"POST _watcher/watch/my_watch/_ack"},
{"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":268},"digest":"545a911f3f261e048a8affc77fa29a5d","lang":"console-result","found":[],"source":"{\n \"status\": {\n \"state\": {\n \"active\": true,\n \"timestamp\": \"2015-05-26T18:04:27.723Z\"\n },\n \"last_checked\": \"2015-05-26T18:04:27.753Z\",\n \"last_met_condition\": \"2015-05-26T18:04:27.763Z\",\n \"actions\": {\n \"test_index\": {\n \"ack\" : {\n \"timestamp\": \"2015-05-26T18:04:27.713Z\",\n \"state\": \"acked\"\n },\n \"last_execution\" : {\n \"timestamp\": \"2015-05-25T18:04:27.733Z\",\n \"successful\": true\n },\n \"last_successful_execution\" : {\n \"timestamp\": \"2015-05-25T18:04:27.773Z\",\n \"successful\": true\n }\n }\n },\n \"execution_state\": \"executed\",\n \"version\": 2\n }\n}\n"},
{"source_location":{"file":"rest-api/watcher/activate-watch.asciidoc","line":56},"digest":"e827a9040e137410d62d10bb3b3cbb71","lang":"console","found":["python","js"],"source":"GET _watcher/watch/my_watch"},
{"source_location":{"file":"rest-api/watcher/activate-watch.asciidoc","line":62},"digest":"6ab4f67649c21d637ec8a0ce72fd0d7c","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_id\": \"my_watch\",\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"_version\": 1,\n \"status\": {\n \"state\" : {\n \"active\" : false,\n \"timestamp\" : \"2015-08-20T12:21:32.734Z\"\n },\n \"actions\": ...,\n \"version\": 1\n },\n \"watch\": ...\n}"},
{"source_location":{"file":"rest-api/watcher/activate-watch.asciidoc","line":88},"digest":"3477a89d869b1f7f72d50c2ca86c4679","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/my_watch/_activate"},
{"source_location":{"file":"rest-api/watcher/activate-watch.asciidoc","line":96},"digest":"67f8c67c5dce82121a87f60160071133","lang":"console-result","found":[],"source":"{\n \"status\": {\n \"state\" : {\n \"active\" : true,\n \"timestamp\" : \"2015-09-04T08:39:46.816Z\"\n },\n \"actions\": ...,\n \"version\": 1\n }\n}"},
{"source_location":{"file":"rest-api/watcher/deactivate-watch.asciidoc","line":56},"digest":"e827a9040e137410d62d10bb3b3cbb71","lang":"console","found":["python","js"],"source":"GET _watcher/watch/my_watch"},
{"source_location":{"file":"rest-api/watcher/deactivate-watch.asciidoc","line":62},"digest":"c924b17f4d746145e67e12ddcc126a6f","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_id\": \"my_watch\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"status\": {\n \"state\" : {\n \"active\" : true,\n \"timestamp\" : \"2015-08-20T12:21:32.734Z\"\n },\n \"actions\": ...,\n \"version\": 1\n },\n \"watch\": ...\n}"},
{"source_location":{"file":"rest-api/watcher/deactivate-watch.asciidoc","line":88},"digest":"f63f6343e74bd5c844854272e746de14","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/my_watch/_deactivate"},
{"source_location":{"file":"rest-api/watcher/deactivate-watch.asciidoc","line":96},"digest":"6a25b3650607fe28bab83484ddf9a98c","lang":"console-result","found":[],"source":"{\n \"status\": {\n \"state\" : {\n \"active\" : false,\n \"timestamp\" : \"2015-09-04T08:39:46.816Z\"\n },\n \"actions\": ...,\n \"version\": 1\n }\n}"},
{"source_location":{"file":"rest-api/watcher/delete-watch.asciidoc","line":66},"digest":"2aa548b692fc2fe7b6f0d90eb8b2ae29","lang":"console","found":["python","ruby","js"],"source":"DELETE _watcher/watch/my_watch"},
{"source_location":{"file":"rest-api/watcher/delete-watch.asciidoc","line":74},"digest":"83597138e92b7b938bddf80b550eeed9","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_id\": \"my_watch\",\n \"_version\": 2\n}"},
{"source_location":{"file":"rest-api/watcher/execute-watch.asciidoc","line":153},"digest":"01dc7bdc223bd651574ed2d3954a5b1c","lang":"console","found":["python","js"],"source":"POST _watcher/watch/my_watch/_execute"},
{"source_location":{"file":"rest-api/watcher/execute-watch.asciidoc","line":161},"digest":"f6eff830fb0fad200ebfb1e3e46f6f0e","lang":"console","found":["python","js"],"source":"POST _watcher/watch/my_watch/_execute\n{\n \"trigger_data\" : { <1>\n \"triggered_time\" : \"now\",\n \"scheduled_time\" : \"now\"\n },\n \"alternative_input\" : { <2>\n \"foo\" : \"bar\"\n },\n \"ignore_condition\" : true, <3>\n \"action_modes\" : {\n \"my-action\" : \"force_simulate\" <4>\n },\n \"record_execution\" : true <5>\n}"},
{"source_location":{"file":"rest-api/watcher/execute-watch.asciidoc","line":194},"digest":"09ef6a65db6a67fbe3a41f066009641e","lang":"console-result","found":[],"source":"{\n \"_id\": \"my_watch_0-2015-06-02T23:17:55.124Z\", <1>\n \"watch_record\": { <2>\n \"@timestamp\": \"2015-06-02T23:17:55.124Z\",\n \"watch_id\": \"my_watch\",\n \"node\": \"my_node\",\n \"messages\": [],\n \"trigger_event\": {\n \"type\": \"manual\",\n \"triggered_time\": \"2015-06-02T23:17:55.124Z\",\n \"manual\": {\n \"schedule\": {\n \"scheduled_time\": \"2015-06-02T23:17:55.124Z\"\n }\n }\n },\n \"state\": \"executed\",\n \"status\": {\n \"version\": 1,\n \"execution_state\": \"executed\",\n \"state\": {\n \"active\": true,\n \"timestamp\": \"2015-06-02T23:17:55.111Z\"\n },\n \"last_checked\": \"2015-06-02T23:17:55.124Z\",\n \"last_met_condition\": \"2015-06-02T23:17:55.124Z\",\n \"actions\": {\n \"test_index\": {\n \"ack\": {\n \"timestamp\": \"2015-06-02T23:17:55.124Z\",\n \"state\": \"ackable\"\n },\n \"last_execution\": {\n \"timestamp\": \"2015-06-02T23:17:55.124Z\",\n \"successful\": true\n },\n \"last_successful_execution\": {\n \"timestamp\": \"2015-06-02T23:17:55.124Z\",\n \"successful\": true\n }\n }\n }\n },\n \"input\": {\n \"simple\": {\n \"payload\": {\n \"send\": \"yes\"\n }\n }\n },\n \"condition\": {\n \"always\": {}\n },\n \"result\": { <3>\n \"execution_time\": \"2015-06-02T23:17:55.124Z\",\n \"execution_duration\": 12608,\n \"input\": {\n \"type\": \"simple\",\n \"payload\": {\n \"foo\": \"bar\"\n },\n \"status\": \"success\"\n },\n \"condition\": {\n \"type\": \"always\",\n \"met\": true,\n \"status\": \"success\"\n },\n \"actions\": [\n {\n \"id\": \"test_index\",\n \"index\": {\n \"response\": {\n \"index\": \"test\",\n \"version\": 1,\n \"created\": true,\n \"result\": \"created\",\n \"id\": \"AVSHKzPa9zx62AzUzFXY\"\n }\n },\n \"status\": \"success\",\n \"type\": \"index\"\n }\n ]\n },\n \"user\": \"test_admin\" <4>\n }\n}"},
{"source_location":{"file":"rest-api/watcher/execute-watch.asciidoc","line":305},"digest":"7f37031fb40b68a61255b7c71d7eed0b","lang":"console","found":["python","js"],"source":"POST _watcher/watch/my_watch/_execute\n{\n \"action_modes\" : {\n \"action1\" : \"force_simulate\",\n \"action2\" : \"skip\"\n }\n}"},
{"source_location":{"file":"rest-api/watcher/execute-watch.asciidoc","line":320},"digest":"9cf6c7012a4f2bb562bc256aa28c3409","lang":"console","found":["python","js"],"source":"POST _watcher/watch/my_watch/_execute\n{\n \"action_modes\" : {\n \"_all\" : \"force_execute\"\n }\n}"},
{"source_location":{"file":"rest-api/watcher/execute-watch.asciidoc","line":333},"digest":"9cd37d0ccbc66ad47ddb626564b27cc8","lang":"console","found":["python","js"],"source":"POST _watcher/watch/_execute\n{\n \"watch\" : {\n \"trigger\" : { \"schedule\" : { \"interval\" : \"10s\" } },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : [ \"logs\" ],\n \"body\" : {\n \"query\" : {\n \"match\" : { \"message\": \"error\" }\n }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 0 }}\n },\n \"actions\" : {\n \"log_error\" : {\n \"logging\" : {\n \"text\" : \"Found {{ctx.payload.hits.total}} errors in the logs\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/watcher/execute-watch.asciidoc","line":369},"digest":"10b924bf6298aa6157ed00ce12f8edc1","lang":"console","found":["python","js"],"source":"POST _watcher/watch/_execute\n{\n \"ignore_condition\" : true,\n \"watch\" : {\n \"trigger\" : { \"schedule\" : { \"interval\" : \"10s\" } },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : [ \"logs\" ],\n \"body\" : {\n \"query\" : {\n \"match\" : { \"message\": \"error\" }\n }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 0 }}\n },\n \"actions\" : {\n \"log_error\" : {\n \"logging\" : {\n \"text\" : \"Found {{ctx.payload.hits.total}} errors in the logs\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/watcher/get-watch.asciidoc","line":55},"digest":"e827a9040e137410d62d10bb3b3cbb71","lang":"console","found":["python","js"],"source":"GET _watcher/watch/my_watch"},
{"source_location":{"file":"rest-api/watcher/get-watch.asciidoc","line":63},"digest":"b27af4671721924c2e449cf6f1e73158","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_id\": \"my_watch\",\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"_version\": 1,\n \"status\": { <1>\n \"version\": 1,\n \"state\": {\n \"active\": true,\n \"timestamp\": \"2015-05-26T18:21:08.630Z\"\n },\n \"actions\": {\n \"test_index\": {\n \"ack\": {\n \"timestamp\": \"2015-05-26T18:21:08.630Z\",\n \"state\": \"awaits_successful_execution\"\n }\n }\n }\n },\n \"watch\": {\n \"input\": {\n \"simple\": {\n \"payload\": {\n \"send\": \"yes\"\n }\n }\n },\n \"condition\": {\n \"always\": {}\n },\n \"trigger\": {\n \"schedule\": {\n \"hourly\": {\n \"minute\": [0, 5]\n }\n }\n },\n \"actions\": {\n \"test_index\": {\n \"index\": {\n \"index\": \"test\"\n }\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/watcher/stats.asciidoc","line":90},"digest":"17266cee5eaaddf08e5534bf580a1910","lang":"console","found":["python","ruby","js"],"source":"GET _watcher/stats"},
{"source_location":{"file":"rest-api/watcher/stats.asciidoc","line":118},"digest":"3ed79871d956bfb2d6d2721d7272520c","lang":"console","found":["python","ruby","js"],"source":"GET _watcher/stats?metric=current_watches"},
{"source_location":{"file":"rest-api/watcher/stats.asciidoc","line":125},"digest":"56b6b50b174a935d368301ebd717231d","lang":"console","found":["python","ruby","js"],"source":"GET _watcher/stats/current_watches"},
{"source_location":{"file":"rest-api/watcher/stats.asciidoc","line":169},"digest":"6244204213f60edf2f23295f9059f2c9","lang":"console","found":["python","ruby","js"],"source":"GET _watcher/stats/queued_watches"},
{"source_location":{"file":"rest-api/watcher/query-watches.asciidoc","line":73},"digest":"ce8471d31e5d60309e142feb040fd2f8","lang":"console","found":["python","js"],"source":"GET /_watcher/_query/watches"},
{"source_location":{"file":"rest-api/watcher/query-watches.asciidoc","line":81},"digest":"24ebcb1b5f3e32123e8575d61e3764b6","lang":"console-result","found":[],"source":"{\n \"count\": 1,\n \"watches\": [\n {\n \"_id\": \"my_watch\",\n \"watch\": {\n \"trigger\": {\n \"schedule\": {\n \"hourly\": {\n \"minute\": [\n 0,\n 5\n ]\n }\n }\n },\n \"input\": {\n \"simple\": {\n \"payload\": {\n \"send\": \"yes\"\n }\n }\n },\n \"condition\": {\n \"always\": {}\n },\n \"actions\": {\n \"test_index\": {\n \"index\": {\n \"index\": \"test\"\n }\n }\n }\n },\n \"status\": {\n \"state\": {\n \"active\": true,\n \"timestamp\": \"2015-05-26T18:21:08.630Z\"\n },\n \"actions\": {\n \"test_index\": {\n \"ack\": {\n \"timestamp\": \"2015-05-26T18:21:08.630Z\",\n \"state\": \"awaits_successful_execution\"\n }\n }\n },\n \"version\": -1\n },\n \"_seq_no\": 0,\n \"_primary_term\": 1\n }\n ]\n}"},
{"source_location":{"file":"rest-api/watcher/put-watch.asciidoc","line":126},"digest":"3a12feb0de224bfaaf518d95b9f516ff","lang":"console","found":["python","js"],"source":"PUT _watcher/watch/my-watch\n{\n \"trigger\" : {\n \"schedule\" : { \"cron\" : \"0 0/1 * * * ?\" }\n },\n \"input\" : {\n \"search\" : {\n \"request\" : {\n \"indices\" : [\n \"logstash*\"\n ],\n \"body\" : {\n \"query\" : {\n \"bool\" : {\n \"must\" : {\n \"match\": {\n \"response\": 404\n }\n },\n \"filter\" : {\n \"range\": {\n \"@timestamp\": {\n \"from\": \"{{ctx.trigger.scheduled_time}}||-5m\",\n \"to\": \"{{ctx.trigger.triggered_time}}\"\n }\n }\n }\n }\n }\n }\n }\n }\n },\n \"condition\" : {\n \"compare\" : { \"ctx.payload.hits.total\" : { \"gt\" : 0 }}\n },\n \"actions\" : {\n \"email_admin\" : {\n \"email\" : {\n \"to\" : \"admin@domain.host.com\",\n \"subject\" : \"404 recently encountered\"\n }\n }\n }\n}"},
{"source_location":{"file":"rest-api/watcher/update-settings.asciidoc","line":22},"digest":"f96d8131e8a592fbf6dfd686173940a9","lang":"console","found":["python","js"],"source":"PUT /_watcher/watch/test_watch\n{\n \"trigger\": {\n \"schedule\": {\n \"hourly\": {\n \"minute\": [ 0, 5 ]\n }\n }\n },\n \"input\": {\n \"simple\": {\n \"payload\": {\n \"send\": \"yes\"\n }\n }\n },\n \"condition\": {\n \"always\": {}\n }\n}"},
{"source_location":{"file":"rest-api/watcher/update-settings.asciidoc","line":47},"digest":"a1f70bc71b763b58206814c40a7440e7","lang":"console","found":["python","ruby","js"],"source":"PUT /_watcher/settings\n{\n \"index.auto_expand_replicas\": \"0-4\"\n}"},
{"source_location":{"file":"rest-api/watcher/get-settings.asciidoc","line":22},"digest":"3d316bddd8503a6cc10566630a4155d3","lang":"console","found":["python","ruby","js"],"source":"GET /_watcher/settings"},
{"source_location":{"file":"rest-api/watcher/start.asciidoc","line":49},"digest":"97ea5ab17213cb1faaf6f3ea13607098","lang":"console","found":["python","ruby","js"],"source":"POST _watcher/_start"},
{"source_location":{"file":"rest-api/watcher/start.asciidoc","line":56},"digest":"647803854da1f06200d471a2937e105c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"rest-api/watcher/stop.asciidoc","line":51},"digest":"6b1336ff477f91d4a0db0b06db546ff0","lang":"console","found":["python","ruby","js"],"source":"POST _watcher/_stop"},
{"source_location":{"file":"rest-api/watcher/stop.asciidoc","line":58},"digest":"647803854da1f06200d471a2937e105c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"troubleshooting/common-issues/disk-usage-exceeded.asciidoc","line":35},"digest":"81aad155ff23b1b396833b1182c9d46b","lang":"console","found":["python","js"],"source":"GET _cat/shards?v=true\n\nGET _cat/recovery?v=true&active_only=true"},
{"source_location":{"file":"troubleshooting/common-issues/disk-usage-exceeded.asciidoc","line":46},"digest":"14a33c364873c2f930ca83d0a3005389","lang":"console","found":["python","js"],"source":"GET _cluster/allocation/explain\n{\n \"index\": \"my-index\",\n \"shard\": 0,\n \"primary\": false\n}"},
{"source_location":{"file":"troubleshooting/common-issues/disk-usage-exceeded.asciidoc","line":65},"digest":"8582e918a6275472d2eba2e95f1dbe77","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.disk.watermark.low\": \"90%\",\n \"cluster.routing.allocation.disk.watermark.low.max_headroom\": \"100GB\",\n \"cluster.routing.allocation.disk.watermark.high\": \"95%\",\n \"cluster.routing.allocation.disk.watermark.high.max_headroom\": \"20GB\",\n \"cluster.routing.allocation.disk.watermark.flood_stage\": \"97%\",\n \"cluster.routing.allocation.disk.watermark.flood_stage.max_headroom\": \"5GB\",\n \"cluster.routing.allocation.disk.watermark.flood_stage.frozen\": \"97%\",\n \"cluster.routing.allocation.disk.watermark.flood_stage.frozen.max_headroom\": \"5GB\"\n }\n}\n\nPUT */_settings?expand_wildcards=all\n{\n \"index.blocks.read_only_allow_delete\": null\n}"},
{"source_location":{"file":"troubleshooting/common-issues/disk-usage-exceeded.asciidoc","line":90},"digest":"f4dc1286d0a2f8d1fde64fbf12fd9f8d","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.disk.watermark.low\": null,\n \"cluster.routing.allocation.disk.watermark.low.max_headroom\": null,\n \"cluster.routing.allocation.disk.watermark.high\": null,\n \"cluster.routing.allocation.disk.watermark.high.max_headroom\": null,\n \"cluster.routing.allocation.disk.watermark.flood_stage\": null,\n \"cluster.routing.allocation.disk.watermark.flood_stage.max_headroom\": null,\n \"cluster.routing.allocation.disk.watermark.flood_stage.frozen\": null,\n \"cluster.routing.allocation.disk.watermark.flood_stage.frozen.max_headroom\": null\n }\n}"},
{"source_location":{"file":"troubleshooting/common-issues/circuit-breaker-errors.asciidoc","line":63},"digest":"d8a82511cb94f49b4fe4828fee3ba074","lang":"console","found":["python","ruby","js"],"source":"GET _cat/nodes?v=true&h=name,node*,heap*"},
{"source_location":{"file":"troubleshooting/common-issues/circuit-breaker-errors.asciidoc","line":71},"digest":"e14a5a5a1c880031486bfff43031fa3a","lang":"console","found":["python","ruby","js"],"source":"GET _nodes/stats/breaker"},
{"source_location":{"file":"troubleshooting/common-issues/circuit-breaker-errors.asciidoc","line":99},"digest":"3218f8ccd59c8c90349816e0428e8fb8","lang":"console","found":["python","ruby","js"],"source":"POST _cache/clear?fielddata=true"},
{"source_location":{"file":"troubleshooting/common-issues/high-cpu-usage.asciidoc","line":28},"digest":"1637ef51d673b35cc8894ee80cd61c87","lang":"console","found":["python","ruby","js"],"source":"GET _cat/nodes?v=true&s=cpu:desc"},
{"source_location":{"file":"troubleshooting/common-issues/high-cpu-usage.asciidoc","line":47},"digest":"3a489743e49902df38e3368cae00717a","lang":"console","found":["python","js"],"source":"GET _nodes/hot_threads"},
{"source_location":{"file":"troubleshooting/common-issues/high-cpu-usage.asciidoc","line":81},"digest":"8f4a7f68f2ca3698abdf20026a2d8c5f","lang":"console","found":["python","ruby","js"],"source":"GET _tasks?actions=*search&detailed"},
{"source_location":{"file":"troubleshooting/common-issues/high-cpu-usage.asciidoc","line":89},"digest":"a5a360d0325b5a8d67f2a87cf140dab9","lang":"console-result","found":[],"source":"{\n \"nodes\" : {\n \"oTUltX4IQMOUUVeiohTt8A\" : {\n \"name\" : \"my-node\",\n \"transport_address\" : \"127.0.0.1:9300\",\n \"host\" : \"127.0.0.1\",\n \"ip\" : \"127.0.0.1:9300\",\n \"tasks\" : {\n \"oTUltX4IQMOUUVeiohTt8A:464\" : {\n \"node\" : \"oTUltX4IQMOUUVeiohTt8A\",\n \"id\" : 464,\n \"type\" : \"transport\",\n \"action\" : \"indices:data/read/search\",\n \"description\" : \"indices[my-index], search_type[QUERY_THEN_FETCH], source[{\\\"query\\\":...}]\",\n \"start_time_in_millis\" : 4081771730000,\n \"running_time_in_nanos\" : 13991383,\n \"cancellable\" : true\n }\n }\n }\n }\n}"},
{"source_location":{"file":"troubleshooting/common-issues/high-cpu-usage.asciidoc","line":118},"digest":"84c69fb07050f0e89720007a6507a221","lang":"console","found":["python","ruby","js"],"source":"POST _tasks/oTUltX4IQMOUUVeiohTt8A:464/_cancel"},
{"source_location":{"file":"tab-widgets/jvm-memory-pressure.asciidoc","line":10},"digest":"765c9c8b40b67a42121648045dbf10fb","lang":"console","found":["python","ruby","js"],"source":"GET _nodes/stats?filter_path=nodes.*.jvm.mem.pools.old"},
{"source_location":{"file":"tab-widgets/jvm-memory-pressure.asciidoc","line":11},"digest":"765c9c8b40b67a42121648045dbf10fb","lang":"console","found":["python","ruby","js"],"source":"GET _nodes/stats?filter_path=nodes.*.jvm.mem.pools.old"},
{"source_location":{"file":"troubleshooting/common-issues/high-jvm-memory-pressure.asciidoc","line":76},"digest":"1295f51b9e5d4ba9987b02478146b50b","lang":"console","found":["python","ruby","js"],"source":"PUT _settings\n{\n \"index.max_result_window\": 5000\n}\n\nPUT _cluster/settings\n{\n \"persistent\": {\n \"search.max_buckets\": 20000,\n \"search.allow_expensive_queries\": false\n }\n}"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":38},"digest":"b7df0848b2dc3093f931976db5b8cfff","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/health?filter_path=status,*_shards"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":51},"digest":"6705eca2095ade294548cfb25bf2dd86","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":63},"digest":"5e415c490a46358643ee2aab554b4876","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/allocation/explain?filter_path=index,node_allocation_decisions.node_name,node_allocation_decisions.deciders.*\n{\n \"index\": \"my-index\",\n \"shard\": 0,\n \"primary\": false\n}"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":113},"digest":"0709a38613d2de90d418ce12b36af30e","lang":"console","found":["python","js"],"source":"POST _cluster/reroute"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":132},"digest":"674bb755111c6fbaa4c5ac759395c122","lang":"console","found":["python","ruby","js"],"source":"GET my-index/_settings?flat_settings=true&include_defaults=true\n\nGET _cluster/settings?flat_settings=true&include_defaults=true"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":157},"digest":"cdfd4fef983c1c0fe8d7417f67d01eae","lang":"console","found":["python","ruby","js"],"source":"PUT _settings\n{\n \"index.number_of_replicas\": 1\n}"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":177},"digest":"b728d6ba226dba719aadcd8b8099cc74","lang":"console","found":["python","ruby","js"],"source":"GET _cat/allocation?v=true&h=node,shards,disk.*"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":197},"digest":"4c5f0d7af287618062bb627b44ccb23e","lang":"console","found":["python","ruby","js"],"source":"POST my-index/_forcemerge"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":206},"digest":"44231f7cdd5c3a21025861cdef31e355","lang":"console","found":["python","ruby","js"],"source":"POST my-index/_shrink/my-shrunken-index"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":215},"digest":"77cebba946fe648873a1e7375c13df41","lang":"console","found":["python","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.disk.watermark.low\": \"90%\",\n \"cluster.routing.allocation.disk.watermark.high\": \"95%\"\n }\n}"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":242},"digest":"73ebc89cb32adb389ae16bb088d7c7e6","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.routing.allocation.enable\" : null\n }\n}"},
{"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":281},"digest":"750ac969f9a05567f5cdf4f93d6244b6","lang":"console","found":["python","js"],"source":"POST _cluster/reroute\n{\n \"commands\": [\n {\n \"allocate_empty_primary\": {\n \"index\": \"my-index\",\n \"shard\": 0,\n \"node\": \"my-node\",\n \"accept_data_loss\": \"true\"\n }\n }\n ]\n}"},
{"source_location":{"file":"troubleshooting/common-issues/rejected-requests.asciidoc","line":29},"digest":"e9625da419bff6470ffd9927c59ca159","lang":"console","found":["python","js"],"source":"GET /_cat/thread_pool?v=true&h=id,name,queue,active,rejected,completed"},
{"source_location":{"file":"troubleshooting/common-issues/rejected-requests.asciidoc","line":50},"digest":"60d3f9a99cc91b43aaa7524a9a74dba0","lang":"console","found":["python","js"],"source":"GET /_nodes/stats/breaker"},
{"source_location":{"file":"troubleshooting/common-issues/rejected-requests.asciidoc","line":68},"digest":"4f6694ef147a73b1163bde3c13779d26","lang":"console","found":["python","js"],"source":"GET _nodes/stats?human&filter_path=nodes.*.indexing_pressure"},
{"source_location":{"file":"troubleshooting/common-issues/task-queue-backlog.asciidoc","line":36},"digest":"425eaaf9c7e3b1e77a3474fbab4183b4","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/thread_pool?v&s=t,n&h=type,name,node_name,active,queue,rejected,completed"},
{"source_location":{"file":"troubleshooting/common-issues/task-queue-backlog.asciidoc","line":55},"digest":"270549e6b062228312c4e7a54a2c2209","lang":"console","found":["python","ruby","js"],"source":"GET /_nodes/hot_threads"},
{"source_location":{"file":"troubleshooting/common-issues/task-queue-backlog.asciidoc","line":73},"digest":"9d66cb59711f24e6b4ff85608c9b5a1b","lang":"console","found":["python","js"],"source":"GET /_tasks?pretty=true&human=true&detailed=true"},
{"source_location":{"file":"troubleshooting/common-issues/task-queue-backlog.asciidoc","line":83},"digest":"01cd0ea360282a2c591a366679d7187d","lang":"console","found":["python","js"],"source":"GET /_tasks?human&detailed&actions=indices:data/write/bulk"},
{"source_location":{"file":"troubleshooting/common-issues/task-queue-backlog.asciidoc","line":90},"digest":"e3fe842951dc873d7d00c8f6a010c53f","lang":"console","found":["python","js"],"source":"GET /_tasks?human&detailed&actions=indices:data/write/search"},
{"source_location":{"file":"troubleshooting/common-issues/task-queue-backlog.asciidoc","line":104},"digest":"aa814309ad5f1630886ba75255b444f5","lang":"console","found":["python","js"],"source":"GET /_cluster/pending_tasks"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":34},"digest":"1570976f7807b88dc8a046b833be057b","lang":"console","found":["python","ruby","js"],"source":"GET _cat/nodes?v&s=master,name&h=name,master,node.role,heap.percent,disk.used_percent,cpu"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":40},"digest":"4420b0b1f98f7e824a354112587afad7","lang":"console-result","found":[],"source":"name master node.role heap.percent disk.used_percent cpu\nnode_1 * hirstm 24 20 95\nnode_2 - hirstm 23 18 18\nnode_3 - hirstmv 25 90 10"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":108},"digest":"9a05cc10eea1251e23b82a4549913536","lang":"console","found":["python","ruby","js"],"source":"GET _cat/allocation?v&s=node&h=node,shards,disk.percent,disk.indices,disk.used"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":115},"digest":"94cb975a6303de99d6314bfd4f46d5a3","lang":"console-result","found":[],"source":"node shards disk.percent disk.indices disk.used\nnode_1 446 19 154.8gb 173.1gb\nnode_2 31 52 44.6gb 372.7gb\nnode_3 445 43 271.5gb 289.4gb"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":148},"digest":"52b71aa4ae6563abae78cd20ff06d1e9","lang":"console","found":["python","ruby","js"],"source":"GET _nodes/stats?human&filter_path=nodes.*.name,nodes.*.indices.indexing"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":160},"digest":"67bab07fda27ef77e3bc948211051a33","lang":"console","found":["python","ruby","js"],"source":"GET _cat/thread_pool/write,search?v=true&s=n,nn&h=n,nn,q,a,r,c"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":167},"digest":"215617c7efb41f5806f20e2d2ed8f397","lang":"console-result","found":[],"source":"n nn q a r c\nsearch node_1 3 1 0 1287\nsearch node_2 0 2 0 1159\nsearch node_3 0 1 0 1302\nwrite node_1 100 3 0 4259\nwrite node_2 0 4 0 980\nwrite node_3 1 5 0 8714"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":196},"digest":"1a3897cfb4f974c09d0d847baac8aa6d","lang":"console","found":["python","ruby","js"],"source":"GET _stats?level=shards&human&expand_wildcards=all&filter_path=indices.*.total.indexing.index_total"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":206},"digest":"8e2bbef535fef688d397e60e09aefa7f","lang":"console","found":["python","ruby","js"],"source":"GET _stats/indexing,search?level=shards&human&expand_wildcards=all"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":253},"digest":"146bd22fd0e7be2345619e8f11d3a4cb","lang":"console","found":["python","ruby","js"],"source":"GET _cat/tasks?v&s=time:desc&h=type,action,running_time,node,cancellable"},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":260},"digest":"285446914709d09dcb5ca7e7418d288d","lang":"console-result","found":[],"source":"type action running_time node cancellable\ndirect indices:data/read/eql 10m node_1 true\n..."},
{"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":271},"digest":"e4d1f01c025fb797a1d87f372760eabf","lang":"console","found":["python","ruby","js"],"source":"GET _tasks?human&detailed"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":39},"digest":"6705eca2095ade294548cfb25bf2dd86","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":46},"digest":"d8fd1acce11c8cf4611e6abd95442857","lang":"console-result","found":[],"source":"[\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"p\",\n \"state\": \"UNASSIGNED\",\n \"node\": null,\n \"unassigned.reason\": \"INDEX_CREATED\"\n }\n]"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":71},"digest":"4980d6fcb369692b0b29ddc6767d4324","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/allocation/explain\n{\n \"index\": \"my-index-000001\", <1>\n \"shard\": 0, <2>\n \"primary\": true <3>\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":90},"digest":"20d627f6973703ebb5ad1dfeebabbaf8","lang":"console-result","found":[],"source":"{\n \"index\" : \"my-index-000001\",\n \"shard\" : 0,\n \"primary\" : true,\n \"current_state\" : \"unassigned\", <1>\n \"unassigned_info\" : {\n \"reason\" : \"INDEX_CREATED\", <2>\n \"at\" : \"2022-01-04T18:08:16.600Z\",\n \"last_allocation_status\" : \"no\"\n },\n \"can_allocate\" : \"no\", <3>\n \"allocate_explanation\" : \"Elasticsearch isn't allowed to allocate this shard to any of the nodes in the cluster. Choose a node to which you expect this shard to be allocated, find this node in the node-by-node explanation, and address the reasons which prevent Elasticsearch from allocating this shard there.\",\n \"node_allocation_decisions\" : [\n {\n \"node_id\" : \"8qt2rY-pT6KNZB3-hGfLnw\",\n \"node_name\" : \"node-0\",\n \"transport_address\" : \"127.0.0.1:9401\",\n \"roles\": [\"data_content\", \"data_hot\"],\n \"node_attributes\" : {},\n \"node_decision\" : \"no\", <4>\n \"weight_ranking\" : 1,\n \"deciders\" : [\n {\n \"decider\" : \"filter\", <5>\n \"decision\" : \"NO\",\n \"explanation\" : \"node does not match index setting [index.routing.allocation.include] filters [_name:\\\"nonexistent_node\\\"]\" <6>\n }\n ]\n }\n ]\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":142},"digest":"79bf91ace935d095d8e44b3ef3fe2efa","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_settings?flat_settings=true&include_defaults=true\n\nGET _cluster/settings?flat_settings=true&include_defaults=true"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":166},"digest":"6705eca2095ade294548cfb25bf2dd86","lang":"console","found":["python","ruby","js"],"source":"GET _cat/shards?v=true&h=index,shard,prirep,state,node,unassigned.reason&s=state"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":173},"digest":"d8fd1acce11c8cf4611e6abd95442857","lang":"console-result","found":[],"source":"[\n {\n \"index\": \"my-index-000001\",\n \"shard\": \"0\",\n \"prirep\": \"p\",\n \"state\": \"UNASSIGNED\",\n \"node\": null,\n \"unassigned.reason\": \"INDEX_CREATED\"\n }\n]"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":198},"digest":"4980d6fcb369692b0b29ddc6767d4324","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/allocation/explain\n{\n \"index\": \"my-index-000001\", <1>\n \"shard\": 0, <2>\n \"primary\": true <3>\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":217},"digest":"bc72e54acd2aa4d2f62701e77db19dc5","lang":"console-result","found":[],"source":"{\n \"index\" : \"my-index-000001\",\n \"shard\" : 0,\n \"primary\" : true,\n \"current_state\" : \"unassigned\", <1>\n \"unassigned_info\" : {\n \"reason\" : \"INDEX_CREATED\", <2>\n \"at\" : \"2022-01-04T18:08:16.600Z\",\n \"last_allocation_status\" : \"no\"\n },\n \"can_allocate\" : \"no\", <3>\n \"allocate_explanation\" : \"Elasticsearch isn't allowed to allocate this shard to any of the nodes in the cluster. Choose a node to which you expect this shard to be allocated, find this node in the node-by-node explanation, and address the reasons which prevent Elasticsearch from allocating this shard there.\",\n \"node_allocation_decisions\" : [\n {\n \"node_id\" : \"8qt2rY-pT6KNZB3-hGfLnw\",\n \"node_name\" : \"node-0\",\n \"transport_address\" : \"127.0.0.1:9401\",\n \"roles\": [\"data_content\", \"data_hot\"]\n \"node_attributes\" : {},\n \"node_decision\" : \"no\", <4>\n \"weight_ranking\" : 1,\n \"deciders\" : [\n {\n \"decider\" : \"filter\", <5>\n \"decision\" : \"NO\",\n \"explanation\" : \"node does not match index setting [index.routing.allocation.include] filters [_name:\\\"nonexistent_node\\\"]\" <6>\n }\n ]\n }\n ]\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":269},"digest":"79bf91ace935d095d8e44b3ef3fe2efa","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_settings?flat_settings=true&include_defaults=true\n\nGET _cluster/settings?flat_settings=true&include_defaults=true"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/add-tier.asciidoc","line":46},"digest":"23074748d6c978176df5b04265e88938","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.include._tier_preference?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/add-tier.asciidoc","line":53},"digest":"b9ebe83a662a2c1a91fe1555c4a66e26","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.include._tier_preference\": \"data_warm,data_hot\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/add-tier.asciidoc","line":97},"digest":"23074748d6c978176df5b04265e88938","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.include._tier_preference?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/add-tier.asciidoc","line":106},"digest":"b9ebe83a662a2c1a91fe1555c4a66e26","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.include._tier_preference\": \"data_warm,data_hot\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-cluster-allocation.asciidoc","line":32},"digest":"3dd45f65e7bfe207e8d796118f25613c","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/settings?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-cluster-allocation.asciidoc","line":39},"digest":"a442a5c4f6916ed8194f745162a524d6","lang":"console-result","found":[],"source":"{\n \"persistent\": {\n \"cluster.routing.allocation.enable\": \"none\" <1>\n },\n \"transient\": {}\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-cluster-allocation.asciidoc","line":57},"digest":"e5f8f83df37ab2296dc4bfed95d7aba7","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.routing.allocation.enable\" : \"all\" <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-cluster-allocation.asciidoc","line":87},"digest":"3dd45f65e7bfe207e8d796118f25613c","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/settings?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-cluster-allocation.asciidoc","line":94},"digest":"a442a5c4f6916ed8194f745162a524d6","lang":"console-result","found":[],"source":"{\n \"persistent\": {\n \"cluster.routing.allocation.enable\": \"none\" <1>\n },\n \"transient\": {}\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-cluster-allocation.asciidoc","line":112},"digest":"e5f8f83df37ab2296dc4bfed95d7aba7","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.routing.allocation.enable\" : \"all\" <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-index-allocation.asciidoc","line":51},"digest":"e58b7965c3a314c34bc444c6db3b1b79","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.enable?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-index-allocation.asciidoc","line":58},"digest":"664c9d753023dc21b956ac62d5d0054c","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.enable\": \"none\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-index-allocation.asciidoc","line":77},"digest":"e46c83db1580e14be844079cd008f518","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"routing.allocation.enable\" : \"all\" <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-index-allocation.asciidoc","line":104},"digest":"e58b7965c3a314c34bc444c6db3b1b79","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.enable?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-index-allocation.asciidoc","line":111},"digest":"664c9d753023dc21b956ac62d5d0054c","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.enable\": \"none\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/enable-index-allocation.asciidoc","line":130},"digest":"e46c83db1580e14be844079cd008f518","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"routing.allocation.enable\" : \"all\" <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":30},"digest":"dfa75000edf4b960ed9002595a051871","lang":"console","found":["python","ruby","js"],"source":"POST /_ilm/stop"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":38},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":48},"digest":"dfb641d2d3155669ad6fb5a424dabf4f","lang":"console","found":["python","ruby","js"],"source":"GET /_ilm/status"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":55},"digest":"db8563ab7fe37081a9bb66c91d65d673","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"STOPPED\"\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":65},"digest":"142de21c40e84e2e2d8d832e5b3b36db","lang":"console","found":["python","ruby","js"],"source":"POST /_ilm/migrate_to_data_tiers"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":73},"digest":"5fa9333547931cf8a90f8089a339dd43","lang":"console-result","found":[],"source":"{\n \"dry_run\": false,\n \"migrated_ilm_policies\":[\"policy_with_allocate_action\"], <1>\n \"migrated_indices\":[\"warm-index-to-migrate-000001\"], <2>\n \"migrated_legacy_templates\":[\"a-legacy-template\"], <3>\n \"migrated_composable_templates\":[\"a-composable-template\"], <4>\n \"migrated_component_templates\":[\"a-component-template\"] <5>\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":97},"digest":"2a47d11c6e19c9da5104e738359ea8a8","lang":"console","found":["python","ruby","js"],"source":"POST /_ilm/start"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":104},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":139},"digest":"dfa75000edf4b960ed9002595a051871","lang":"console","found":["python","ruby","js"],"source":"POST /_ilm/stop"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":148},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":158},"digest":"dfb641d2d3155669ad6fb5a424dabf4f","lang":"console","found":["python","ruby","js"],"source":"GET /_ilm/status"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":165},"digest":"db8563ab7fe37081a9bb66c91d65d673","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"STOPPED\"\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":175},"digest":"142de21c40e84e2e2d8d832e5b3b36db","lang":"console","found":["python","ruby","js"],"source":"POST /_ilm/migrate_to_data_tiers"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":184},"digest":"5fa9333547931cf8a90f8089a339dd43","lang":"console-result","found":[],"source":"{\n \"dry_run\": false,\n \"migrated_ilm_policies\":[\"policy_with_allocate_action\"], <1>\n \"migrated_indices\":[\"warm-index-to-migrate-000001\"], <2>\n \"migrated_legacy_templates\":[\"a-legacy-template\"], <3>\n \"migrated_composable_templates\":[\"a-composable-template\"], <4>\n \"migrated_component_templates\":[\"a-component-template\"] <5>\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":208},"digest":"2a47d11c6e19c9da5104e738359ea8a8","lang":"console","found":["python","ruby","js"],"source":"POST /_ilm/start"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/migrate-to-data-tiers-routing-guide.asciidoc","line":215},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":55},"digest":"23074748d6c978176df5b04265e88938","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.include._tier_preference?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":64},"digest":"b9ebe83a662a2c1a91fe1555c4a66e26","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.include._tier_preference\": \"data_warm,data_hot\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":118},"digest":"aa1771b702f4b771491ba4ab743a9197","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.number_of_replicas"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":125},"digest":"12305f16f79caf1b1f76e83d65618b3b","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"settings\" : {\n \"index\" : {\n \"number_of_replicas\" : \"2\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":145},"digest":"b45c60f908b329835ab40609423f378e","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodes?h=node.role"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":153},"digest":"fd77431de2d125feff32123a777642c4","lang":"console-result","found":[],"source":"himrst\nmv\nhimrst"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":172},"digest":"766cfc1c9fcd2c186e965761ceb2c07d","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"number_of_replicas\" : 1 <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":207},"digest":"23074748d6c978176df5b04265e88938","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.include._tier_preference?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":216},"digest":"b9ebe83a662a2c1a91fe1555c4a66e26","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.include._tier_preference\": \"data_warm,data_hot\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":245},"digest":"aa1771b702f4b771491ba4ab743a9197","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.number_of_replicas"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":252},"digest":"12305f16f79caf1b1f76e83d65618b3b","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"settings\" : {\n \"index\" : {\n \"number_of_replicas\" : \"2\" <1>\n }\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":272},"digest":"b45c60f908b329835ab40609423f378e","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodes?h=node.role"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":280},"digest":"fd77431de2d125feff32123a777642c4","lang":"console-result","found":[],"source":"himrst\nmv\nhimrst"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-tier-capacity.asciidoc","line":300},"digest":"766cfc1c9fcd2c186e965761ceb2c07d","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"number_of_replicas\" : 1 <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/total-shards-per-node.asciidoc","line":54},"digest":"931da02a06953a768f4ad3fecfd7b2df","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.total_shards_per_node?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/total-shards-per-node.asciidoc","line":61},"digest":"aba082ff0520383b32db5a3214c46656","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.total_shards_per_node\": \"1\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/total-shards-per-node.asciidoc","line":78},"digest":"0a84c5b7c0793be745b13eaf13e94422","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"routing.allocation.total_shards_per_node\" : \"2\" <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/total-shards-per-node.asciidoc","line":109},"digest":"23074748d6c978176df5b04265e88938","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.include._tier_preference?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/total-shards-per-node.asciidoc","line":118},"digest":"b9ebe83a662a2c1a91fe1555c4a66e26","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.include._tier_preference\": \"data_warm,data_hot\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/total-shards-per-node.asciidoc","line":147},"digest":"931da02a06953a768f4ad3fecfd7b2df","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.total_shards_per_node?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/total-shards-per-node.asciidoc","line":156},"digest":"aba082ff0520383b32db5a3214c46656","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.total_shards_per_node\": \"1\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/total-shards-per-node.asciidoc","line":174},"digest":"091200b658023db31dffc2f08a85a9cc","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"routing.allocation.total_shards_per_node\" : -1\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-cluster-shard-limit.asciidoc","line":53},"digest":"3dd45f65e7bfe207e8d796118f25613c","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/settings?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-cluster-shard-limit.asciidoc","line":60},"digest":"7e81edbef4d7fe6db7104ee67156b5c8","lang":"console-result","found":[],"source":"{\n \"persistent\": {\n \"cluster.routing.allocation.total_shards_per_node\": \"300\" <1>\n },\n \"transient\": {}\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-cluster-shard-limit.asciidoc","line":78},"digest":"06d65e3505dcb306977185e8545cf4a8","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.routing.allocation.total_shards_per_node\" : 400 <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-cluster-shard-limit.asciidoc","line":109},"digest":"23074748d6c978176df5b04265e88938","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings/index.routing.allocation.include._tier_preference?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-cluster-shard-limit.asciidoc","line":118},"digest":"b9ebe83a662a2c1a91fe1555c4a66e26","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"settings\": {\n \"index.routing.allocation.include._tier_preference\": \"data_warm,data_hot\" <1>\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-cluster-shard-limit.asciidoc","line":147},"digest":"3dd45f65e7bfe207e8d796118f25613c","lang":"console","found":["python","ruby","js"],"source":"GET /_cluster/settings?flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-cluster-shard-limit.asciidoc","line":154},"digest":"7e81edbef4d7fe6db7104ee67156b5c8","lang":"console-result","found":[],"source":"{\n \"persistent\": {\n \"cluster.routing.allocation.total_shards_per_node\": \"300\" <1>\n },\n \"transient\": {}\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/increase-cluster-shard-limit.asciidoc","line":172},"digest":"06d65e3505dcb306977185e8545cf4a8","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.routing.allocation.total_shards_per_node\" : 400 <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-data-node-capacity.asciidoc","line":47},"digest":"60299454aa19fec15a604a0dd06fe522","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/settings?include_defaults&filter_path=*.cluster.routing.allocation.disk.watermark.high*"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-data-node-capacity.asciidoc","line":54},"digest":"9b746fcc801c675172f3064a466b16c4","lang":"console-result","found":[],"source":"{\n \"defaults\": {\n \"cluster\": {\n \"routing\": {\n \"allocation\": {\n \"disk\": {\n \"watermark\": {\n \"high\": \"90%\",\n \"high.max_headroom\": \"150GB\"\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-data-node-capacity.asciidoc","line":81},"digest":"35fc63cbefce7bc131ad467b5ba209ef","lang":"console","found":["python","ruby","js"],"source":"GET _cat/allocation?v&s=disk.avail&h=node,disk.percent,disk.avail,disk.total,disk.used,disk.indices,shards"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-data-node-capacity.asciidoc","line":88},"digest":"df8fc2a737d468bb10719e6832bfda75","lang":"console-result","found":[],"source":"node disk.percent disk.avail disk.total disk.used disk.indices shards\ninstance-0000000000 91 4.6gb 35gb 31.1gb 29.9gb 111"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-data-node-capacity.asciidoc","line":104},"digest":"4989cc97ce1c8fff634a10d343031bd0","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/shards?v&h=state,node&s=state"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/decrease-data-node-disk-usage.asciidoc","line":45},"digest":"60299454aa19fec15a604a0dd06fe522","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/settings?include_defaults&filter_path=*.cluster.routing.allocation.disk.watermark.high*"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/decrease-data-node-disk-usage.asciidoc","line":52},"digest":"9b746fcc801c675172f3064a466b16c4","lang":"console-result","found":[],"source":"{\n \"defaults\": {\n \"cluster\": {\n \"routing\": {\n \"allocation\": {\n \"disk\": {\n \"watermark\": {\n \"high\": \"90%\",\n \"high.max_headroom\": \"150GB\"\n }\n }\n }\n }\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/decrease-data-node-disk-usage.asciidoc","line":79},"digest":"35fc63cbefce7bc131ad467b5ba209ef","lang":"console","found":["python","ruby","js"],"source":"GET _cat/allocation?v&s=disk.avail&h=node,disk.percent,disk.avail,disk.total,disk.used,disk.indices,shards"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/decrease-data-node-disk-usage.asciidoc","line":86},"digest":"df8fc2a737d468bb10719e6832bfda75","lang":"console-result","found":[],"source":"node disk.percent disk.avail disk.total disk.used disk.indices shards\ninstance-0000000000 91 4.6gb 35gb 31.1gb 29.9gb 111"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/decrease-data-node-disk-usage.asciidoc","line":103},"digest":"f6de702c3d097af0b0bd391c4f947233","lang":"console","found":["python","ruby","js"],"source":"GET _cat/indices?v&s=rep:desc,pri.store.size:desc&h=health,index,pri,rep,store.size,pri.store.size"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/decrease-data-node-disk-usage.asciidoc","line":110},"digest":"7dc96b1dc6df4173c31d22407a7f678d","lang":"console-result","found":[],"source":"health index pri rep store.size pri.store.size\ngreen my_index 2 3 9.9gb 3.3gb\ngreen my_other_index 2 3 1.8gb 470.3mb\ngreen search-products 2 3 278.5kb 69.6kb\ngreen logs-000001 1 0 7.7gb 7.7gb"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/decrease-data-node-disk-usage.asciidoc","line":127},"digest":"c6b365c7da97d7e50f36820a7d36f548","lang":"console","found":["python","ruby","js"],"source":"PUT my_index,my_other_index/_settings\n{\n \"index.number_of_replicas\": 1\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-master-node-capacity.asciidoc","line":26},"digest":"60299454aa19fec15a604a0dd06fe522","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/settings?include_defaults&filter_path=*.cluster.routing.allocation.disk.watermark.high*"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-master-node-capacity.asciidoc","line":33},"digest":"ff48c30f5c74cfc9a8bb6ac6f9daeba8","lang":"console-result","found":[],"source":"{\n \"defaults\": {\n \"cluster\": {\n \"routing\": {\n \"allocation\": {\n \"disk\": {\n \"watermark\": {\n \"high\": \"90%\",\n \"high.max_headroom\": \"150GB\"\n }\n }\n }\n }\n }\n }"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-master-node-capacity.asciidoc","line":59},"digest":"ed7fa1971ac322aeccd6391ab32d0490","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodes?v&h=name,master,node.role,disk.used_percent,disk.used,disk.avail,disk.total"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-master-node-capacity.asciidoc","line":66},"digest":"d7fc937139b46a7eeea7b5855807e2d1","lang":"console-result","found":[],"source":"name master node.role disk.used_percent disk.used disk.avail disk.total\ninstance-0000000000 * m 85.31 3.4gb 500mb 4gb\ninstance-0000000001 * m 50.02 2.1gb 1.9gb 4gb\ninstance-0000000002 * m 50.02 1.9gb 2.1gb 4gb"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-master-node-capacity.asciidoc","line":83},"digest":"ed7fa1971ac322aeccd6391ab32d0490","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodes?v&h=name,master,node.role,disk.used_percent,disk.used,disk.avail,disk.total"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-other-node-capacity.asciidoc","line":27},"digest":"60299454aa19fec15a604a0dd06fe522","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/settings?include_defaults&filter_path=*.cluster.routing.allocation.disk.watermark.high*"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-other-node-capacity.asciidoc","line":34},"digest":"ff48c30f5c74cfc9a8bb6ac6f9daeba8","lang":"console-result","found":[],"source":"{\n \"defaults\": {\n \"cluster\": {\n \"routing\": {\n \"allocation\": {\n \"disk\": {\n \"watermark\": {\n \"high\": \"90%\",\n \"high.max_headroom\": \"150GB\"\n }\n }\n }\n }\n }\n }"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-other-node-capacity.asciidoc","line":60},"digest":"b2e20bca1846d7d584626b12eae9f6dc","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodes?v&h=name,node.role,disk.used_percent,disk.used,disk.avail,disk.total"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-other-node-capacity.asciidoc","line":67},"digest":"062cfee5995ab05885738df00e564983","lang":"console-result","found":[],"source":"name node.role disk.used_percent disk.used disk.avail disk.total\ninstance-0000000000 l 85.31 3.4gb 500mb 4gb"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-other-node-capacity.asciidoc","line":80},"digest":"b2e20bca1846d7d584626b12eae9f6dc","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/nodes?v&h=name,node.role,disk.used_percent,disk.used,disk.avail,disk.total"},
{"source_location":{"file":"tab-widgets/troubleshooting/disk/increase-other-node-capacity.asciidoc","line":87},"digest":"8cfa90769e787176e2ab2f5fb77f908e","lang":"console-result","found":[],"source":"name node.role disk.used_percent disk.used disk.avail disk.total\ninstance-0000000000 l 85.31 3.4gb 500mb 4gb\ninstance-0000000001 l 41.31 3.4gb 4.5gb 8gb"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-ilm.asciidoc","line":26},"digest":"72ae3851160fcf02b8e2cdfd4e57d238","lang":"console","found":["python","ruby","js"],"source":"POST _ilm/start"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-ilm.asciidoc","line":33},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-ilm.asciidoc","line":44},"digest":"182df084f028479ecbe8d7648ddad892","lang":"console","found":["python","ruby","js"],"source":"GET _ilm/status"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-ilm.asciidoc","line":51},"digest":"99e0bec31e49636bc0053ac66bc29352","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"RUNNING\"\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-ilm.asciidoc","line":66},"digest":"72ae3851160fcf02b8e2cdfd4e57d238","lang":"console","found":["python","ruby","js"],"source":"POST _ilm/start"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-ilm.asciidoc","line":73},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-ilm.asciidoc","line":84},"digest":"182df084f028479ecbe8d7648ddad892","lang":"console","found":["python","ruby","js"],"source":"GET _ilm/status"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-ilm.asciidoc","line":91},"digest":"99e0bec31e49636bc0053ac66bc29352","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"RUNNING\"\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-slm.asciidoc","line":26},"digest":"371962cf63e65c10026177c6a1bad0b6","lang":"console","found":["python","js"],"source":"POST _slm/start"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-slm.asciidoc","line":33},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-slm.asciidoc","line":43},"digest":"cde4104a29dfe942d55863cdd8718627","lang":"console","found":["python","ruby","js"],"source":"GET _slm/status"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-slm.asciidoc","line":50},"digest":"99e0bec31e49636bc0053ac66bc29352","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"RUNNING\"\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-slm.asciidoc","line":63},"digest":"371962cf63e65c10026177c6a1bad0b6","lang":"console","found":["python","js"],"source":"POST _slm/start"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-slm.asciidoc","line":68},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-slm.asciidoc","line":76},"digest":"cde4104a29dfe942d55863cdd8718627","lang":"console","found":["python","ruby","js"],"source":"GET _slm/status"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/start-slm.asciidoc","line":81},"digest":"99e0bec31e49636bc0053ac66bc29352","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"RUNNING\"\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":26},"digest":"2ceded6ee764adf1aaaac0a1cd25ed5f","lang":"console","found":["python","ruby","js"],"source":"GET _cat/indices?v&health=red&h=index,status,health"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":33},"digest":"bfa0028824c6ad79f78cd0fd7a143a35","lang":"console-result","found":[],"source":"index status health\n.ds-my-data-stream-2022.06.17-000001 open red\nkibana_sample_data_flights open red"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":48},"digest":"4e926063a9494b563387617b08c4f232","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/my_repository/*?verbose=false"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":56},"digest":"ef9cd9e56719b7eccf056308dac6a792","lang":"console-result","found":[],"source":"{\n \"snapshots\" : [\n {\n \"snapshot\" : \"snapshot-20200617\", <1>\n \"uuid\" : \"dZyPs1HyTwS-cnKdH08EPg\",\n \"repository\" : \"my_repository\", <2>\n \"indices\" : [ <3>\n \".apm-agent-configuration\",\n \".apm-custom-link\",\n \".ds-ilm-history-5-2022.06.17-000001\",\n \".ds-my-data-stream-2022.06.17-000001\",\n \".geoip_databases\",\n \".kibana-event-log-8.2.2-000001\",\n \".kibana_8.2.2_001\",\n \".kibana_task_manager_8.2.2_001\",\n \"kibana_sample_data_ecommerce\",\n \"kibana_sample_data_flights\",\n \"kibana_sample_data_logs\"\n ],\n \"data_streams\" : [ ],\n \"state\" : \"SUCCESS\" <4>\n }\n ],\n \"total\" : 1,\n \"remaining\" : 0\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":101},"digest":"719141517d83b7e8e929b347a8d67c9f","lang":"console","found":["python","ruby","js"],"source":"GET kibana_sample_data_flights,.ds-my-data-stream-2022.06.17-000001?features=settings&flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":109},"digest":"228e6c95dda29cbdeb456a9725e1ebf3","lang":"console-result","found":[],"source":"{\n \".ds-my-data-stream-2022.06.17-000001\" : { <1>\n \"aliases\" : { },\n \"mappings\" : { },\n \"settings\" : { <2>\n \"index.creation_date\" : \"1658406121699\",\n \"index.hidden\" : \"true\",\n \"index.lifecycle.name\" : \"my-lifecycle-policy\",\n \"index.number_of_replicas\" : \"1\",\n \"index.number_of_shards\" : \"1\",\n \"index.provided_name\" : \".ds-my-data-stream-2022.06.17-000001\",\n \"index.routing.allocation.include._tier_preference\" : \"data_hot\",\n \"index.uuid\" : \"HmlFXp6VSu2XbQ-O3hVrwQ\",\n \"index.version.created\" : \"8020299\"\n },\n \"data_stream\" : \"my-data-stream\" <3>\n },\n \"kibana_sample_data_flights\" : { <4>\n \"aliases\" : { },\n \"mappings\" : { },\n \"settings\" : {\n \"index.creation_date\" : \"1655121541454\",\n \"index.number_of_replicas\" : \"0\",\n \"index.number_of_shards\" : \"1\",\n \"index.provided_name\" : \"kibana_sample_data_flights\",\n \"index.routing.allocation.include._tier_preference\" : \"data_content\",\n \"index.uuid\" : \"jMOlwKPPSzSraeeBWyuoDA\",\n \"index.version.created\" : \"8020299\"\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":164},"digest":"1e547696f54582840040b1aa6661760c","lang":"console","found":["python","ruby","js"],"source":"POST my-data-stream/_rollover"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":173},"digest":"c28f0b0dd3246cb91d6facb3295a61d7","lang":"console","found":["python","ruby","js"],"source":"POST kibana_sample_data_flights,.ds-my-data-stream-2022.06.17-000001/_close"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":182},"digest":"2ceded6ee764adf1aaaac0a1cd25ed5f","lang":"console","found":["python","ruby","js"],"source":"GET _cat/indices?v&health=red&h=index,status,health"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":190},"digest":"cbe594afe7bcef64510d78ff02934450","lang":"console-result","found":[],"source":"index status health\n.ds-my-data-stream-2022.06.17-000001 close red\nkibana_sample_data_flights close red"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":200},"digest":"a699189c8d1a7573beeaea768f2fc618","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/snapshot-20200617/_restore\n{\n \"indices\": \"kibana_sample_data_flights,.ds-my-data-stream-2022.06.17-000001\", <1>\n \"include_aliases\": true <2>\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":218},"digest":"fd6fdc8fa994dd02cf1177077325304f","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/snapshot-20200617/_restore\n{\n \"feature_states\": [ \"geoip\" ],\n \"indices\": \"kibana_sample_data_flights,.ds-my-data-stream-2022.06.17-000001\",\n \"include_aliases\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":231},"digest":"734e2b1d1ca84a305240a449738f0eba","lang":"console","found":["python","ruby","js"],"source":"GET _cat/indices?v&index=.ds-my-data-stream-2022.06.17-000001,kibana_sample_data_flightsh=index,status,health"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":239},"digest":"3d6986d5be947ec06c5c49287edf9ce5","lang":"console-result","found":[],"source":"index status health\n.ds-my-data-stream-2022.06.17-000001 open green\nkibana_sample_data_flights open green"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":262},"digest":"2ceded6ee764adf1aaaac0a1cd25ed5f","lang":"console","found":["python","ruby","js"],"source":"GET _cat/indices?v&health=red&h=index,status,health"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":269},"digest":"bfa0028824c6ad79f78cd0fd7a143a35","lang":"console-result","found":[],"source":"index status health\n.ds-my-data-stream-2022.06.17-000001 open red\nkibana_sample_data_flights open red"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":284},"digest":"4e926063a9494b563387617b08c4f232","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/my_repository/*?verbose=false"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":292},"digest":"ef9cd9e56719b7eccf056308dac6a792","lang":"console-result","found":[],"source":"{\n \"snapshots\" : [\n {\n \"snapshot\" : \"snapshot-20200617\", <1>\n \"uuid\" : \"dZyPs1HyTwS-cnKdH08EPg\",\n \"repository\" : \"my_repository\", <2>\n \"indices\" : [ <3>\n \".apm-agent-configuration\",\n \".apm-custom-link\",\n \".ds-ilm-history-5-2022.06.17-000001\",\n \".ds-my-data-stream-2022.06.17-000001\",\n \".geoip_databases\",\n \".kibana-event-log-8.2.2-000001\",\n \".kibana_8.2.2_001\",\n \".kibana_task_manager_8.2.2_001\",\n \"kibana_sample_data_ecommerce\",\n \"kibana_sample_data_flights\",\n \"kibana_sample_data_logs\"\n ],\n \"data_streams\" : [ ],\n \"state\" : \"SUCCESS\" <4>\n }\n ],\n \"total\" : 1,\n \"remaining\" : 0\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":337},"digest":"719141517d83b7e8e929b347a8d67c9f","lang":"console","found":["python","ruby","js"],"source":"GET kibana_sample_data_flights,.ds-my-data-stream-2022.06.17-000001?features=settings&flat_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":345},"digest":"228e6c95dda29cbdeb456a9725e1ebf3","lang":"console-result","found":[],"source":"{\n \".ds-my-data-stream-2022.06.17-000001\" : { <1>\n \"aliases\" : { },\n \"mappings\" : { },\n \"settings\" : { <2>\n \"index.creation_date\" : \"1658406121699\",\n \"index.hidden\" : \"true\",\n \"index.lifecycle.name\" : \"my-lifecycle-policy\",\n \"index.number_of_replicas\" : \"1\",\n \"index.number_of_shards\" : \"1\",\n \"index.provided_name\" : \".ds-my-data-stream-2022.06.17-000001\",\n \"index.routing.allocation.include._tier_preference\" : \"data_hot\",\n \"index.uuid\" : \"HmlFXp6VSu2XbQ-O3hVrwQ\",\n \"index.version.created\" : \"8020299\"\n },\n \"data_stream\" : \"my-data-stream\" <3>\n },\n \"kibana_sample_data_flights\" : { <4>\n \"aliases\" : { },\n \"mappings\" : { },\n \"settings\" : {\n \"index.creation_date\" : \"1655121541454\",\n \"index.number_of_replicas\" : \"0\",\n \"index.number_of_shards\" : \"1\",\n \"index.provided_name\" : \"kibana_sample_data_flights\",\n \"index.routing.allocation.include._tier_preference\" : \"data_content\",\n \"index.uuid\" : \"jMOlwKPPSzSraeeBWyuoDA\",\n \"index.version.created\" : \"8020299\"\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":400},"digest":"1e547696f54582840040b1aa6661760c","lang":"console","found":["python","ruby","js"],"source":"POST my-data-stream/_rollover"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":409},"digest":"c28f0b0dd3246cb91d6facb3295a61d7","lang":"console","found":["python","ruby","js"],"source":"POST kibana_sample_data_flights,.ds-my-data-stream-2022.06.17-000001/_close"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":418},"digest":"2ceded6ee764adf1aaaac0a1cd25ed5f","lang":"console","found":["python","ruby","js"],"source":"GET _cat/indices?v&health=red&h=index,status,health"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":426},"digest":"cbe594afe7bcef64510d78ff02934450","lang":"console-result","found":[],"source":"index status health\n.ds-my-data-stream-2022.06.17-000001 close red\nkibana_sample_data_flights close red"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":436},"digest":"a699189c8d1a7573beeaea768f2fc618","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/snapshot-20200617/_restore\n{\n \"indices\": \"kibana_sample_data_flights,.ds-my-data-stream-2022.06.17-000001\", <1>\n \"include_aliases\": true <2>\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":454},"digest":"fd6fdc8fa994dd02cf1177077325304f","lang":"console","found":["python","ruby","js"],"source":"POST _snapshot/my_repository/snapshot-20200617/_restore\n{\n \"feature_states\": [ \"geoip\" ],\n \"indices\": \"kibana_sample_data_flights,.ds-my-data-stream-2022.06.17-000001\",\n \"include_aliases\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":467},"digest":"734e2b1d1ca84a305240a449738f0eba","lang":"console","found":["python","ruby","js"],"source":"GET _cat/indices?v&index=.ds-my-data-stream-2022.06.17-000001,kibana_sample_data_flightsh=index,status,health"},
{"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":475},"digest":"3d6986d5be947ec06c5c49287edf9ce5","lang":"console-result","found":[],"source":"index status health\n.ds-my-data-stream-2022.06.17-000001 open green\nkibana_sample_data_flights open green"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/corrupt-repository.asciidoc","line":69},"digest":"b4d9d5017d42f27281e734e969949623","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/my-repo"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/corrupt-repository.asciidoc","line":77},"digest":"5321a214f7f8d01a114ab7ba81020a1c","lang":"console-result","found":[],"source":"{\n \"my-repo\": { <1>\n \"type\": \"s3\",\n \"settings\": {\n \"bucket\": \"repo-bucket\",\n \"client\": \"elastic-internal-71bcd3\",\n \"base_path\": \"myrepo\"\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/corrupt-repository.asciidoc","line":97},"digest":"06c0db0f42223761e32fa418066b275f","lang":"console","found":["python","js"],"source":"PUT _snapshot/my-repo\n{\n \"type\": \"s3\",\n \"settings\": {\n \"bucket\": \"repo-bucket\",\n \"client\": \"elastic-internal-71bcd3\",\n \"base_path\": \"myrepo\",\n \"readonly\": true <1>\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/corrupt-repository.asciidoc","line":116},"digest":"4427517dcd8ec9997541150cdc11a0de","lang":"console","found":["python","ruby","js"],"source":"DELETE _snapshot/my-repo"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/corrupt-repository.asciidoc","line":124},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/corrupt-repository.asciidoc","line":140},"digest":"b4d9d5017d42f27281e734e969949623","lang":"console","found":["python","ruby","js"],"source":"GET _snapshot/my-repo"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/corrupt-repository.asciidoc","line":147},"digest":"7fbebf0fc9b4a402917a4723ad547c6a","lang":"console","found":["python","js"],"source":"PUT _snapshot/my-repo\n{\n \"type\": \"s3\",\n \"settings\": {\n \"bucket\": \"repo-bucket\",\n \"client\": \"elastic-internal-71bcd3\",\n \"base_path\": \"myrepo\"\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/corrupt-repository.asciidoc","line":163},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/repeated-snapshot-failures.asciidoc","line":27},"digest":"624e69dedf42c4877234b87ec1d00068","lang":"console","found":["python","js"],"source":"GET _slm/policy/"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/repeated-snapshot-failures.asciidoc","line":35},"digest":"4d3db42ec1555c3f0dfb30a85b415aa3","lang":"console-result","found":[],"source":"{\n \"affected-policy-name\": { <1>\n \"version\": 1,\n \"modified_date\": \"2099-05-06T01:30:00.000Z\",\n \"modified_date_millis\": 4081757400000,\n \"policy\" : {\n \"schedule\": \"0 30 1 * * ?\",\n \"name\": \"\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": [\"data-*\", \"important\"],\n \"ignore_unavailable\": false,\n \"include_global_state\": false\n },\n \"retention\": {\n \"expire_after\": \"30d\",\n \"min_count\": 5,\n \"max_count\": 50\n }\n },\n \"last_success\" : {\n \"snapshot_name\" : \"daily-snap-2099.05.30-tme_ivjqswgkpryvnao2lg\",\n \"start_time\" : 4083782400000,\n \"time\" : 4083782400000\n },\n \"last_failure\" : { <2>\n \"snapshot_name\" : \"daily-snap-2099.06.16-ywe-kgh5rfqfrpnchvsujq\",\n \"time\" : 4085251200000, <3>\n \"details\" : \"\"\"{\"type\":\"snapshot_exception\",\"reason\":\"[daily-snap-2099.06.16-ywe-kgh5rfqfrpnchvsujq] failed to create snapshot successfully, 5 out of 149 total shards failed\"}\"\"\" <4>\n },\n \"stats\": {\n \"policy\": \"daily-snapshots\",\n \"snapshots_taken\": 0,\n \"snapshots_failed\": 0,\n \"snapshots_deleted\": 0,\n \"snapshot_deletion_failures\": 0\n },\n \"next_execution\": \"2099-06-17T01:30:00.000Z\",\n \"next_execution_millis\": 4085343000000\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/repeated-snapshot-failures.asciidoc","line":105},"digest":"624e69dedf42c4877234b87ec1d00068","lang":"console","found":["python","js"],"source":"GET _slm/policy/"},
{"source_location":{"file":"tab-widgets/troubleshooting/snapshot/repeated-snapshot-failures.asciidoc","line":113},"digest":"4d3db42ec1555c3f0dfb30a85b415aa3","lang":"console-result","found":[],"source":"{\n \"affected-policy-name\": { <1>\n \"version\": 1,\n \"modified_date\": \"2099-05-06T01:30:00.000Z\",\n \"modified_date_millis\": 4081757400000,\n \"policy\" : {\n \"schedule\": \"0 30 1 * * ?\",\n \"name\": \"\",\n \"repository\": \"my_repository\",\n \"config\": {\n \"indices\": [\"data-*\", \"important\"],\n \"ignore_unavailable\": false,\n \"include_global_state\": false\n },\n \"retention\": {\n \"expire_after\": \"30d\",\n \"min_count\": 5,\n \"max_count\": 50\n }\n },\n \"last_success\" : {\n \"snapshot_name\" : \"daily-snap-2099.05.30-tme_ivjqswgkpryvnao2lg\",\n \"start_time\" : 4083782400000,\n \"time\" : 4083782400000\n },\n \"last_failure\" : { <2>\n \"snapshot_name\" : \"daily-snap-2099.06.16-ywe-kgh5rfqfrpnchvsujq\",\n \"time\" : 4085251200000, <3>\n \"details\" : \"\"\"{\"type\":\"snapshot_exception\",\"reason\":\"[daily-snap-2099.06.16-ywe-kgh5rfqfrpnchvsujq] failed to create snapshot successfully, 5 out of 149 total shards failed\"}\"\"\" <4>\n },\n \"stats\": {\n \"policy\": \"daily-snapshots\",\n \"snapshots_taken\": 0,\n \"snapshots_failed\": 0,\n \"snapshots_deleted\": 0,\n \"snapshot_deletion_failures\": 0\n },\n \"next_execution\": \"2099-06-17T01:30:00.000Z\",\n \"next_execution_millis\": 4085343000000\n }\n}"},
{"source_location":{"file":"watcher/troubleshooting.asciidoc","line":14},"digest":"2856a5ceff1861aa9a78099f1c517fe7","lang":"console","found":["python","ruby","js"],"source":"GET .watches/_mapping"},
{"source_location":{"file":"watcher/troubleshooting.asciidoc","line":29},"digest":"e905543b281e9c41395304da76ed2ea3","lang":"console","found":["python","ruby","js"],"source":"DELETE .watches"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":21},"digest":"f45990264f8755b96b11c69c12c90ff4","lang":"console","found":["python","ruby","js"],"source":"HEAD my-data-stream"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":29},"digest":"253140cb1e270e5ee23e15dbaeaaa0ea","lang":"console","found":["python","ruby","js"],"source":"GET /_data_stream/_stats?human=true"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":37},"digest":"9370e4935ab6678571d3227973b8c830","lang":"console","found":["python","ruby","js"],"source":"GET _all?filter_path=*.aliases"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":46},"digest":"83d712b9ffb2e703212b762eba3c521a","lang":"console","found":["python","ruby","js"],"source":"GET /my-alias/_search?ignore_unavailable=true"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":84},"digest":"ef3666b5d288faefbcbc4a25e8f506da","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_count"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":101},"digest":"ed6b996ea389e0955a01c2e67f4c8339","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_field_caps?fields=my-field"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":143},"digest":"21715c32c140feeab04b38ff6d6de111","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_mappings"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":153},"digest":"199f5165d876267080046c907e93483f","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_analyze\n{\n \"field\" : \"my-field\",\n \"text\" : \"this is a test\"\n}"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":174},"digest":"89c57917bc7bd2e6387b5eb54ece37b1","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_count\n{\n \"query\": {\n \"exists\": {\n \"field\": \"my-field\"\n }\n }\n}"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":192},"digest":"bcbd4d4749126837723438ff4faeb0f6","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_search?filter_path=aggregations\n{\n \"size\": 0,\n \"aggs\": {\n \"top_values\": {\n \"terms\": {\n \"field\": \"my-field\",\n \"size\": 10\n }\n }\n }\n}"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":213},"digest":"26168987f799cdc4ee4151c85ba7afc5","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_search?filter_path=aggregations\n{\n \"aggs\": {\n \"my-num-field-stats\": {\n \"stats\": {\n \"field\": \"my-num-field\"\n }\n }\n }\n}"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":240},"digest":"a253a1712953f7292bdd646c48ec7fd2","lang":"console","found":["python","ruby","js"],"source":"GET my-index-000001/_search?sort=@timestamp:desc&size=1"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":257},"digest":"75c347b181112d2c4538c01ade903afe","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_validate/query?rewrite=true\n{\n \"query\": {\n \"match\": {\n \"user.id\": {\n \"query\": \"kimchy\",\n \"fuzziness\": \"auto\"\n }\n }\n }\n}"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":276},"digest":"e0fcef99656799de6b88117d56f131e2","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_explain/0\n{\n \"query\" : {\n \"match\" : { \"message\" : \"elasticsearch\" }\n }\n}"},
{"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":305},"digest":"e1d6ecab4148b09f4c605474157e7dbd","lang":"console","found":["python","ruby","js"],"source":"GET /my-index-000001/_settings"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":26},"digest":"5797df4b8e71d821a1488cbb63481104","lang":"console","found":["python","ruby","js"],"source":"GET _health_report/shards_capacity"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":33},"digest":"d1525f4575ac704dcdf4a69bdcfd5f94","lang":"console-result","found":[],"source":"{\n \"cluster_name\": \"...\",\n \"indicators\": {\n \"shards_capacity\": {\n \"status\": \"yellow\",\n \"symptom\": \"Cluster is close to reaching the configured maximum number of shards for data nodes.\",\n \"details\": {\n \"data\": {\n \"max_shards_in_cluster\": 1000, <1>\n \"current_used_shards\": 988 <2>\n },\n \"frozen\": {\n \"max_shards_in_cluster\": 3000,\n \"current_used_shards\": 0\n }\n },\n \"impacts\": [\n ...\n ],\n \"diagnosis\": [\n ...\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":67},"digest":"96b9289c3c4c6b135ab3386562c4ee8d","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node\": 1200\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":86},"digest":"5797df4b8e71d821a1488cbb63481104","lang":"console","found":["python","ruby","js"],"source":"GET _health_report/shards_capacity"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":93},"digest":"2e3292fe3ab645da12a5e96157cff635","lang":"console-result","found":[],"source":"{\n \"cluster_name\": \"...\",\n \"indicators\": {\n \"shards_capacity\": {\n \"status\": \"green\",\n \"symptom\": \"The cluster has enough room to add new shards.\",\n \"details\": {\n \"data\": {\n \"max_shards_in_cluster\": 1000\n },\n \"frozen\": {\n \"max_shards_in_cluster\": 3000\n }\n }\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":118},"digest":"3af10fde8138d9d95df127d39d9a0ed2","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node\": null\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":135},"digest":"5797df4b8e71d821a1488cbb63481104","lang":"console","found":["python","ruby","js"],"source":"GET _health_report/shards_capacity"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":142},"digest":"64e0b312d7662096f8a1676082425dd2","lang":"console-result","found":[],"source":"{\n \"cluster_name\": \"...\",\n \"indicators\": {\n \"shards_capacity\": {\n \"status\": \"yellow\",\n \"symptom\": \"Cluster is close to reaching the configured maximum number of shards for data nodes.\",\n \"details\": {\n \"data\": {\n \"max_shards_in_cluster\": 1000, <1>\n \"current_used_shards\": 988 <2>\n },\n \"frozen\": {\n \"max_shards_in_cluster\": 3000\n }\n },\n \"impacts\": [\n ...\n ],\n \"diagnosis\": [\n ...\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":174},"digest":"96b9289c3c4c6b135ab3386562c4ee8d","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node\": 1200\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":191},"digest":"5797df4b8e71d821a1488cbb63481104","lang":"console","found":["python","ruby","js"],"source":"GET _health_report/shards_capacity"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":198},"digest":"e8ba57391f3b24a4b1860a578893150b","lang":"console-result","found":[],"source":"{\n \"cluster_name\": \"...\",\n \"indicators\": {\n \"shards_capacity\": {\n \"status\": \"green\",\n \"symptom\": \"The cluster has enough room to add new shards.\",\n \"details\": {\n \"data\": {\n \"max_shards_in_cluster\": 1200\n },\n \"frozen\": {\n \"max_shards_in_cluster\": 3000\n }\n }\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":223},"digest":"3af10fde8138d9d95df127d39d9a0ed2","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node\": null\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":256},"digest":"5797df4b8e71d821a1488cbb63481104","lang":"console","found":["python","ruby","js"],"source":"GET _health_report/shards_capacity"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":263},"digest":"7409d9055a73dcae63b36230fbf4a383","lang":"console-result","found":[],"source":"{\n \"cluster_name\": \"...\",\n \"indicators\": {\n \"shards_capacity\": {\n \"status\": \"yellow\",\n \"symptom\": \"Cluster is close to reaching the configured maximum number of shards for frozen nodes.\",\n \"details\": {\n \"data\": {\n \"max_shards_in_cluster\": 1000\n },\n \"frozen\": {\n \"max_shards_in_cluster\": 3000, <1>\n \"current_used_shards\": 2998 <2>\n }\n },\n \"impacts\": [\n ...\n ],\n \"diagnosis\": [\n ...\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":296},"digest":"51f6cb682424e110f289af79c106f4c7","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node.frozen\": 3200\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":315},"digest":"5797df4b8e71d821a1488cbb63481104","lang":"console","found":["python","ruby","js"],"source":"GET _health_report/shards_capacity"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":322},"digest":"60002bbd41921affb35f3658ac6b0c59","lang":"console-result","found":[],"source":"{\n \"cluster_name\": \"...\",\n \"indicators\": {\n \"shards_capacity\": {\n \"status\": \"green\",\n \"symptom\": \"The cluster has enough room to add new shards.\",\n \"details\": {\n \"data\": {\n \"max_shards_in_cluster\": 1000\n },\n \"frozen\": {\n \"max_shards_in_cluster\": 3200\n }\n }\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":347},"digest":"b638e11d6a8a084290f8934d224abd52","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node.frozen\": null\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":364},"digest":"5797df4b8e71d821a1488cbb63481104","lang":"console","found":["python","ruby","js"],"source":"GET _health_report/shards_capacity"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":369},"digest":"7409d9055a73dcae63b36230fbf4a383","lang":"console-result","found":[],"source":"{\n \"cluster_name\": \"...\",\n \"indicators\": {\n \"shards_capacity\": {\n \"status\": \"yellow\",\n \"symptom\": \"Cluster is close to reaching the configured maximum number of shards for frozen nodes.\",\n \"details\": {\n \"data\": {\n \"max_shards_in_cluster\": 1000\n },\n \"frozen\": {\n \"max_shards_in_cluster\": 3000, <1>\n \"current_used_shards\": 2998 <2>\n }\n },\n \"impacts\": [\n ...\n ],\n \"diagnosis\": [\n ...\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":401},"digest":"51f6cb682424e110f289af79c106f4c7","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node.frozen\": 3200\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":418},"digest":"5797df4b8e71d821a1488cbb63481104","lang":"console","found":["python","ruby","js"],"source":"GET _health_report/shards_capacity"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":425},"digest":"60002bbd41921affb35f3658ac6b0c59","lang":"console-result","found":[],"source":"{\n \"cluster_name\": \"...\",\n \"indicators\": {\n \"shards_capacity\": {\n \"status\": \"green\",\n \"symptom\": \"The cluster has enough room to add new shards.\",\n \"details\": {\n \"data\": {\n \"max_shards_in_cluster\": 1000\n },\n \"frozen\": {\n \"max_shards_in_cluster\": 3200\n }\n }\n }\n }\n}"},
{"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":450},"digest":"b638e11d6a8a084290f8934d224abd52","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node.frozen\": null\n }\n}"},
{"source_location":{"file":"troubleshooting/troubleshooting-unbalanced-cluster.asciidoc","line":24},"digest":"5c7ece1f30267adabdb832424871900a","lang":"console","found":["python","ruby","js"],"source":"GET /_cat/allocation?v"},
{"source_location":{"file":"troubleshooting/troubleshooting-unbalanced-cluster.asciidoc","line":76},"digest":"b3756e700d0f6c7e8919003bdf26bc8f","lang":"console","found":["python","js"],"source":"DELETE /_internal/desired_balance"},
{"source_location":{"file":"upgrade/archived-settings.asciidoc","line":24},"digest":"f3c696cd63a3f042e62cbb94b75c2427","lang":"console","found":["python","ruby","js"],"source":"GET _cluster/settings?flat_settings=true&filter_path=persistent.archived*"},
{"source_location":{"file":"upgrade/archived-settings.asciidoc","line":32},"digest":"640a89d0b39630269433425ff476faf3","lang":"console","found":["python","ruby","js"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"archived.*\": null\n }\n}"},
{"source_location":{"file":"upgrade/archived-settings.asciidoc","line":64},"digest":"fde3463ddf136fdfff1306a60986515e","lang":"console","found":["python","ruby","js"],"source":"GET */_settings?flat_settings=true&filter_path=**.settings.archived*"},
{"source_location":{"file":"upgrade/archived-settings.asciidoc","line":73},"digest":"64ffaa6814ec1ec4f59b8f33b47cffb4","lang":"console","found":["python","ruby","js"],"source":"PUT /my-index/_settings\n{\n \"archived.*\": null\n}"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":345},"digest":"e715fb8c792bf09ac98f0ceca99beb84","lang":"console","found":["js"],"source":"GET /.ml-anomalies-*/_migration/deprecations"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":353},"digest":"f7dfd5eae273f31a915c36505be2a1d7","lang":"console-result","found":[],"source":"\"index_settings\": {\n \".ml-anomalies-shared\": [\n {\n \"level\": \"critical\",\n \"message\": \"Index created before 8.0\",\n \"url\": \"https://ela.st/es-deprecation-8-reindex\",\n \"details\": \"This index was created with version 7.8.23 and is not compatible with 9.0. Reindex or remove the index before upgrading.\",\n \"resolve_during_rolling_upgrade\": false\n }\n ]\n }"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":379},"digest":"a46f566ca031375658c22f89b87dc6d2","lang":"console","found":["js"],"source":"GET _cat/indices/.ml-anomalies-custom-example?v&h=index,store.size"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":393},"digest":"12adea5d76f73d94d80d42f53f67563f","lang":"console","found":["js"],"source":"PUT .ml-anomalies-custom-example/_block/read_only"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":403},"digest":"ec135f0cc0d3f526df68000b2a95c65b","lang":"console","found":[],"source":"POST _create_from/.ml-anomalies-custom-example/.reindexed-v9-ml-anomalies-custom-example"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":415},"digest":"59aa5216630f80c5dc298fc5bba4a819","lang":"console","found":["js"],"source":"GET /.reindexed-v9-ml-anomalies-custom-example/_settings"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":421},"digest":"33056a50d7ba5c0dedc068476c7c8b1d","lang":"console-result","found":[],"source":"{\n \".reindexed-v9-ml-anomalies-custom-example\": {\n \"settings\": {\n \"index\": {\n \"number_of_replicas\": \"1\",\n \"number_of_shards\": \"1\"\n }\n }\n }\n}"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":439},"digest":"8621c05cc7cf3880bde751f6670a0c3a","lang":"console","found":["js"],"source":"PUT /.reindexed-v9-ml-anomalies-custom-example/_settings\n{\n \"index\": {\n \"number_of_replicas\": 0\n }\n}"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":453},"digest":"6e498b9dc753b94abf2618c407fa5cd8","lang":"console","found":["js"],"source":"POST _reindex?wait_for_completion=false\n{\n \"source\": {\n \"index\": \".ml-anomalies-custom-example\"\n },\n \"dest\": {\n \"index\": \".reindexed-v9-ml-anomalies-custom-example\"\n }\n}"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":467},"digest":"8a1b6eae4893c5dd27b3d81fd8d70f5b","lang":"console","found":["python","js"],"source":"GET _tasks/"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":476},"digest":"0f028f71f04c1d569fab402869565a84","lang":"console","found":["js"],"source":"PUT /.reindexed-v9-ml-anomalies-custom-example/_settings\n{\n \"index\": {\n \"number_of_replicas\": \"\"\n }\n}"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":491},"digest":"8c47c80139f40f25db44f5781ca2dfbe","lang":"console","found":["js"],"source":"GET .ml-anomalies-custom-example/_alias"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":499},"digest":"e2cae200679cfc793941a38c8dbf610c","lang":"console-result","found":[],"source":"{\n \".ml-anomalies-custom-example\": {\n \"aliases\": {\n \".ml-anomalies-example1\": {\n \"filter\": {\n \"term\": {\n \"job_id\": {\n \"value\": \"example1\"\n }\n }\n },\n \"is_hidden\": true\n },\n \".ml-anomalies-example2\": {\n \"filter\": {\n \"term\": {\n \"job_id\": {\n \"value\": \"example2\"\n }\n }\n },\n \"is_hidden\": true\n }\n }\n }\n}"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":535},"digest":"dd16c9c981551c9da47ebb5ef5105fa0","lang":"console","found":["js"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"add\": {\n \"index\": \".reindexed-v9-ml-anomalies-custom-example\",\n \"alias\": \".ml-anomalies-example1\",\n \"filter\": {\n \"term\": {\n \"job_id\": {\n \"value\": \"example1\"\n }\n }\n },\n \"is_hidden\": true\n }\n },\n {\n \"add\": {\n \"index\": \".reindexed-v9-ml-anomalies-custom-example\",\n \"alias\": \".ml-anomalies-example2\",\n \"filter\": {\n \"term\": {\n \"job_id\": {\n \"value\": \"example2\"\n }\n }\n },\n \"is_hidden\": true\n }\n },\n {\n \"remove\": {\n \"index\": \".ml-anomalies-custom-example\",\n \"aliases\": \".ml-anomalies-*\"\n }\n },\n {\n \"remove_index\": {\n \"index\": \".ml-anomalies-custom-example\"\n }\n },\n {\n \"add\": {\n \"index\": \".reindexed-v9-ml-anomalies-custom-example\",\n \"alias\": \".ml-anomalies-custom-example\",\n \"is_hidden\": true\n }\n }\n ]\n}"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":604},"digest":"272e27bf1fcc4fe5dbd4092679dd0342","lang":"console","found":["js"],"source":"PUT .ml-anomalies-custom-example/_block/write"},
{"source_location":{"file":"migration/migrate_9_0.asciidoc","line":620},"digest":"3a204b57072a104d9b50f3a9e064a8f6","lang":"console","found":["js"],"source":"GET .ml-anomalies-custom-example/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"job_ids\": {\n \"terms\": {\n \"field\": \"job_id\",\n \"size\": 100\n }\n }\n }\n}"}]