// 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.searchApplication.search({
  name: "my-search-app",
  params: {
    query_string:
      "What is the most popular brand of coffee sold in the United States?",
    elser_fields: ["title", "meta_description"],
    text_fields: ["title", "meta_description"],
    rrf: {
      rank_window_size: 50,
      rank_constant: 25,
    },
  },
});
console.log(response);
----
