From c6c15d8a1e1a85633a9fd21c09c8a2ec4e7ee7e6 Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Wed, 7 Aug 2024 12:10:32 -0500 Subject: [PATCH 1/2] Update search.md Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _api-reference/search.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_api-reference/search.md b/_api-reference/search.md index 777f48354e..918c2332c7 100644 --- a/_api-reference/search.md +++ b/_api-reference/search.md @@ -71,7 +71,7 @@ search_type | String | Whether OpenSearch should use global term and document fr seq_no_primary_term | Boolean | Whether to return sequence number and primary term of the last operation of each document hit. size | Integer | How many results to include in the response. sort | List | A comma-separated list of <field> : <direction> pairs to sort by. -_source | String | Whether to include the `_source` field in the response. +_source | String | Filters which fields from the `_source`, including Booleans and string arrays, are included in the response. When not specified, OpenSearch includes all fields present from the entire JSON object when the index document was ingested. _source_excludes | List | A comma-separated list of source fields to exclude from the response. _source_includes | List | A comma-separated list of source fields to include in the response. stats | String | Value to associate with the request for additional logging. From 49c717653ae7e9aa38c2f74eb744aa7899c77f07 Mon Sep 17 00:00:00 2001 From: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:22:02 -0500 Subject: [PATCH 2/2] Apply suggestions from code review Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _api-reference/search.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_api-reference/search.md b/_api-reference/search.md index 918c2332c7..7512711d62 100644 --- a/_api-reference/search.md +++ b/_api-reference/search.md @@ -71,7 +71,7 @@ search_type | String | Whether OpenSearch should use global term and document fr seq_no_primary_term | Boolean | Whether to return sequence number and primary term of the last operation of each document hit. size | Integer | How many results to include in the response. sort | List | A comma-separated list of <field> : <direction> pairs to sort by. -_source | String | Filters which fields from the `_source`, including Booleans and string arrays, are included in the response. When not specified, OpenSearch includes all fields present from the entire JSON object when the index document was ingested. +_source | String | Filters which fields from the `_source`, including Booleans and string arrays, are included in the response. When not specified, OpenSearch includes all fields present from the entire JSON object when the index document was ingested. _source_excludes | List | A comma-separated list of source fields to exclude from the response. _source_includes | List | A comma-separated list of source fields to include in the response. stats | String | Value to associate with the request for additional logging.