apache / apache/lucene

Remove one of SparseFixedBitSet/DocIdSetBuilder.Buffer [LUCENE-10443]

Open
#11,479 1 comment 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major type:bug
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

SparseFixedBItSet is no longer used by DocIdSetBuilder, but the class didn't get cleaned up and removed.

We only need one sparse representation and don't need to just litter up the codebase with unnecessary classes.

---
Migrated from [LUCENE-10443](https://issues.apache.org/jira/browse/LUCENE-10443) by Robert Muir (@rmuir)

Contributor guide

Open the contributing guide

Research direction

Compare usages of SparseFixedBitSet and DocIdSetBuilder.Buffer to determine which sparse representation is no longer needed, then inspect the related tests and build checks. Done means the unused class is removed without breaking Lucene's tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
search
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 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.