connectors icon indicating copy to clipboard operation
connectors copied to clipboard

Indices -> Connector -> Documents shows wrong number of documents

Open erikcurrin-elastic opened this issue 1 year ago • 4 comments

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:

  1. Create a 8.17.x deployment
  2. Create a connector
  3. Run a sync
  4. Click the Documents tab in the Connector
  5. 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

Image

Environment

  • ES Version 8.17.0

erikcurrin-elastic avatar Dec 06 '24 20:12 erikcurrin-elastic

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":

Image

mattnowzari avatar Feb 04 '25 19:02 mattnowzari

good place to start in this thread

meghanmurphy1 avatar Feb 04 '25 19:02 meghanmurphy1

Confirming this is also present in 9.0

jedrazb avatar Feb 05 '25 13:02 jedrazb

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

jedrazb avatar Feb 05 '25 13:02 jedrazb

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!

dennis-tismenko avatar Jun 04 '25 16:06 dennis-tismenko