Interface EnterpriseSearchBoostRuleDao

All Known Implementing Classes:
EnterpriseSearchBoostRuleDaoImpl

public interface EnterpriseSearchBoostRuleDao
Author:
Nick Crum (ncrum)
  • 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 match
      boostRuleType - the BoostRuleType to match
      Returns:
      a GlobalBoostRule, if one exists
    • findCategoryBoostRules

      List<CategoryBoostRule> findCategoryBoostRules(List<Long> categoryIds, BoostRuleType boostRuleType)
    • findGlobalBoostRules

      List<GlobalBoostRule> findGlobalBoostRules(BoostRuleType boostRuleType)
      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 match
      boostRuleType - 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

      void setCurrentDateResolution(Long currentDateResolution)
      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