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

Allow setting TrackTotalHits to both boolean and integer values #121

Merged
merged 3 commits into from
Jan 30, 2023

Conversation

Xtansia
Copy link
Collaborator

@Xtansia Xtansia commented Nov 24, 2022

Description

Allow setting TrackTotalHits to both boolean and integer values.

Issues Resolved

Fixes #119

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.

Signed-off-by: Thomas Farr <tsfarr@amazon.com>
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
Yury-Fridlyand
Yury-Fridlyand previously approved these changes Nov 25, 2022
Copy link
Collaborator

@Yury-Fridlyand Yury-Fridlyand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any other parameter in any other API which could be set as bool or as int by OpenSearch?

@Xtansia
Copy link
Collaborator Author

Xtansia commented Nov 27, 2022

Are there any other parameter in any other API which could be set as bool or as int by OpenSearch?

A quick grep of the API docs suggests track_total_hits is the only one.

VachaShah
VachaShah previously approved these changes Jan 30, 2023
@dblock
Copy link
Member

dblock commented Jan 30, 2023

Union types in .NET was an interesting read: dotnet/csharplang#399

@dblock dblock merged commit 390e841 into opensearch-project:main Jan 30, 2023
@Xtansia Xtansia deleted the feat/numeric-track-total-hits branch January 30, 2023 21:29
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.

[BUG] TrackTotalHits does not allow integer input
4 participants