// 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({
  index: "test",
  query: {
    bool: {
      must: [
        {
          match: {
            content: "2016",
          },
        },
      ],
      should: [
        {
          rank_feature: {
            field: "pagerank",
          },
        },
        {
          rank_feature: {
            field: "url_length",
            boost: 0.1,
          },
        },
        {
          rank_feature: {
            field: "topics.sports",
            boost: 0.4,
          },
        },
      ],
    },
  },
});
console.log(response);
----
