Skip to content

Commit

Permalink
Remove outdated comment in Scorer (#12494)
Browse files Browse the repository at this point in the history
we should delete this comment since this constructor parameters already removed from LUCENE-2876 , it's description of 'given Similarity' is a lit bit confuse to reader.

Scorer always provide non-negative
  • Loading branch information
LuXugang committed Aug 16, 2023
1 parent 14e0947 commit e850883
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lucene/core/src/java/org/apache/lucene/search/Scorer.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@
* Expert: Common scoring functionality for different types of queries.
*
* <p>A <code>Scorer</code> exposes an {@link #iterator()} over documents matching a query in
* increasing order of doc Id.
*
* <p>Document scores are computed using a given <code>Similarity</code> implementation.
*
* <p><b>NOTE</b>: The values Float.Nan, Float.NEGATIVE_INFINITY and Float.POSITIVE_INFINITY are not
* valid scores. Certain collectors (eg {@link TopScoreDocCollector}) will not properly collect hits
* with these scores.
* increasing order of doc id.
*/
public abstract class Scorer extends Scorable {

Expand Down

0 comments on commit e850883

Please sign in to comment.