// 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({
  query: {
    function_score: {
      gauss: {
        "@timestamp": {
          origin: "2013-09-17",
          scale: "10d",
          offset: "5d",
          decay: 0.5,
        },
      },
    },
  },
});
console.log(response);
----
