added docs to the repo
This commit is contained in:
16
docs/_examples/index.asciidoc
Normal file
16
docs/_examples/index.asciidoc
Normal file
@ -0,0 +1,16 @@
|
||||
.Create or update a document
|
||||
[source,js]
|
||||
---------
|
||||
client.index({
|
||||
index: 'myindex',
|
||||
type: 'mytype',
|
||||
id: '1',
|
||||
body: {
|
||||
title: 'Test 1',
|
||||
tags: ['y', 'z'],
|
||||
published: true,
|
||||
}
|
||||
}, function (error response) {
|
||||
|
||||
});
|
||||
---------
|
||||
Reference in New Issue
Block a user