Skip to content

Commit

Permalink
Document new experimental ingestion streaming APIs
Browse files Browse the repository at this point in the history
Signed-off-by: Andriy Redko <[email protected]>
  • Loading branch information
reta committed Sep 18, 2024
1 parent 3d49360 commit 9096cf3
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
68 changes: 68 additions & 0 deletions spec/namespaces/_core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,57 @@ paths:
responses:
'200':
$ref: '#/components/responses/bulk@200'
/_bulk/stream:
post:
operationId: bulk.stream.0
x-operation-group: bulk
x-version-added: '2.17.0'

Check failure on line 83 in spec/namespaces/_core.yaml

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar
description: Allows to perform multiple index/update/delete operations using request / response streaming
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/document-apis/bulk-streaming/
parameters:
- $ref: '#/components/parameters/bulk::query._source'
- $ref: '#/components/parameters/bulk::query._source_excludes'
- $ref: '#/components/parameters/bulk::query._source_includes'
- $ref: '#/components/parameters/bulk::query.pipeline'
- $ref: '#/components/parameters/bulk::query.refresh'
- $ref: '#/components/parameters/bulk::query.require_alias'
- $ref: '#/components/parameters/bulk::query.routing'
- $ref: '#/components/parameters/bulk::query.timeout'
- $ref: '#/components/parameters/bulk::query.type'
- $ref: '#/components/parameters/bulk::query.wait_for_active_shards'
- $ref: '#/components/parameters/bulk::query.batch_size'
- $ref: '#/components/parameters/bulk::query.batch_interval'
requestBody:
$ref: '#/components/requestBodies/bulk'
responses:
'200':
$ref: '#/components/responses/bulk@200'
put:
operationId: bulk.stream.1
x-operation-group: bulk
x-version-added: '2.17.0'

Check failure on line 108 in spec/namespaces/_core.yaml

View workflow job for this annotation

GitHub Actions / lint

Must use plain style scalar
description: Allows to perform multiple index/update/delete operations using request / response streaming
externalDocs:
url: https://opensearch.org/docs/latest/api-reference/document-apis/bulk-streaming/
parameters:
- $ref: '#/components/parameters/bulk::query._source'
- $ref: '#/components/parameters/bulk::query._source_excludes'
- $ref: '#/components/parameters/bulk::query._source_includes'
- $ref: '#/components/parameters/bulk::query.pipeline'
- $ref: '#/components/parameters/bulk::query.refresh'
- $ref: '#/components/parameters/bulk::query.require_alias'
- $ref: '#/components/parameters/bulk::query.routing'
- $ref: '#/components/parameters/bulk::query.timeout'
- $ref: '#/components/parameters/bulk::query.type'
- $ref: '#/components/parameters/bulk::query.wait_for_active_shards'
- $ref: '#/components/parameters/bulk::query.batch_size'
- $ref: '#/components/parameters/bulk::query.batch_interval'
requestBody:
$ref: '#/components/requestBodies/bulk'
responses:
'200':
$ref: '#/components/responses/bulk@200'
/_count:
get:
operationId: count.0
Expand Down Expand Up @@ -3217,6 +3268,23 @@ components:
$ref: '../schemas/_common.yaml#/components/schemas/WaitForActiveShards'
style: form
x-default: '1'
bulk::query.batch_size:
in: query
name: batch_size
description: |-
Specifies how many bulk operations should be accumulated into a batch before sending the batch to data nodes.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/BatchSize'
style: form
x-default: '1'
bulk::query.batch_interval:
in: query
name: batch_interval
description: |-
Specifies for how long bulk operations should be accumulated into a batch before sending the batch to data nodes.
schema:
$ref: '../schemas/_common.yaml#/components/schemas/Duration'
style: form
clear_scroll::path.scroll_id:
in: path
name: scroll_id
Expand Down
3 changes: 3 additions & 0 deletions spec/schemas/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2230,3 +2230,6 @@ components:
required:
- reason
- status
BatchSize:
type: integer
format: int64

0 comments on commit 9096cf3

Please sign in to comment.