Indices -> Connector -> Documents shows wrong number of documents
Bug Description
When you click into a connector with documents, it says "Showing 17 of 0. Search results maxed at 10,000 documents.
To Reproduce
Steps to reproduce the behavior:
- Create a 8.17.x deployment
- Create a connector
- Run a sync
- Click the Documents tab in the Connector
- The display text appears below the < > buttons
Expected behavior
The text should show some values for the total, even if it says "10,000"
Screenshots
Environment
- ES Version 8.17.0
To add onto this issue, when you click the ">" arrow above the "Showing x of 0." text, the UI under the search bar and index drop-down shows "No documents found for index":
good place to start in this thread
Confirming this is also present in 9.0
To add onto this issue, when you click the ">" arrow above the "Showing x of 0." text, the UI under the search bar and index drop-down shows "No documents found for index":
I think we don't handle "loading" state at all, if you want long enough stuff will show up
Confirmed that this issue has been resolved by elastic/kibana#219471 as prior to this PR, fetchSearchResults would always call search with track_total_hits: false, resulting in a hits.total.value of 0. This PR resolved the issue by passing in undefined which will use the default value of 10000 and return the correct total hit count. Closing this issue!