Added/updated snippets for docs (#2318)
This commit is contained in:
22
docs/doc_examples/991b9ba53f0eccec8ec5a42f8d9b655c.asciidoc
Normal file
22
docs/doc_examples/991b9ba53f0eccec8ec5a42f8d9b655c.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.search({
|
||||
query: {
|
||||
match: {
|
||||
"user.id": "kimchy",
|
||||
},
|
||||
},
|
||||
highlight: {
|
||||
fields: {
|
||||
body: {},
|
||||
"blog.title": {
|
||||
number_of_fragments: 0,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user