-
Notifications
You must be signed in to change notification settings - Fork 64
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 querygroup-api
Signed-off-by: Ruirui Zhang <[email protected]>
- Loading branch information
Showing
36 changed files
with
539 additions
and
190 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,9 @@ Kuromoji | |
Lovins | ||
Lucene | ||
Millis | ||
Moneyball | ||
Multisearch | ||
Moneyball | ||
Nanos | ||
Nori | ||
ONNX | ||
|
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,30 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
skip: false | ||
description: Test bulk endpoint. | ||
epilogues: | ||
- path: /books,movies | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Create an index. | ||
path: /_bulk | ||
method: POST | ||
request_body: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: movies}} | ||
- {director: Bennett Miller, title: Moneyball, year: 2011} | ||
- synopsis: Bulk document CRUD. | ||
path: /_bulk | ||
method: POST | ||
request_body: | ||
content_type: application/x-ndjson | ||
payload: | ||
- {create: {_index: books, _id: book_1392214}} | ||
- {author: Harper Lee, title: To Kill a Mockingbird, year: 1960} | ||
- {update: {_index: books, _id: book_1392214}} | ||
- {doc: {pages: 376}} | ||
- {update: {_index: books, _id: book_1392214}} | ||
- {script: {source: 'ctx._source.pages = 376;'}} | ||
- {delete: {_index: books, _id: book_1392214}} |
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,100 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
skip: false | ||
description: Test search endpoint. | ||
prologues: | ||
- path: /movies/_doc | ||
method: POST | ||
parameters: | ||
refresh: true | ||
request_body: | ||
payload: | ||
director: Bennett Miller | ||
title: Moneyball | ||
year: 2011 | ||
response: | ||
status: 201 | ||
epilogues: | ||
- path: /movies | ||
method: DELETE | ||
status: [200, 404] | ||
chapters: | ||
- synopsis: Search with size=0. | ||
path: /{index}/_search | ||
parameters: | ||
index: movies | ||
method: POST | ||
request_body: | ||
payload: | ||
size: 0 | ||
response: | ||
status: 200 | ||
payload: | ||
timed_out: false | ||
hits: | ||
total: | ||
value: 1 | ||
relation: eq | ||
max_score: null | ||
hits: [] | ||
- synopsis: Search with size=1. | ||
path: /{index}/_search | ||
parameters: | ||
index: movies | ||
method: POST | ||
request_body: | ||
payload: | ||
size: 1 | ||
query: | ||
match_all: {} | ||
response: | ||
status: 200 | ||
payload: | ||
timed_out: false | ||
hits: | ||
total: | ||
value: 1 | ||
relation: eq | ||
max_score: 1 | ||
hits: | ||
- _index: movies | ||
_score: 1 | ||
_source: | ||
director: Bennett Miller | ||
title: Moneyball | ||
year: 2011 | ||
- synopsis: Search with multi_match query. | ||
path: /{index}/_search | ||
parameters: | ||
index: movies | ||
method: POST | ||
request_body: | ||
payload: | ||
size: 1 | ||
query: | ||
multi_match: | ||
query: miller | ||
fields: ["title^2", "director"] | ||
response: | ||
status: 200 | ||
payload: | ||
timed_out: false | ||
hits: | ||
total: | ||
value: 1 | ||
relation: eq | ||
hits: | ||
- _index: movies | ||
_source: | ||
director: Bennett Miller | ||
title: Moneyball | ||
year: 2011 | ||
- synopsis: Search with parameters. | ||
path: /{index}/_search | ||
parameters: | ||
index: movies | ||
cancel_after_time_interval: 10s | ||
phase_took: true | ||
method: POST | ||
response: | ||
status: 200 |
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,11 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
skip: false | ||
description: Test cat endpoints. | ||
chapters: | ||
- synopsis: Cat with a json response. | ||
path: /_cat | ||
method: GET | ||
response: | ||
status: 200 | ||
content_type: text/plain |
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
Oops, something went wrong.