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

Add the Total fields to the SearchResp struct #635

Closed
wants to merge 1 commit into from

Conversation

rjsadow
Copy link

@rjsadow rjsadow commented Oct 17, 2024

Description

The opensearch Search reference documentation give some information on the track_total_hits parameter but doesn't include the full response body when it's used. track_total_hits is useful when you're trying to get a count of all hits in a given index for a given query without using the scroll api or some other traching mechinism.

This PR adds the return values structure for the track_total_hits parameter into the SearchResp structure.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 15.48%. Comparing base (06a6dc8) to head (5580651).
Report is 75 commits behind head on main.

❗ There is a different number of reports uploaded between BASE (06a6dc8) and HEAD (5580651). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (06a6dc8) HEAD (5580651)
integration 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #635       +/-   ##
===========================================
- Coverage   57.29%   15.48%   -41.81%     
===========================================
  Files         315      316        +1     
  Lines        9823     7756     -2067     
===========================================
- Hits         5628     1201     -4427     
- Misses       2902     6473     +3571     
+ Partials     1293       82     -1211     
Flag Coverage Δ
integration ?
unit 15.48% <ø> (+2.63%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
opensearchapi/api_search.go 0.00% <ø> (-100.00%) ⬇️

... and 312 files with indirect coverage changes

Signed-off-by: rjsadow <richard.j.sadowski@gmail.com>
@rjsadow rjsadow closed this Oct 17, 2024
@dblock
Copy link
Member

dblock commented Oct 17, 2024

Did you mean to close this? Is this incorrect?

@rjsadow
Copy link
Author

rjsadow commented Oct 17, 2024

I did mean to close it. I was incorrect and the SDK already handles this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants