public class DefaultBoostFacade extends Object implements BoostFacade
BoostFacade.| Constructor and Description |
|---|
DefaultBoostFacade() |
| Modifier and Type | Method and Description |
|---|---|
BoostRuleData |
createBoostRule(String categoryCode,
BoostRuleData boostRuleData)
Creates a new boost rule for a given category and propertyName.
|
String |
getBoostProfileCategoryId(String categoryId)
Returns the search profile category id for a given category id.
|
String |
getBoostProfileCategoryName(String categoryId)
Returns the search profile category name for a given category id.
|
Collection<BoostRuleData> |
getBoostRules(String categoryId)
Returns all boost rule settings for a given category.
|
protected CategoryModel |
getCategoryModel(String categoryId) |
CategoryService |
getCategoryService() |
protected FacetSearchConfig |
getFacetSearchConfig() |
protected IndexedType |
getIndexedType(FacetSearchConfig config) |
SearchProfileData |
getSearchProfileData(String categoryId)
Returns search profile data for a given category.
|
void |
setBoostConverter(Converter<SolrBoostRuleModel,BoostRuleData> boostConverter) |
void |
setBoostService(BoostService boostService) |
void |
setCategoryService(CategoryService categoryService) |
void |
setFacetSearchConfigService(FacetSearchConfigService facetSearchConfigService) |
void |
setSolrFacetSearchConfigSelectionStrategy(SolrFacetSearchConfigSelectionStrategy solrFacetSearchConfigSelectionStrategy) |
public Collection<BoostRuleData> getBoostRules(String categoryId)
BoostFacadegetBoostRules in interface BoostFacadecategoryId - The category code (leave null to retrieve global boosts)BoostRuleData or an empty collection if no BoostRuleData exists for that
categorypublic String getBoostProfileCategoryId(String categoryId)
BoostFacadegetBoostProfileCategoryId in interface BoostFacadecategoryId - The category codepublic String getBoostProfileCategoryName(String categoryId)
BoostFacadegetBoostProfileCategoryName in interface BoostFacadecategoryId - The category codepublic BoostRuleData createBoostRule(String categoryCode, BoostRuleData boostRuleData)
BoostFacadecreateBoostRule in interface BoostFacadecategoryCode - Category code for which the boost rule should be created.
The new boost rule will be assigned to the relevant search profile. If categoryCode is null then the new boost rule
will be assigned to the global search profile.boostRuleData - BoostRuleData contains information's like operatorType, boostFactor, propertyName and propertyValue
which are used to create a new boost rulepublic SearchProfileData getSearchProfileData(String categoryId)
BoostFacadegetSearchProfileData in interface BoostFacadecategoryId - The category code the profile of which is being looked for.protected FacetSearchConfig getFacetSearchConfig() throws FacetConfigServiceException, NoValidSolrConfigException
FacetConfigServiceExceptionNoValidSolrConfigExceptionprotected CategoryModel getCategoryModel(String categoryId)
protected IndexedType getIndexedType(FacetSearchConfig config)
public void setBoostService(BoostService boostService)
public CategoryService getCategoryService()
public void setCategoryService(CategoryService categoryService)
public void setSolrFacetSearchConfigSelectionStrategy(SolrFacetSearchConfigSelectionStrategy solrFacetSearchConfigSelectionStrategy)
public void setFacetSearchConfigService(FacetSearchConfigService facetSearchConfigService)
public void setBoostConverter(Converter<SolrBoostRuleModel,BoostRuleData> boostConverter)
Copyright © 2017 SAP SE. All Rights Reserved.