Interface IndexerStrategy
- All Known Implementing Classes:
AbstractIndexerStrategy,BackofficeIndexerStrategy,DefaultIndexerStrategy,DistributedIndexerStrategy
public interface IndexerStrategy
Strategy for performing the indexing process. This strategy is normally responsible for creating and triggering the
execution of the indexer workers (see
IndexerWorker and IndexerWorkerFactory).-
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the strategy.voidsetFacetSearchConfig(FacetSearchConfig facetSearchConfig) Sets the facet search configuration to be used.voidSets the index to be used.voidsetIndexedProperties(Collection<IndexedProperty> indexedProperties) Sets the index operation to be used.voidsetIndexedType(IndexedType indexedType) Sets the indexed type to be used.voidsetIndexerHints(Map<String, String> indexerHints) Sets the indexer hints to be used.voidsetIndexOperation(IndexOperation indexOperation) Sets the index operation to be used.voidSets the pks of the items to be indexed.
-
Method Details
-
setIndexOperation
Sets the index operation to be used.- Parameters:
indexOperation- - the index operation
-
setFacetSearchConfig
Sets the facet search configuration to be used.- Parameters:
facetSearchConfig- - the index operation
-
setIndexedType
Sets the indexed type to be used.- Parameters:
indexedType- - the index operation
-
setIndexedProperties
Sets the index operation to be used.- Parameters:
indexedProperties- - the indexed properties
-
setPks
Sets the pks of the items to be indexed.- Parameters:
pks- - the pks of the items to be indexed
-
setIndex
Sets the index to be used.- Parameters:
index- - the index
-
setIndexerHints
Sets the indexer hints to be used.- Parameters:
indexerHints- - the indexer hints to be used
-
execute
Executes the strategy.- Throws:
IndexerException- if an error occurs during the strategy execution
-