public enum CombineFunction extends Enum<CombineFunction>
Modifier and Type | Method and Description |
---|---|
abstract float |
combine(double queryScore,
double funcScore,
double maxBoost) |
abstract org.apache.lucene.search.Explanation |
explain(org.apache.lucene.search.Explanation queryExpl,
org.apache.lucene.search.Explanation funcExpl,
float maxBoost) |
abstract String |
getName() |
static float |
toFloat(double input) |
static CombineFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CombineFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CombineFunction MULT
public static final CombineFunction REPLACE
public static final CombineFunction SUM
public static final CombineFunction AVG
public static final CombineFunction MIN
public static final CombineFunction MAX
public static CombineFunction[] values()
for (CombineFunction c : CombineFunction.values()) System.out.println(c);
public static CombineFunction valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract float combine(double queryScore, double funcScore, double maxBoost)
public abstract String getName()
public static float toFloat(double input)
public abstract org.apache.lucene.search.Explanation explain(org.apache.lucene.search.Explanation queryExpl, org.apache.lucene.search.Explanation funcExpl, float maxBoost)
Copyright © 2009–2016. All rights reserved.