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

Deprecated DocIdSet#all #14289

Merged
merged 4 commits into from
Feb 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lucene/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ API Changes
* GITHUB#14282: Remove redundant field argument from the DocIdSetBuilder constructor that takes a
PointValues instance. (Luca Cavanna)

* GITHUB#14289: The unused public static DocIdSet#all method has been deprecated.
(Luca Cavanna)

New Features
---------------------

Expand Down
7 changes: 6 additions & 1 deletion lucene/core/src/java/org/apache/lucene/search/DocIdSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ public long ramBytesUsed() {
}
};

/** A {@code DocIdSet} that matches all doc ids up to a specified doc (exclusive). */
/**
* A {@code DocIdSet} that matches all doc ids up to a specified doc (exclusive).
*
* @deprecated no longer needed since Query and Filter were merged
*/
@Deprecated
public static DocIdSet all(int maxDoc) {
return new DocIdSet() {
@Override
Expand Down