public class NumericBoost
extends java.lang.Object
A numeric boost specifies a field to match in a search and a weight
to apply to that field. The position of records in the page of results
is adjusted by the value of the field multiplied by the weight.
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_STRENGTH |
| Constructor and Description |
|---|
NumericBoost() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
double |
getStrength() |
boolean |
isInverted() |
NumericBoost |
setInverted(boolean inverted)
Set whether the numeric boost is inverted
|
NumericBoost |
setName(java.lang.String name)
Set the name of the field to boost on
|
NumericBoost |
setStrength(double strength)
Set the weight of the numeric boost
|
public static final double DEFAULT_STRENGTH
public java.lang.String getName()
public NumericBoost setName(java.lang.String name)
Set the name of the field to boost on
name - The name of the field to boost onpublic boolean isInverted()
public NumericBoost setInverted(boolean inverted)
Set whether the numeric boost is inverted
inverted - if true, the numeric boost will be invertedpublic double getStrength()
public NumericBoost setStrength(double strength)
Set the weight of the numeric boost
strength - The weight of the numeric boostCopyright © 2013–2018 GroupBy Inc.. All rights reserved.