Class DefaultIndexerService
java.lang.Object
de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerService
- All Implemented Interfaces:
IndexerService
Default implementation for
IndexerService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IndexerStrategycreateIndexerStrategy(FacetSearchConfig facetSearchConfig) voiddeleteFromIndex(FacetSearchConfig facetSearchConfig) Removes some items from the index.voiddeleteFromIndex(FacetSearchConfig facetSearchConfig, Map<String, 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, List<PK> pks) Removes some items from the index for a specific type.voiddeleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, List<PK> pks, Map<String, String> indexerHints) Same asIndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType, List)but allows to pass the indexer hints as parameter.voiddeleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Map<String, String> indexerHints) Same asIndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType)but allows to pass the indexer hints as parameter.voidperformFullIndex(FacetSearchConfig facetSearchConfig) Performs a full index operation which recreates the index.voidperformFullIndex(FacetSearchConfig facetSearchConfig, Map<String, 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, Map<String, String> indexerHints) Same asIndexerService.updateIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.voidupdatePartialTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Collection<IndexedProperty> indexedProperties, List<PK> pks) Updates some properties of some items on the index for a specific type.voidupdatePartialTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Collection<IndexedProperty> indexedProperties, List<PK> pks, Map<String, 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, List<PK> pks) Updates some items on the index for a specific type.voidupdateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, List<PK> pks, Map<String, String> indexerHints) Same asIndexerService.updateTypeIndex(FacetSearchConfig, IndexedType, List)but allows to pass the indexer hints as parameter.voidupdateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Map<String, String> indexerHints) Same asIndexerService.updateTypeIndex(FacetSearchConfig, IndexedType)but allows to pass the indexer hints as parameter.
-
Constructor Details
-
DefaultIndexerService
public DefaultIndexerService()
-
-
Method Details
-
getIndexerStrategyFactory
-
setIndexerStrategyFactory
-
performFullIndex
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, Map<String, String> indexerHints) throws IndexerExceptionDescription 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
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, Map<String, String> indexerHints) throws IndexerExceptionDescription 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, Map<String, String> indexerHints) throws IndexerExceptionDescription 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, 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, List<PK> pks, Map<String, String> indexerHints) throws IndexerExceptionDescription 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, Collection<IndexedProperty> indexedProperties, 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, Collection<IndexedProperty> indexedProperties, List<PK> pks, Map<String, String> indexerHints) throws IndexerExceptionDescription 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
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, Map<String, String> indexerHints) throws IndexerExceptionDescription 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, Map<String, String> indexerHints) throws IndexerExceptionDescription 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, 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, List<PK> pks, Map<String, String> indexerHints) throws IndexerExceptionDescription 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
-