2013-07-24 01:47:28 +02:00
|
|
|
---
|
|
|
|
"Basic mlt":
|
2014-04-08 10:07:53 +02:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
settings:
|
|
|
|
index:
|
|
|
|
number_of_replicas: 0
|
2014-04-09 11:45:40 +02:00
|
|
|
mappings:
|
|
|
|
test:
|
|
|
|
properties:
|
|
|
|
foo:
|
|
|
|
type : "string"
|
|
|
|
title:
|
|
|
|
type : "string"
|
2014-04-08 10:07:53 +02:00
|
|
|
|
2013-07-24 01:47:28 +02:00
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar, title: howdy }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.refresh: {}
|
|
|
|
|
2014-02-07 19:20:36 +01:00
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: green
|
2014-04-08 10:07:53 +02:00
|
|
|
|
2013-07-24 01:47:28 +02:00
|
|
|
- do:
|
|
|
|
mlt:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
mlt_fields: title
|
|
|
|
|
|
|
|
- match: {hits.total: 0}
|
|
|
|
|