Added/updated snippets for docs (#2318)
This commit is contained in:
37
docs/doc_examples/0ea2167ce7c87d311b20c4f8c698a8d0.asciidoc
Normal file
37
docs/doc_examples/0ea2167ce7c87d311b20c4f8c698a8d0.asciidoc
Normal file
@ -0,0 +1,37 @@
|
||||
// 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.search({
|
||||
slice: {
|
||||
id: 0,
|
||||
max: 2,
|
||||
},
|
||||
query: {
|
||||
match: {
|
||||
message: "foo",
|
||||
},
|
||||
},
|
||||
pit: {
|
||||
id: "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==",
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
|
||||
const response1 = await client.search({
|
||||
slice: {
|
||||
id: 1,
|
||||
max: 2,
|
||||
},
|
||||
pit: {
|
||||
id: "46ToAwMDaWR5BXV1aWQyKwZub2RlXzMAAAAAAAAAACoBYwADaWR4BXV1aWQxAgZub2RlXzEAAAAAAAAAAAEBYQADaWR5BXV1aWQyKgZub2RlXzIAAAAAAAAAAAwBYgACBXV1aWQyAAAFdXVpZDEAAQltYXRjaF9hbGw_gAAAAA==",
|
||||
},
|
||||
query: {
|
||||
match: {
|
||||
message: "foo",
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response1);
|
||||
----
|
||||
Reference in New Issue
Block a user