You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: _api-reference/analyze-apis.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ If you use the Security plugin, you must have the `manage index` privilege. If y
22
22
23
23
## Path and HTTP methods
24
24
25
-
```
25
+
```json
26
26
GET /_analyze
27
27
GET /{index}/_analyze
28
28
POST /_analyze
@@ -81,7 +81,7 @@ text | String or Array of Strings | Text to analyze. If you provide an array of
81
81
82
82
[Set a token limit](#set-a-token-limit)
83
83
84
-
####Analyze array of text strings
84
+
### Analyze array of text strings
85
85
86
86
When you pass an array of strings to the `text` field, it is analyzed as a multi-value field.
87
87
@@ -145,7 +145,7 @@ The previous request returns the following fields:
145
145
}
146
146
````
147
147
148
-
####Apply a built-in analyzer
148
+
### Apply a built-in analyzer
149
149
150
150
If you omit the `index` path parameter, you can apply any of the built-in analyzers to the text string.
151
151
@@ -190,7 +190,7 @@ The previous request returns the following fields:
190
190
}
191
191
````
192
192
193
-
####Apply a custom analyzer
193
+
### Apply a custom analyzer
194
194
195
195
You can create your own analyzer and specify it in an analyze request.
196
196
@@ -244,7 +244,7 @@ The previous request returns the following fields:
244
244
}
245
245
````
246
246
247
-
####Apply a custom transient analyzer
247
+
### Apply a custom transient analyzer
248
248
249
249
You can build a custom transient analyzer from tokenizers, token filters, or character filters. Use the `filter` parameter to specify token filters.
250
250
@@ -373,7 +373,7 @@ The previous request returns the following fields:
373
373
}
374
374
````
375
375
376
-
####Specify an index
376
+
### Specify an index
377
377
378
378
You can analyze text using an index's default analyzer, or you can specify a different analyzer.
379
379
@@ -446,7 +446,7 @@ The previous request returns the following fields:
446
446
}
447
447
````
448
448
449
-
####Derive the analyzer from an index field
449
+
### Derive the analyzer from an index field
450
450
451
451
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.
452
452
@@ -493,7 +493,7 @@ The previous request returns the following fields:
493
493
}
494
494
````
495
495
496
-
####Specify a normalizer
496
+
### Specify a normalizer
497
497
498
498
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.
499
499
@@ -557,7 +557,7 @@ The previous request returns the following fields:
557
557
}
558
558
````
559
559
560
-
####Get token details
560
+
### Get token details
561
561
562
562
You can obtain additional details for all tokens by setting the `explain` attribute to `true`.
563
563
@@ -640,7 +640,7 @@ The previous request returns the following fields:
640
640
}
641
641
````
642
642
643
-
####Set a token limit
643
+
### Set a token limit
644
644
645
645
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.
646
646
@@ -659,7 +659,7 @@ PUT /books2
659
659
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.
660
660
{: .note}
661
661
662
-
###Response fields
662
+
## Response body fields
663
663
664
664
The text analysis endpoints return the following response fields.
0 commit comments