// 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: "index",
  query: {
    script_score: {
      query: {
        match: {
          body: "elasticsearch",
        },
      },
      script: {
        source: "_score * saturation(doc['pagerank'].value, 10)",
      },
    },
  },
});
console.log(response);
----
