Basic explain tests

This commit is contained in:
Honza Kral 2013-07-24 01:54:12 +02:00
parent 738faec713
commit 85616ca620
1 changed files with 25 additions and 0 deletions

View 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}