Interface EnterpriseSearchBoostRuleDao
- All Known Implementing Classes:
EnterpriseSearchBoostRuleDaoImpl
public interface EnterpriseSearchBoostRuleDao
- Author:
- Nick Crum (ncrum)
-
Method Summary
Modifier and TypeMethodDescriptionfindCategoryBoostRule(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType, BoostRuleType boostRuleType) Finds and returns only a single CategoryBoostRule for the parametersfindCategoryBoostRules(List<Long> categoryIds, BoostRuleType boostRuleType) findGlobalBoostRule(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType, BoostRuleType boostRuleType) Finds and returns only a single GlobalBoostRule for the parametersfindGlobalBoostRules(BoostRuleType boostRuleType) Finds and returns the GlobalBoostRule's for the given IndexFieldType and BoostRuleTypeReturns the number of milliseconds that the current date/time will be cached for queries before refreshing.voidsetCurrentDateResolution(Long currentDateResolution) Sets the number of milliseconds that the current date/time will be cached for queries before refreshing.
-
Method Details
-
findGlobalBoostRule
GlobalBoostRule findGlobalBoostRule(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType, BoostRuleType boostRuleType) Finds and returns only a single GlobalBoostRule for the parameters- Parameters:
indexFieldType- the IndexFieldType to matchboostRuleType- the BoostRuleType to match- Returns:
- a GlobalBoostRule, if one exists
-
findCategoryBoostRules
-
findGlobalBoostRules
Finds and returns the GlobalBoostRule's for the given IndexFieldType and BoostRuleType- Parameters:
boostRuleType- the BoostRuleType to match- Returns:
- list of GlobalBoostRule's
-
findCategoryBoostRule
CategoryBoostRule findCategoryBoostRule(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType, BoostRuleType boostRuleType) Finds and returns only a single CategoryBoostRule for the parameters- Parameters:
indexFieldType- the IndexFieldType to matchboostRuleType- the boostRuleType to match- Returns:
- a CategoryBoostRule, if one exists
-
getCurrentDateResolution
Long getCurrentDateResolution()Returns the number of milliseconds that the current date/time will be cached for queries before refreshing. This aids in query caching, otherwise every query that utilized current date would be different and caching would be ineffective.- Returns:
- the milliseconds to cache the current date/time
-
setCurrentDateResolution
Sets the number of milliseconds that the current date/time will be cached for queries before refreshing. This aids in query caching, otherwise every query that utilized current date would be different and caching would be ineffective.- Parameters:
currentDateResolution- the milliseconds to cache the current date/time
-