Added/updated snippets for docs (#2318)
This commit is contained in:
23
docs/doc_examples/3e278e6c193b4c17dbdc70670e15d78c.asciidoc
Normal file
23
docs/doc_examples/3e278e6c193b4c17dbdc70670e15d78c.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: {
|
||||
fields: {
|
||||
comment: {
|
||||
fragment_size: 150,
|
||||
number_of_fragments: 3,
|
||||
no_match_size: 150,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user