Elastic Stack (ELK Stack) Indices API
The indices API from Elastic Stack (ELK Stack) — 63 operation(s) for indices.
Operations 104
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Ask an LLM
“What mappings and settings does one specific component template define?”
“Can I view a single component template with its default settings filled in?”
Tell an agent
Show component template {name}.
Get component template {name} including default settings.
PUT
/_component_template/{name}
Create or update a component template (PUT) · Create or update a component template
#
Ask an LLM
“How do I define a reusable component template with shared mappings using a PUT request?”
“Can I refuse to overwrite an existing component template when I PUT a new one?”
Tell an agent
PUT component template {name} with template body {template}.
Using PUT, create component template {name} only if it does not exist yet (create={create}).
POST
/_component_template/{name}
Create or update a component template (POST) · Create or update a component template
#
Ask an LLM
“Is there a POST variant for saving a component template's mappings and settings?”
“Can I version a component template when I submit it with POST?”
Tell an agent
POST component template {name} containing {template}.
Save component template {name} via POST as version {version}.
Ask an LLM
“How do I remove a component template that no index template uses any more?”
“Can I delete several component templates at once with a comma-separated list?”
Tell an agent destructive · confirm first
Delete component template {name}.
Remove the component templates {name} from the cluster.
HEAD
/_component_template/{name}
Check whether a component template exists · Check component templates
#
Ask an LLM
“Is there a quick way to test whether a component template exists without downloading it?”
“Does a component template with a given name already exist?”
Tell an agent
Check whether component template {name} exists.
Confirm that a component template called {name} is defined.
Ask an LLM
“Which component templates are defined on my cluster?”
“Can I list every component template in flat settings format?”
Tell an agent
List all component templates on the cluster.
Show every component template with flat settings.
Ask an LLM
“How do I recover a dangling index that is missing from the cluster state?”
“Why must I accept data loss before importing a dangling index?”
Tell an agent
Import dangling index {index_uuid}, accepting possible data loss ({accept_data_loss}).
Bring dangling index {index_uuid} back into the cluster.
Ask an LLM
“How do I permanently discard a dangling index I do not want to recover?”
“Can I delete a dangling index by its UUID?”
Tell an agent destructive · confirm first
Delete dangling index {index_uuid}.
Discard dangling index {index_uuid} with accept_data_loss={accept_data_loss}.
Ask an LLM
“Are there any dangling indices on my nodes that the cluster no longer tracks?”
“Which dangling indices could I import or delete?”
Tell an agent
List all dangling indices in the cluster.
Show me any index data on disk that is missing from the cluster state.
Ask an LLM
“How do I make an index read-only by adding a write block?”
“Which operation types can I block on an index?”
Tell an agent
Add a {block} block to index {index}.
Block writes on {index} by applying the {block} block.
Ask an LLM
“How do I lift a read-only or write block from an index?”
“Can I remove a metadata block that I put on an index earlier?”
Tell an agent destructive · confirm first
Remove the {block} block from index {index}.
Unblock {index} by lifting its {block} block.
Ask an LLM
“How can I see how a built-in analyzer tokenizes a sentence, using a GET request?”
“What tokens does the standard analyzer produce for my text?”
Tell an agent
Via GET, tokenize {text} with the {analyzer} analyzer.
Run a GET analyze of {text} using tokenizer {tokenizer}.
Ask an LLM
“Can I POST text to the analyze API with a custom tokenizer and filters?”
“Is there a way to get a detailed explanation of each analysis step for my text?”
Tell an agent
POST {text} to the analyze API with tokenizer {tokenizer} and filters {filter}.
Explain step by step how {analyzer} analyzes {text}, sent as POST.
Ask an LLM
“How do I check how a field in a particular index would tokenize my text, over GET?”
“Can I test a custom analyzer defined in one index's settings?”
Tell an agent
Using GET, analyze {text} with the analyzer mapped to field {field} in index {index}.
GET the tokens that index {index}'s {analyzer} analyzer produces for {text}.
POST
/{index}/_analyze
Analyze text with an index's analyzer (POST) · Get tokens from text analysis
#
Ask an LLM
“Can I POST sample text to an index to see how its custom analyzer breaks it up?”
“Which normalizer output would an index's keyword field give for a value?”
Tell an agent
POST {text} to index {index} and analyze it as field {field}.
Normalize {text} with index {index}'s normalizer {normalizer}, via POST.
Ask an LLM
“How do I clear the query, request and fielddata caches across every index?”
“Can I clear only the fielddata cache cluster-wide?”
Tell an agent
Clear all caches for every index in the cluster.
Clear only the fielddata cache on all indices (fielddata={fielddata}).
Ask an LLM
“How do I clear the cache for just one index after changing its analyzers?”
“Can I clear the request cache of a single data stream?”
Tell an agent
Clear the caches of index {index}.
Clear only the request cache on {index} (request={request}).
Ask an LLM
“How do I make an exact copy of an existing index under a new name with a PUT request?”
“Does the source index need to be read-only before I clone it?”
Tell an agent
PUT a clone of index {index} as {target}.
Clone {index} into {target} with settings {settings}, using PUT.
Ask an LLM
“Can I clone an index with a POST request and give the copy new aliases?”
“Is there a POST form of the clone index API?”
Tell an agent
POST a clone of {index} to new index {target}.
Clone {index} to {target} via POST and add aliases {aliases}.
Ask an LLM
“How do I close an index so it stops using resources but keeps its data?”
“Can I wait for shards to be active when closing an index?”
Tell an agent destructive · confirm first
Close index {index}.
Close {index} and wait for {wait_for_active_shards} active shards.
Ask an LLM
“What settings, mappings and aliases does an index have?”
“Can I retrieve only the mappings section of an index's details?”
Tell an agent
Show the settings, mappings and aliases of index {index}.
Get index {index} but only return the {features} features.
Ask an LLM
“How do I create a new Elasticsearch index with custom mappings and shard settings?”
“Can I set aliases at the moment I create an index?”
Tell an agent
Create index {index}.
Create index {index} with mappings {mappings} and settings {settings}.
Ask an LLM
“How do I delete an index and all of its documents?”
“Can I delete several indices at once, and what happens with wildcards?”
Tell an agent destructive · confirm first
Delete index {index}.
Permanently delete the indices {index} and ignore any that are missing.
Ask an LLM
“Is there a lightweight way to test that an index exists?”
“Does an index, data stream or alias with this name exist already?”
Tell an agent
Check whether index {index} exists.
Tell me if there is an index called {index}.
Ask an LLM
“Is a particular alias attached to a particular index, and how is it configured?”
“Can I see the filter and routing of one alias on one index?”
Tell an agent
Show alias {name} on index {index}.
Get the configuration of alias {name} for indices {index}.
Ask an LLM
“How do I point an alias at an index with a PUT to the singular _alias path?”
“Can an alias I add with PUT carry a filter so it only shows some documents?”
Tell an agent
PUT alias {name} on index {index} via the _alias path.
Add filtered alias {name} to {index} with filter {filter} (PUT _alias).
Ask an LLM
“Can I create an index alias with a POST to the singular _alias path?”
“Is it possible to make an alias the write index when adding it by POST?”
Tell an agent
POST alias {name} for index {index} on the _alias path.
Via POST _alias, make {name} the write alias for {index} (is_write_index={is_write_index}).
Ask an LLM
“How do I detach an alias from an index using the singular _alias path?”
“Does removing an alias with DELETE _alias touch the index data?”
Tell an agent destructive · confirm first
Delete alias {name} from index {index} via _alias.
Remove {name} from {index} using the singular _alias route.
Ask an LLM
“Is a given alias already attached to a specific index?”
“Can I check alias membership for one index without fetching the alias?”
Tell an agent
Check whether alias {name} exists on index {index}.
Confirm index {index} carries the alias {name}.
Ask an LLM
“Can I add an index alias with a PUT to the plural _aliases path?”
“How do I set custom routing on an alias added through PUT _aliases?”
Tell an agent
PUT alias {name} on {index} through the plural _aliases path.
Via PUT _aliases, add {name} to {index} with routing {routing}.
POST
/{index}/_aliases/{name}
Add an alias to an index (POST _aliases) · Create or update an alias
#
Ask an LLM
“Is there a POST to the plural _aliases path for adding a single alias to an index?”
“Can I give an alias different search and index routing when I POST it to _aliases?”
Tell an agent
POST alias {name} for {index} on the plural _aliases path.
Via POST _aliases, add {name} to {index} with search routing {search_routing} and index routing {index_routing}.
Ask an LLM
“How do I delete an alias with the plural _aliases path instead of _alias?”
“Can I drop an alias from several indices at once using DELETE _aliases?”
Tell an agent destructive · confirm first
Delete alias {name} from {index} via the plural _aliases path.
Using DELETE _aliases, detach {name} from indices {index}.
DELETE
/_data_stream/{name}/_lifecycle
Remove a data stream's lifecycle · Delete data stream lifecycles
#
Ask an LLM
“How do I stop a data stream from being managed by its data stream lifecycle?”
“Can I remove retention management from several data streams with a wildcard?”
Tell an agent destructive · confirm first
Delete the lifecycle from data stream {name}.
Stop lifecycle management for data streams {name}.
Ask an LLM
“What index patterns and priority does a specific index template have?”
“Can I view one composable index template including its defaults?”
Tell an agent
Show index template {name}.
Get composable index template {name} with default settings included.
PUT
/_index_template/{name}
Create or update an index template (PUT) · Create or update an index template
#
Ask an LLM
“How do I create a composable index template that applies to new indices matching a pattern, using PUT?”
“Can an index template built with PUT combine several component templates?”
Tell an agent
PUT index template {name} for patterns {index_patterns}.
Using PUT, create index template {name} composed of {composed_of} with priority {priority}.
POST
/_index_template/{name}
Create or update an index template (POST) · Create or update an index template
#
Ask an LLM
“Is there a POST version of the composable index template API?”
“Can I make an index template create data streams when I POST it?”
Tell an agent
POST index template {name} matching {index_patterns}.
Via POST, save index template {name} for {index_patterns} with data stream settings {data_stream}.
Ask an LLM
“How do I delete a composable index template I no longer need?”
“Will deleting an index template affect indices already created from it?”
Tell an agent destructive · confirm first
Delete index template {name}.
Remove the composable index templates {name}.
Ask an LLM
“Can I quickly test whether a composable index template exists?”
“Is there already an index template with a given name?”
Tell an agent
Check whether index template {name} exists.
Confirm that composable template {name} is defined.
Ask an LLM
“What does one of my old-style legacy index templates contain?”
“Can I still read a legacy _template by name?”
Tell an agent
Show legacy index template {name}.
Get the legacy _template called {name}.
PUT
/_template/{name}
Create or update a legacy template (PUT) · Create or update a legacy index template
#
Ask an LLM
“How do I create a legacy index template with PUT for older clusters?”
“Does the order value decide which legacy template wins when patterns overlap?”
Tell an agent
PUT legacy template {name} for patterns {index_patterns}.
Using PUT, create legacy template {name} with order {order} and mappings {mappings}.
POST
/_template/{name}
Create or update a legacy template (POST) · Create or update a legacy index template
#
Ask an LLM
“Is there a POST variant of the legacy _template API?”
“Can I attach aliases to a legacy template sent with POST?”
Tell an agent
POST legacy template {name} matching {index_patterns}.
Via POST, save legacy template {name} with settings {settings} and aliases {aliases}.
Ask an LLM
“How do I remove an old legacy _template after migrating to composable templates?”
“Can I delete a legacy template by name?”
Tell an agent destructive · confirm first
Delete legacy index template {name}.
Remove the old-style _template {name}.
HEAD
/_template/{name}
Check whether a legacy template exists · Check existence of index templates
#
Ask an LLM
“Is a legacy _template with a given name still present?”
“Can I check for leftover legacy templates without fetching them?”
Tell an agent
Check whether legacy template {name} exists.
Confirm the old-style _template {name} is still defined.
Ask an LLM
“Which fields take up the most disk space in my index?”
“Why do I have to opt in to expensive tasks to analyze an index's disk usage?”
Tell an agent
Analyze disk usage per field for index {index} (run_expensive_tasks={run_expensive_tasks}).
Break down how much storage each field of {index} uses.
Ask an LLM
“Which indices does a given alias point to?”
“Can I look up an alias by name without knowing its indices?”
Tell an agent
Show which indices alias {name} points to.
Find alias {name} across every index.
Ask an LLM
“Does an alias with this name exist on any index in the cluster?”
“Can I test for an alias without naming an index?”
Tell an agent
Check whether alias {name} is defined anywhere in the cluster.
Tell me if any index carries alias {name}.
Ask an LLM
“Which fields in my index are actually used by queries?”
“Can I find unused fields per shard so I can trim my mapping?”
Tell an agent
Show field usage stats for index {index}.
Get per-shard usage counts for fields {fields} in {index}.
Ask an LLM
“Can I trigger a flush of every index with a GET request?”
“Does a cluster-wide flush wait if another flush is already running?”
Tell an agent
Flush all indices using GET.
Run a GET flush across the cluster, waiting if one is ongoing ({wait_if_ongoing}).
Ask an LLM
“How do I flush every index and data stream so the transaction log is committed to disk?”
“Can I force a flush cluster-wide even when there is nothing to commit?”
Tell an agent
POST a flush for every index in the cluster.
Force-flush all indices via POST (force={force}).
Ask an LLM
“Is there a GET form for flushing only one index?”
“Can I flush a single data stream using a GET request?”
Tell an agent
Flush index {index} with a GET request.
GET-flush {index}, ignoring unavailable indices.
Ask an LLM
“How do I flush just one index before taking a snapshot?”
“Can I force a flush on a specific data stream?”
Tell an agent
POST a flush for index {index}.
Force-flush {index} via POST even if no changes are pending (force={force}).
Ask an LLM
“How do I force-merge every index in the cluster down to fewer segments?”
“Can I run a cluster-wide force merge that only expunges deleted documents?”
Tell an agent
Force-merge all indices to {max_num_segments} segments.
Expunge deleted documents across every index (only_expunge_deletes={only_expunge_deletes}).
Ask an LLM
“How do I force-merge a read-only index to one segment to speed up searches?”
“Can I run a force merge on one index without waiting for it to finish?”
Tell an agent
Force-merge index {index} down to {max_num_segments} segment.
Start a force merge on {index} in the background (wait_for_completion={wait_for_completion}).
Ask an LLM
“What aliases exist across my whole cluster?”
“Can I list every alias including those on hidden indices?”
Tell an agent
List every alias in the cluster.
Show all aliases, expanding wildcards to {expand_wildcards} indices.
Ask an LLM
“Which aliases point at a particular index?”
“Can I see every alias attached to one data stream?”
Tell an agent
List all aliases on index {index}.
Show every alias that references {index}.
Ask an LLM
“How is a given field mapped across all of my indices?”
“Can I check the type of one field everywhere without pulling whole mappings?”
Tell an agent
Show the mapping of fields {fields} across all indices.
Get the field mapping for {fields} in every index, including defaults.
GET
/{index}/_mapping/field/{fields}
Get mappings for fields in given indices · Get mapping definitions
#
Ask an LLM
“What type is a particular field mapped as in one specific index?”
“Can I retrieve just a couple of field mappings from an index?”
Tell an agent
Show the mapping of field {fields} in index {index}.
Get mappings for fields {fields} of {index} only.
Ask an LLM
“Which composable index templates are configured on my cluster?”
“Can I list every index template in flat settings form?”
Tell an agent
List all composable index templates.
Show every index template on the cluster with flat settings.
Ask an LLM
“What are the mappings for every index in my cluster?”
“Can I dump all index mappings at once?”
Tell an agent
Get the mappings of every index.
Show all index mappings in the cluster.
Ask an LLM
“What is the full mapping of a specific index?”
“Can I compare the mappings of two indices by fetching them together?”
Tell an agent
Show the full mapping of index {index}.
Get mappings for indices {index}.
Ask an LLM
“How do I add a new field to an existing index mapping with PUT?”
“Can I change a mapping's dynamic setting on an existing index?”
Tell an agent
PUT new field properties {properties} into the mapping of {index}.
Using PUT, set dynamic mapping to {dynamic} on index {index}.
Ask an LLM
“Is there a POST form for updating an index's field mappings?”
“Can I add runtime fields to an index mapping via POST?”
Tell an agent
POST mapping properties {properties} to index {index}.
Via POST, add runtime fields {runtime} to the mapping of {index}.
Ask an LLM
“What are the settings of every index in the cluster?”
“Can I see all index settings including defaults?”
Tell an agent
Get the settings of all indices.
Show every index's settings, including default values.
Ask an LLM
“How do I change a dynamic setting such as refresh interval on every index at once?”
“Can I bulk-update replica counts cluster-wide while keeping existing values?”
Tell an agent
Set number_of_replicas to {number_of_replicas} on all indices.
Change the refresh interval of every index to {refresh_interval}.
Ask an LLM
“What shard, replica and refresh settings does a particular index have?”
“Can I read one index's settings in flat format?”
Tell an agent
Show the settings of index {index}.
Get settings for {index} with flat settings enabled.
Ask an LLM
“How do I change the number of replicas on one index?”
“Can I set a default ingest pipeline on an existing index?”
Tell an agent
Set replicas on index {index} to {number_of_replicas}.
Make {default_pipeline} the default pipeline for {index}.
Ask an LLM
“What is the value of a single named setting on a given index?”
“Can I filter an index's settings to just the ones I name?”
Tell an agent
Get setting {name} for index {index}.
Show only the {name} settings of {index}.
Ask an LLM
“What value does a specific setting have on every index?”
“Can I compare one setting, like refresh interval, across the whole cluster?”
Tell an agent
Show setting {name} for all indices.
Compare the {name} setting across every index.
Ask an LLM
“Which legacy index templates are still defined on my cluster?”
“Are any old _template definitions left over after an upgrade?”
Tell an agent
List all legacy index templates.
Show every old-style _template on the cluster.
Ask an LLM
“How do I reopen an index I closed earlier?”
“Can I wait until shards are active when opening an index?”
Tell an agent
Open closed index {index}.
Reopen {index} and wait for {wait_for_active_shards} active shards.
Ask an LLM
“Which shard recoveries are in progress across the cluster?”
“Can I list only active recoveries for every index?”
Tell an agent
Show recovery information for all indices.
List only in-progress shard recoveries cluster-wide (active_only={active_only}).
GET
/{index}/_recovery
Get shard recovery status for specific indices · Get index recovery information
#
Ask an LLM
“How far along is the recovery of a specific index's shards?”
“Can I get detailed recovery progress for one index?”
Tell an agent
Show recovery progress for index {index}.
Get detailed recovery info for {index} (detailed={detailed}).
Ask an LLM
“Can I make recent writes searchable on every index with a GET refresh?”
“Is there a GET form of the cluster-wide refresh call?”
Tell an agent
Refresh all indices using GET.
Run a GET refresh across the whole cluster.
Ask an LLM
“How do I force every index to refresh so new documents are visible to search?”
“What does a cluster-wide refresh do to recently indexed data?”
Tell an agent
POST a refresh to every index.
Make all recent writes searchable by refreshing every index via POST.
Ask an LLM
“Can I refresh one index with a GET request?”
“Is there a GET route to refresh a single data stream?”
Tell an agent
Refresh index {index} with GET.
GET-refresh {index} so its latest documents show in search.
Ask an LLM
“How do I refresh just one index after bulk loading data?”
“Can I refresh several named indices in one call?”
Tell an agent
POST a refresh to index {index}.
Refresh indices {index} via POST, skipping unavailable ones.
Ask an LLM
“Can I reload updated synonym files for an index's search analyzers with a GET request?”
“Is there a GET route to pick up synonym changes without reopening the index?”
Tell an agent
Reload the search analyzers of index {index} using GET.
GET-reload search analyzers on {index} for resource {resource}.
Ask an LLM
“How do I pick up changes to a synonym file used by my search analyzer?”
“Should I clear the request cache after reloading search analyzers?”
Tell an agent
POST a reload of search analyzers for index {index}.
Reload {index}'s updateable synonym filters via POST.
Ask an LLM
“Which remote clusters are configured and reachable before I run a cross-cluster search?”
“Can I check every remote cluster's connection status without naming indices?”
Tell an agent
Show every configured remote cluster and whether it is connected.
Check remote clusters with a {timeout} timeout.
Ask an LLM
“Which clusters would a cross-cluster index expression actually hit?”
“Can I check that remote indices matching a pattern exist before searching?”
Tell an agent
Resolve the index expression {name} to its clusters.
Tell me which remote clusters have indices matching {name}.
Ask an LLM
“What indices, aliases and data streams does a wildcard pattern resolve to?”
“Can I expand an index pattern that includes remote clusters?”
Tell an agent
Resolve {name} into matching indices, aliases and data streams.
Using GET, list what the pattern {name} expands to, including hidden ones.
Ask an LLM
“Is there a POST form of the resolve index API?”
“Can I resolve an index pattern with POST and filter by index mode?”
Tell an agent
POST a resolve request for pattern {name}.
Via POST, resolve {name} limited to index mode {mode}.
Ask an LLM
“How do I roll a data stream over to a new write index?”
“Can I roll over only when the index is older or bigger than a threshold?”
Tell an agent
Roll over {alias} to a new write index.
Roll over {alias} if it meets conditions {conditions}.
POST
/{alias}/_rollover/{new_index}
Roll over an alias to a named new index · Roll over to a new index
#
Ask an LLM
“Can I choose the exact name of the new index when rolling over an alias?”
“How do I roll over an alias into an index name I specify?”
Tell an agent
Roll over alias {alias} into new index {new_index}.
Dry-run a rollover of {alias} to {new_index} (dry_run={dry_run}).
Ask an LLM
“How many Lucene segments does each shard have across the cluster?”
“Can I list low-level segment info for every index?”
Tell an agent
Show segment information for all indices.
List Lucene segments cluster-wide.
Ask an LLM
“How fragmented into segments is a particular index?”
“Should I force-merge an index, judging by its segment count?”
Tell an agent
Show the segments of index {index}.
List Lucene segments per shard for {index}.
Ask an LLM
“Which unassigned replica shards exist across the cluster and where are their copies?”
“Can I filter shard store info by shard health status?”
Tell an agent
Show shard store information for all indices.
List shard stores cluster-wide with status {status}.
Ask an LLM
“On which nodes do the replica copies of a specific index live?”
“Can I see store errors for an index's unassigned shards?”
Tell an agent
Show shard store details for index {index}.
List shard stores of {index} with status {status}.
Ask an LLM
“How do I shrink an index to fewer primary shards using PUT?”
“What must be true of the source index before it can be shrunk?”
Tell an agent
PUT a shrink of index {index} into {target}.
Using PUT, shrink {index} to {target} with settings {settings}.
Ask an LLM
“Is there a POST variant for shrinking an index's primary shard count?”
“Can I add aliases to the shrunken index in the same POST request?”
Tell an agent
POST a shrink of {index} into new index {target}.
Shrink {index} to {target} via POST and give it aliases {aliases}.
POST
/_index_template/_simulate_index/{name}
Preview settings an index would get · Simulate an index
#
Ask an LLM
“What settings and mappings would a new index with a given name receive from my templates?”
“Which index template would match an index name I am about to create?”
Tell an agent
Simulate the configuration index {name} would get from existing templates.
Preview what templates apply to index name {name} with patterns {index_patterns} and components {composed_of}.
POST
/_index_template/_simulate
Simulate an index template from a body · Simulate an index template
#
Ask an LLM
“Can I test an index template definition before saving it?”
“What final configuration would a draft template composed of certain component templates produce?”
Tell an agent
Simulate a draft template for patterns {index_patterns} composed of {composed_of}.
Preview the resolved config of an unsaved template with body {template}.
POST
/_index_template/_simulate/{name}
Simulate an existing index template · Simulate an index template
#
Ask an LLM
“What configuration does an existing index template resolve to once its components are merged?”
“Can I see the effective settings of a saved index template by name?”
Tell an agent
Simulate saved index template {name}.
Show the merged settings, mappings and aliases that template {name} produces.
Ask an LLM
“How do I split an index into more primary shards with a PUT request?”
“Does the number of shards after a split have to be a multiple of the original?”
Tell an agent
PUT a split of index {index} into {target}.
Using PUT, split {index} into {target} with settings {settings}.
Ask an LLM
“Is there a POST form of the split index API?”
“Can I attach aliases to the split target in the same POST call?”
Tell an agent
POST a split of {index} into new index {target}.
Split {index} to {target} via POST with aliases {aliases}.
Ask an LLM
“How many documents and how much storage do all my indices use?”
“Can I get index statistics broken down per shard for the whole cluster?”
Tell an agent
Show statistics for all indices.
Get cluster-wide index stats at {level} level.
Ask an LLM
“What are the indexing or search stats for every index?”
“Can I limit index statistics to a single metric such as docs or store?”
Tell an agent
Show the {metric} stats for all indices.
Get only {metric} statistics across the cluster.
Ask an LLM
“How big is a specific index and how many documents does it hold?”
“Can I see search and indexing activity for one index?”
Tell an agent
Show statistics for index {index}.
Get all stats for {index} per shard.
Ask an LLM
“What is just the store size of a particular index?”
“Can I pull one metric, like docs count, for a single index?”
Tell an agent
Show the {metric} stats for index {index}.
Get only {metric} statistics for {index}.
Ask an LLM
“How do I swap an alias from an old index to a new one in a single atomic step?”
“Can I add and remove multiple aliases in one request?”
Tell an agent
Apply these alias actions atomically: {actions}.
Run the alias add/remove batch {actions} in one call.
Ask an LLM
“Can I check that a Lucene query string is valid without running it, using GET?”
“Is there a way to see why a query is invalid across all indices?”
Tell an agent
Using GET, validate query string {q} against all indices.
GET a validation of {q} with explain={explain}.
Ask an LLM
“How do I validate a Query DSL body before running an expensive search?”
“Can I see how a query gets rewritten across the cluster?”
Tell an agent
POST query {query} for validation across all indices.
Validate {query} via POST and show the rewritten form (rewrite={rewrite}).
Ask an LLM
“Can I validate a query string against one index's mappings with a GET request?”
“Would this query be valid on a particular index?”
Tell an agent
Using GET, validate {q} against index {index}.
GET a check of whether {q} is valid on {index}, with explanation.
Ask an LLM
“How do I validate a Query DSL body against a specific index before searching it?”
“Can I check a query on every shard of one index?”
Tell an agent
POST query {query} to validate against index {index}.
Validate {query} on all shards of {index} via POST (all_shards={all_shards}).