mirror of https://github.com/apache/lucene.git
LUCENE-8591: add LegacyBM25Similarity#getDiscountOverlaps
Signed-off-by: Adrien Grand <jpountz@gmail.com>
This commit is contained in:
parent
f0db05b37e
commit
b24af10d59
|
@ -89,6 +89,14 @@ public final class LegacyBM25Similarity extends Similarity {
|
|||
bm25Similarity.setDiscountOverlaps(v);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if overlap tokens are discounted from the document's length.
|
||||
* @see #setDiscountOverlaps
|
||||
*/
|
||||
public boolean getDiscountOverlaps() {
|
||||
return bm25Similarity.getDiscountOverlaps();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return bm25Similarity.toString();
|
||||
|
|
Loading…
Reference in New Issue