Interface SnIndexerValueProvider<T>
-
- All Known Implementing Classes:
AbstractProductSnIndexerValueProvider,AbstractSnIndexerValueProvider,CatalogVersionSnIndexerValueProvider,DocumentsResourceSnIndexerValueProvider,ModelAttributeSnIndexerValueProvider,ProductAttributeSnIndexerValueProvider,ProductCategoryAttributeSnIndexerValueProvider,ProductClassificationAttributeSnIndexerValueProvider,ProductImageAttributeSnIndexerValueProvider,ProductPickupAvailabilitySnIndexerValueProvider,ProductPriceSnIndexerValueProvider,ProductStockLevelSnIndexerValueProvider,ProductStockLevelStatusSnIndexerValueProvider
public interface SnIndexerValueProvider<T>Implementors for this interface should populate the document with the values to be indexed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.Class<?>>getSupportedQualifierClasses()Returns the supported qualifier classes.voidprovide(SnIndexerContext indexerContext, java.util.Collection<SnIndexerFieldWrapper> fieldWrappers, T source, SnDocument target)Populates the document with values to be indexed.
-
-
-
Method Detail
-
getSupportedQualifierClasses
java.util.Set<java.lang.Class<?>> getSupportedQualifierClasses() throws SnIndexerExceptionReturns the supported qualifier classes.- Returns:
- the supported qualifier classes
- Throws:
SnIndexerException
-
provide
void provide(SnIndexerContext indexerContext, java.util.Collection<SnIndexerFieldWrapper> fieldWrappers, T source, SnDocument target) throws SnIndexerException
Populates the document with values to be indexed. The fields that use the same value resolver are grouped and this method is called once for each one of these groups.- Parameters:
indexerContext- - the indexer contextfieldWrappers- - the field wrapperssource- - the source modeltarget- - the target document- Throws:
SnIndexerException- if an error occurs
-
-