2013-07-23 19:47:28 -04:00
|
|
|
---
|
|
|
|
"Basic mlt":
|
2014-04-08 04:07:53 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
index:
|
|
|
|
number_of_replicas: 0
|
|
|
|
|
2013-07-23 19:47:28 -04:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar, title: howdy }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.refresh: {}
|
|
|
|
|
2014-02-07 13:20:36 -05:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: green
|
2014-04-08 04:07:53 -04:00
|
|
|
|
2013-07-23 19:47:28 -04:00
|
|
|
- do:
|
|
|
|
mlt:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
mlt_fields: title
|
|
|
|
|
|
|
|
- match: {hits.total: 0}
|
|
|
|
|