Class MockupIndexTypeValuesProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.MockupIndexTypeValuesProvider
- All Implemented Interfaces:
IndexedTypeFieldsValuesProvider
public class MockupIndexTypeValuesProvider
extends Object
implements IndexedTypeFieldsValuesProvider
This is a mockup implementation of IndexedTypeFieldsValuesProvider: adds additional field: name 'arbitraryField1',
value 'TOP' if product belongs to supercategory.
Implementer of
IndexedTypeFieldsValuesProvider must be aware of the solr indexer field naming conventions.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns set of facets names that are provided.Returns field to index field names mapping for the properties provided.getFieldValues(IndexConfig indexConfig, Object model) Returns a collection ofFieldValueof a given model that are fetched from it based on the indexConfig and customized implemented logic.voidsetModelService(ModelService modelService)
-
Field Details
-
NAME
for an arbitraty field name, the name must be postfixed eith "_TYPE", where TYPE is a solr field type.- See Also:
-
TARGET_SUPER_CATEGORY
- See Also:
-
-
Constructor Details
-
MockupIndexTypeValuesProvider
public MockupIndexTypeValuesProvider()
-
-
Method Details
-
getFieldValues
public Collection<FieldValue> getFieldValues(IndexConfig indexConfig, Object model) throws FieldValueProviderException Description copied from interface:IndexedTypeFieldsValuesProviderReturns a collection ofFieldValueof a given model that are fetched from it based on the indexConfig and customized implemented logic. Supports multi-language and multi-currencies.- Specified by:
getFieldValuesin interfaceIndexedTypeFieldsValuesProvider- Returns:
- Collection<
FieldValue> - Throws:
FieldValueProviderException
-
setModelService
- Parameters:
modelService- the modelService to set
-
getFacets
Description copied from interface:IndexedTypeFieldsValuesProviderReturns set of facets names that are provided.- Specified by:
getFacetsin interfaceIndexedTypeFieldsValuesProvider- Returns:
- Set
-
getFieldNamesMapping
Description copied from interface:IndexedTypeFieldsValuesProviderReturns field to index field names mapping for the properties provided.- Specified by:
getFieldNamesMappingin interfaceIndexedTypeFieldsValuesProvider- Returns:
- Map
-