Interface AsSearchProvider
-
- All Known Implementing Classes:
DefaultAsSearchProviderFactory.CombinedSearchProvider,MockAsSearchProvider,SnAsSearchProvider,SolrAsSearchProvider
public interface AsSearchProviderRepresent the different search providers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.List<java.lang.String>getAvailableQualifiers(java.lang.String indexType, java.lang.String indexProperty)Return list of qualifiers for index property.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<AsBoostType>getSupportedBoostTypes(java.lang.String indexType)Returns a list of boost types for a given index type.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<AsExpressionData>getSupportedFacetExpressions(java.lang.String indexType)Returns a list of expressions for a given index type that can be used for facets.java.util.List<AsIndexPropertyData>getSupportedFacetIndexProperties(java.lang.String indexType)Deprecated.Replaced bygetSupportedFacetExpressions(String).java.util.List<AsFacetSortData>getSupportedFacetSorts(java.lang.String indexType)Returns a list of facet sorts for a given index type.java.util.List<AsFacetType>getSupportedFacetTypes(java.lang.String indexType)Returns a list of facet types for a given index type.java.util.Set<AsFeatureFlag>getSupportedFeatures(java.lang.String indexType)Returns a list of supported features.java.util.List<AsExpressionData>getSupportedGroupExpressions(java.lang.String indexType)Returns a list of expressions for a given index type that can be used for groups.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.booleanisValidBoostType(java.lang.String indexType, AsBoostType boostType)Checks if a given boost type can be used for a given index type.booleanisValidFacetExpression(java.lang.String indexType, java.lang.String expression)Checks if a given index property can be used for facets.booleanisValidFacetIndexProperty(java.lang.String indexType, java.lang.String code)Deprecated.Replaced byisValidFacetExpression(String, String).booleanisValidFacetSort(java.lang.String indexType, java.lang.String sort)Checks if a given sort can be used for facets.booleanisValidFacetType(java.lang.String indexType, AsFacetType facetType)Checks if a given facet type can be used for a given index type.booleanisValidGroupExpression(java.lang.String indexType, java.lang.String expression)Checks if a given expression can be used for groups.booleanisValidSortExpression(java.lang.String indexType, java.lang.String expression)Checks if a given expression can be used for sorts.AsSearchResultDatasearch(AsSearchProfileContext context, AsSearchQueryData searchQuery)Performs a search query.
-
-
-
Method Detail
-
getSupportedFeatures
java.util.Set<AsFeatureFlag> getSupportedFeatures(java.lang.String indexType)
Returns a list of supported features.- Parameters:
indexType- - the index type code- Returns:
- the supported features
-
getIndexConfigurations
java.util.List<AsIndexConfigurationData> getIndexConfigurations()
Returns a list of index configurations.- Returns:
- the index configurations
-
getIndexConfigurationForCode
java.util.Optional<AsIndexConfigurationData> getIndexConfigurationForCode(java.lang.String code)
Returns the index configuration for the provided code.- Parameters:
code- - the index configuration code- Returns:
- the index type
-
getIndexTypes
java.util.List<AsIndexTypeData> getIndexTypes()
Returns a list of index types.- Returns:
- the index types
-
getIndexTypes
java.util.List<AsIndexTypeData> getIndexTypes(java.lang.String indexConfiguration)
Returns a list of index types for a given index configuration.- Parameters:
indexConfiguration- - the index configuration code- Returns:
- the index types
-
getIndexTypeForCode
java.util.Optional<AsIndexTypeData> getIndexTypeForCode(java.lang.String code)
Returns the index type for the provided code.- Parameters:
code- - the index type code- Returns:
- the index type
-
getIndexProperties
java.util.List<AsIndexPropertyData> getIndexProperties(java.lang.String indexType)
Returns a list of index properties for a given index type.- Parameters:
indexType- - the index type code- Returns:
- the index properties
-
getIndexPropertyForCode
java.util.Optional<AsIndexPropertyData> getIndexPropertyForCode(java.lang.String indexType, java.lang.String code)
Returns the index property for the provided code.- Parameters:
code- - the index property code- Returns:
- the index property
-
getSupportedCatalogVersions
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.- Parameters:
indexConfiguration- - the index configurationindexType- - the index type- Returns:
- the catalog versions
-
getSupportedLanguages
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.- Parameters:
indexConfiguration- - the index configurationindexType- - the index type- Returns:
- the languages
-
getSupportedCurrencies
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.- Parameters:
indexConfiguration- - the index configurationindexType- - the index type- Returns:
- the currencies
-
getSupportedFacetIndexProperties
@Deprecated(since="2011") java.util.List<AsIndexPropertyData> getSupportedFacetIndexProperties(java.lang.String indexType)
Deprecated.Replaced bygetSupportedFacetExpressions(String).Returns a list of index properties for a given index type that can be used for facets.- Parameters:
indexType- - the index type code- Returns:
- the index properties
-
isValidFacetIndexProperty
@Deprecated(since="2011") boolean isValidFacetIndexProperty(java.lang.String indexType, java.lang.String code)Deprecated.Replaced byisValidFacetExpression(String, String).Checks is a given index property can be used for facets.- Parameters:
indexType- - the index type codecode- - the code of the index property- Returns:
trueif the index property can be used for facets,falseotherwise
-
getSupportedFacetExpressions
java.util.List<AsExpressionData> getSupportedFacetExpressions(java.lang.String indexType)
Returns a list of expressions for a given index type that can be used for facets.- Parameters:
indexType- - the index type code- Returns:
- the expressions
-
isValidFacetExpression
boolean isValidFacetExpression(java.lang.String indexType, java.lang.String expression)Checks if a given index property can be used for facets.- Parameters:
indexType- - the index type codeexpression- - the facet expression- Returns:
trueif expression can be used for facets,falseotherwise
-
getSupportedFacetTypes
java.util.List<AsFacetType> getSupportedFacetTypes(java.lang.String indexType)
Returns a list of facet types for a given index type.- Parameters:
indexType- - the index type code- Returns:
- the facet types
-
isValidFacetType
boolean isValidFacetType(java.lang.String indexType, AsFacetType facetType)Checks if a given facet type can be used for a given index type.- Parameters:
indexType- - the index type codefacetType- - the facet type- Returns:
trueif facet type can be used,falseotherwise
-
getSupportedFacetSorts
java.util.List<AsFacetSortData> getSupportedFacetSorts(java.lang.String indexType)
Returns a list of facet sorts for a given index type.- Parameters:
indexType- - the index type code- Returns:
- the facet sorts
-
isValidFacetSort
boolean isValidFacetSort(java.lang.String indexType, java.lang.String sort)Checks if a given sort can be used for facets.- Parameters:
indexType- - the index type codesort- - the sort- Returns:
trueif sort can be used for facets,falseotherwise
-
getSupportedBoostTypes
java.util.List<AsBoostType> getSupportedBoostTypes(java.lang.String indexType)
Returns a list of boost types for a given index type.- Parameters:
indexType- - the index type code- Returns:
- the boost types
-
isValidBoostType
boolean isValidBoostType(java.lang.String indexType, AsBoostType boostType)Checks if a given boost type can be used for a given index type.- Parameters:
indexType- - the index type codeboostType- - the boost type- Returns:
trueif boost type can be used,falseotherwise
-
getSupportedSortExpressions
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.- Parameters:
indexType- - the index type code- Returns:
- the expressions
-
isValidSortExpression
boolean isValidSortExpression(java.lang.String indexType, java.lang.String expression)Checks if a given expression can be used for sorts.- Parameters:
indexType- - the index type codeexpression- - the sort expression- Returns:
trueif expression can be used for sorts,falseotherwise
-
getSupportedGroupExpressions
java.util.List<AsExpressionData> getSupportedGroupExpressions(java.lang.String indexType)
Returns a list of expressions for a given index type that can be used for groups.- Parameters:
indexType- - the index type code- Returns:
- the expressions
-
isValidGroupExpression
boolean isValidGroupExpression(java.lang.String indexType, java.lang.String expression)Checks if a given expression can be used for groups.- Parameters:
indexType- - the index type codeexpression- - the sort expression- Returns:
trueif expression can be used for groups,falseotherwise
-
getAvailableQualifiers
java.util.List<java.lang.String> getAvailableQualifiers(java.lang.String indexType, java.lang.String indexProperty) throws AsExceptionReturn list of qualifiers for index property.- Parameters:
indexType- - the index type codeindexProperty- - the index property code- Returns:
- the qualifiers
- Throws:
AsException
-
search
AsSearchResultData search(AsSearchProfileContext context, AsSearchQueryData searchQuery) throws AsException
Performs a search query.- Parameters:
context- - the search profile contextsearchQuery- - the search query- Throws:
AsException- if and exception occurs during the search- Since:
- 6.7
-
-