// 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: "drivers",
  query: {
    nested: {
      path: "driver",
      query: {
        nested: {
          path: "driver.vehicle",
          query: {
            bool: {
              must: [
                {
                  match: {
                    "driver.vehicle.make": "Powell Motors",
                  },
                },
                {
                  match: {
                    "driver.vehicle.model": "Canyonero",
                  },
                },
              ],
            },
          },
        },
      },
    },
  },
});
console.log(response);
----
