// 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({
  query: {
    function_score: {
      functions: [
        {
          gauss: {
            price: {
              origin: "0",
              scale: "20",
            },
          },
        },
        {
          gauss: {
            location: {
              origin: "11, 12",
              scale: "2km",
            },
          },
        },
      ],
      query: {
        match: {
          properties: "balcony",
        },
      },
      score_mode: "multiply",
    },
  },
});
console.log(response);
----
