Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added API spec for `adjust_pure_negative` for bool queries ([#641](https://github.com/opensearch-project/opensearch-api-specification/pull/641))
- Added a spec style checker [#620](https://github.com/opensearch-project/opensearch-api-specification/pull/620).
- Added `remote_store` to node `Stats` ([#643](https://github.com/opensearch-project/opensearch-api-specification/pull/643))
- Added array type to `fields` in `Highlight` and `default` in `HighlighterTagsSchema` ([#1003](https://github.com/opensearch-project/opensearch-api-specification/pull/1003))

### Changed

Expand Down
19 changes: 16 additions & 3 deletions spec/schemas/_core.search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -809,11 +809,23 @@ components:
encoder:
$ref: '#/components/schemas/HighlighterEncoder'
fields:
type: object
additionalProperties:
$ref: '#/components/schemas/HighlightField'
$ref: '#/components/schemas/HighlightFields'
required:
- fields
HighlightFields:
oneOf:
- type: object
additionalProperties:
$ref: '#/components/schemas/HighlightField'
- type: array
items:
type: object
additionalProperties:
title: key
$ref: '#/components/schemas/HighlightField'
minProperties: 1
maxProperties: 1
x-protobuf-excluded: true
HighlighterEncoder:
type: string
enum:
Expand Down Expand Up @@ -951,6 +963,7 @@ components:
HighlighterTagsSchema:
type: string
enum:
- default
- styled
SourceConfig:
description: Defines how to fetch a source. Fetching can be disabled entirely, or the source can be filtered.
Expand Down