Enum Boost.Operation
- java.lang.Object
-
- java.lang.Enum<Boost.Operation>
-
- co.elasticsearch.enterprisesearch.client.model.request.search.boost.Boost.Operation
-
- All Implemented Interfaces:
Serializable,Comparable<Boost.Operation>
- Enclosing interface:
- Boost
public static enum Boost.Operation extends Enum<Boost.Operation>
The boosting operations that are available
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Boost.OperationfindByValue(String value)Get an Operation by valueStringgetValue()static Boost.OperationvalueOf(String name)Returns the enum constant of this type with the specified name.static Boost.Operation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ADD
public static final Boost.Operation ADD
Add the calculated score
-
MULTIPLY
public static final Boost.Operation MULTIPLY
Multiply the calculated score
-
-
Method Detail
-
values
public static Boost.Operation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Boost.Operation c : Boost.Operation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Boost.Operation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
findByValue
public static Boost.Operation findByValue(String value)
Get an Operation by value- Parameters:
value- The value to lookup- Returns:
- The Value, otherwise it will throw an exception
-
getValue
public String getValue()
-
-