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

31 lines
639 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({
query: {
dis_max: {
queries: [
{
multi_match: {
query: "Will Smith",
type: "cross_fields",
fields: ["first", "last"],
minimum_should_match: "50%",
},
},
{
multi_match: {
query: "Will Smith",
type: "cross_fields",
fields: ["*.edge"],
},
},
],
},
},
});
console.log(response);
----