Class GlobalBoostRuleImpl
java.lang.Object
com.broadleafcommerce.search.domain.GlobalBoostRuleImpl
- All Implemented Interfaces:
BoostRule,GlobalBoostRule,GlobalBoostRuleAdminPresentation,Serializable,org.broadleafcommerce.common.copy.MultiTenantCloneable<GlobalBoostRule>
@Entity
public class GlobalBoostRuleImpl
extends Object
implements GlobalBoostRule, GlobalBoostRuleAdminPresentation
- Author:
- Nick Crum (ncrum)
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.broadleafcommerce.search.domain.GlobalBoostRuleAdminPresentation
GlobalBoostRuleAdminPresentation.GroupName, GlobalBoostRuleAdminPresentation.GroupOrder, GlobalBoostRuleAdminPresentation.TabName, GlobalBoostRuleAdminPresentation.TabOrder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DateThe active end date.protected DateThe active start date.protected Booleanprotected BigDecimalprotected Booleanprotected Longprotected org.broadleafcommerce.core.search.domain.IndexFieldTypeprotected Stringprotected BigDecimalprotected Stringprotected Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<G extends GlobalBoostRule>
org.broadleafcommerce.common.copy.CreateResponse<G>createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) getBoost()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) voidsetApplyToCategory(Boolean applyToCategory) 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)
-
Field Details
-
id
-
name
-
indexFieldType
protected org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType -
activeStartDate
The active start date. -
activeEndDate
The active end date. -
type
-
boost
-
minimumScore
-
descending
-
matchValue
-
applyToCategory
-
searchTermQualifierRegex
-
-
Constructor Details
-
GlobalBoostRuleImpl
public GlobalBoostRuleImpl()
-
-
Method Details
-
getId
-
setId
-
getBoost
-
setBoost
-
getMinimumScore
Description copied from interface:BoostRuleThis 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.- Specified by:
getMinimumScorein interfaceBoostRule- Returns:
- the minimum value for this rule
-
setMinimumScore
- Specified by:
setMinimumScorein interfaceBoostRule
-
getName
Description copied from interface:BoostRuleThis returns the name that describes this rule. -
setName
-
getIndexFieldType
public org.broadleafcommerce.core.search.domain.IndexFieldType getIndexFieldType()- Specified by:
getIndexFieldTypein interfaceBoostRule
-
setIndexFieldType
public void setIndexFieldType(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType) - Specified by:
setIndexFieldTypein interfaceBoostRule
-
getType
Description copied from interface:BoostRuleThis determines how we apply this BoostRule. Defaults to SEARCH_QUERY -
setType
-
getMatchValue
Description copied from interface:BoostRuleThis 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- Specified by:
getMatchValuein interfaceBoostRule- Returns:
- the matchValue for this BoostRule
-
setMatchValue
- Specified by:
setMatchValuein interfaceBoostRule
-
getDescending
Description copied from interface:BoostRuleThis flag decides whether or not a RELATIVE/ORDINAL BoostRule boosts results by highest or lowest value Only set for BoostRuleType.RELATIVE/ORDINAL- Specified by:
getDescendingin interfaceBoostRule- Returns:
- whether this is descending or not, false by default
-
setDescending
- Specified by:
setDescendingin interfaceBoostRule
-
setApplyToCategory
- Specified by:
setApplyToCategoryin interfaceGlobalBoostRule
-
getApplyToCategory
- Specified by:
getApplyToCategoryin interfaceGlobalBoostRule
-
getActiveStartDate
- Specified by:
getActiveStartDatein interfaceBoostRule
-
setActiveStartDate
- Specified by:
setActiveStartDatein interfaceBoostRule
-
getActiveEndDate
- Specified by:
getActiveEndDatein interfaceBoostRule
-
setActiveEndDate
- Specified by:
setActiveEndDatein interfaceBoostRule
-
isActive
public boolean isActive() -
getSearchTermQualifierRegex
- Specified by:
getSearchTermQualifierRegexin interfaceBoostRule
-
setSearchTermQualifierRegex
- Specified by:
setSearchTermQualifierRegexin interfaceBoostRule
-
createOrRetrieveCopyInstance
public <G extends GlobalBoostRule> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) throws CloneNotSupportedException - Specified by:
createOrRetrieveCopyInstancein interfaceorg.broadleafcommerce.common.copy.MultiTenantCloneable<GlobalBoostRule>- Throws:
CloneNotSupportedException
-