Skip to content
Open
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 @@ -376,6 +376,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Fixed `RestStatus` responses in `DELETE /_plugins/_notifications/configs/{config_id}` ([#594](https://github.com/opensearch-project/opensearch-api-specification/pull/594))
- Fixed `GET /_snapshot_/{repository}/{snapshot}` ([#608](https://github.com/opensearch-project/opensearch-api-specification/pull/608))
- Fixed `POST /_snapshot/{repository}/{snapshot}/_restore` when `wait_for_completion` is `false` and `GET /{index}/_recovery` ([#611](https://github.com/opensearch-project/opensearch-api-specification/pull/611))
- Fixed BulkResponseBase item with defined property ([#948](https://github.com/opensearch-project/opensearch-api-specification/pull/948))

### Security

Expand Down
25 changes: 16 additions & 9 deletions spec/schemas/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ components:
$ref: '#/components/schemas/SequenceNumber'
_primary_term:
type: integer
format: int32
format: int64
description: The primary term of the document.
_routing:
$ref: '#/components/schemas/Routing'
Expand Down Expand Up @@ -1890,7 +1890,8 @@ components:
error:
$ref: '#/components/schemas/ErrorCause'
status:
type: number
type: integer
format: int32
description: The HTTP status code.
required:
- error
Expand Down Expand Up @@ -2662,22 +2663,28 @@ components:
description: The time taken by different phases of the search.
properties:
dfs_pre_query:
$ref: '#/components/schemas/uint'
type: integer
format: int64
description: The time taken for the distributed frequency search `pre-query` phase.
query:
$ref: '#/components/schemas/uint'
type: integer
format: int64
description: The time taken for the `query` phase.
fetch:
$ref: '#/components/schemas/uint'
type: integer
format: int64
description: The time taken for the `fetch` phase.
dfs_query:
$ref: '#/components/schemas/uint'
type: integer
format: int64
description: The time taken for the distributed frequency search query phase.
expand:
$ref: '#/components/schemas/uint'
type: integer
format: int64
description: The time taken for the `expand` phase.
can_match:
$ref: '#/components/schemas/uint'
type: integer
format: int64
description: The time taken for the `can_match` phase.
required:
- can_match
Expand Down Expand Up @@ -2872,4 +2879,4 @@ components:
- active_threads
- thread_executions
TResult:
x-is-generic-type-parameter: true
x-is-generic-type-parameter: true
19 changes: 14 additions & 5 deletions spec/schemas/_core.bulk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,7 @@ components:
items:
type: array
items:
type: object
additionalProperties:
$ref: '#/components/schemas/ResponseItem'
minProperties: 1
maxProperties: 1
$ref: '#/components/schemas/Items'
took:
type: integer
format: int64
Expand Down Expand Up @@ -182,3 +178,16 @@ components:
required:
- _index
- status
Items:
type: object
properties:
index:
$ref: '#/components/schemas/ResponseItem'
create:
$ref: '#/components/schemas/ResponseItem'
update:
$ref: '#/components/schemas/ResponseItem'
delete:
$ref: '#/components/schemas/ResponseItem'
minProperties: 1
maxProperties: 1