-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Maps] do not track total hits for elasticsearch search requests #91754
Conversation
Pinging @elastic/kibana-gis (Team:Geo) |
@thomasneirynck This PR is unblocked and is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice. Works really well with larger files, and especially since we know support those better with file-upload, it's a nice added bonus.
I would not skip the release note, and list this as an enhancement.
@elasticmachine merge upstream |
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2nd lgtm will hopefully unblock review-pending status
thx for this PR. With this a performance improvement for 10k doc-retrieval, we can consider re-introduce the clamped bbox for tiles with incomplete results again #90194 In tandem with the fix for cancelling request (#92069), and passing in metadata about counts and completeness as in this POC (#94811), Maps could greatly improve the end-user experience when working with vector tiles 🤞 |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
…stic#91754) * [Maps] do not track total hits for elasticsearch search requests * set track_total_hits for es_search_source tooltip fetch * tslint * searchSource doc updates, set track_total_hits in MVT requests * revert changes made to searchsourcefields docs * tslint * review feedback * tslint * remove Hits (Total) from functional tests * remove sleep in functional test * tslint * fix method name Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
) (#95455) * [Maps] do not track total hits for elasticsearch search requests * set track_total_hits for es_search_source tooltip fetch * tslint * searchSource doc updates, set track_total_hits in MVT requests * revert changes made to searchsourcefields docs * tslint * review feedback * tslint * remove Hits (Total) from functional tests * remove sleep in functional test * tslint * fix method name Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Maps application does not need accurate total hit counts when making _search requests. Not calculating total hit counts will provide a performance boost, https://www.elastic.co/blog/faster-retrieval-of-top-hits-in-elasticsearch-with-block-max-wand.
This PR updates _search requests to set
track_total_hits
to avoid requesting unneeded total hits precision.