Interface Indexer

  • All Known Implementing Classes:
    DefaultIndexer

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

      • indexItems

        java.util.Collection<org.apache.solr.common.SolrInputDocument> indexItems​(java.util.Collection<ItemModel> items,
                                                                                  FacetSearchConfig facetSearchConfig,
                                                                                  IndexedType indexedType)
                                                                           throws IndexerException,
                                                                                  java.lang.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
        java.lang.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

        java.util.Collection<org.apache.solr.common.SolrInputDocument> indexItems​(java.util.Collection<ItemModel> items,
                                                                                  FacetSearchConfig facetSearchConfig,
                                                                                  IndexedType indexedType,
                                                                                  java.util.Collection<IndexedProperty> indexedProperties)
                                                                           throws IndexerException,
                                                                                  java.lang.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
        java.lang.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​(java.util.Collection<PK> pks,
                             FacetSearchConfig facetSearchConfig,
                             IndexedType indexedType,
                             Index index)
                      throws IndexerException,
                             java.lang.InterruptedException
        Parameters:
        pks - - list of pks to be removed
        facetSearchConfig - - the facet search configuration
        indexedType - - the indexed type
        Throws:
        java.lang.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