Skip to content

search source overriding track_total_hits #91742

Closed

Description

To view problem, modify an existing use of searchSource with the following

  1. searchSource.setField('track_total_hits', 100);.
  2. Update searchSource.fetch to include the option legacyHitsTotal: false
  3. inspect the results of the search source. Notice that total does not reflect the provided track_total_hits and just returns results like track_total_hits: true was set.

cc @lukasolson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Feature:SearchQuerying infrastructure in KibanabugFixes for quality problems that affect the customer experience

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions