Interface IndexerSearchService<T extends com.broadleafcommerce.search.api.domain.FieldDefinition>
- All Known Implementing Classes:
DefaultIndexerSearchService
public interface IndexerSearchService<T extends com.broadleafcommerce.search.api.domain.FieldDefinition>
Service used by the search indexer to interact with the search service.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearCache(com.broadleafcommerce.search.api.type.IndexableType indexableType) Clear any cached fields for the indexable type.readFieldsByIndexable(com.broadleafcommerce.search.api.domain.Indexable<?> indexable) Returns a list of Search fields byIndexable.readFieldsByIndexable(com.broadleafcommerce.search.api.domain.Indexable<?> indexable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of Search fields byIndexable.readFieldsByIndexableType(com.broadleafcommerce.search.api.type.IndexableType indexableType) Deprecated.readFieldsByIndexableType(com.broadleafcommerce.search.api.type.IndexableType indexableType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of Search fields by IndexableType andContextInfo, if applicable.
-
Method Details
-
readFieldsByIndexableType
@Deprecated List<T> readFieldsByIndexableType(com.broadleafcommerce.search.api.type.IndexableType indexableType) Deprecated.Returns a list of Search fields by IndexableType- Parameters:
indexableType- The indexable type- Returns:
- Search fields associated with the IndexableType
-
readFieldsByIndexableType
@NonNull List<T> readFieldsByIndexableType(com.broadleafcommerce.search.api.type.IndexableType indexableType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of Search fields by IndexableType andContextInfo, if applicable.- Parameters:
indexableType- The indexable type- Returns:
- Search fields associated with the IndexableType
-
readFieldsByIndexable
@NonNull List<T> readFieldsByIndexable(com.broadleafcommerce.search.api.domain.Indexable<?> indexable) Returns a list of Search fields byIndexable. Indexable is used to determine theIndexableTypeand, optionally, theContext Info (most importantly, the tenantbased on theContextStateAware, if applicable.- Parameters:
indexable-- Returns:
-
readFieldsByIndexable
@NonNull List<T> readFieldsByIndexable(com.broadleafcommerce.search.api.domain.Indexable<?> indexable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns a list of Search fields byIndexable. Indexable is used to determine theIndexableTypeand, optionally, theContext Info (most importantly, the tenantbased on theContextStateAware, if applicable.- Parameters:
indexable-contextInfo-- Returns:
-
clearCache
void clearCache(com.broadleafcommerce.search.api.type.IndexableType indexableType) Clear any cached fields for the indexable type.- Parameters:
indexableType- The indexable type to clear
-