// 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: "my-index",
  retriever: {
    rrf: {
      retrievers: [
        {
          standard: {
            query: {
              match: {
                my_text_field: "the query string",
              },
            },
          },
        },
        {
          standard: {
            query: {
              sparse_vector: {
                field: "my_tokens",
                inference_id: "my-elser-endpoint",
                query: "the query string",
              },
            },
          },
        },
      ],
    },
  },
});
console.log(response);
----
