Added/updated snippets for docs (#2318)
This commit is contained in:
23
docs/doc_examples/698e0a2b67ba7842caa801d9ef46ebe3.asciidoc
Normal file
23
docs/doc_examples/698e0a2b67ba7842caa801d9ef46ebe3.asciidoc
Normal file
@ -0,0 +1,23 @@
|
||||
// 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: {
|
||||
require_field_match: false,
|
||||
fields: {
|
||||
body: {
|
||||
pre_tags: ["<em>"],
|
||||
post_tags: ["</em>"],
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user