* [docs] update readme and examples to use async/await * [apis] regenerate (including updated examples)
11 lines
229 B
Plaintext
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'
|
|
});
|
|
---------
|