-
Notifications
You must be signed in to change notification settings - Fork 62
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 reindex-rethrottle
Signed-off-by: Daniel (dB.) Doubrovkine <[email protected]>
- Loading branch information
Showing
14 changed files
with
258 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _msearch/template APIs. | ||
prologues: | ||
- path: /_bulk | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: books, _id: book1}} | ||
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960} | ||
- {create: {_index: books, _id: book2}} | ||
- {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991} | ||
- {create: {_index: books, _id: book3}} | ||
- {author: George Orwell, title: '1984', year: 1949} | ||
epilogues: | ||
- path: /books | ||
method: DELETE | ||
status: [200, 404] | ||
|
||
chapters: | ||
- synopsis: Perform a multi-search template query using a GET request. | ||
path: /_msearch/template | ||
method: | ||
- GET | ||
- POST | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {index: books} | ||
- {source: '{"query": {"match": {"title": "{{title}}"}}}', params: {title: Mockingbird}} | ||
- {index: books} | ||
- {source: '{"query": {"match": {"title": "{{title}}"}}}', params: {title: Beast}} |
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,44 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _mtermvectors APIs. | ||
prologues: | ||
- path: /books | ||
method: PUT | ||
request: | ||
payload: | ||
mappings: | ||
properties: | ||
author: | ||
type: text | ||
title: | ||
term_vector: yes | ||
type: text | ||
year: | ||
type: integer | ||
- path: /_bulk | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: books, _id: book1}} | ||
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960} | ||
- {create: {_index: books, _id: book2}} | ||
- {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991} | ||
epilogues: | ||
- path: /books | ||
method: DELETE | ||
status: [200, 404] | ||
|
||
chapters: | ||
- synopsis: Retrieve term vectors for specific documents. | ||
path: /_mtermvectors | ||
method: | ||
- GET | ||
- POST | ||
request: | ||
payload: | ||
docs: | ||
- _id: book1 | ||
_index: books |
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,17 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test validating queries. | ||
chapters: | ||
- synopsis: Validate a query. | ||
path: /_validate/query | ||
method: | ||
- GET | ||
- POST | ||
request: | ||
payload: | ||
query: | ||
match_all: {} | ||
response: | ||
status: 200 | ||
payload: | ||
valid: true |
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 _msearch/template APIs. | ||
prologues: | ||
- path: /_bulk | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: books, _id: book1}} | ||
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960} | ||
- {create: {_index: books, _id: book2}} | ||
- {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991} | ||
- {create: {_index: books, _id: book3}} | ||
- {author: George Orwell, title: '1984', year: 1949} | ||
epilogues: | ||
- path: /books | ||
method: DELETE | ||
status: [200, 404] | ||
|
||
chapters: | ||
- synopsis: Perform a multi-search template query using a GET request. | ||
path: /{index}/_msearch/template | ||
parameters: | ||
index: books | ||
method: | ||
- GET | ||
- POST | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {index: books} | ||
- {source: '{"query": {"match": {"title": "{{title}}"}}}', params: {title: Mockingbird}} | ||
- {index: books} | ||
- {source: '{"query": {"match": {"title": "{{title}}"}}}', params: {title: Beast}} |
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,45 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _mtermvectors APIs. | ||
prologues: | ||
- path: /books | ||
method: PUT | ||
request: | ||
payload: | ||
mappings: | ||
properties: | ||
author: | ||
type: text | ||
title: | ||
term_vector: yes | ||
type: text | ||
year: | ||
type: integer | ||
- path: /_bulk | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: books, _id: book1}} | ||
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960} | ||
- {create: {_index: books, _id: book2}} | ||
- {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991} | ||
epilogues: | ||
- path: /books | ||
method: DELETE | ||
status: [200, 404] | ||
|
||
chapters: | ||
- synopsis: Retrieve term vectors for specific documents in an index. | ||
path: /{index}/_mtermvectors | ||
parameters: | ||
index: books | ||
method: | ||
- GET | ||
- POST | ||
request: | ||
payload: | ||
docs: | ||
- _id: book1 |
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,53 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _termvectors APIs. | ||
prologues: | ||
- path: /books | ||
method: PUT | ||
request: | ||
payload: | ||
mappings: | ||
properties: | ||
author: | ||
type: text | ||
title: | ||
term_vector: yes | ||
type: text | ||
year: | ||
type: integer | ||
- path: /_bulk | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: books, _id: book1}} | ||
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960} | ||
- {create: {_index: books, _id: book2}} | ||
- {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991} | ||
epilogues: | ||
- path: /books | ||
method: DELETE | ||
status: [200, 404] | ||
|
||
chapters: | ||
- synopsis: Get term vectors for a specific index. | ||
path: /{index}/_termvectors | ||
parameters: | ||
index: books | ||
method: | ||
- GET | ||
- POST | ||
request: | ||
payload: | ||
doc: | ||
title: To kill | ||
- synopsis: Get term vectors for a document by its ID. | ||
path: /{index}/_termvectors/{id} | ||
parameters: | ||
index: books | ||
id: book1 | ||
method: | ||
- GET | ||
- POST |
Oops, something went wrong.