Interface IndexableTypeDocumentBuilderContributor<T>
-
- Type Parameters:
T
- The type of the document being modified
- All Superinterfaces:
DocumentBuilderContributor<T>
public interface IndexableTypeDocumentBuilderContributor<T> extends DocumentBuilderContributor<T>
Identifies aDocumentBuilderContributor
which only applies to a specific indexable type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
canHandle(com.broadleafcommerce.search.api.domain.Indexable<?> indexable)
Determines whether this contributor should contributecom.broadleafcommerce.search.api.type.IndexableType
getIndexableType()
The indexable type this builder can modify documents for.-
Methods inherited from interface com.broadleafcommerce.search.index.core.document.DocumentBuilderContributor
contribute, contributeInternal
-
-
-
-
Method Detail
-
getIndexableType
com.broadleafcommerce.search.api.type.IndexableType getIndexableType()
The indexable type this builder can modify documents for.- Returns:
- The indexable type this builder can modify documents for.
-
canHandle
default boolean canHandle(com.broadleafcommerce.search.api.domain.Indexable<?> indexable)
Description copied from interface:DocumentBuilderContributor
Determines whether this contributor should contribute- Specified by:
canHandle
in interfaceDocumentBuilderContributor<T>
- Parameters:
indexable
- The Indexable item.- Returns:
- true if this contributor should execute, else false.
-
-