Class DefaultIndexerService
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerService
-
- All Implemented Interfaces:
IndexerService
public class DefaultIndexerService extends java.lang.Object implements IndexerService
Default implementation forIndexerService.
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IndexerStrategycreateIndexerStrategy(FacetSearchConfig facetSearchConfig)voiddeleteFromIndex(FacetSearchConfig facetSearchConfig)Removes some items from the index.voiddeleteFromIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asIndexerService.deleteFromIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.voiddeleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType)Removes some items from the index for a specific type.voiddeleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks)Removes some items from the index for a specific type.voiddeleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asIndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType, List)but allows to pass the indexer hints as parameter.voiddeleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asIndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType)but allows to pass the indexer hints as parameter.IndexerStrategyFactorygetIndexerStrategyFactory()voidperformFullIndex(FacetSearchConfig facetSearchConfig)Performs a full index operation which recreates the index.voidperformFullIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asIndexerService.performFullIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.voidsetIndexerStrategyFactory(IndexerStrategyFactory indexerStrategyFactory)voidupdateIndex(FacetSearchConfig facetSearchConfig)Updates some items on the index.voidupdateIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asIndexerService.updateIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.voidupdatePartialTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties, java.util.List<PK> pks)Updates some properties of some items on the index for a specific type.voidupdatePartialTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asIndexerService.updatePartialTypeIndex(FacetSearchConfig, IndexedType, Collection, List)but allows to pass the indexer hints as parameter.voidupdateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType)Updates some items on the index for a specific type.voidupdateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks)Updates some items on the index for a specific type.voidupdateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asIndexerService.updateTypeIndex(FacetSearchConfig, IndexedType, List)but allows to pass the indexer hints as parameter.voidupdateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asIndexerService.updateTypeIndex(FacetSearchConfig, IndexedType)but allows to pass the indexer hints as parameter.
-
-
-
Method Detail
-
getIndexerStrategyFactory
public IndexerStrategyFactory getIndexerStrategyFactory()
-
setIndexerStrategyFactory
public void setIndexerStrategyFactory(IndexerStrategyFactory indexerStrategyFactory)
-
performFullIndex
public void performFullIndex(FacetSearchConfig facetSearchConfig) throws IndexerException
Description copied from interface:IndexerServicePerforms a full index operation which recreates the index. All the types associated with the facet search configuration are considered. Items to be indexed are selected based on the full index query.- Specified by:
performFullIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instance- Throws:
IndexerException- exception is thrown when full index query is missing in configuration or an unexpected error occurs during indexing.
-
performFullIndex
public void performFullIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Description copied from interface:IndexerServiceSame asIndexerService.performFullIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.- Specified by:
performFullIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexerHints- - the indexer hints- Throws:
IndexerException- exception is thrown when full index query is missing in configuration or an unexpected error occurs during indexing.
-
updateIndex
public void updateIndex(FacetSearchConfig facetSearchConfig) throws IndexerException
Description copied from interface:IndexerServiceUpdates some items on the index. All the types associated with the facet search configuration are considered. Items to be updated are selected based on the update index query.- Specified by:
updateIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instance- Throws:
IndexerException- exception is thrown when update index query is missing in configuration or an unexpected error occurs during indexing.
-
updateIndex
public void updateIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Description copied from interface:IndexerServiceSame asIndexerService.updateIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.- Specified by:
updateIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexerHints- - the indexer hints- Throws:
IndexerException- exception is thrown when update index query is missing in configuration or an unexpected error occurs during indexing.
-
updateTypeIndex
public void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException
Description copied from interface:IndexerServiceUpdates some items on the index for a specific type. Items to be updated are selected based on the update index query.- Specified by:
updateTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected type- Throws:
IndexerException- exception is thrown when update index query is missing in configuration or an unexpected error occurs during indexing.
-
updateTypeIndex
public void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Description copied from interface:IndexerServiceSame asIndexerService.updateTypeIndex(FacetSearchConfig, IndexedType)but allows to pass the indexer hints as parameter.- Specified by:
updateTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected typeindexerHints- - the indexer hints- Throws:
IndexerException- exception is thrown when update index query is missing in configuration or an unexpected error occurs during indexing.
-
updateTypeIndex
public void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks) throws IndexerException
Description copied from interface:IndexerServiceUpdates some items on the index for a specific type.- Specified by:
updateTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected typepks- - pks of items to be updated- Throws:
IndexerException- exception is thrown when an unexpected error occurs during indexing.
-
updateTypeIndex
public void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Description copied from interface:IndexerServiceSame asIndexerService.updateTypeIndex(FacetSearchConfig, IndexedType, List)but allows to pass the indexer hints as parameter.- Specified by:
updateTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected typepks- - pks of items to be updatedindexerHints- - the indexer hints- Throws:
IndexerException- exception is thrown when an unexpected error occurs during indexing.
-
updatePartialTypeIndex
public void updatePartialTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties, java.util.List<PK> pks) throws IndexerException
Description copied from interface:IndexerServiceUpdates some properties of some items on the index for a specific type.- Specified by:
updatePartialTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected typeindexedProperties- - properties to updatepks- - pks of items to be updated- Throws:
IndexerException- exception is thrown when an unexpected error occurs during indexing.
-
updatePartialTypeIndex
public void updatePartialTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Description copied from interface:IndexerServiceSame asIndexerService.updatePartialTypeIndex(FacetSearchConfig, IndexedType, Collection, List)but allows to pass the indexer hints as parameter.- Specified by:
updatePartialTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected typeindexedProperties- - properties to updatepks- - pks of items to be updatedindexerHints- - the indexer hints- Throws:
IndexerException- exception is thrown when an unexpected error occurs during indexing.
-
deleteFromIndex
public void deleteFromIndex(FacetSearchConfig facetSearchConfig) throws IndexerException
Description copied from interface:IndexerServiceRemoves some items from the index. All the types associated with the facet search configuration are considered. Items to be removed are selected based on the delete index query.- Specified by:
deleteFromIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instance- Throws:
IndexerException- exception is thrown when delete index query is missing in configuration or an unexpected error occurs during indexing.
-
deleteFromIndex
public void deleteFromIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Description copied from interface:IndexerServiceSame asIndexerService.deleteFromIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.- Specified by:
deleteFromIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexerHints- - the indexer hints- Throws:
IndexerException- exception is thrown when delete index query is missing in configuration or an unexpected error occurs during indexing.
-
deleteTypeIndex
public void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException
Description copied from interface:IndexerServiceRemoves some items from the index for a specific type. Items to be removed are selected based on the delete index query.- Specified by:
deleteTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected type- Throws:
IndexerException- exception is thrown when delete index query is missing in configuration or an unexpected error occurs during indexing.
-
deleteTypeIndex
public void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Description copied from interface:IndexerServiceSame asIndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType)but allows to pass the indexer hints as parameter.- Specified by:
deleteTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected typeindexerHints- - the indexer hints- Throws:
IndexerException- exception is thrown when delete index query is missing in configuration or an unexpected error occurs during indexing.
-
deleteTypeIndex
public void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks) throws IndexerException
Description copied from interface:IndexerServiceRemoves some items from the index for a specific type.- Specified by:
deleteTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected typepks- - pks of items to be removed- Throws:
IndexerException- exception is thrown when an unexpected error occurs during indexing.
-
deleteTypeIndex
public void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Description copied from interface:IndexerServiceSame asIndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType, List)but allows to pass the indexer hints as parameter.- Specified by:
deleteTypeIndexin interfaceIndexerService- Parameters:
facetSearchConfig- - configuration for indexer instanceindexedType- - selected typepks- - pks of items to be removedindexerHints- - the indexer hints- Throws:
IndexerException- exception is thrown when an unexpected error occurs during indexing.
-
createIndexerStrategy
protected IndexerStrategy createIndexerStrategy(FacetSearchConfig facetSearchConfig) throws IndexerException
- Throws:
IndexerException
-
-