forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into term-vectors
Signed-off-by: Niyazbek Torekeldi <[email protected]>
- Loading branch information
Showing
29 changed files
with
645 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test point-in-time. | ||
version: '>= 2.4' | ||
epilogues: | ||
- path: /_search/point_in_time/_all | ||
method: DELETE | ||
- path: /movies | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: /_bulk | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: movies}} | ||
- {title: The Cruise, year: 1998} | ||
- {create: {_index: movies}} | ||
- {title: Drive, year: 1960} | ||
- path: /movies/_search/point_in_time | ||
method: POST | ||
parameters: | ||
keep_alive: 1m | ||
chapters: | ||
- synopsis: Get all point in time. | ||
path: /_search/point_in_time/_all | ||
method: GET | ||
- synopsis: Delete all point in time. | ||
path: /_search/point_in_time/_all | ||
method: DELETE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test search. | ||
chapters: | ||
- synopsis: Search across all indexes (GET). | ||
path: /_search | ||
method: GET | ||
request: | ||
payload: | ||
query: | ||
match_all: {} | ||
- synopsis: Search across all indexes (POST). | ||
path: /_search | ||
method: POST | ||
request: | ||
payload: | ||
query: | ||
match_all: {} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test the creation of a search pipeline. | ||
version: '>= 2.9' | ||
epilogues: | ||
- path: /_search/pipeline/empty-pipeline | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Create search pipeline. | ||
path: /_search/pipeline/{id} | ||
method: PUT | ||
parameters: | ||
id: empty-pipeline | ||
request: | ||
payload: {} | ||
response: | ||
status: 200 | ||
payload: | ||
acknowledged: true | ||
- synopsis: Query all pipelines. | ||
path: /_search/pipeline | ||
method: GET | ||
- synopsis: Query created pipeline. | ||
path: /_search/pipeline/{id} | ||
method: GET | ||
parameters: | ||
id: empty-pipeline | ||
- synopsis: Delete created pipeline. | ||
path: /_search/pipeline/{id} | ||
method: DELETE | ||
parameters: | ||
id: empty-pipeline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test point-in-time. | ||
version: '>= 2.4' | ||
epilogues: | ||
- path: /_search/point_in_time/_all | ||
method: DELETE | ||
- path: /movies | ||
method: DELETE | ||
status: [200, 404] | ||
prologues: | ||
- path: /_bulk | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: movies}} | ||
- {title: The Cruise, year: 1998} | ||
- {create: {_index: movies}} | ||
- {title: Drive, year: 1960} | ||
- path: /movies/_search/point_in_time | ||
id: pit | ||
method: POST | ||
parameters: | ||
keep_alive: 1m | ||
output: | ||
id: payload.pit_id | ||
chapters: | ||
- synopsis: Delete all pits. | ||
path: /_search/point_in_time | ||
request: | ||
payload: | ||
pit_id: | ||
- ${pit.id} | ||
method: DELETE |
Oops, something went wrong.