Java org.apache.lucene.search.similarities BM25Similarity fields, constructors, methods, implement or subclass

Example usage for Java org.apache.lucene.search.similarities BM25Similarity fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.lucene.search.similarities BM25Similarity.

The text is from its open source code.

Subclass

org.apache.lucene.search.similarities.BM25Similarity has subclasses.
Click this link to see all its subclasses.

Constructor

BM25Similarity()
BM25 with these default values:
  • k1 = 1.2
  • b = 0.75
BM25Similarity(float k1, float b)
BM25 with the supplied parameter values.

Method

longcomputeNorm(FieldInvertState state)
floatgetB()
Returns the b parameter
booleangetDiscountOverlaps()
Returns true if overlap tokens are discounted from the document's length.
floatgetK1()
Returns the k1 parameter
voidsetDiscountOverlaps(boolean v)
Sets whether overlap tokens (Tokens with 0 position increment) are ignored when computing norm.