// 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({
  index: "range_index",
  size: 0,
  query: {
    range: {
      time_frame: {
        gte: "2019-11-01",
        format: "yyyy-MM-dd",
      },
    },
  },
  aggs: {
    november_data: {
      date_histogram: {
        field: "time_frame",
        calendar_interval: "day",
        format: "yyyy-MM-dd",
      },
    },
  },
});
console.log(response);
----
