Interface Indexer
- All Known Implementing Classes:
DefaultIndexer
public interface Indexer
Indexer delivers functionality for storing and removing hybris items in indexer.
-
Method Summary
Modifier and TypeMethodDescriptionCollection<org.apache.solr.common.SolrInputDocument>indexItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType) Method send items to indexer.Collection<org.apache.solr.common.SolrInputDocument>indexItems(Collection<ItemModel> items, FacetSearchConfig facetSearchConfig, IndexedType indexedType, Collection<IndexedProperty> indexedProperties) Method send items to indexer.voidremoveItemsByPk(Collection<PK> pks, FacetSearchConfig facetSearchConfig, IndexedType indexedType, Index index)
-
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 transactionfacetSearchConfig- configuration of facet searchindexedType- indexed type definition- Returns:
- list of items converted to solrDocuments
- Throws:
IndexerException- if an error occurs during indexingInterruptedException- 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 transactionfacetSearchConfig- configuration of facet searchindexedType- indexed type definitionindexedProperties- the properties to index- Returns:
- list of items converted to solrDocuments
- Throws:
IndexerException- if an error occurs during indexingInterruptedException- 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 removedfacetSearchConfig- - the facet search configurationindexedType- - 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
-