public enum QueryRescoreMode extends java.lang.Enum<QueryRescoreMode> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Modifier and Type | Method and Description |
---|---|
abstract float |
combine(float primary,
float secondary) |
static QueryRescoreMode |
fromString(java.lang.String scoreMode) |
static QueryRescoreMode |
readFromStream(StreamInput in) |
java.lang.String |
toString() |
static QueryRescoreMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static QueryRescoreMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final QueryRescoreMode Avg
public static final QueryRescoreMode Max
public static final QueryRescoreMode Min
public static final QueryRescoreMode Total
public static final QueryRescoreMode Multiply
public static QueryRescoreMode[] values()
for (QueryRescoreMode c : QueryRescoreMode.values()) System.out.println(c);
public static QueryRescoreMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract float combine(float primary, float secondary)
public static QueryRescoreMode readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public static QueryRescoreMode fromString(java.lang.String scoreMode)
public java.lang.String toString()
toString
in class java.lang.Enum<QueryRescoreMode>