Skip to content

Commit

Permalink
Merge branch 'main' into document-analysis-phone-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kolchfa-aws authored Oct 14, 2024
2 parents cc2ed9d + 15804bd commit e3a768f
Show file tree
Hide file tree
Showing 160 changed files with 1,134 additions and 1,084 deletions.
4 changes: 2 additions & 2 deletions API_STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ For GET and DELETE APIs: Introduce what you can do with the optional parameters.
Parameter | Data type | Description
:--- | :--- | :---

### Request fields
### Request body fields

For PUT and POST APIs: Introduce what the request fields are allowed to provide in the body of the request.

Expand Down Expand Up @@ -189,7 +189,7 @@ The `POST _reindex` request returns the following response fields:
}
```

### Response fields
### Response body fields

For PUT and POST APIs: Define all allowable response fields that can be returned in the body of the response.

Expand Down
22 changes: 11 additions & 11 deletions _api-reference/analyze-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ If you use the Security plugin, you must have the `manage index` privilege. If y

## Path and HTTP methods

```
```json
GET /_analyze
GET /{index}/_analyze
POST /_analyze
Expand Down Expand Up @@ -81,7 +81,7 @@ text | String or Array of Strings | Text to analyze. If you provide an array of

[Set a token limit](#set-a-token-limit)

#### Analyze array of text strings
### Analyze array of text strings

When you pass an array of strings to the `text` field, it is analyzed as a multi-value field.

Expand Down Expand Up @@ -145,7 +145,7 @@ The previous request returns the following fields:
}
````

#### Apply a built-in analyzer
### Apply a built-in analyzer

If you omit the `index` path parameter, you can apply any of the built-in analyzers to the text string.

Expand Down Expand Up @@ -190,7 +190,7 @@ The previous request returns the following fields:
}
````

#### Apply a custom analyzer
### Apply a custom analyzer

You can create your own analyzer and specify it in an analyze request.

Expand Down Expand Up @@ -244,7 +244,7 @@ The previous request returns the following fields:
}
````

#### Apply a custom transient analyzer
### Apply a custom transient analyzer

You can build a custom transient analyzer from tokenizers, token filters, or character filters. Use the `filter` parameter to specify token filters.

Expand Down Expand Up @@ -373,7 +373,7 @@ The previous request returns the following fields:
}
````

#### Specify an index
### Specify an index

You can analyze text using an index's default analyzer, or you can specify a different analyzer.

Expand Down Expand Up @@ -446,7 +446,7 @@ The previous request returns the following fields:
}
````

#### Derive the analyzer from an index field
### Derive the analyzer from an index field

You can pass text and a field in the index. The API looks up the field's analyzer and uses it to analyze the text.

Expand Down Expand Up @@ -493,7 +493,7 @@ The previous request returns the following fields:
}
````

#### Specify a normalizer
### Specify a normalizer

Instead of using a keyword field, you can use the normalizer associated with the index. A normalizer causes the analysis change to produce a single token.

Expand Down Expand Up @@ -557,7 +557,7 @@ The previous request returns the following fields:
}
````

#### Get token details
### Get token details

You can obtain additional details for all tokens by setting the `explain` attribute to `true`.

Expand Down Expand Up @@ -640,7 +640,7 @@ The previous request returns the following fields:
}
````

#### Set a token limit
### Set a token limit

You can set a limit to the number of tokens generated. Setting a lower value reduces a node's memory usage. The default value is 10000.

Expand All @@ -659,7 +659,7 @@ PUT /books2
The preceding request is an index API rather than an analyze API. See [Dynamic index-level index settings]({{site.url}}{{site.baseurl}}/install-and-configure/configuring-opensearch/index-settings/#dynamic-index-level-index-settings) for additional details.
{: .note}

### Response fields
## Response body fields

The text analysis endpoints return the following response fields.

Expand Down
10 changes: 3 additions & 7 deletions _api-reference/cat/cat-aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ The CAT aliases operation lists the mapping of aliases to indexes, plus routing

## Path and HTTP methods

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


## URL parameters

All CAT aliases URL parameters are optional.

In addition to the [common URL parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index), you can specify the following parameters:
## Query parameters

Parameter | Type | Description
:--- | :--- | :---
Expand Down
8 changes: 2 additions & 6 deletions _api-reference/cat/cat-allocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ The CAT allocation operation lists the allocation of disk space for indexes and

## Path and HTTP methods

```
```json
GET _cat/allocation?v
GET _cat/allocation/<node_name>
```

## URL parameters

All CAT allocation URL parameters are optional.

In addition to the [common URL parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index), you can specify the following parameters:
## Query parameters

Parameter | Type | Description
:--- | :--- | :---
Expand Down
8 changes: 2 additions & 6 deletions _api-reference/cat/cat-cluster_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ The CAT cluster manager operation lists information that helps identify the elec

## Path and HTTP methods

```
```json
GET _cat/cluster_manager
```

## URL parameters

All CAT cluster manager URL parameters are optional.

In addition to the [common URL parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index), you can specify the following parameters:
## Query parameters

Parameter | Type | Description
:--- | :--- | :---
Expand Down
6 changes: 1 addition & 5 deletions _api-reference/cat/cat-count.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ The CAT count operation lists the number of documents in your cluster.

## Path and HTTP methods

```
```json
GET _cat/count?v
GET _cat/count/<index>?v
```

## URL parameters

All CAT count URL parameters are optional. You can specify any of the [common URL parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index).

## Example requests

```json
Expand Down
8 changes: 2 additions & 6 deletions _api-reference/cat/cat-field-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ The CAT Field Data operation lists the memory size used by each field per node.

## Path and HTTP methods

```
```json
GET _cat/fielddata?v
GET _cat/fielddata/<field_name>?v
```

## URL parameters

All CAT fielddata URL parameters are optional.

In addition to the [common URL parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index), you can specify the following parameter:
## Query parameters

Parameter | Type | Description
:--- | :--- | :---
Expand Down
8 changes: 3 additions & 5 deletions _api-reference/cat/cat-health.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@ The CAT health operation lists the status of the cluster, how long the cluster h

## Path and HTTP methods

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

## URL parameters

All CAT health URL parameters are optional.
## Query parameters

Parameter | Type | Description
:--- | :--- | :---
Expand All @@ -39,6 +36,7 @@ The following example request give cluster health information for the past 5 day
```json
GET _cat/health?v&time=5d
```
{% include copy-curl.html %}

## Example response

Expand Down
12 changes: 4 additions & 8 deletions _api-reference/cat/cat-indices.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@ The CAT indices operation lists information related to indexes, that is, how muc

## Path and HTTP methods

```
```json
GET _cat/indices/<index>
GET _cat/indices
```

## URL parameters

All URL parameters are optional.

In addition to the [common URL parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index/), you can specify the following parameters:
## Query parameters

Parameter | Type | Description
:--- | :--- | :---
Expand All @@ -40,14 +36,14 @@ expand_wildcards | Enum | Expands wildcard expressions to concrete indexes. Comb

## Example requests

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

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

```
```json
GET _cat/indices/<index>?v
```
{% include copy-curl.html %}
Expand Down
10 changes: 3 additions & 7 deletions _api-reference/cat/cat-nodeattrs.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,11 @@ The CAT nodeattrs operation lists the attributes of custom nodes.

## Path and HTTP methods

```
```json
GET _cat/nodeattrs
```

## URL parameters

All CAT nodeattrs URL parameters are optional.

In addition to the [common URL parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index), you can specify the following parameters:
## Query parameters

Parameter | Type | Description
:--- | :--- | :---
Expand All @@ -36,7 +32,7 @@ cluster_manager_timeout | Time | The amount of time to wait for a connection to

The following example request returns attributes about custom nodes:

```
```json
GET _cat/nodeattrs?v
```
{% include copy-curl.html %}
Expand Down
6 changes: 3 additions & 3 deletions _api-reference/cat/cat-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ A few important node metrics are `pid`, `name`, `cluster_manager`, `ip`, `port`,

## Path and HTTP methods

```
```json
GET _cat/nodes
```

## URL parameters
## Query parameters

All CAT nodes URL parameters are optional.

Expand All @@ -41,7 +41,7 @@ include_unloaded_segments | Boolean | Whether to include information from segmen

The following example request lists node level information:

```
```json
GET _cat/nodes?v
```
{% include copy-curl.html %}
Expand Down
10 changes: 3 additions & 7 deletions _api-reference/cat/cat-pending-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@ The CAT pending tasks operation lists the progress of all pending tasks, includi

## Path and HTTP methods

```
```json
GET _cat/pending_tasks
```

## URL parameters

All CAT nodes URL parameters are optional.

In addition to the [common URL parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index), you can specify the following parameters:
## Query parameters

Parameter | Type | Description
:--- | :--- | :---
Expand All @@ -38,7 +34,7 @@ time | Time | Specify the units for time. For example, `5d` or `7h`. For more in

The following example request lists the progress of all pending node tasks:

```
```json
GET _cat/pending_tasks?v
```
{% include copy-curl.html %}
Expand Down
10 changes: 5 additions & 5 deletions _api-reference/cat/cat-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ The CAT plugins operation lists the names, components, and versions of the insta

## Path and HTTP methods

```
```json
GET _cat/plugins
```

## URL parameters
## Query parameters

All CAT plugins URL parameters are optional.
All parameters are optional.

In addition to the [common URL parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index), you can specify the following parameters:
In addition to the [common parameters]({{site.url}}{{site.baseurl}}/api-reference/cat/index), you can specify the following parameters:

Parameter | Type | Description
:--- | :--- | :---
Expand All @@ -37,7 +37,7 @@ cluster_manager_timeout | Time | The amount of time to wait for a connection to

The following example request lists all installed plugins:

```
```json
GET _cat/plugins?v
```
{% include copy-curl.html %}
Expand Down
Loading

0 comments on commit e3a768f

Please sign in to comment.