Auto-generated API code (#2597)

This commit is contained in:
Elastic Machine
2025-02-03 19:53:34 +01:00
committed by GitHub
parent 3d3c72dc40
commit 07f7ffea76
32 changed files with 536 additions and 13 deletions

View 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({
index: "test-index",
query: {
match: {
my_semantic_field: "Which country is Paris in?",
},
},
highlight: {
fields: {
my_semantic_field: {
number_of_fragments: 2,
order: "score",
},
},
},
});
console.log(response);
----