// 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: "example-index",
  retriever: {
    rrf: {
      retrievers: [
        {
          standard: {
            query: {
              term: {
                text: "rrf",
              },
            },
          },
        },
        {
          knn: {
            field: "vector",
            query_vector: [3],
            k: 5,
            num_candidates: 5,
          },
        },
      ],
      rank_window_size: 5,
      rank_constant: 1,
    },
  },
  size: 3,
  aggs: {
    int_count: {
      terms: {
        field: "integer",
      },
    },
  },
});
console.log(response);
----
