Class BoostRuleType
java.lang.Object
com.broadleafcommerce.search.domain.BoostRuleType
- All Implemented Interfaces:
Serializable,Comparable<BoostRuleType>,org.broadleafcommerce.common.BroadleafEnumerationType
public class BoostRuleType
extends Object
implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType, Comparable<BoostRuleType>
An enumeration used for specifying the type of BoostRule
- Author:
- Nick Crum (ncrum)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BoostRuleTypestatic final BoostRuleTypestatic final BoostRuleTypestatic final BoostRuleTypeSEARCH_QUERY describes a rule that boosts queries on a keyword search MATCHING_VALUE describes a rule that boosts documents that match a value for a certain field RELATIVE describes a rule that boosts a document based on the numeric, relative value of a certain field ORDINAL describes a rule that boosts a document based on the ordinal value of a certain field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanstatic BoostRuleTypegetInstance(String type) intgetOrder()getType()inthashCode()voidsetOrder(int order) protected void
-
Field Details
-
SEARCH_QUERY
SEARCH_QUERY describes a rule that boosts queries on a keyword search MATCHING_VALUE describes a rule that boosts documents that match a value for a certain field RELATIVE describes a rule that boosts a document based on the numeric, relative value of a certain field ORDINAL describes a rule that boosts a document based on the ordinal value of a certain field -
MATCHING_VALUE
-
RELATIVE
-
ORDINAL
-
-
Constructor Details
-
BoostRuleType
public BoostRuleType() -
BoostRuleType
-
-
Method Details
-
getInstance
-
getType
- Specified by:
getTypein interfaceorg.broadleafcommerce.common.BroadleafEnumerationType
-
getFriendlyType
- Specified by:
getFriendlyTypein interfaceorg.broadleafcommerce.common.BroadleafEnumerationType
-
setType
-
getOrder
public int getOrder() -
setOrder
public void setOrder(int order) -
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<BoostRuleType>
-