Class ProductKeywordsValueResolver
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver<ProductModel,Object,Object>
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.ProductKeywordsValueResolver
- All Implemented Interfaces:
QualifierProviderAware,ValueResolver<ProductModel>
Resolver for product keywords.
Supported parameters:
Parameter Default value Description optional true If false, indicates that every product must have keywords (for every qualifier). An exception of type FieldValueProviderExceptionis thrown if the keywords cannot be resolved.split true If false, the collected keywords should be added as a single value to the index. separator " " The separator to use when combining the keywords into a single value. Only used if split is false.
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver
AbstractValueResolver.ValueResolverContext<T,U> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFieldValues(InputDocument document, IndexerBatchContext batchContext, IndexedProperty indexedProperty, ProductModel product, AbstractValueResolver.ValueResolverContext<Object, Object> resolverContext) protected voidcollectKeywords(Set<String> keywords, ProductModel product) protected StringcombineKeywords(Set<String> keywords, String separator) Methods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver
addFieldValue, createLocalSessionContext, doResolve, filterAndAddFieldValues, filterFieldValue, getQualifierProvider, getSessionService, getValueFilters, loadData, loadQualifierData, removeLocalSessionContext, resolve, setQualifierProvider, setSessionService, setValueFilters
-
Field Details
-
OPTIONAL_PARAM
- See Also:
-
OPTIONAL_PARAM_DEFAULT_VALUE
public static final boolean OPTIONAL_PARAM_DEFAULT_VALUE- See Also:
-
SPLIT_PARAM
- See Also:
-
SPLIT_PARAM_DEFAULT_VALUE
public static final boolean SPLIT_PARAM_DEFAULT_VALUE- See Also:
-
SEPARATOR_PARAM
- See Also:
-
SEPARATOR_PARAM_DEFAULT_VALUE
- See Also:
-
-
Constructor Details
-
ProductKeywordsValueResolver
public ProductKeywordsValueResolver()
-
-
Method Details
-
addFieldValues
protected void addFieldValues(InputDocument document, IndexerBatchContext batchContext, IndexedProperty indexedProperty, ProductModel product, AbstractValueResolver.ValueResolverContext<Object, Object> resolverContext) throws FieldValueProviderException- Specified by:
addFieldValuesin classAbstractValueResolver<ProductModel,Object, Object> - Throws:
FieldValueProviderException
-
collectKeywords
-
combineKeywords
-