Interface DocumentBuilder<T>
-
- Type Parameters:
T
- The indexable documents type.
- All Known Subinterfaces:
IndexableTypeDocumentBuilder<I,T>
- All Known Implementing Classes:
AbstractDocumentBuilder
public interface DocumentBuilder<T>
Documents builder to be used when building data to be indexed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default List<T>
buildDocuments(com.broadleafcommerce.search.api.domain.Indexable<?> indexable)
List<T>
buildDocuments(List<? extends com.broadleafcommerce.search.api.domain.Indexable<?>> indexables)
Build documents to be indexed by the search engine.
-
-
-
Method Detail
-
buildDocuments
List<T> buildDocuments(List<? extends com.broadleafcommerce.search.api.domain.Indexable<?>> indexables) throws com.broadleafcommerce.search.api.SearchIndexException
Build documents to be indexed by the search engine. If the indexable has any trackable behavior, then the parameterindexables
should include all objects sharing the same ID.- Parameters:
indexables
- The indexables to be converted into documents.- Returns:
- The documents to index, including IDs of any documents to be deleted from the index.
- Throws:
com.broadleafcommerce.search.api.SearchIndexException
- if an error occurs preventing indexing
-
-