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