Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion _api-reference/alias.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ POST _aliases
"alias": "old-index-alias"
}
}

]
}
```
Expand Down
14 changes: 14 additions & 0 deletions _api-reference/analyze-apis/perform-text-analysis.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ GET /_analyze
"text" : ["first array element", "second array element"]
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -150,6 +151,7 @@ GET /_analyze
"text" : "OpenSearch text analysis"
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -196,6 +198,7 @@ GET /books2/_analyze
"text" : "Le garçon m'a SUIVI."
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -248,6 +251,7 @@ GET /_analyze
"text" : "OpenSearch filter"
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -277,6 +281,7 @@ GET /_analyze
"text" : "<b>Leave</b> right now!"
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -308,6 +313,7 @@ GET /_analyze
"text" : "how to train your dog in five steps"
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -372,6 +378,7 @@ GET /books/_analyze
"text" : "OpenSearch analyze test"
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -414,6 +421,7 @@ GET /books/_analyze
"text" : "OpenSearch analyze test"
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -446,6 +454,7 @@ GET /books2/_analyze
"text" : "OpenSearch analyze test"
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -492,6 +501,7 @@ GET /books2/_analyze
"text" : "C'est le garçon qui m'a suivi."
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -522,6 +532,7 @@ GET /_analyze
"text" : "That is the boy who followed me."
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -555,6 +566,7 @@ GET /_analyze
"attributes" : ["keyword"]
}
````
{% include copy-curl.html %}

The previous request returns the following fields:

Expand Down Expand Up @@ -635,6 +647,8 @@ PUT /books2
}
}
````
{% include copy-curl.html %}

The preceding request is an index API rather than an analyze API. See [DYNAMIC INDEX SETTINGS]({{site.url}}{{site.baseurl}}/api-reference/index-apis/create-index/#dynamic-index-settings) for additional details.
{: .note}

Expand Down
3 changes: 3 additions & 0 deletions _api-reference/cat/cat-aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ The CAT aliases operation lists the mapping of aliases to indices, plus routing
```json
GET _cat/aliases?v
```
{% include copy-curl.html %}

To limit the information to a specific alias, add the alias name after your query:

```json
GET _cat/aliases/<alias>?v
```
{% include copy-curl.html %}

If you want to get information for more than one alias, separate the alias names with commas:

```json
GET _cat/aliases/alias1,alias2,alias3
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
3 changes: 3 additions & 0 deletions _api-reference/cat/cat-allocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ The CAT allocation operation lists the allocation of disk space for indices and
```json
GET _cat/allocation?v
```
{% include copy-curl.html %}

To limit the information to a specific node, add the node name after your query:

```json
GET _cat/allocation/<node_name>
```
{% include copy-curl.html %}

If you want to get information for more than one node, separate the node names with commas:

```json
GET _cat/allocation/node_name_1,node_name_2,node_name_3
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
1 change: 1 addition & 0 deletions _api-reference/cat/cat-cluster_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The CAT cluster manager operation lists information that helps identify the elec
```
GET _cat/cluster_manager?v
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
3 changes: 3 additions & 0 deletions _api-reference/cat/cat-count.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ The CAT count operation lists the number of documents in your cluster.
```json
GET _cat/count?v
```
{% include copy-curl.html %}

To see the number of documents in a specific index or alias, add the index or alias name after your query:

```json
GET _cat/count/<index_or_alias>?v
```
{% include copy-curl.html %}

If you want to get information for more than one index or alias, separate the index or alias names with commas:

```json
GET _cat/count/index_or_alias_1,index_or_alias_2,index_or_alias_3
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
3 changes: 3 additions & 0 deletions _api-reference/cat/cat-field-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ The CAT fielddata operation lists the memory size used by each field per node.
```json
GET _cat/fielddata?v
```
{% include copy-curl.html %}

To limit the information to a specific field, add the field name after your query:

```json
GET _cat/fielddata/<field_name>?v
```
{% include copy-curl.html %}

If you want to get information for more than one field, separate the field names with commas:

```json
GET _cat/fielddata/field_name_1,field_name_2,field_name_3
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
2 changes: 2 additions & 0 deletions _api-reference/cat/cat-health.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ The CAT health operation lists the status of the cluster, how long the cluster h
```json
GET _cat/health?v
```
{% include copy-curl.html %}

## Path and HTTP methods

```
GET _cat/health?v
```
{% include copy-curl.html %}

## URL parameters

Expand Down
3 changes: 3 additions & 0 deletions _api-reference/cat/cat-indices.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ The CAT indices operation lists information related to indices⁠—how much dis
```
GET _cat/indices?v
```
{% include copy-curl.html %}

To limit the information to a specific index, add the index name after your query.

```
GET _cat/indices/<index>?v
```
{% include copy-curl.html %}

If you want to get information for more than one index, separate the indices with commas:

```json
GET _cat/indices/index1,index2,index3
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
1 change: 1 addition & 0 deletions _api-reference/cat/cat-nodeattrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The CAT nodeattrs operation lists the attributes of custom nodes.
```
GET _cat/nodeattrs?v
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
1 change: 1 addition & 0 deletions _api-reference/cat/cat-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ A few important node metrics are `pid`, `name`, `cluster_manager`, `ip`, `port`,
```
GET _cat/nodes?v
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
1 change: 1 addition & 0 deletions _api-reference/cat/cat-pending-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The CAT pending tasks operation lists the progress of all pending tasks, includi
```
GET _cat/pending_tasks?v
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
1 change: 1 addition & 0 deletions _api-reference/cat/cat-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The CAT plugins operation lists the names, components, and versions of the insta
```
GET _cat/plugins?v
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
3 changes: 3 additions & 0 deletions _api-reference/cat/cat-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ The CAT recovery operation lists all completed and ongoing index and shard recov
```
GET _cat/recovery?v
```
{% include copy-curl.html %}

To see only the recoveries of a specific index, add the index name after your query.

```
GET _cat/recovery/<index>?v
```
{% include copy-curl.html %}

If you want to get information for more than one index, separate the indices with commas:

```json
GET _cat/recovery/index1,index2,index3
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
1 change: 1 addition & 0 deletions _api-reference/cat/cat-repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The CAT repositories operation lists all completed and ongoing index and shard r
```
GET _cat/repositories?v
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
3 changes: 3 additions & 0 deletions _api-reference/cat/cat-segments.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ The cat segments operation lists Lucene segment-level information for each index
```
GET _cat/segments?v
```
{% include copy-curl.html %}

To see only the information about segments of a specific index, add the index name after your query.

```
GET _cat/segments/<index>?v
```
{% include copy-curl.html %}

If you want to get information for more than one index, separate the indices with commas:

```
GET _cat/segments/index1,index2,index3
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
3 changes: 3 additions & 0 deletions _api-reference/cat/cat-shards.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ The CAT shards operation lists the state of all primary and replica shards and h
```
GET _cat/shards?v
```
{% include copy-curl.html %}

To see only the information about shards of a specific index, add the index name after your query.

```
GET _cat/shards/<index>?v
```
{% include copy-curl.html %}

If you want to get information for more than one index, separate the indices with commas:

```
GET _cat/shards/index1,index2,index3
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
1 change: 1 addition & 0 deletions _api-reference/cat/cat-snapshots.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The CAT snapshots operation lists all snapshots for a repository.
```
GET _cat/snapshots?v
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
1 change: 1 addition & 0 deletions _api-reference/cat/cat-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The CAT tasks operation lists the progress of all tasks currently running on you
```
GET _cat/tasks?v
```
{% include copy-curl.html %}

## Path and HTTP methods

Expand Down
3 changes: 3 additions & 0 deletions _api-reference/cat/cat-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,21 @@ The CAT Templates operation lists the names, patterns, order numbers, and versio
```
GET _cat/templates?v
```
{% include copy-curl.html %}

If you want to get information for a specific template or pattern:

```
GET _cat/templates/<template_name_or_pattern>
```
{% include copy-curl.html %}

## Path and HTTP methods

```
GET _cat/templates
```
{% include copy-curl.html %}

## URL parameters

Expand Down
Loading