opensearch-java
opensearch-java copied to clipboard
DateHistogramValuesSourceBuilder - offset support
Is your feature request related to a problem? Please describe. Can't specify "offset" parameter for date_histogram with OpenSearch java client. Current offset parameter is used differently (rounding).
Describe the solution you'd like A way to specify offset.
Describe alternatives you've considered Replace current offset function usage or create new. - "dateHistogramOffset()"
Additional context Add any other context or screenshots about the feature request here.
In request json body, no way to set "offset" with java client.
{
"date_histogram":
{
"field": "timestamp",
"calendar_interval": "1w",
"offset": "-1d",
}
}
@muzehyun This looks to be java client related functionality gap. Can you create the issue in this repo please ?
I'm still using "rest-high-level" client here in this repo. No major update on rest-high-level-client? Should I move to new Java client?
@muzehyun Yes you should. Moving this issue into opensearch-java.
@muzehyun Want to try to use the latest version of the client? Does it work?