Class SearchCacheProperties
java.lang.Object
com.broadleafcommerce.search.core.cache.SearchCacheProperties
@ConfigurationProperties("broadleaf.search.cache")
public class SearchCacheProperties
extends Object
Properties that influence cache settings for the search service
- Author:
- Jeff Fischer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintThe total heap budget in MB for all search caches.intThe total off-heap budget in MB for all search caches.intSize of the LRUMap cache to use to store Pattern instances for SearchRedirect regex.inthashCode()voidsetAccessPolicyByType(Duration accessPolicyByType) voidsetByIndexableType(Duration byIndexableType) voidsetBySearchRequest(Duration bySearchRequest) voidsetFacetByFieldDefinitionIds(Duration facetByFieldDefinitionIds) voidsetFacetByIds(Duration facetByIds) voidsetFacetGroupById(Duration facetGroupById) voidsetFacetGroupBySearchSettings(Duration facetGroupBySearchSettings) voidsetFacetsByFacetGroupId(Duration facetsByFacetGroupId) voidsetHeapBudget(int heapBudget) The total heap budget in MB for all search caches.voidsetLocalesByTenantId(Duration localesByTenantId) voidsetOffHeapBudget(int offHeapBudget) The total off-heap budget in MB for all search caches.voidsetPatternCacheSize(int patternCacheSize) Size of the LRUMap cache to use to store Pattern instances for SearchRedirect regex.voidsetRelevancyRuleByFieldDefinitionIds(Duration relevancyRuleByFieldDefinitionIds) voidsetRelevancyRuleByIds(Duration relevancyRuleByIds) voidsetRelevancyRuleGroupBySearchSettings(Duration relevancyRuleGroupBySearchSettings) voidsetRelevancyRulesByRelevancyRuleGroupId(Duration relevancyRulesByRelevancyRuleGroupId) voidsetSearchRecommendationByCustomerId(Duration searchRecommendationByCustomerId) voidsetSolrFieldCache(Duration solrFieldCache) voidsetSortByFieldDefinitionIds(Duration sortByFieldDefinitionIds) voidsetSortByIds(Duration sortByIds) voidsetSortGroupById(Duration sortGroupById) voidsetSortGroupBySearchSettings(Duration sortGroupBySearchSettings) voidsetSortsBySortGroupId(Duration sortsBySortGroupId) toString()
-
Field Details
-
DEFAULT_PATTERN_CACHE_SIZE
public static final int DEFAULT_PATTERN_CACHE_SIZE- See Also:
-
-
Constructor Details
-
SearchCacheProperties
public SearchCacheProperties()
-
-
Method Details
-
getHeapBudget
public int getHeapBudget()The total heap budget in MB for all search caches. -
getOffHeapBudget
public int getOffHeapBudget()The total off-heap budget in MB for all search caches. -
getByIndexableType
-
getBySearchRequest
-
getLocalesByTenantId
-
getSolrFieldCache
-
getFacetByFieldDefinitionIds
-
getFacetByIds
-
getSortByFieldDefinitionIds
-
getSortByIds
-
getRelevancyRuleByFieldDefinitionIds
-
getRelevancyRuleByIds
-
getFacetGroupById
-
getSortGroupById
-
getFacetsByFacetGroupId
-
getSortsBySortGroupId
-
getRelevancyRulesByRelevancyRuleGroupId
-
getFacetGroupBySearchSettings
-
getSortGroupBySearchSettings
-
getRelevancyRuleGroupBySearchSettings
-
getAccessPolicyByType
-
getSearchRecommendationByCustomerId
-
getPatternCacheSize
public int getPatternCacheSize()Size of the LRUMap cache to use to store Pattern instances for SearchRedirect regex. Default is 500. -
setHeapBudget
public void setHeapBudget(int heapBudget) The total heap budget in MB for all search caches. -
setOffHeapBudget
public void setOffHeapBudget(int offHeapBudget) The total off-heap budget in MB for all search caches. -
setByIndexableType
-
setBySearchRequest
-
setLocalesByTenantId
-
setSolrFieldCache
-
setFacetByFieldDefinitionIds
-
setFacetByIds
-
setSortByFieldDefinitionIds
-
setSortByIds
-
setRelevancyRuleByFieldDefinitionIds
-
setRelevancyRuleByIds
-
setFacetGroupById
-
setSortGroupById
-
setFacetsByFacetGroupId
-
setSortsBySortGroupId
-
setRelevancyRulesByRelevancyRuleGroupId
-
setFacetGroupBySearchSettings
-
setSortGroupBySearchSettings
-
setRelevancyRuleGroupBySearchSettings
-
setAccessPolicyByType
-
setSearchRecommendationByCustomerId
-
setPatternCacheSize
public void setPatternCacheSize(int patternCacheSize) Size of the LRUMap cache to use to store Pattern instances for SearchRedirect regex. Default is 500. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-