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

Result count does not always match actual results #3517

Open
DarshitRajyaguru opened this issue Dec 12, 2023 · 2 comments
Open

Result count does not always match actual results #3517

DarshitRajyaguru opened this issue Dec 12, 2023 · 2 comments
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: api Related to the Django API

Comments

@DarshitRajyaguru
Copy link

I have Searched for "57854" and it shown the total number of results count is higher than existing all file like image, audio etc.
Also I have Tried with random numbers for test more as found same issues.

Steps:

  1. Search for the random numbers.(As per my result "57854")
  2. Total number of results count showing into the search bar
  3. Total number of results getting on screen with image, audio or all Content is lower than "Total number of count" showing in "search bar"

As per my search results Shown total count of results is 24 results but the actual results on media is 21.

Screenshot: https://prnt.sc/PlKHWaHzABIl

@DarshitRajyaguru DarshitRajyaguru added 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work 🛠 goal: fix Bug fix labels Dec 12, 2023
@AetherUnbound AetherUnbound changed the title "57854" search with given digits and in the search bar show the total number of results higher than total existing results Dec 12, 2023
@AetherUnbound AetherUnbound added 🟨 priority: medium Not blocking but should be addressed soon 💻 aspect: code Concerns the software code in the repository 🧱 stack: api Related to the Django API and removed 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work labels Dec 12, 2023
@AetherUnbound
Copy link
Contributor

Thanks for submitting this issue @DarshitRajyaguru! I was able to confirm that our API is returning an inaccurate result count from https://api.openverse.engineering/v1/images/?q=57854 (the API is returning a result_count of 24 but even including page 2 there are only 21 items). I believe this is related to #3066 and the process we use to filter dead links out of results. @obulat do you have any insight on this?

@DarshitRajyaguru
Copy link
Author

Thanks @AetherUnbound! As you mentioned issue #3066 is a similar kind of issue with this. It's mainly related to the total result_count showing the 3 items more than the available results for the searched item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟨 priority: medium Not blocking but should be addressed soon 🧱 stack: api Related to the Django API
2 participants