Can i set the timezone for results returned from search?

I'm beginning to fear the answer is "no".

I'm storing my data as UTC,
I'm setting the time_zone param on a date range filter i've applied to my search,
I want the returned date-type results (only one field, for my purposes) to reflect a timezone of my choice.

sample query:
{
"from": "0",
"size": "1",
"time_zone" : "-04:00",
"sort": {
"date_added_utc": {
"order": "asc"
}
},
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"range": {
"date_added_utc": {
"gte": "2015-01-01",
"lte": "2016-03-31",
"time_zone": "-04:00"
}
}
}
]
}
}
}
}
}

1 Like