Added new docs examples (#1101)
* Added new docs examples * Updated enabled files list
This commit is contained in:
committed by
GitHub
parent
7b7c9130f3
commit
508aa362e6
34
docs/doc_examples/e5f50b31f165462d883ecbff45f74985.asciidoc
Normal file
34
docs/doc_examples/e5f50b31f165462d883ecbff45f74985.asciidoc
Normal file
@ -0,0 +1,34 @@
|
||||
// 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.putTemplate({
|
||||
name: 'template_1',
|
||||
body: {
|
||||
index_patterns: [
|
||||
'te*',
|
||||
'bar*'
|
||||
],
|
||||
settings: {
|
||||
number_of_shards: 1
|
||||
},
|
||||
mappings: {
|
||||
_source: {
|
||||
enabled: false
|
||||
},
|
||||
properties: {
|
||||
host_name: {
|
||||
type: 'keyword'
|
||||
},
|
||||
created_at: {
|
||||
type: 'date',
|
||||
format: 'EEE MMM dd HH:mm:ss Z yyyy'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(response)
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user