-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Remove Scorer#getWeight. #13410
Comments
@jpountz what would be the alternative to |
+1 I'd also look at removing Scorable.getChildren() which we use in a few tests in tandem with getWeight(). We now have several composite scorer implementations that don't advance all subscorers for performance reasons, and we also have QueryVisitor and Matches APIs for getting information about sub-queries, so I don't think this API is very useful anymore. |
@navneet1v Since a |
If Caller requires Weight then they have to keep track of Weight with which Scorer was created in the first place instead of relying on Scorer. Closes #13410
Description
I've been working on some refactorings recently, and the fact that
Scorer
has agetWeight
method is very annoying as it requires every simpleScorer
implementation, e.g. for testing purposes, to also be able to return itsWeight
.This method doesn't have strong use-cases, so I suggest that we remove it for 10.0.
The text was updated successfully, but these errors were encountered: