public static class BM25FQuery.Builder extends Object
BM25FQuery
.Constructor and Description |
---|
Builder()
Default builder.
|
Builder(float k1,
float b)
Builder with the supplied parameter values.
|
Modifier and Type | Method and Description |
---|---|
BM25FQuery.Builder |
addField(String field)
Adds a field to this builder.
|
BM25FQuery.Builder |
addField(String field,
float weight)
Adds a field to this builder.
|
BM25FQuery.Builder |
addTerm(BytesRef term)
Adds a term to this builder.
|
BM25FQuery |
build()
Builds the
BM25FQuery . |
public Builder()
public Builder(float k1, float b)
k1
- Controls non-linear term frequency normalization (saturation).b
- Controls to what degree document length normalizes tf values.public BM25FQuery.Builder addField(String field)
field
- The field name.public BM25FQuery.Builder addField(String field, float weight)
field
- The field name.weight
- The weight associated to this field.public BM25FQuery.Builder addTerm(BytesRef term)
public BM25FQuery build()
BM25FQuery
.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.