diff --git a/CHANGELOG.md b/CHANGELOG.md index d520d3f8c..b04e63afb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Added `is_hidden` to `/{index}/_alias/{name}` and `/{index}/_aliases/{name}` ([#429](https://github.com/opensearch-project/opensearch-api-specification/pull/429)) - Added `ignore_unmapped` to `GeoDistanceQuery` ([#427](https://github.com/opensearch-project/opensearch-api-specification/pull/427)) - Added missing variants of `indices.put_alias` ([#434](https://github.com/opensearch-project/opensearch-api-specification/pull/434)) +- Added missing search response processors and new `sort` and `split` processors ([#440](https://github.com/opensearch-project/opensearch-api-specification/pull/440)) ### Changed diff --git a/spec/schemas/search_pipeline._common.yaml b/spec/schemas/search_pipeline._common.yaml index 01c96e4e4..ebb14ee9a 100644 --- a/spec/schemas/search_pipeline._common.yaml +++ b/spec/schemas/search_pipeline._common.yaml @@ -195,56 +195,56 @@ components: personalize_search_ranking: $ref: '#/components/schemas/PersonalizeSearchRankingResponseProcessor' required: - - personalize_search_ranking + - personalize_search_ranking - type: object title: retrieval_augmented_generation properties: retrieval_augmented_generation: $ref: '#/components/schemas/RetrievalAugmentedGenerationResponseProcessor' required: - - retrieval_augmented_generation + - retrieval_augmented_generation - type: object title: rename_field properties: rename_field: $ref: '#/components/schemas/RenameFieldResponseProcessor' required: - - rename_field + - rename_field - type: object title: rerank properties: rerank: $ref: '#/components/schemas/RerankResponseProcessor' required: - - rerank + - rerank - type: object title: collapse properties: collapse: $ref: '#/components/schemas/CollapseResponseProcessor' required: - - collapse + - collapse - type: object title: truncate_hits properties: truncate_hits: $ref: '#/components/schemas/TruncateHitsResponseProcessor' required: - - truncate_hits + - truncate_hits - type: object title: sort properties: sort: $ref: '#/components/schemas/SortResponseProcessor' required: - - truncate_hits + - sort - type: object title: split properties: split: $ref: '#/components/schemas/SplitResponseProcessor' required: - - truncate_hits + - split PersonalizeSearchRankingResponseProcessor: type: object properties: @@ -266,9 +266,9 @@ components: iam_role_arn: type: string required: - - campaign_arn - - recipe - - weight + - campaign_arn + - recipe + - weight RetrievalAugmentedGenerationResponseProcessor: type: object properties: @@ -287,8 +287,8 @@ components: user_instructions: type: string required: - - context_field_list - - model_id + - context_field_list + - model_id RenameFieldResponseProcessor: type: object properties: @@ -303,8 +303,8 @@ components: target_field: type: string required: - - field - - target_field + - field + - target_field RerankContext: type: object properties: @@ -313,14 +313,14 @@ components: items: type: string required: - - document_fields + - document_fields MLOpenSearchReranker: type: object properties: model_id: type: string required: - - model_id + - model_id RerankResponseProcessor: type: object properties: @@ -348,7 +348,7 @@ components: context_prefix: type: string required: - - field + - field TruncateHitsResponseProcessor: type: object properties: @@ -379,7 +379,7 @@ components: target_field: type: string required: - - field + - field SplitResponseProcessor: type: object properties: @@ -398,8 +398,8 @@ components: target_field: type: string required: - - field - - separator + - field + - separator PhaseResultsProcessor: oneOf: - type: object diff --git a/tests/_core/search/pipeline.yaml b/tests/_core/search/pipeline.yaml index 4172d0e68..f394cd889 100644 --- a/tests/_core/search/pipeline.yaml +++ b/tests/_core/search/pipeline.yaml @@ -17,13 +17,13 @@ chapters: payload: response_processors: - sort: - field: 'message' - order: 'asc' - target_field: 'sorted_message' + field: message + order: asc + target_field: sorted_message - split: - field: 'message' + field: message separator: ', ' - target_field: 'split_message' + target_field: split_message response: status: 200 payload: