Skip to content

Commit

Permalink
added msearch get tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Dec 16, 2024
1 parent 9d4b1b8 commit b377b37
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/default/indices/msearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ epilogues:
status: [200, 404]
chapters:
- synopsis: Perform a `_msearch` request to execute multiple search queries in a single call.
path: /{index}/_msearch
method: GET
parameters:
index: books
request:
content_type: application/x-ndjson
payload:
- {index: books}
- {query: {match: {title: To Kill a Mockingbird}}}
- {index: books}
- {query: {match: {title: The Cruise}}}
response:
status: 200
- synopsis: Perform a `_msearch` request to execute multiple search queries in a single call (POST).
path: /{index}/_msearch
method: POST
parameters:
Expand Down

0 comments on commit b377b37

Please sign in to comment.