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 Details

    • setIndexOperation

      void setIndexOperation(IndexOperation indexOperation)
      Sets the index operation to be used.
      Parameters:
      indexOperation - - the index operation
    • setFacetSearchConfig

      void setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
      Sets the facet search configuration to be used.
      Parameters:
      facetSearchConfig - - the index operation
    • setIndexedType

      void setIndexedType(IndexedType indexedType)
      Sets the indexed type to be used.
      Parameters:
      indexedType - - the index operation
    • setIndexedProperties

      void setIndexedProperties(Collection<IndexedProperty> indexedProperties)
      Sets the index operation to be used.
      Parameters:
      indexedProperties - - the indexed properties
    • setPks

      void setPks(List<PK> pks)
      Sets the pks of the items to be indexed.
      Parameters:
      pks - - the pks of the items to be indexed
    • setIndex

      void setIndex(Index index)
      Sets the index to be used.
      Parameters:
      index - - the index
    • setIndexerHints

      void setIndexerHints(Map<String,String> indexerHints)
      Sets the indexer hints to be used.
      Parameters:
      indexerHints - - the indexer hints to be used
    • execute

      void execute() throws IndexerException
      Executes the strategy.
      Throws:
      IndexerException - if an error occurs during the strategy execution