Skip to content

CCET-768: add track total hits to os-query lib#15

Merged
mikesmitharoo merged 1 commit intomainfrom
CCET-768/add-track-total-hits
Jul 3, 2025
Merged

CCET-768: add track total hits to os-query lib#15
mikesmitharoo merged 1 commit intomainfrom
CCET-768/add-track-total-hits

Conversation

@mikesmitharoo
Copy link

No description provided.

Copilot AI review requested due to automatic review settings July 2, 2025 17:36
@mikesmitharoo mikesmitharoo requested a review from a team as a code owner July 2, 2025 17:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for the track_total_hits option on search requests, exposing it through the client API and updating tests.

  • Introduces a new TrackTotalHits method and request field
  • Modifies request serialization to include "track_total_hits"
  • Updates existing tests to verify the new field

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
search.go Added trackTotalHits field, method, and mapping
search_test.go Extended tests to cover TrackTotalHits(true) usage
Comments suppressed due to low confidence (1)

search.go:88

  • Fix grammatical number agreement: change "Supported values is" to "Supported values are".
// TrackTotalHits sets whether the search should count the total number of hits past the limit. Supported values is a number [range] or a bool

@mikesmitharoo mikesmitharoo force-pushed the CCET-768/add-track-total-hits branch from d408b25 to db159de Compare July 2, 2025 17:41
@mikesmitharoo mikesmitharoo force-pushed the CCET-768/add-track-total-hits branch from db159de to 8386883 Compare July 3, 2025 11:39
@mikesmitharoo mikesmitharoo merged commit d6b6e3b into main Jul 3, 2025
4 checks passed
@mikesmitharoo mikesmitharoo deleted the CCET-768/add-track-total-hits branch July 3, 2025 12:44
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