All Known Implementing Classes:
DefaultIndexer

public interface Indexer
Indexer delivers functionality for storing and removing hybris items in indexer.
  • Method Details

    • indexItems

      Collection<org.apache.solr.common.SolrInputDocument> indexItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException, InterruptedException
      Method send items to indexer.
      Parameters:
      items - items for send to indexer in one transaction
      facetSearchConfig - configuration of facet search
      indexedType - indexed type definition
      Returns:
      list of items converted to solrDocuments
      Throws:
      IndexerException - if an error occurs during indexing
      InterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted status of the current thread is cleared when this exception is thrown.
    • indexItems

      Collection<org.apache.solr.common.SolrInputDocument> indexItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType, Collection<IndexedProperty> indexedProperties) throws IndexerException, InterruptedException
      Method send items to indexer.
      Parameters:
      items - items for send to indexer in one transaction
      facetSearchConfig - configuration of facet search
      indexedType - indexed type definition
      indexedProperties - the properties to index
      Returns:
      list of items converted to solrDocuments
      Throws:
      IndexerException - if an error occurs during indexing
      InterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted status of the current thread is cleared when this exception is thrown.
    • removeItemsByPk

      void removeItemsByPk(Collection<PK> pks, FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index) throws IndexerException, InterruptedException
      Parameters:
      pks - - list of pks to be removed
      facetSearchConfig - - the facet search configuration
      indexedType - - the indexed type
      Throws:
      InterruptedException - if any thread interrupted the current thread before before it completed indexing. The interrupted status of the current thread is cleared when this exception is thrown.
      IndexerException