Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateHistogramValuesSourceBuilder - offset support #732

Open
muzehyun opened this issue Oct 31, 2023 · 4 comments
Open

DateHistogramValuesSourceBuilder - offset support #732

muzehyun opened this issue Oct 31, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@muzehyun
Copy link

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 muzehyun added enhancement New feature or request untriaged labels Oct 31, 2023
@sohami
Copy link

sohami commented Nov 3, 2023

@muzehyun This looks to be java client related functionality gap. Can you create the issue in this repo please ?

@muzehyun
Copy link
Author

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?

@dblock
Copy link
Member

dblock commented Nov 16, 2023

@muzehyun Yes you should. Moving this issue into opensearch-java.

@dblock dblock transferred this issue from opensearch-project/OpenSearch Nov 16, 2023
@dblock
Copy link
Member

dblock commented Dec 4, 2023

@muzehyun Want to try to use the latest version of the client? Does it work?

@dblock dblock removed the untriaged label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants