-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract hits either as number or structured object
With this commit we add the ability to extract metadata about the hit count of a search request regardless whether Elasticsearch returns it as a number (as in versions before 7.0) or as a structured object (as of 7.0). We also introduce a new metadata field `hits_relation` which indicates whether the hit count by Elasticsearch is accurate or an indication of a lower bound. Relates elastic/elasticsearch#35849 Relates #612 Closes #611
- Loading branch information
1 parent
ddc1e7a
commit abf1623
Showing
2 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters