Skip to content

Allow serializing aggregation results without typed-keys prefix #306

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

Closed
swallez opened this issue Jun 5, 2022 · 0 comments · Fixed by #316
Closed

Allow serializing aggregation results without typed-keys prefix #306

swallez opened this issue Jun 5, 2022 · 0 comments · Fixed by #316
Labels
Category: Enhancement New feature or request

Comments

@swallez
Copy link
Member

swallez commented Jun 5, 2022

Description

The Java API client sends sends the typed_keys=true parameter in _search and similar endpoints to have type information in aggregation and suggestion result names (type#name and not just name).

Similarly, serializing back these objects uses this typed_keys notation. This is an issue when the Java API client is used as a search front-end to ES and results are serialized back go application clients, who may not expect nor understand the type#name format.

The Java API client JsonpMapper should have an option allowing to disable typed_keys notation when serializing objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant