internetarchive / internetarchive/openlibrary

Language facet numbers are larger than they should be

Open
#7,275 0 comments 0 reactions 0 assignees View on GitHub
Lead: @cdrini Priority: 3 Theme: Search Type: Bug
Dominant language
Python
Stars
6.7k
Forks
2k
Avg merge
2d 19h
Merged PRs (30d)
138

Description

Should count using `_parent_` query. The numbers are based on edition-unaware queries, whereas the actual results are edition aware.

This is potentially quite difficult to fix.

Contributor guide

Open the contributing guide

Research direction

Locate the code that computes language facet counts and compare its edition-unaware query with the edition-aware result query. Start by investigating how the `_parent_` query is used, then verify that language facet numbers match the actual edition-aware results when the fix is complete.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.