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

[BUG] TermvectorsResponse doesn't handle optional elements #639

Closed
MikePieperSer opened this issue Sep 27, 2023 · 1 comment
Closed

[BUG] TermvectorsResponse doesn't handle optional elements #639

MikePieperSer opened this issue Sep 27, 2023 · 1 comment
Labels
bug Something isn't working untriaged

Comments

@MikePieperSer
Copy link
Contributor

What is the bug?

The termvectors API allows to switch of many fields in the response, like "field_statistics" or "term_statistics" and many others.
But the parser in the client still assumes that all fields are available, which leads to runtime errors.

How can one reproduce the bug?

Make a _termvectors call with the java-client.

What is the expected behavior?

No error should appear and the optional fields shall be null.

What is your host/environment?

Linux

Do you have any screenshots?

no

Do you have any additional context?

no

@VachaShah
Copy link
Collaborator

Done via #642

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

2 participants