public interface AsSearchProvider
| Modifier and Type | Method and Description |
|---|---|
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<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.
|
AsSearchResultData |
search(AsSearchProfileContext context,
AsSearchQueryData searchQuery)
Performs a search query.
|
java.util.List<AsIndexConfigurationData> getIndexConfigurations()
java.util.Optional<AsIndexConfigurationData> getIndexConfigurationForCode(java.lang.String code)
code - - the index configuration codejava.util.List<AsIndexTypeData> getIndexTypes()
java.util.List<AsIndexTypeData> getIndexTypes(java.lang.String indexConfiguration)
indexConfiguration - - the index configuration codejava.util.Optional<AsIndexTypeData> getIndexTypeForCode(java.lang.String code)
code - - the index type codejava.util.List<AsIndexPropertyData> getIndexProperties(java.lang.String indexType)
indexType - - the index type codejava.util.Optional<AsIndexPropertyData> getIndexPropertyForCode(java.lang.String indexType, java.lang.String code)
code - - the index property codejava.util.List<CatalogVersionModel> getSupportedCatalogVersions(java.lang.String indexConfiguration, java.lang.String indexType)
indexConfiguration - - the index configurationindexType - - the index typejava.util.List<LanguageModel> getSupportedLanguages(java.lang.String indexConfiguration, java.lang.String indexType)
indexConfiguration - - the index configurationindexType - - the index typejava.util.List<CurrencyModel> getSupportedCurrencies(java.lang.String indexConfiguration, java.lang.String indexType)
indexConfiguration - - the index configurationindexType - - the index typejava.util.List<AsIndexPropertyData> getSupportedFacetIndexProperties(java.lang.String indexType)
indexType - - the index type codeboolean isValidFacetIndexProperty(java.lang.String indexType,
java.lang.String code)
indexType - - the index type codecode - - the code of the index propertytrue if the index property can be used for facets, false otherwisejava.util.List<AsExpressionData> getSupportedSortExpressions(java.lang.String indexType)
indexType - - the index type codeboolean isValidSortExpression(java.lang.String indexType,
java.lang.String expression)
indexType - - the index type codeexpression - - the sort expressiontrue if expression can be used for sorts, false otherwiseAsSearchResultData search(AsSearchProfileContext context, AsSearchQueryData searchQuery) throws AsException
context - - the search profile contextsearchQuery - - the search queryAsException - if and exception occurs during the searchCopyright © 2018 SAP SE. All Rights Reserved.