Enum Class DefaultRelevancyRuleTypes
java.lang.Object
java.lang.Enum<DefaultRelevancyRuleTypes>
com.broadleafcommerce.search.api.type.DefaultRelevancyRuleTypes
- All Implemented Interfaces:
Serializable
,Comparable<DefaultRelevancyRuleTypes>
,Constable
Defines the default relevancy rule types for
RelevancyRule
.- Since:
- Search Service 2.2.0, Release Train 2.2.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf the specified field should be boosted when matching the inputted query.If the given value for the specified field should boost the document.If the document should be boosted by the lexographical ordering of the field values.If the document should be boosted by the relative ordering of the field values. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isMatchingQuery
(String ruleType) static boolean
isMatchingValue
(String ruleType) static boolean
static boolean
isRelative
(String ruleType) static DefaultRelevancyRuleTypes
Returns the enum constant of this class with the specified name.static DefaultRelevancyRuleTypes[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MATCHING_QUERY
If the specified field should be boosted when matching the inputted query. -
MATCHING_VALUE
If the given value for the specified field should boost the document. -
RELATIVE
If the document should be boosted by the relative ordering of the field values. -
ORDINAL
If the document should be boosted by the lexographical ordering of the field values.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
isMatchingQuery
-
isMatchingValue
-
isRelative
-
isOrdinal
-