Interface BoostRule
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
CategoryBoostRule,GlobalBoostRule
- All Known Implementing Classes:
CategoryBoostRuleImpl,GlobalBoostRuleImpl
- Author:
- Nick Crum (ncrum)
-
Method Summary
Modifier and TypeMethodDescriptiongetBoost()This flag decides whether or not a RELATIVE/ORDINAL BoostRule boosts results by highest or lowest value Only set for BoostRuleType.RELATIVE/ORDINALgetId()org.broadleafcommerce.core.search.domain.IndexFieldTypeThis value is used by MATCHING_VALUE BoostRule to get the matching value for this SearchFieldType in the boost query.This returns the minimum possible score for this boost rule.getName()This returns the name that describes this rule.getType()This determines how we apply this BoostRule.booleanisActive()voidsetActiveEndDate(Date activeEndDate) voidsetActiveStartDate(Date activeStartDate) voidsetBoost(BigDecimal boost) voidsetDescending(Boolean descending) voidvoidsetIndexFieldType(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType) voidsetMatchValue(String matchValue) voidsetMinimumScore(BigDecimal minimumScore) voidvoidsetSearchTermQualifierRegex(String searchTermQualifierRegex) voidsetType(BoostRuleType type)
-
Method Details
-
getId
Long getId() -
setId
-
getBoost
BigDecimal getBoost() -
setBoost
-
getMinimumScore
BigDecimal getMinimumScore()This returns the minimum possible score for this boost rule. This ONLY applies to MATCHING, ORDINAL, and RELATIVE boost rule types. This wraps the value expression passed to the boost parameter in the Solr query with a max(). The result is that the value given to the boost parameter will never be less than this value.- Returns:
- the minimum value for this rule
-
setMinimumScore
-
getName
String getName()This returns the name that describes this rule.- Returns:
- a String name for this rule
-
setName
-
getIndexFieldType
org.broadleafcommerce.core.search.domain.IndexFieldType getIndexFieldType() -
setIndexFieldType
void setIndexFieldType(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType) -
getType
BoostRuleType getType()This determines how we apply this BoostRule. Defaults to SEARCH_QUERY- Returns:
- BoostRuleType of SEARCH_QUERY, MATCHING_VALUE, RELATIVE, or ORDINAL
-
setType
-
getMatchValue
String getMatchValue()This value is used by MATCHING_VALUE BoostRule to get the matching value for this SearchFieldType in the boost query. Only set for BoostRuleType.MATCHING_VALUE- Returns:
- the matchValue for this BoostRule
-
setMatchValue
-
getDescending
Boolean getDescending()This flag decides whether or not a RELATIVE/ORDINAL BoostRule boosts results by highest or lowest value Only set for BoostRuleType.RELATIVE/ORDINAL- Returns:
- whether this is descending or not, false by default
-
setDescending
-
getActiveStartDate
Date getActiveStartDate() -
setActiveStartDate
-
getActiveEndDate
Date getActiveEndDate() -
setActiveEndDate
-
isActive
boolean isActive() -
getSearchTermQualifierRegex
String getSearchTermQualifierRegex() -
setSearchTermQualifierRegex
-