Skip to content

Optional fields in term vector res #2724

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

Merged
merged 1 commit into from
Jul 16, 2024
Merged

Optional fields in term vector res #2724

merged 1 commit into from
Jul 16, 2024

Conversation

l-trotta
Copy link
Contributor

(MtermVector and TermVector have the same response class in the server code, in the spec we have them separate because of json formatting I think)

reported in java client issue 838:
field_statistics is not present in response if specified so in request (setting field_statistics as false). server code logic seems to be that if field_statistics wasn't requested, then doc_count will be set as -1, which will omit building the field in the response.

reported in java client issue 839
id is not present in the response if the request was made with an artificial document. server code

Copy link
Contributor

Following you can find the validation results for the APIs you have changed.

API Status Request Response
mtermvectors 🟢 10/10 10/10
termvectors 🟢 7/7 7/7

You can validate these APIs yourself by using the make validate target.

@l-trotta l-trotta merged commit 5615a46 into main Jul 16, 2024
7 checks passed
@l-trotta l-trotta deleted the mterm-wrong branch July 16, 2024 16:19
github-actions bot pushed a commit that referenced this pull request Jul 16, 2024
l-trotta added a commit that referenced this pull request Jul 16, 2024
(cherry picked from commit 5615a46)

Co-authored-by: Laura Trotta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants