Files
elasticsearch-js/docs/_examples/mlt.asciidoc
Spencer 83a464ac66 Update docs to use async/await (#667)
* [docs] update readme and examples to use async/await

* [apis] regenerate (including updated examples)
2018-05-23 14:31:34 -07:00

11 lines
229 B
Plaintext

.Search for similar documents using the `title` property of document `myindex/mytype/1`
[source,js]
---------
const response = await client.mlt({
index: 'myindex',
type: 'mytype',
id: 1,
mlt_fields: 'title'
});
---------