Class DefaultAsSearchProviderFactory.CombinedSearchProvider
java.lang.Object
de.hybris.platform.adaptivesearch.strategies.impl.DefaultAsSearchProviderFactory.CombinedSearchProvider
- All Implemented Interfaces:
AsSearchProvider
- Enclosing class:
- DefaultAsSearchProviderFactory
protected static class DefaultAsSearchProviderFactory.CombinedSearchProvider
extends Object
implements AsSearchProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAvailableQualifiers(String indexType, String indexPropertyCode) Return list of qualifiers for index property.Returns the index configuration for the provided code.Returns a list of index configurations.getIndexProperties(String indexType) Returns a list of index properties for a given index type.getIndexPropertyForCode(String indexType, String code) Returns the index property for the provided code.getIndexTypeForCode(String code) Returns the index type for the provided code.Returns a list of index types.getIndexTypes(String indexConfiguration) Returns a list of index types for a given index configuration.protected Collection<AsSearchProvider>getSupportedBoostTypes(String indexType) Returns a list of boost types for a given index type.getSupportedCatalogVersions(String indexConfiguration, String indexType) Returns a list of catalog versions for a given index configuration and type.getSupportedCurrencies(String indexConfiguration, String indexType) Returns a list of currencies for a given index configuration and type.getSupportedFacetExpressions(String indexType) Returns a list of expressions for a given index type that can be used for facets.getSupportedFacetSorts(String indexType) Returns a list of facet sorts for a given index type.getSupportedFacetTypes(String indexType) Returns a list of facet types for a given index type.getSupportedFeatures(String indexType) Returns a list of supported features.getSupportedGroupExpressions(String indexType) Returns a list of expressions for a given index type that can be used for groups.getSupportedLanguages(String indexConfiguration, String indexType) Returns a list of languages for a given index configuration and type.getSupportedQueryContexts(String indexType) Returns a list of supported query contexts.getSupportedSortExpressions(String indexType) Returns a list of expressions for a given index type that can be used for sorts.booleanisValidBoostType(String indexType, AsBoostType boostType) Checks if a given boost type can be used for a given index type.booleanisValidFacetExpression(String indexType, String expression) Checks if a given index property can be used for facets.booleanisValidFacetSort(String indexType, String sort) Checks if a given sort can be used for facets.booleanisValidFacetType(String indexType, AsFacetType facetType) Checks if a given facet type can be used for a given index type.booleanisValidGroupExpression(String indexType, String expression) Checks if a given expression can be used for groups.booleanisValidSortExpression(String indexType, String expression) Checks if a given expression can be used for sorts.protected AsSearchProviderresolveSearchProviderForIndexConfiguration(String indexConfiguration) protected AsSearchProviderresolveSearchProviderForIndexType(String indexType) search(AsSearchProfileContext context, AsSearchQueryData searchQuery) Performs a search query.
-
Constructor Details
-
CombinedSearchProvider
-
-
Method Details
-
getSearchProviders
-
resolveSearchProviderForIndexConfiguration
-
resolveSearchProviderForIndexType
-
getSupportedFeatures
Description copied from interface:AsSearchProviderReturns a list of supported features.- Specified by:
getSupportedFeaturesin interfaceAsSearchProvider- Parameters:
indexType- - the index type code- Returns:
- the supported features
-
getSupportedQueryContexts
Description copied from interface:AsSearchProviderReturns a list of supported query contexts.- Specified by:
getSupportedQueryContextsin interfaceAsSearchProvider- Returns:
- the supported query contexts
-
getIndexConfigurations
Description copied from interface:AsSearchProviderReturns a list of index configurations.- Specified by:
getIndexConfigurationsin interfaceAsSearchProvider- Returns:
- the index configurations
-
getIndexConfigurationForCode
Description copied from interface:AsSearchProviderReturns the index configuration for the provided code.- Specified by:
getIndexConfigurationForCodein interfaceAsSearchProvider- Parameters:
code- - the index configuration code- Returns:
- the index type
-
getIndexTypes
Description copied from interface:AsSearchProviderReturns a list of index types.- Specified by:
getIndexTypesin interfaceAsSearchProvider- Returns:
- the index types
-
getIndexTypes
Description copied from interface:AsSearchProviderReturns a list of index types for a given index configuration.- Specified by:
getIndexTypesin interfaceAsSearchProvider- Parameters:
indexConfiguration- - the index configuration code- Returns:
- the index types
-
getIndexTypeForCode
Description copied from interface:AsSearchProviderReturns the index type for the provided code.- Specified by:
getIndexTypeForCodein interfaceAsSearchProvider- Parameters:
code- - the index type code- Returns:
- the index type
-
getIndexProperties
Description copied from interface:AsSearchProviderReturns a list of index properties for a given index type.- Specified by:
getIndexPropertiesin interfaceAsSearchProvider- Parameters:
indexType- - the index type code- Returns:
- the index properties
-
getIndexPropertyForCode
Description copied from interface:AsSearchProviderReturns the index property for the provided code.- Specified by:
getIndexPropertyForCodein interfaceAsSearchProvidercode- - the index property code- Returns:
- the index property
-
getSupportedCatalogVersions
public List<CatalogVersionModel> getSupportedCatalogVersions(String indexConfiguration, String indexType) Description copied from interface:AsSearchProviderReturns a list of catalog versions for a given index configuration and type.- Specified by:
getSupportedCatalogVersionsin interfaceAsSearchProvider- Parameters:
indexConfiguration- - the index configurationindexType- - the index type- Returns:
- the catalog versions
-
getSupportedLanguages
Description copied from interface:AsSearchProviderReturns a list of languages for a given index configuration and type.- Specified by:
getSupportedLanguagesin interfaceAsSearchProvider- Parameters:
indexConfiguration- - the index configurationindexType- - the index type- Returns:
- the languages
-
getSupportedCurrencies
Description copied from interface:AsSearchProviderReturns a list of currencies for a given index configuration and type.- Specified by:
getSupportedCurrenciesin interfaceAsSearchProvider- Parameters:
indexConfiguration- - the index configurationindexType- - the index type- Returns:
- the currencies
-
getSupportedFacetExpressions
Description copied from interface:AsSearchProviderReturns a list of expressions for a given index type that can be used for facets.- Specified by:
getSupportedFacetExpressionsin interfaceAsSearchProvider- Parameters:
indexType- - the index type code- Returns:
- the expressions
-
isValidFacetExpression
Description copied from interface:AsSearchProviderChecks if a given index property can be used for facets.- Specified by:
isValidFacetExpressionin interfaceAsSearchProvider- Parameters:
indexType- - the index type codeexpression- - the facet expression- Returns:
trueif expression can be used for facets,falseotherwise
-
getSupportedFacetTypes
Description copied from interface:AsSearchProviderReturns a list of facet types for a given index type.- Specified by:
getSupportedFacetTypesin interfaceAsSearchProvider- Parameters:
indexType- - the index type code- Returns:
- the facet types
-
isValidFacetType
Description copied from interface:AsSearchProviderChecks if a given facet type can be used for a given index type.- Specified by:
isValidFacetTypein interfaceAsSearchProvider- Parameters:
indexType- - the index type codefacetType- - the facet type- Returns:
trueif facet type can be used,falseotherwise
-
getSupportedFacetSorts
Description copied from interface:AsSearchProviderReturns a list of facet sorts for a given index type.- Specified by:
getSupportedFacetSortsin interfaceAsSearchProvider- Parameters:
indexType- - the index type code- Returns:
- the facet sorts
-
isValidFacetSort
Description copied from interface:AsSearchProviderChecks if a given sort can be used for facets.- Specified by:
isValidFacetSortin interfaceAsSearchProvider- Parameters:
indexType- - the index type codesort- - the sort- Returns:
trueif sort can be used for facets,falseotherwise
-
getSupportedBoostTypes
Description copied from interface:AsSearchProviderReturns a list of boost types for a given index type.- Specified by:
getSupportedBoostTypesin interfaceAsSearchProvider- Parameters:
indexType- - the index type code- Returns:
- the boost types
-
isValidBoostType
Description copied from interface:AsSearchProviderChecks if a given boost type can be used for a given index type.- Specified by:
isValidBoostTypein interfaceAsSearchProvider- Parameters:
indexType- - the index type codeboostType- - the boost type- Returns:
trueif boost type can be used,falseotherwise
-
getSupportedSortExpressions
Description copied from interface:AsSearchProviderReturns a list of expressions for a given index type that can be used for sorts.- Specified by:
getSupportedSortExpressionsin interfaceAsSearchProvider- Parameters:
indexType- - the index type code- Returns:
- the expressions
-
isValidSortExpression
Description copied from interface:AsSearchProviderChecks if a given expression can be used for sorts.- Specified by:
isValidSortExpressionin interfaceAsSearchProvider- Parameters:
indexType- - the index type codeexpression- - the sort expression- Returns:
trueif expression can be used for sorts,falseotherwise
-
getSupportedGroupExpressions
Description copied from interface:AsSearchProviderReturns a list of expressions for a given index type that can be used for groups.- Specified by:
getSupportedGroupExpressionsin interfaceAsSearchProvider- Parameters:
indexType- - the index type code- Returns:
- the expressions
-
isValidGroupExpression
Description copied from interface:AsSearchProviderChecks if a given expression can be used for groups.- Specified by:
isValidGroupExpressionin interfaceAsSearchProvider- Parameters:
indexType- - the index type codeexpression- - the sort expression- Returns:
trueif expression can be used for groups,falseotherwise
-
getAvailableQualifiers
public List<String> getAvailableQualifiers(String indexType, String indexPropertyCode) throws AsException Description copied from interface:AsSearchProviderReturn list of qualifiers for index property.- Specified by:
getAvailableQualifiersin interfaceAsSearchProvider- Parameters:
indexType- - the index type codeindexPropertyCode- - the index property code- Returns:
- the qualifiers
- Throws:
AsException
-
search
public AsSearchResultData search(AsSearchProfileContext context, AsSearchQueryData searchQuery) throws AsException Description copied from interface:AsSearchProviderPerforms a search query.- Specified by:
searchin interfaceAsSearchProvider- Parameters:
context- - the search profile contextsearchQuery- - the search query- Throws:
AsException- if and exception occurs during the search
-