Files
elasticsearch-js/docs/doc_examples/4e4608ae4ce93c27bd174a9ea078cab2.asciidoc
2024-07-29 17:10:05 -05:00

37 lines
752 B
Plaintext

// 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: "my-index",
retriever: {
rrf: {
retrievers: [
{
standard: {
query: {
match: {
my_text_field: "the query string",
},
},
},
},
{
standard: {
query: {
sparse_vector: {
field: "my_tokens",
inference_id: "my-elser-endpoint",
query: "the query string",
},
},
},
},
],
},
},
});
console.log(response);
----