// 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: {
    function_score: {
      query: {
        match_all: {},
      },
      boost: "5",
      random_score: {},
      boost_mode: "multiply",
    },
  },
});
console.log(response);
----
