added docs to the repo
This commit is contained in:
12
docs/_examples/mlt.asciidoc
Normal file
12
docs/_examples/mlt.asciidoc
Normal file
@ -0,0 +1,12 @@
|
||||
.Search for similar documents using the `title` property of document `myindex/mytype/1`
|
||||
[source,js]
|
||||
---------
|
||||
client.mlt({
|
||||
index: 'myindex',
|
||||
type: 'mytype',
|
||||
id: 1,
|
||||
mlt_fields: 'title'
|
||||
}, function (errors, response) {
|
||||
// ...
|
||||
});
|
||||
---------
|
||||
Reference in New Issue
Block a user