Skip to content

Commit

Permalink
More lint errors, change log
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Jul 19, 2024
1 parent 78507c2 commit 7da742e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 26 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
42 changes: 21 additions & 21 deletions spec/schemas/search_pipeline._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -266,9 +266,9 @@ components:
iam_role_arn:
type: string
required:
- campaign_arn
- recipe
- weight
- campaign_arn
- recipe
- weight
RetrievalAugmentedGenerationResponseProcessor:
type: object
properties:
Expand All @@ -287,8 +287,8 @@ components:
user_instructions:
type: string
required:
- context_field_list
- model_id
- context_field_list
- model_id
RenameFieldResponseProcessor:
type: object
properties:
Expand All @@ -303,8 +303,8 @@ components:
target_field:
type: string
required:
- field
- target_field
- field
- target_field
RerankContext:
type: object
properties:
Expand All @@ -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:
Expand Down Expand Up @@ -348,7 +348,7 @@ components:
context_prefix:
type: string
required:
- field
- field
TruncateHitsResponseProcessor:
type: object
properties:
Expand Down Expand Up @@ -379,7 +379,7 @@ components:
target_field:
type: string
required:
- field
- field
SplitResponseProcessor:
type: object
properties:
Expand All @@ -398,8 +398,8 @@ components:
target_field:
type: string
required:
- field
- separator
- field
- separator
PhaseResultsProcessor:
oneOf:
- type: object
Expand Down
10 changes: 5 additions & 5 deletions tests/_core/search/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7da742e

Please sign in to comment.