// 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.searchApplication.search({
  name: "my_search_application",
  params: {
    size: 5,
    query_string: "mountain climbing",
    text_fields: [
      {
        name: "title",
        boost: 10,
      },
      {
        name: "description",
        boost: 2,
      },
      {
        name: "state",
        boost: 1,
      },
    ],
  },
});
console.log(response);
----
