Alex Ksikes ec4f12f9ef More Like This: removal of the MLT API
Removes the More Like This API, users should now use the More Like This query.
The MLT API tests were converted to their query equivalent. Also some clean
ups in MLT tests.

Closes #10736
Closes #11003
2015-05-06 18:11:11 +02:00

46 lines
829 B
YAML

---
"Basic mlt":
- do:
indices.create:
index: test_1
body:
settings:
index:
number_of_replicas: 0
mappings:
test:
properties:
foo:
type : "string"
title:
type : "string"
- do:
index:
index: test_1
type: test
id: 1
body: { foo: bar, title: howdy }
- do:
indices.refresh: {}
- do:
cluster.health:
wait_for_status: green
- do:
search:
index: test_1
type: test
body:
query:
more_like_this:
like:
-
_id: 1
fields: ["title"]
- match: {hits.total: 0}