Skip to content

Search Result Count Mismatch in Openverse #5389

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

Open
utsavtilava opened this issue Mar 19, 2025 · 2 comments · May be fixed by #5428
Open

Search Result Count Mismatch in Openverse #5389

utsavtilava opened this issue Mar 19, 2025 · 2 comments · May be fixed by #5428
Labels
🛠 goal: fix Bug fix 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work

Comments

@utsavtilava
Copy link

Description

First, when I opened the website https://openverse.org/ and searched for "test," I found a total of 146 results.

However, after loading all images and audio, I counted only 115 results. This means the search bar result count is incorrect. I also manually counted all <li> elements.

Can you please check this issue?

Reproduction

  1. Open the website https://openverse.org/.
  2. Search for the keyword "test" in the search bar.
  3. Observe that the total result count displayed is 146.
  4. Scroll down and load all images and audio files.
  5. Manually count all loaded items (e.g., using the browser's inspect tool or counting <li> elements).
  6. Notice that the actual count is 115, which is different from the displayed count.
  7. See Error: The search result count displayed in the search bar does not match the actual number of loaded items.

Video URL

https://www.awesomescreenshot.com/video/37783987?key=37e58b75433df2d6001f96128504fe85

Environment

  • Device: Desktop
  • OS: window 11
  • Browser: Firefox
  • Version: 136.0.1 (64-bit)
  • Other info: Internet speed( Download Mbps 180.86 | Upload Mbps 192.19 )

Let me know still if you have any question or query.

@utsavtilava utsavtilava added 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work 🛠 goal: fix Bug fix labels Mar 19, 2025
@openverse-bot openverse-bot moved this to 📋 Backlog in Openverse Backlog Mar 19, 2025
@SirLouen
Copy link

SirLouen commented May 26, 2025

✅ I can reproduce this issue

Tested with query 100 monkeys with CC-BY-SA filter
https://openverse.org/search?q=100+monkeys&license=by-sa

136 results
Image

But I can only count 132. I'm going to review the code to see what's going on.

@SirLouen
Copy link

I have created a little script to test this issue:
https://gist.github.com/SirLouen/9d2e1fa0f3f9da3219df2ef0c5a28737
With my example

Number of images found: 136
Page 1: Found 20 images (Total so far: 20)
Page 2: Found 20 images (Total so far: 40)
Page 3: Found 20 images (Total so far: 60)
Page 4: Found 20 images (Total so far: 80)
Page 5: Found 20 images (Total so far: 100)
Page 6: Found 20 images (Total so far: 120)
Page 7: Found 12 images (Total so far: 132)
Total number of images REALLY found: 132

@SirLouen SirLouen linked a pull request May 26, 2025 that will close this issue
@openverse-bot openverse-bot moved this from 📋 Backlog to 🏗 In Progress in Openverse Backlog May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🛠 goal: fix Bug fix 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work
Projects
Status: 🏗 In Progress
Development

Successfully merging a pull request may close this issue.

2 participants