Skip to content

Commit

Permalink
Added tests for the Lucene query string parameters. (opensearch-proje…
Browse files Browse the repository at this point in the history
…ct#688)

Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Nov 24, 2024
1 parent 962452c commit 7e08a43
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/default/indices/explain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,32 @@ chapters:
title: Drive
response:
status: 200
- synopsis: Explain the score using the Lucene query string syntax in the request body.
path: /{index}/_explain/{id}
method: POST
parameters:
index: movies
id: movie2
request:
payload:
query:
query_string:
default_field: title
query: Drive
analyzer: english
response:
status: 200
- synopsis: Explain the score using the Lucene query string syntax in parameters.
path: /{index}/_explain/{id}
method: GET
parameters:
index: movies
id: movie2
q: Drive
df: title
lenient: true
analyzer: english
default_operator: and
analyze_wildcard: true
response:
status: 200

0 comments on commit 7e08a43

Please sign in to comment.