How to specify the time range with `search API`?

The request body like this:

"range": {
    "time_iso8601": {
        "gte": now.shift(days=-1).floor('day').timestamp() * 1000,
        "lte": now.shift(days=-1).ceil('day').timestamp() * 1000,
        "format": "epoch_millis"
    }
}

How to set it with the search API?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.