Added new docs examples (#1149)
* Updated enabled files list * Added new docs examples
This commit is contained in:
committed by
GitHub
parent
7717799ca6
commit
0e659031e3
29
docs/doc_examples/d1b3b7d2bb2ab90d15fd10318abd24db.asciidoc
Normal file
29
docs/doc_examples/d1b3b7d2bb2ab90d15fd10318abd24db.asciidoc
Normal file
@ -0,0 +1,29 @@
|
||||
// This file is autogenerated, DO NOT EDIT
|
||||
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
|
||||
|
||||
[source, js]
|
||||
----
|
||||
const response = await client.indices.create({
|
||||
index: 'my_index',
|
||||
body: {
|
||||
mappings: {
|
||||
properties: {
|
||||
post_date: {
|
||||
type: 'date'
|
||||
},
|
||||
user: {
|
||||
type: 'keyword'
|
||||
},
|
||||
name: {
|
||||
type: 'keyword'
|
||||
},
|
||||
age: {
|
||||
type: 'integer'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user