Remove from all API requests and responses
Signed-off-by: Naarcha-AWS <naarcha@amazon.com>
This commit is contained in:
parent
02a913f988
commit
0a24fa2992
|
@ -104,7 +104,6 @@ GET finished_flight_job/_search
|
||||||
"hits" : [
|
"hits" : [
|
||||||
{
|
{
|
||||||
"_index" : "finished_flight_job",
|
"_index" : "finished_flight_job",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "dSNKGb8U3OJOmC4RqVCi1Q",
|
"_id" : "dSNKGb8U3OJOmC4RqVCi1Q",
|
||||||
"_score" : 3.845883,
|
"_score" : 3.845883,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
@ -116,7 +115,6 @@ GET finished_flight_job/_search
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index" : "finished_flight_job",
|
"_index" : "finished_flight_job",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "_D7oqOy7drx9E-MG96U5RA",
|
"_id" : "_D7oqOy7drx9E-MG96U5RA",
|
||||||
"_score" : 3.845883,
|
"_score" : 3.845883,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
@ -128,7 +126,6 @@ GET finished_flight_job/_search
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index" : "finished_flight_job",
|
"_index" : "finished_flight_job",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "YuZ8tOt1OsBA54e84WuAEw",
|
"_id" : "YuZ8tOt1OsBA54e84WuAEw",
|
||||||
"_score" : 3.6988301,
|
"_score" : 3.6988301,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
@ -140,7 +137,6 @@ GET finished_flight_job/_search
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index" : "finished_flight_job",
|
"_index" : "finished_flight_job",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "W_-e7bVmH6eu8veJeK8ZxQ",
|
"_id" : "W_-e7bVmH6eu8veJeK8ZxQ",
|
||||||
"_score" : 3.6988301,
|
"_score" : 3.6988301,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
|
|
@ -731,7 +731,6 @@ DELETE _plugins/_transform/<transform_id>
|
||||||
{
|
{
|
||||||
"delete": {
|
"delete": {
|
||||||
"_index": ".opensearch-ism-config",
|
"_index": ".opensearch-ism-config",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "sample",
|
"_id": "sample",
|
||||||
"_version": 4,
|
"_version": 4,
|
||||||
"result": "deleted",
|
"result": "deleted",
|
||||||
|
|
|
@ -533,7 +533,6 @@ DELETE _plugins/_ism/policies/policy_1
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": ".opendistro-ism-config",
|
"_index": ".opendistro-ism-config",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "policy_1",
|
"_id": "policy_1",
|
||||||
"_version": 3,
|
"_version": 3,
|
||||||
"result": "deleted",
|
"result": "deleted",
|
||||||
|
|
|
@ -173,7 +173,6 @@ POST /_plugins/_ml/models/_search
|
||||||
"hits" : [
|
"hits" : [
|
||||||
{
|
{
|
||||||
"_index" : ".plugins-ml-model",
|
"_index" : ".plugins-ml-model",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "-QkKJX8BvytMh9aUeuLD",
|
"_id" : "-QkKJX8BvytMh9aUeuLD",
|
||||||
"_version" : 1,
|
"_version" : 1,
|
||||||
"_seq_no" : 12,
|
"_seq_no" : 12,
|
||||||
|
@ -188,7 +187,6 @@ POST /_plugins/_ml/models/_search
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index" : ".plugins-ml-model",
|
"_index" : ".plugins-ml-model",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "OxkvHn8BNJ65KnIpck8x",
|
"_id" : "OxkvHn8BNJ65KnIpck8x",
|
||||||
"_version" : 1,
|
"_version" : 1,
|
||||||
"_seq_no" : 2,
|
"_seq_no" : 2,
|
||||||
|
@ -219,7 +217,6 @@ The API returns the following:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index" : ".plugins-ml-model",
|
"_index" : ".plugins-ml-model",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "MzcIJX8BA7mbufL6DOwl",
|
"_id" : "MzcIJX8BA7mbufL6DOwl",
|
||||||
"_version" : 2,
|
"_version" : 2,
|
||||||
"result" : "deleted",
|
"result" : "deleted",
|
||||||
|
@ -602,7 +599,6 @@ GET /_plugins/_ml/tasks/_search
|
||||||
"hits" : [
|
"hits" : [
|
||||||
{
|
{
|
||||||
"_index" : ".plugins-ml-task",
|
"_index" : ".plugins-ml-task",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "_wnLJ38BvytMh9aUi-Ia",
|
"_id" : "_wnLJ38BvytMh9aUi-Ia",
|
||||||
"_version" : 4,
|
"_version" : 4,
|
||||||
"_seq_no" : 29,
|
"_seq_no" : 29,
|
||||||
|
@ -622,7 +618,6 @@ GET /_plugins/_ml/tasks/_search
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index" : ".plugins-ml-task",
|
"_index" : ".plugins-ml-task",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "wwRRLX8BydmmU1x6I-AI",
|
"_id" : "wwRRLX8BydmmU1x6I-AI",
|
||||||
"_version" : 3,
|
"_version" : 3,
|
||||||
"_seq_no" : 38,
|
"_seq_no" : 38,
|
||||||
|
@ -658,7 +653,6 @@ The API returns the following:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index" : ".plugins-ml-task",
|
"_index" : ".plugins-ml-task",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "xQRYLX8BydmmU1x6nuD3",
|
"_id" : "xQRYLX8BydmmU1x6nuD3",
|
||||||
"_version" : 4,
|
"_version" : 4,
|
||||||
"result" : "deleted",
|
"result" : "deleted",
|
||||||
|
|
|
@ -1202,7 +1202,6 @@ DELETE _plugins/_anomaly_detection/detectors/<detectorId>
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": ".opensearch-anomaly-detectors",
|
"_index": ".opensearch-anomaly-detectors",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "70TxTXwBjd8s6RK4j1Pj",
|
"_id": "70TxTXwBjd8s6RK4j1Pj",
|
||||||
"_version": 2,
|
"_version": 2,
|
||||||
"result": "deleted",
|
"result": "deleted",
|
||||||
|
@ -1792,7 +1791,6 @@ POST _plugins/_anomaly_detection/detectors/_search
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": ".opensearch-anomaly-detectors",
|
"_index": ".opensearch-anomaly-detectors",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "Zi5zTXwBwf_U8gjUTfJG",
|
"_id": "Zi5zTXwBwf_U8gjUTfJG",
|
||||||
"_version": 1,
|
"_version": 1,
|
||||||
"_seq_no": 1,
|
"_seq_no": 1,
|
||||||
|
@ -1924,7 +1922,6 @@ POST _plugins/_anomaly_detection/detectors/tasks/_search
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": ".opensearch-anomaly-detection-state",
|
"_index": ".opensearch-anomaly-detection-state",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "fm-RTXwBYwCbWecgB753",
|
"_id": "fm-RTXwBYwCbWecgB753",
|
||||||
"_version": 34,
|
"_version": 34,
|
||||||
"_seq_no": 928,
|
"_seq_no": 928,
|
||||||
|
@ -2263,7 +2260,6 @@ For information about the response body fields, see [Anomaly result mapping]({{s
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": ".opensearch-anomaly-results-history-2021.10.04-1",
|
"_index": ".opensearch-anomaly-results-history-2021.10.04-1",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "686KTXwB6HknB84SMr6G",
|
"_id": "686KTXwB6HknB84SMr6G",
|
||||||
"_version": 1,
|
"_version": 1,
|
||||||
"_seq_no": 103622,
|
"_seq_no": 103622,
|
||||||
|
@ -2389,7 +2385,6 @@ POST _plugins/_anomaly_detection/detectors/results/_search
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": ".opensearch-anomaly-results-history-2021.10.04-1",
|
"_index": ".opensearch-anomaly-results-history-2021.10.04-1",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "VRyRTXwBDx7vzPBV8jYC",
|
"_id": "VRyRTXwBDx7vzPBV8jYC",
|
||||||
"_version": 1,
|
"_version": 1,
|
||||||
"_seq_no": 149657,
|
"_seq_no": 149657,
|
||||||
|
|
|
@ -967,7 +967,6 @@ DELETE _plugins/_alerting/monitors/<monitor_id>
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": ".opensearch-scheduled-jobs",
|
"_index": ".opensearch-scheduled-jobs",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "OYAHOmgBl3cmwnqZl_yH",
|
"_id": "OYAHOmgBl3cmwnqZl_yH",
|
||||||
"_version": 2,
|
"_version": 2,
|
||||||
"result": "deleted",
|
"result": "deleted",
|
||||||
|
|
|
@ -113,7 +113,6 @@ GET shakespeare/_search
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "88020",
|
"_id": "88020",
|
||||||
"_score": 11.356054,
|
"_score": 11.356054,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
|
|
@ -41,7 +41,6 @@ GET _search?q=speaker:queen
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": "new_shakespeare",
|
"_index": "new_shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "28559",
|
"_id": "28559",
|
||||||
"_score": 4.4368687,
|
"_score": 4.4368687,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -90,7 +89,6 @@ With query DSL, however, you can include an HTTP request body to look for result
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": "new_shakespeare",
|
"_index": "new_shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "100763",
|
"_id": "100763",
|
||||||
"_score": 7.8623476,
|
"_score": 7.8623476,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -105,7 +103,6 @@ With query DSL, however, you can include an HTTP request body to look for result
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "28559",
|
"_id": "28559",
|
||||||
"_score": 5.8923807,
|
"_score": 5.8923807,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
|
|
@ -95,7 +95,6 @@ The search query “To be, or not to be” is analyzed and tokenized into an arr
|
||||||
"hits" : [
|
"hits" : [
|
||||||
{
|
{
|
||||||
"_index" : "shakespeare",
|
"_index" : "shakespeare",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "34229",
|
"_id" : "34229",
|
||||||
"_score" : 17.419369,
|
"_score" : 17.419369,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
@ -110,7 +109,6 @@ The search query “To be, or not to be” is analyzed and tokenized into an arr
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index" : "shakespeare",
|
"_index" : "shakespeare",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "109930",
|
"_id" : "109930",
|
||||||
"_score" : 14.883024,
|
"_score" : 14.883024,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
@ -125,7 +123,6 @@ The search query “To be, or not to be” is analyzed and tokenized into an arr
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index" : "shakespeare",
|
"_index" : "shakespeare",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "103117",
|
"_id" : "103117",
|
||||||
"_score" : 14.782743,
|
"_score" : 14.782743,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
@ -180,7 +177,6 @@ GET shakespeare/_search
|
||||||
"hits" : [
|
"hits" : [
|
||||||
{
|
{
|
||||||
"_index" : "shakespeare",
|
"_index" : "shakespeare",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "32700",
|
"_id" : "32700",
|
||||||
"_score" : 4.2540946,
|
"_score" : 4.2540946,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
@ -195,7 +191,6 @@ GET shakespeare/_search
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index" : "shakespeare",
|
"_index" : "shakespeare",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "32702",
|
"_id" : "32702",
|
||||||
"_score" : 4.2540946,
|
"_score" : 4.2540946,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
@ -210,7 +205,6 @@ GET shakespeare/_search
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index" : "shakespeare",
|
"_index" : "shakespeare",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "32709",
|
"_id" : "32709",
|
||||||
"_score" : 4.2540946,
|
"_score" : 4.2540946,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
|
|
@ -123,7 +123,6 @@ In the response, pay particular attention to the top-level `errors` boolean. If
|
||||||
{
|
{
|
||||||
"index": {
|
"index": {
|
||||||
"_index": "movies",
|
"_index": "movies",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "tt1979320",
|
"_id": "tt1979320",
|
||||||
"_version": 1,
|
"_version": 1,
|
||||||
"result": "created",
|
"result": "created",
|
||||||
|
@ -140,7 +139,6 @@ In the response, pay particular attention to the top-level `errors` boolean. If
|
||||||
{
|
{
|
||||||
"create": {
|
"create": {
|
||||||
"_index": "movies",
|
"_index": "movies",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "tt1392214",
|
"_id": "tt1392214",
|
||||||
"status": 409,
|
"status": 409,
|
||||||
"error": {
|
"error": {
|
||||||
|
@ -155,7 +153,6 @@ In the response, pay particular attention to the top-level `errors` boolean. If
|
||||||
{
|
{
|
||||||
"update": {
|
"update": {
|
||||||
"_index": "movies",
|
"_index": "movies",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "tt0816711",
|
"_id": "tt0816711",
|
||||||
"status": 404,
|
"status": 404,
|
||||||
"error": {
|
"error": {
|
||||||
|
|
|
@ -44,7 +44,6 @@ wait_for_active_shards | String | The number of active shards that must be avail
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": "sample-index1",
|
"_index": "sample-index1",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_version": 2,
|
"_version": 2,
|
||||||
"result": "deleted",
|
"result": "deleted",
|
||||||
|
@ -63,7 +62,6 @@ wait_for_active_shards | String | The number of active shards that must be avail
|
||||||
Field | Description
|
Field | Description
|
||||||
:--- | :---
|
:--- | :---
|
||||||
_index | The name of the index.
|
_index | The name of the index.
|
||||||
_type | The document's type. OpenSearch only supports one type, which is `_doc`.
|
|
||||||
_id | The document's ID.
|
_id | The document's ID.
|
||||||
_version | The document's version.
|
_version | The document's version.
|
||||||
_result | The result of the delete operation.
|
_result | The result of the delete operation.
|
||||||
|
|
|
@ -51,7 +51,6 @@ version_type | Enum | Retrieves a specifically typed document. Available options
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": "sample-index1",
|
"_index": "sample-index1",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_version": 1,
|
"_version": 1,
|
||||||
"_seq_no": 0,
|
"_seq_no": 0,
|
||||||
|
@ -68,7 +67,6 @@ version_type | Enum | Retrieves a specifically typed document. Available options
|
||||||
Field | Description
|
Field | Description
|
||||||
:--- | :---
|
:--- | :---
|
||||||
_index | The name of the index.
|
_index | The name of the index.
|
||||||
_type | The document's type. OpenSearch only supports one type, which is `_doc`.
|
|
||||||
_id | The document's ID.
|
_id | The document's ID.
|
||||||
_version | The document's version number. Updated whenever the document changes.
|
_version | The document's version number. Updated whenever the document changes.
|
||||||
_seq_no | The sequnce number assigned when the document is indexed.
|
_seq_no | The sequnce number assigned when the document is indexed.
|
||||||
|
|
|
@ -64,7 +64,6 @@ Your request body must contain the information you want to index.
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": "sample-index",
|
"_index": "sample-index",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_version": 1,
|
"_version": 1,
|
||||||
"result": "created",
|
"result": "created",
|
||||||
|
@ -83,7 +82,6 @@ Your request body must contain the information you want to index.
|
||||||
Field | Description
|
Field | Description
|
||||||
:--- | :---
|
:--- | :---
|
||||||
_index | The name of the index.
|
_index | The name of the index.
|
||||||
_type | The document's type. OpenSearch supports only one type, which is `_doc`.
|
|
||||||
_id | The document's ID.
|
_id | The document's ID.
|
||||||
_version | The document's version.
|
_version | The document's version.
|
||||||
result | The result of the index operation.
|
result | The result of the index operation.
|
||||||
|
|
|
@ -41,12 +41,10 @@ GET sample-index1/_mget
|
||||||
{
|
{
|
||||||
"docs": [
|
"docs": [
|
||||||
{
|
{
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_source": false
|
"_source": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "2",
|
"_id": "2",
|
||||||
"_source": [ "Director", "Title" ]
|
"_source": [ "Director", "Title" ]
|
||||||
}
|
}
|
||||||
|
@ -98,7 +96,6 @@ ids | Array | IDs of the documents to retrieve. Only allowed when an index is sp
|
||||||
"docs": [
|
"docs": [
|
||||||
{
|
{
|
||||||
"_index": "sample-index1",
|
"_index": "sample-index1",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_version": 4,
|
"_version": 4,
|
||||||
"_seq_no": 5,
|
"_seq_no": 5,
|
||||||
|
@ -111,7 +108,6 @@ ids | Array | IDs of the documents to retrieve. Only allowed when an index is sp
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index": "sample-index2",
|
"_index": "sample-index2",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_version": 1,
|
"_version": 1,
|
||||||
"_seq_no": 6,
|
"_seq_no": 6,
|
||||||
|
@ -131,7 +127,6 @@ ids | Array | IDs of the documents to retrieve. Only allowed when an index is sp
|
||||||
Field | Description
|
Field | Description
|
||||||
:--- | :---
|
:--- | :---
|
||||||
_index | The name of the index.
|
_index | The name of the index.
|
||||||
_type | The document's type. OpenSearch only supports one type, which is `_doc`.
|
|
||||||
_id | The document's ID.
|
_id | The document's ID.
|
||||||
_version | The document's version number. Updated whenever the document changes.
|
_version | The document's version number. Updated whenever the document changes.
|
||||||
_seq_no | The sequnce number assigned when the document is indexed.
|
_seq_no | The sequnce number assigned when the document is indexed.
|
||||||
|
|
|
@ -91,7 +91,6 @@ You can also use a script to tell OpenSearch how to update your document.
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": "sample-index1",
|
"_index": "sample-index1",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_version": 3,
|
"_version": 3,
|
||||||
"result": "updated",
|
"result": "updated",
|
||||||
|
@ -110,7 +109,6 @@ You can also use a script to tell OpenSearch how to update your document.
|
||||||
Field | Description
|
Field | Description
|
||||||
:--- | :---
|
:--- | :---
|
||||||
_index | The name of the index.
|
_index | The name of the index.
|
||||||
_type | The document's type. OpenSearch only supports one type, which is `_doc`.
|
|
||||||
_id | The document's ID.
|
_id | The document's ID.
|
||||||
_version | The document's version.
|
_version | The document's version.
|
||||||
_result | The result of the delete operation.
|
_result | The result of the delete operation.
|
||||||
|
|
|
@ -78,7 +78,6 @@ Parameter | Type | Description | Required
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index" : "kibana_sample_data_ecommerce",
|
"_index" : "kibana_sample_data_ecommerce",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "EVz1Q3sBgg5eWQP6RSte",
|
"_id" : "EVz1Q3sBgg5eWQP6RSte",
|
||||||
"matched" : true,
|
"matched" : true,
|
||||||
"explanation" : {
|
"explanation" : {
|
||||||
|
|
|
@ -61,7 +61,6 @@ You can include the following URL parameters in your request. All parameters are
|
||||||
|
|
||||||
Parameter | Type | Description
|
Parameter | Type | Description
|
||||||
:--- | :--- | :---
|
:--- | :--- | :---
|
||||||
include_type_name | Boolean | If `true`, the request expects a type in the body of mappings. Because OpenSearch indices all have a type of `_doc`, we recommend that this parameter is left as the default of `false.`
|
|
||||||
wait_for_active_shards | String | Specifies the number of active shards that must be available before OpenSearch processes the request. Default is 1 (only the primary shard). Set to `all` or a positive integer. Values greater than 1 require replicas. For example, if you specify a value of 3, the index must have two replicas distributed across two additional nodes for the request to succeed.
|
wait_for_active_shards | String | Specifies the number of active shards that must be available before OpenSearch processes the request. Default is 1 (only the primary shard). Set to `all` or a positive integer. Values greater than 1 require replicas. For example, if you specify a value of 3, the index must have two replicas distributed across two additional nodes for the request to succeed.
|
||||||
master_timeout | Time | How long to wait for a connection to the master node. Default is `30s`.
|
master_timeout | Time | How long to wait for a connection to the master node. Default is `30s`.
|
||||||
timeout | Time | How long to wait for the request to return. Default is `30s`.
|
timeout | Time | How long to wait for the request to return. Default is `30s`.
|
||||||
|
|
|
@ -85,7 +85,6 @@ Responses vary based on which path and HTTP method you choose.
|
||||||
{
|
{
|
||||||
"doc" : {
|
"doc" : {
|
||||||
"_index" : "index",
|
"_index" : "index",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "id",
|
"_id" : "id",
|
||||||
"_source" : {
|
"_source" : {
|
||||||
"location" : "new-new",
|
"location" : "new-new",
|
||||||
|
@ -99,7 +98,6 @@ Responses vary based on which path and HTTP method you choose.
|
||||||
{
|
{
|
||||||
"doc" : {
|
"doc" : {
|
||||||
"_index" : "index",
|
"_index" : "index",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "id",
|
"_id" : "id",
|
||||||
"_source" : {
|
"_source" : {
|
||||||
"location" : "new-new",
|
"location" : "new-new",
|
||||||
|
@ -122,7 +120,6 @@ Responses vary based on which path and HTTP method you choose.
|
||||||
{
|
{
|
||||||
"doc" : {
|
"doc" : {
|
||||||
"_index" : "index",
|
"_index" : "index",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "id",
|
"_id" : "id",
|
||||||
"_source" : {
|
"_source" : {
|
||||||
"field-name" : "value",
|
"field-name" : "value",
|
||||||
|
@ -136,7 +133,6 @@ Responses vary based on which path and HTTP method you choose.
|
||||||
{
|
{
|
||||||
"doc" : {
|
"doc" : {
|
||||||
"_index" : "index",
|
"_index" : "index",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "id",
|
"_id" : "id",
|
||||||
"_source" : {
|
"_source" : {
|
||||||
"field-name" : "value",
|
"field-name" : "value",
|
||||||
|
@ -165,7 +161,6 @@ With the `verbose` parameter set to `true`, the response shows how each processo
|
||||||
"status" : "success",
|
"status" : "success",
|
||||||
"doc" : {
|
"doc" : {
|
||||||
"_index" : "index",
|
"_index" : "index",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "id",
|
"_id" : "id",
|
||||||
"_source" : {
|
"_source" : {
|
||||||
"field-name" : "value",
|
"field-name" : "value",
|
||||||
|
@ -186,7 +181,6 @@ With the `verbose` parameter set to `true`, the response shows how each processo
|
||||||
"status" : "success",
|
"status" : "success",
|
||||||
"doc" : {
|
"doc" : {
|
||||||
"_index" : "index",
|
"_index" : "index",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "id",
|
"_id" : "id",
|
||||||
"_source" : {
|
"_source" : {
|
||||||
"field-name" : "value",
|
"field-name" : "value",
|
||||||
|
|
|
@ -112,7 +112,6 @@ OpenSearch returns an array with the results of each search in the same order as
|
||||||
"hits" : [
|
"hits" : [
|
||||||
{
|
{
|
||||||
"_index" : "opensearch_dashboards_sample_data_logs",
|
"_index" : "opensearch_dashboards_sample_data_logs",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "_fnhBXsBgv2Zxgu9dZ8Y",
|
"_id" : "_fnhBXsBgv2Zxgu9dZ8Y",
|
||||||
"_score" : 1.0,
|
"_score" : 1.0,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
@ -177,7 +176,6 @@ OpenSearch returns an array with the results of each search in the same order as
|
||||||
"hits" : [
|
"hits" : [
|
||||||
{
|
{
|
||||||
"_index" : "opensearch_dashboards_sample_data_ecommerce",
|
"_index" : "opensearch_dashboards_sample_data_ecommerce",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "efnhBXsBgv2Zxgu9ap7e",
|
"_id" : "efnhBXsBgv2Zxgu9ap7e",
|
||||||
"_score" : 1.0,
|
"_score" : 1.0,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
|
|
@ -125,7 +125,6 @@ version | Boolean | Whether to include the document version in the response.
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": "superheroes",
|
"_index": "superheroes",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_score": 1.0,
|
"_score": 1.0,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
|
|
@ -210,7 +210,6 @@ GET shakespeare/_search
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "22006",
|
"_id": "22006",
|
||||||
"_score": 9.712725,
|
"_score": 9.712725,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -225,7 +224,6 @@ GET shakespeare/_search
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "54665",
|
"_id": "54665",
|
||||||
"_score": 9.712725,
|
"_score": 9.712725,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -327,8 +325,7 @@ The phrase "to be" is prefix matched with the FST of the `text_entry` field.
|
||||||
"options": [
|
"options": [
|
||||||
{
|
{
|
||||||
"text": "To be a comrade with the wolf and owl,--",
|
"text": "To be a comrade with the wolf and owl,--",
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "50652",
|
"_id": "50652",
|
||||||
"_score": 1,
|
"_score": 1,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -344,7 +341,6 @@ The phrase "to be" is prefix matched with the FST of the `text_entry` field.
|
||||||
{
|
{
|
||||||
"text": "To be a make-peace shall become my age:",
|
"text": "To be a make-peace shall become my age:",
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "78566",
|
"_id": "78566",
|
||||||
"_score": 1,
|
"_score": 1,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -411,7 +407,6 @@ GET shakespeare/_search
|
||||||
{
|
{
|
||||||
"text": "To make a bastard and a slave of me!",
|
"text": "To make a bastard and a slave of me!",
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "5369",
|
"_id": "5369",
|
||||||
"_score": 4,
|
"_score": 4,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -427,7 +422,6 @@ GET shakespeare/_search
|
||||||
{
|
{
|
||||||
"text": "To make a bloody supper in the Tower.",
|
"text": "To make a bloody supper in the Tower.",
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "12504",
|
"_id": "12504",
|
||||||
"_score": 4,
|
"_score": 4,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -513,7 +507,6 @@ You see the indexed document as the first result:
|
||||||
{
|
{
|
||||||
"text": "To be, or not to be: that is the question:",
|
"text": "To be, or not to be: that is the question:",
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_score": 30,
|
"_score": 30,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -529,7 +522,6 @@ You see the indexed document as the first result:
|
||||||
{
|
{
|
||||||
"text": "To make a bastard and a slave of me!",
|
"text": "To make a bastard and a slave of me!",
|
||||||
"_index": "shakespeare",
|
"_index": "shakespeare",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "5369",
|
"_id": "5369",
|
||||||
"_score": 4,
|
"_score": 4,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
|
|
@ -226,7 +226,6 @@ curl -XGET -k -u 'admin:admin' 'https://localhost:9200/follower-01/_search?prett
|
||||||
...
|
...
|
||||||
"hits": [{
|
"hits": [{
|
||||||
"_index": "follower-01",
|
"_index": "follower-01",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_score": 1.0,
|
"_score": 1.0,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
|
|
@ -148,7 +148,6 @@ GET _plugins/_asynchronous_search/<ID>?pretty
|
||||||
"hits": [
|
"hits": [
|
||||||
{
|
{
|
||||||
"_index": "bank",
|
"_index": "bank",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_score": 1,
|
"_score": 1,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
|
|
@ -256,7 +256,6 @@ GET/POST /_plugins/_knn/models/_search?pretty&_source_excludes=model_blob
|
||||||
"hits" : [
|
"hits" : [
|
||||||
{
|
{
|
||||||
"_index" : ".opensearch-knn-models",
|
"_index" : ".opensearch-knn-models",
|
||||||
"_type" : "_doc",
|
|
||||||
"_id" : "test-model",
|
"_id" : "test-model",
|
||||||
"_score" : 1.0,
|
"_score" : 1.0,
|
||||||
"_source" : {
|
"_source" : {
|
||||||
|
|
|
@ -176,7 +176,6 @@ curl -XGET -k -u 'admin:admin' 'https://localhost:9250/opensearch-ccs-cluster1:b
|
||||||
...
|
...
|
||||||
"hits": [{
|
"hits": [{
|
||||||
"_index": "opensearch-ccs-cluster1:books",
|
"_index": "opensearch-ccs-cluster1:books",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_score": 1.0,
|
"_score": 1.0,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
@ -230,7 +229,6 @@ curl -XGET -k -u booksuser:password 'https://localhost:9250/opensearch-ccs-clust
|
||||||
...
|
...
|
||||||
"hits": [{
|
"hits": [{
|
||||||
"_index": "opensearch-ccs-cluster1:books",
|
"_index": "opensearch-ccs-cluster1:books",
|
||||||
"_type": "_doc",
|
|
||||||
"_id": "1",
|
"_id": "1",
|
||||||
"_score": 1.0,
|
"_score": 1.0,
|
||||||
"_source": {
|
"_source": {
|
||||||
|
|
|
@ -27,7 +27,6 @@ You have two options when you configure field-level security: include or exclude
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": "movies",
|
"_index": "movies",
|
||||||
"_type": "_doc",
|
|
||||||
"_source": {
|
"_source": {
|
||||||
"year": 2013,
|
"year": 2013,
|
||||||
"title": "Rush",
|
"title": "Rush",
|
||||||
|
@ -45,7 +44,6 @@ If you exclude fields, users see everything *but* those fields when they retriev
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": "movies",
|
"_index": "movies",
|
||||||
"_type": "_doc",
|
|
||||||
"_source": {
|
"_source": {
|
||||||
"directors": [
|
"directors": [
|
||||||
"Ron Howard"
|
"Ron Howard"
|
||||||
|
@ -107,7 +105,6 @@ For example, in the `movies` index, if you include `actors`, `title`, and `year`
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": "movies",
|
"_index": "movies",
|
||||||
"_type": "_doc",
|
|
||||||
"_source": {
|
"_source": {
|
||||||
"year": 2013,
|
"year": 2013,
|
||||||
"directors": [
|
"directors": [
|
||||||
|
|
|
@ -14,7 +14,6 @@ Field masking works alongside field-level security on the same per-role, per-ind
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"_index": "movies",
|
"_index": "movies",
|
||||||
"_type": "_doc",
|
|
||||||
"_source": {
|
"_source": {
|
||||||
"year": 2013,
|
"year": 2013,
|
||||||
"directors": [
|
"directors": [
|
||||||
|
|
Loading…
Reference in New Issue