public class BoostRuleType extends Object implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType, Comparable<BoostRuleType>
| Modifier and Type | Field and Description |
|---|---|
static BoostRuleType |
MATCHING_VALUE |
static BoostRuleType |
ORDINAL |
static BoostRuleType |
RELATIVE |
static BoostRuleType |
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
|
| Constructor and Description |
|---|
BoostRuleType() |
BoostRuleType(String type,
String friendlyType,
int order) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BoostRuleType o) |
boolean |
equals(Object obj) |
String |
getFriendlyType() |
static BoostRuleType |
getInstance(String type) |
int |
getOrder() |
String |
getType() |
int |
hashCode() |
void |
setOrder(int order) |
public static final BoostRuleType SEARCH_QUERY
public static final BoostRuleType MATCHING_VALUE
public static final BoostRuleType RELATIVE
public static final BoostRuleType ORDINAL
public static BoostRuleType getInstance(String type)
public String getType()
getType in interface org.broadleafcommerce.common.BroadleafEnumerationTypepublic String getFriendlyType()
getFriendlyType in interface org.broadleafcommerce.common.BroadleafEnumerationTypepublic int getOrder()
public void setOrder(int order)
public int compareTo(BoostRuleType o)
compareTo in interface Comparable<BoostRuleType>Copyright © 2020. All rights reserved.