Added/updated snippets for docs (#2318)
This commit is contained in:
22
docs/doc_examples/52bc577a0d0cd42b46f33e0ef5124df8.asciidoc
Normal file
22
docs/doc_examples/52bc577a0d0cd42b46f33e0ef5124df8.asciidoc
Normal file
@ -0,0 +1,22 @@
|
||||
// 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.putScript({
|
||||
id: "my-search-template",
|
||||
script: {
|
||||
lang: "mustache",
|
||||
source: {
|
||||
query: {
|
||||
match: {
|
||||
message: "{{query_string}}",
|
||||
},
|
||||
},
|
||||
from: "{{from}}",
|
||||
size: "{{size}}",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user