protected static class DefaultAsSearchProviderFactory.CombinedSearchProvider extends java.lang.Object implements AsSearchProvider
| Constructor and Description |
|---|
CombinedSearchProvider(java.util.Collection<AsSearchProvider> searchProviders) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AsCatalogVersionData> |
getCatalogVersions(java.lang.String indexConfiguration,
java.lang.String indexType)
Returns a list of catalog versions for a given index configuration and type.
|
java.util.List<AsCurrencyData> |
getCurrencies(java.lang.String indexConfiguration,
java.lang.String indexType)
Returns a list of currencies for a given index configuration and type.
|
java.util.Optional<AsIndexConfigurationData> |
getIndexConfigurationForCode(java.lang.String code)
Returns the index configuration for the provided code.
|
java.util.List<AsIndexConfigurationData> |
getIndexConfigurations()
Returns a list of index configurations.
|
java.util.List<AsIndexPropertyData> |
getIndexProperties(java.lang.String indexType)
Returns a list of index properties for a given index type.
|
java.util.Optional<AsIndexPropertyData> |
getIndexPropertyForCode(java.lang.String indexType,
java.lang.String code)
Returns the index property for the provided code.
|
java.util.Optional<AsIndexTypeData> |
getIndexTypeForCode(java.lang.String code)
Returns the index type for the provided code.
|
java.util.List<AsIndexTypeData> |
getIndexTypes()
Returns a list of index types.
|
java.util.List<AsIndexTypeData> |
getIndexTypes(java.lang.String indexConfiguration)
Returns a list of index types for a given index configuration.
|
java.util.List<AsLanguageData> |
getLanguages(java.lang.String indexConfiguration,
java.lang.String indexType)
Returns a list of languages for a given index configuration and type.
|
protected java.util.Collection<AsSearchProvider> |
getSearchProviders() |
java.util.List<CatalogVersionModel> |
getSupportedCatalogVersions(java.lang.String indexConfiguration,
java.lang.String indexType)
Returns a list of catalog versions for a given index configuration and type.
|
java.util.List<CurrencyModel> |
getSupportedCurrencies(java.lang.String indexConfiguration,
java.lang.String indexType)
Returns a list of currencies for a given index configuration and type.
|
java.util.List<AsIndexPropertyData> |
getSupportedFacetIndexProperties(java.lang.String indexType)
Returns a list of index properties for a given index type that can be used for facets.
|
java.util.List<LanguageModel> |
getSupportedLanguages(java.lang.String indexConfiguration,
java.lang.String indexType)
Returns a list of languages for a given index configuration and type.
|
java.util.List<AsExpressionData> |
getSupportedSortExpressions(java.lang.String indexType)
Returns a list of expressions for a given index type that can be used for sorts.
|
boolean |
isValidFacetIndexProperty(java.lang.String indexType,
java.lang.String code)
Checks is a given index property can be used for facets.
|
boolean |
isValidSortExpression(java.lang.String indexType,
java.lang.String expression)
Checks is a given expression can be used for facets.
|
protected AsSearchProvider |
resolveSearchProviderForIndexConfiguration(java.lang.String indexConfiguration) |
protected AsSearchProvider |
resolveSearchProviderForIndexType(java.lang.String indexType) |
AsSearchResultData |
search(AsSearchProfileContext context,
AsSearchQueryData searchQuery)
Performs a search query.
|
AsSearchResultData |
search(AsSearchProfileContext context,
java.lang.String searchText,
int activePage,
int pageSize)
Performs a search query.
|
public CombinedSearchProvider(java.util.Collection<AsSearchProvider> searchProviders)
protected java.util.Collection<AsSearchProvider> getSearchProviders()
protected AsSearchProvider resolveSearchProviderForIndexConfiguration(java.lang.String indexConfiguration)
protected AsSearchProvider resolveSearchProviderForIndexType(java.lang.String indexType)
public java.util.List<AsIndexConfigurationData> getIndexConfigurations()
AsSearchProvidergetIndexConfigurations in interface AsSearchProviderpublic java.util.Optional<AsIndexConfigurationData> getIndexConfigurationForCode(java.lang.String code)
AsSearchProvidergetIndexConfigurationForCode in interface AsSearchProvidercode - - the index configuration codepublic java.util.List<AsIndexTypeData> getIndexTypes()
AsSearchProvidergetIndexTypes in interface AsSearchProviderpublic java.util.List<AsIndexTypeData> getIndexTypes(java.lang.String indexConfiguration)
AsSearchProvidergetIndexTypes in interface AsSearchProviderindexConfiguration - - the index configuration codepublic java.util.Optional<AsIndexTypeData> getIndexTypeForCode(java.lang.String code)
AsSearchProvidergetIndexTypeForCode in interface AsSearchProvidercode - - the index type codepublic java.util.List<AsIndexPropertyData> getIndexProperties(java.lang.String indexType)
AsSearchProvidergetIndexProperties in interface AsSearchProviderindexType - - the index type codepublic java.util.Optional<AsIndexPropertyData> getIndexPropertyForCode(java.lang.String indexType, java.lang.String code)
AsSearchProvidergetIndexPropertyForCode in interface AsSearchProvidercode - - the index property codepublic java.util.List<CatalogVersionModel> getSupportedCatalogVersions(java.lang.String indexConfiguration, java.lang.String indexType)
AsSearchProvidergetSupportedCatalogVersions in interface AsSearchProviderindexConfiguration - - the index configurationindexType - - the index typepublic java.util.List<AsCatalogVersionData> getCatalogVersions(java.lang.String indexConfiguration, java.lang.String indexType)
AsSearchProvidergetCatalogVersions in interface AsSearchProviderindexConfiguration - - the index configurationindexType - - the index typepublic java.util.List<LanguageModel> getSupportedLanguages(java.lang.String indexConfiguration, java.lang.String indexType)
AsSearchProvidergetSupportedLanguages in interface AsSearchProviderindexConfiguration - - the index configurationindexType - - the index typepublic java.util.List<AsLanguageData> getLanguages(java.lang.String indexConfiguration, java.lang.String indexType)
AsSearchProvidergetLanguages in interface AsSearchProviderindexConfiguration - - the index configurationindexType - - the index typepublic java.util.List<CurrencyModel> getSupportedCurrencies(java.lang.String indexConfiguration, java.lang.String indexType)
AsSearchProvidergetSupportedCurrencies in interface AsSearchProviderindexConfiguration - - the index configurationindexType - - the index typepublic java.util.List<AsCurrencyData> getCurrencies(java.lang.String indexConfiguration, java.lang.String indexType)
AsSearchProvidergetCurrencies in interface AsSearchProviderindexConfiguration - - the index configurationindexType - - the index typepublic java.util.List<AsIndexPropertyData> getSupportedFacetIndexProperties(java.lang.String indexType)
AsSearchProvidergetSupportedFacetIndexProperties in interface AsSearchProviderindexType - - the index type codepublic boolean isValidFacetIndexProperty(java.lang.String indexType,
java.lang.String code)
AsSearchProviderisValidFacetIndexProperty in interface AsSearchProviderindexType - - the index type codecode - - the code of the index propertytrue if the index property can be used for facets, false otherwisepublic java.util.List<AsExpressionData> getSupportedSortExpressions(java.lang.String indexType)
AsSearchProvidergetSupportedSortExpressions in interface AsSearchProviderindexType - - the index type codepublic boolean isValidSortExpression(java.lang.String indexType,
java.lang.String expression)
AsSearchProviderisValidSortExpression in interface AsSearchProviderindexType - - the index type codeexpression - - the sort expressiontrue if expression can be used for sorts, false otherwisepublic AsSearchResultData search(AsSearchProfileContext context, java.lang.String searchText, int activePage, int pageSize) throws AsException
AsSearchProvidersearch in interface AsSearchProvidercontext - - the search profile contextsearchText - - the search textactivePage - - the active page offsetpageSize - - the page sizeAsException - if and exception occurs during the searchpublic AsSearchResultData search(AsSearchProfileContext context, AsSearchQueryData searchQuery) throws AsException
AsSearchProvidersearch in interface AsSearchProvidercontext - - the search profile contextsearchQuery - - the search queryAsException - if and exception occurs during the searchCopyright © 2018 SAP SE. All Rights Reserved.