Interface IndexProducer
- All Known Implementing Classes:
AbstractIndexProducer,AssetManagerImpl,EventCommentDatabaseServiceImpl,SchedulerServiceImpl,SearchServiceIndex,SeriesServiceImpl,ThemesServiceDatabaseImpl,WorkflowServiceImpl
public interface IndexProducer
This service handles data that's added to an ElasticSearch index.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCheck if the data type is supported by this service.Get the service that implements IndexProducer.default IndexRebuildService.DataType[]Get supported data types for reindexing.voidrepopulate(IndexRebuildService.DataType dataType) Re-add the data of this service to the index.
-
Method Details
-
repopulate
Re-add the data of this service to the index.- Parameters:
dataType- Limit the data added to the index. Use ALL to re-index all data.- Throws:
IndexRebuildException
-
getService
IndexRebuildService.Service getService()Get the service that implements IndexProducer.- Returns:
- service The service that implements IndexProducer.
-
getSupportedDataTypes
Get supported data types for reindexing. Default: All. Should be overridden if a service offers partial index rebuilds.- Returns:
- Array of supported data types
-
dataTypeSupported
Check if the data type is supported by this service.- Parameters:
dataType- The data type to check.- Returns:
- Whether the data type is supported or not.
-