public class DefaultCategorySearchProfileService extends Object implements CategorySearchProfileService
CategorySearchProfileService.| Constructor and Description |
|---|
DefaultCategorySearchProfileService() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<String> |
convertIntoCategoryCodes(List<CategoryModel> categories) |
CategorySolrSearchProfileModel |
createSolrSearchProfile(String categoryCode,
SolrIndexedTypeModel solrIndexedTypeModel)
This method returns a new category solr search profile based on given category code and solr indexed type.
|
CategorySolrSearchProfileModel |
getCategorySolrSearchProfile(String categoryCode,
SolrIndexedTypeModel solrIndexedTypeModel)
This method returns the exact solr search profile based on given category code and indexed type.
|
AbstractSolrSearchProfileModel |
getEffectiveSolrFacetReconfigSearchProfile(CategoryModel categoryModel,
SolrIndexedTypeModel solrIndexedTypeModel)
This method returns the effective solr search profile which contains facet reconfigurations.
|
AbstractSolrSearchProfileModel |
getFacetSearchProfileForCategoryAndIndexedType(IndexedType indexedType,
CategoryModel categoryModel,
FacetSearchConfig facetSearchConfig)
Returns the nearest match search profile that contains facet reconfiguration rules.
|
protected GlobalSolrSearchProfileModel |
getGlobalSolrSearchProfileForIndexedType(IndexedType indexedType,
FacetSearchConfig facetSearchConfig) |
protected GlobalSolrSearchProfileModel |
getGlobalSolrSearchProfileModel(SolrIndexedTypeModel solrIndexedTypeModel) |
protected SolrIndexedTypeModel |
getIndexedTypeModel(IndexedType indexedType,
FacetSearchConfig facetSearchConfig) |
void |
setCategorySearchProfileMatchStrategy(CategorySolrSearchProfileMatchStrategy categorySearchProfileMatchStrategy) |
void |
setCommerceCategoryService(CommerceCategoryService commerceCategoryService) |
void |
setFacetSearchConfigDao(FacetSearchConfigDao facetSearchConfigDao) |
void |
setModelService(ModelService modelService) |
void |
setSearchProfileDao(SearchProfileDao searchProfileDao) |
public AbstractSolrSearchProfileModel getEffectiveSolrFacetReconfigSearchProfile(CategoryModel categoryModel, SolrIndexedTypeModel solrIndexedTypeModel)
CategorySearchProfileServicegetEffectiveSolrFacetReconfigSearchProfile in interface CategorySearchProfileServicecategoryModel - Given category model.solrIndexedTypeModel - Given indexed type.public CategorySolrSearchProfileModel getCategorySolrSearchProfile(String categoryCode, SolrIndexedTypeModel solrIndexedTypeModel)
CategorySearchProfileServicegetCategorySolrSearchProfile in interface CategorySearchProfileServicecategoryCode - Given category code.solrIndexedTypeModel - Given indexed type.protected Collection<String> convertIntoCategoryCodes(List<CategoryModel> categories)
protected GlobalSolrSearchProfileModel getGlobalSolrSearchProfileModel(SolrIndexedTypeModel solrIndexedTypeModel)
public CategorySolrSearchProfileModel createSolrSearchProfile(String categoryCode, SolrIndexedTypeModel solrIndexedTypeModel)
CategorySearchProfileServicecreateSolrSearchProfile in interface CategorySearchProfileServicecategoryCode - Given category code.solrIndexedTypeModel - Given solr indexed type.public AbstractSolrSearchProfileModel getFacetSearchProfileForCategoryAndIndexedType(IndexedType indexedType, CategoryModel categoryModel, FacetSearchConfig facetSearchConfig)
CategorySearchProfileServiceCategorySolrSearchProfileModel for the given category, then that is what gets returned, otherwise, the
system will return the CategorySolrSearchProfileModel for nearest parent category with facet rules. If no
category level search profiles are found, then the GlobalSolrSearchProfileModel will be returned. If that
too is not defined or does not contain facet reconfiguration rules, then null will be the return result.getFacetSearchProfileForCategoryAndIndexedType in interface CategorySearchProfileServiceindexedType - The given IndexedTypecategoryModel - The given categoryfacetSearchConfig - The given FacetSearchConfigprotected SolrIndexedTypeModel getIndexedTypeModel(IndexedType indexedType, FacetSearchConfig facetSearchConfig)
protected GlobalSolrSearchProfileModel getGlobalSolrSearchProfileForIndexedType(IndexedType indexedType, FacetSearchConfig facetSearchConfig)
public void setCommerceCategoryService(CommerceCategoryService commerceCategoryService)
public void setSearchProfileDao(SearchProfileDao searchProfileDao)
public void setCategorySearchProfileMatchStrategy(CategorySolrSearchProfileMatchStrategy categorySearchProfileMatchStrategy)
public void setModelService(ModelService modelService)
public void setFacetSearchConfigDao(FacetSearchConfigDao facetSearchConfigDao)
Copyright © 2017 SAP SE. All Rights Reserved.