mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 06:16:40 +00:00
Basic explain tests
This commit is contained in:
parent
738faec713
commit
85616ca620
25
rest-api-spec/test/explain/10_basic.yaml
Normal file
25
rest-api-spec/test/explain/10_basic.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
"Basic mlt":
|
||||||
|
- do:
|
||||||
|
index:
|
||||||
|
index: test_1
|
||||||
|
type: test
|
||||||
|
id: 1
|
||||||
|
body: { foo: bar, title: howdy }
|
||||||
|
|
||||||
|
- do:
|
||||||
|
indices.refresh: {}
|
||||||
|
|
||||||
|
- do:
|
||||||
|
explain:
|
||||||
|
index: test_1
|
||||||
|
type: test
|
||||||
|
id: 1
|
||||||
|
body:
|
||||||
|
query:
|
||||||
|
match_all: {}
|
||||||
|
|
||||||
|
- is_true: matched
|
||||||
|
- is_true: ok
|
||||||
|
- match: {explanation.value: 1.0}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user