Added/updated snippets for docs (#2318)
This commit is contained in:
24
docs/doc_examples/0a6d56a66a2652ac6de68f8bd544a175.asciidoc
Normal file
24
docs/doc_examples/0a6d56a66a2652ac6de68f8bd544a175.asciidoc
Normal file
@ -0,0 +1,24 @@
|
||||
// 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({
|
||||
index: "index1",
|
||||
query: {
|
||||
query_string: {
|
||||
query: "running with scissors",
|
||||
fields: ["comment", "comment.english"],
|
||||
},
|
||||
},
|
||||
highlight: {
|
||||
order: "score",
|
||||
fields: {
|
||||
comment: {
|
||||
matched_fields: ["comment.english"],
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user