public class DefaultIndexerService extends java.lang.Object implements IndexerService
IndexerService.| Constructor and Description |
|---|
DefaultIndexerService() |
| Modifier and Type | Method and Description |
|---|---|
protected IndexerStrategy |
createIndexerStrategy(FacetSearchConfig facetSearchConfig) |
void |
deleteFromIndex(FacetSearchConfig facetSearchConfig)
Removes some items from the index.
|
void |
deleteFromIndex(FacetSearchConfig facetSearchConfig,
java.util.Map<java.lang.String,java.lang.String> indexerHints)
Same as
IndexerService.deleteFromIndex(FacetSearchConfig) but allows to pass the indexer hints as parameter. |
void |
deleteTypeIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Removes some items from the index for a specific type.
|
void |
deleteTypeIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.util.List<PK> pks)
Removes some items from the index for a specific type.
|
void |
deleteTypeIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.util.List<PK> pks,
java.util.Map<java.lang.String,java.lang.String> indexerHints)
Same as
IndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType, List) but allows to pass the indexer hints as
parameter. |
void |
deleteTypeIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.util.Map<java.lang.String,java.lang.String> indexerHints)
Same as
IndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType) but allows to pass the indexer hints as
parameter. |
IndexerStrategyFactory |
getIndexerStrategyFactory() |
void |
performFullIndex(FacetSearchConfig facetSearchConfig)
Performs a full index operation which recreates the index.
|
void |
performFullIndex(FacetSearchConfig facetSearchConfig,
java.util.Map<java.lang.String,java.lang.String> indexerHints)
Same as
IndexerService.performFullIndex(FacetSearchConfig) but allows to pass the indexer hints as parameter. |
void |
setIndexerStrategyFactory(IndexerStrategyFactory indexerStrategyFactory) |
void |
updateIndex(FacetSearchConfig facetSearchConfig)
Updates some items on the index.
|
void |
updateIndex(FacetSearchConfig facetSearchConfig,
java.util.Map<java.lang.String,java.lang.String> indexerHints)
Same as
IndexerService.updateIndex(FacetSearchConfig) but allows to pass the indexer hints as parameter. |
void |
updatePartialTypeIndex(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.
|
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)
Same as
IndexerService.updatePartialTypeIndex(FacetSearchConfig, IndexedType, Collection, List) but allows to pass the
indexer hints as parameter. |
void |
updateTypeIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType)
Updates some items on the index for a specific type.
|
void |
updateTypeIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.util.List<PK> pks)
Updates some items on the index for a specific type.
|
void |
updateTypeIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.util.List<PK> pks,
java.util.Map<java.lang.String,java.lang.String> indexerHints)
Same as
IndexerService.updateTypeIndex(FacetSearchConfig, IndexedType, List) but allows to pass the indexer hints as
parameter. |
void |
updateTypeIndex(FacetSearchConfig facetSearchConfig,
IndexedType indexedType,
java.util.Map<java.lang.String,java.lang.String> indexerHints)
Same as
IndexerService.updateTypeIndex(FacetSearchConfig, IndexedType) but allows to pass the indexer hints as
parameter. |
public IndexerStrategyFactory getIndexerStrategyFactory()
public void setIndexerStrategyFactory(IndexerStrategyFactory indexerStrategyFactory)
public void performFullIndex(FacetSearchConfig facetSearchConfig) throws IndexerException
IndexerServiceperformFullIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceIndexerException - exception is thrown when full index query is missing in configuration or an unexpected error occurs
during indexing.public void performFullIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
IndexerServiceIndexerService.performFullIndex(FacetSearchConfig) but allows to pass the indexer hints as parameter.performFullIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexerHints - - the indexer hintsIndexerException - exception is thrown when full index query is missing in configuration or an unexpected error occurs
during indexing.public void updateIndex(FacetSearchConfig facetSearchConfig) throws IndexerException
IndexerServiceupdateIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceIndexerException - exception is thrown when update index query is missing in configuration or an unexpected error occurs
during indexing.public void updateIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
IndexerServiceIndexerService.updateIndex(FacetSearchConfig) but allows to pass the indexer hints as parameter.updateIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexerHints - - the indexer hintsIndexerException - exception is thrown when update index query is missing in configuration or an unexpected error occurs
during indexing.public void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException
IndexerServiceupdateTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typeIndexerException - exception is thrown when update index query is missing in configuration or an unexpected error occurs
during indexing.public void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
IndexerServiceIndexerService.updateTypeIndex(FacetSearchConfig, IndexedType) but allows to pass the indexer hints as
parameter.updateTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typeindexerHints - - the indexer hintsIndexerException - exception is thrown when update index query is missing in configuration or an unexpected error occurs
during indexing.public void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks) throws IndexerException
IndexerServiceupdateTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typepks - - pks of items to be updatedIndexerException - exception is thrown when an unexpected error occurs during indexing.public void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
IndexerServiceIndexerService.updateTypeIndex(FacetSearchConfig, IndexedType, List) but allows to pass the indexer hints as
parameter.updateTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typepks - - pks of items to be updatedindexerHints - - the indexer hintsIndexerException - exception is thrown when an unexpected error occurs during indexing.public void updatePartialTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties, java.util.List<PK> pks) throws IndexerException
IndexerServiceupdatePartialTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typeindexedProperties - - properties to updatepks - - pks of items to be updatedIndexerException - exception is thrown when an unexpected error occurs during indexing.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
IndexerServiceIndexerService.updatePartialTypeIndex(FacetSearchConfig, IndexedType, Collection, List) but allows to pass the
indexer hints as parameter.updatePartialTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typeindexedProperties - - properties to updatepks - - pks of items to be updatedindexerHints - - the indexer hintsIndexerException - exception is thrown when an unexpected error occurs during indexing.public void deleteFromIndex(FacetSearchConfig facetSearchConfig) throws IndexerException
IndexerServicedeleteFromIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceIndexerException - exception is thrown when delete index query is missing in configuration or an unexpected error occurs
during indexing.public void deleteFromIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
IndexerServiceIndexerService.deleteFromIndex(FacetSearchConfig) but allows to pass the indexer hints as parameter.deleteFromIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexerHints - - the indexer hintsIndexerException - exception is thrown when delete index query is missing in configuration or an unexpected error occurs
during indexing.public void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException
IndexerServicedeleteTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typeIndexerException - exception is thrown when delete index query is missing in configuration or an unexpected error occurs
during indexing.public void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
IndexerServiceIndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType) but allows to pass the indexer hints as
parameter.deleteTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typeindexerHints - - the indexer hintsIndexerException - exception is thrown when delete index query is missing in configuration or an unexpected error occurs
during indexing.public void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks) throws IndexerException
IndexerServicedeleteTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typepks - - pks of items to be removedIndexerException - exception is thrown when an unexpected error occurs during indexing.public void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
IndexerServiceIndexerService.deleteTypeIndex(FacetSearchConfig, IndexedType, List) but allows to pass the indexer hints as
parameter.deleteTypeIndex in interface IndexerServicefacetSearchConfig - - configuration for indexer instanceindexedType - - selected typepks - - pks of items to be removedindexerHints - - the indexer hintsIndexerException - exception is thrown when an unexpected error occurs during indexing.protected IndexerStrategy createIndexerStrategy(FacetSearchConfig facetSearchConfig) throws IndexerException
IndexerExceptionCopyright © 2018 SAP SE. All Rights Reserved.