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 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 document
      batchContext - - the current indexer batch context
      indexedProperties - - the indexed properties that use the same value resolver
      model - - the values should be resolved for this model instance
      Throws:
      FieldValueProviderException - if an error occurs