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

Extract hits either as number or structured object #612

Merged
merged 1 commit into from
Dec 3, 2018

Conversation

danielmitterdorfer
Copy link
Member

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 (versions before ES 7.0) or as a structured object (as of ES
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
Closes #611

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
Closes elastic#611
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc. labels Nov 30, 2018
@danielmitterdorfer danielmitterdorfer added this to the 1.0.3 milestone Nov 30, 2018
@ebadyano
Copy link
Contributor

ebadyano commented Dec 3, 2018

lgtm

Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

LGTM from me too.

@danielmitterdorfer danielmitterdorfer merged commit abf1623 into elastic:master Dec 3, 2018
@danielmitterdorfer
Copy link
Member Author

Thank you both! I just merged it. :)

@danielmitterdorfer danielmitterdorfer deleted the total-hits branch December 3, 2018 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants