Interface ValueResolver<T extends ItemModel>
- All Known Implementing Classes:
AbstractValueResolver,BackofficeValueResolver,BaseProductValueResolver,CatalogLabelValueResolver,CatalogPKValueResolver,CatalogVersionLabelValueResolver,CatalogVersionPKValueResolver,CategoryCodeWithCatalogVersionMappingValueResolver,CollectionValueResolver,CustomerCouponCodeValueResolver,DataQualityValueResolver,DateValueResolver,EnumValueResolver,ItemModelLabelValueResolver,ItemModelPKValueResolver,ItemtypeLabelValueResolver,ModelAttributesValueResolver,ProductAttributesValueResolver,ProductClassificationAttributesValueResolver,ProductImagesValueResolver,ProductKeywordsValueResolver,ProductPricesValueResolver,ProductPromotionAttributesValueResolver,ProductUrlsValueResolver,ProductVendorValueResolver,RandomNumberValueResolver,RandomStringValueResolver,ReferenceValueResolver,SuperCategoriesValueResolver,TypeCodeValueResolver,VariantAwareCategoryCodeValueResolver,VariantAwareCategoryPKValueResolver
public interface ValueResolver<T extends ItemModel>
Implementations of this interface are responsible for resolving the values to be indexed. This interface works at the indexed property level.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidresolve(InputDocument document, IndexerBatchContext batchContext, Collection<IndexedProperty> indexedProperties, T model) Resolves the values to be indexed.
-
Method Details
-
resolve
void resolve(InputDocument document, IndexerBatchContext batchContext, Collection<IndexedProperty> indexedProperties, T model) throws FieldValueProviderException Resolves the values to be indexed. The indexed properties that use the same value resolver are grouped and this method is called once for each one of these groups.- Parameters:
document- - document that will be indexed, all the resolved values should be added as fields to this documentbatchContext- - the current indexer batch contextindexedProperties- - the indexed properties that use the same value resolvermodel- - the values should be resolved for this model instance- Throws:
FieldValueProviderException- if an error occurs
-