// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.mjs` 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);
----
