public class DefaultCategorySolrSearchProfileMatchStrategy extends Object implements CategorySolrSearchProfileMatchStrategy
| Constructor and Description |
|---|
DefaultCategorySolrSearchProfileMatchStrategy() |
| Modifier and Type | Method and Description |
|---|---|
CategorySolrSearchProfileModel |
findExactMatch(Collection<CategorySolrSearchProfileModel> profiles,
CategoryModel categoryModel)
This method is looking for the exact matching search profile for the given category.
|
CategorySolrSearchProfileModel |
findNearestMatch(Collection<CategorySolrSearchProfileModel> profiles,
Collection<List<CategoryModel>> categoryPaths,
CategoryModel currentCategory)
This method is looking for the nearest category search profile for the given category.
|
protected int |
getMaxPathLength(Collection<List<CategoryModel>> paths) |
protected Collection<List<CategoryModel>> |
reversePaths(Collection<List<CategoryModel>> categoryPaths,
CategoryModel currentCategory) |
public DefaultCategorySolrSearchProfileMatchStrategy()
public CategorySolrSearchProfileModel findNearestMatch(Collection<CategorySolrSearchProfileModel> profiles, Collection<List<CategoryModel>> categoryPaths, CategoryModel currentCategory)
CategorySolrSearchProfileMatchStrategyfindNearestMatch in interface CategorySolrSearchProfileMatchStrategyprofiles - Category search profile set that contains search profiles to check.categoryPaths - Current categry path.currentCategory - Category for which the search profile should be found.protected int getMaxPathLength(Collection<List<CategoryModel>> paths)
protected Collection<List<CategoryModel>> reversePaths(Collection<List<CategoryModel>> categoryPaths, CategoryModel currentCategory)
public CategorySolrSearchProfileModel findExactMatch(Collection<CategorySolrSearchProfileModel> profiles, CategoryModel categoryModel)
CategorySolrSearchProfileMatchStrategyfindExactMatch in interface CategorySolrSearchProfileMatchStrategyprofiles - Category search profile set that contains search profiles to check.categoryModel - Category for which the search profile should be found.Copyright © 2017 SAP SE. All Rights Reserved.