Interface ReindexService
-
public interface ReindexServiceImplementation specific logic for reindexing documents in real time.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteByField(String fieldName, String fieldValue, com.broadleafcommerce.search.api.type.IndexableType indexableType)Delete documents matching a field name and value.voidreindex(List<? extends com.broadleafcommerce.search.api.domain.Indexable<?>> indexables)Indexes or reindexes the providedIndexableobjects.
-
-
-
Method Detail
-
reindex
void reindex(List<? extends com.broadleafcommerce.search.api.domain.Indexable<?>> indexables) throws com.broadleafcommerce.search.api.SearchIndexException
Indexes or reindexes the providedIndexableobjects.- Parameters:
indexables- the indexables to (re)index- Throws:
com.broadleafcommerce.search.api.SearchIndexException
-
deleteByField
void deleteByField(String fieldName, String fieldValue, com.broadleafcommerce.search.api.type.IndexableType indexableType) throws com.broadleafcommerce.search.api.SearchIndexException
Delete documents matching a field name and value.- Parameters:
fieldName- The document field name.fieldValue- The document field value.indexableType- The indexable type.- Throws:
com.broadleafcommerce.search.api.SearchIndexException- If the delete request fails for any reason.
-
-