Interface IndexerService
-
- All Known Implementing Classes:
DefaultIndexerService
public interface IndexerServiceImplementations of this interface should be responsible for indexing operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteFromIndex(FacetSearchConfig facetSearchConfig)Removes some items from the index.voiddeleteFromIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asdeleteFromIndex(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 asdeleteTypeIndex(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 asdeleteTypeIndex(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, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asperformFullIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.voidupdateIndex(FacetSearchConfig facetSearchConfig)Updates some items on the index.voidupdateIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints)Same asupdateIndex(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 asupdatePartialTypeIndex(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 asupdateTypeIndex(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 asupdateTypeIndex(FacetSearchConfig, IndexedType)but allows to pass the indexer hints as parameter.
-
-
-
Method Detail
-
performFullIndex
void performFullIndex(FacetSearchConfig facetSearchConfig) throws IndexerException
Performs 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.- 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
void performFullIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Same asperformFullIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.- 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
void updateIndex(FacetSearchConfig facetSearchConfig) throws IndexerException
Updates 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.- 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
void updateIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Same asupdateIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.- 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
void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException
Updates some items on the index for a specific type. Items to be updated are selected based on the update index query.- 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
void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Same asupdateTypeIndex(FacetSearchConfig, IndexedType)but allows to pass the indexer hints as parameter.- 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
void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks) throws IndexerException
Updates some items on the index for a specific type.- 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
void updateTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Same asupdateTypeIndex(FacetSearchConfig, IndexedType, List)but allows to pass the indexer hints as parameter.- 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
void updatePartialTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<IndexedProperty> indexedProperties, java.util.List<PK> pks) throws IndexerException
Updates some properties of some items on the index for a specific type.- 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
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
Same asupdatePartialTypeIndex(FacetSearchConfig, IndexedType, Collection, List)but allows to pass the indexer hints as parameter.- 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
void deleteFromIndex(FacetSearchConfig facetSearchConfig) throws IndexerException
Removes 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.- 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
void deleteFromIndex(FacetSearchConfig facetSearchConfig, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Same asdeleteFromIndex(FacetSearchConfig)but allows to pass the indexer hints as parameter.- 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
void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType) throws IndexerException
Removes some items from the index for a specific type. Items to be removed are selected based on the delete index query.- 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
void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Same asdeleteTypeIndex(FacetSearchConfig, IndexedType)but allows to pass the indexer hints as parameter.- 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
void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks) throws IndexerException
Removes some items from the index for a specific type.- 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
void deleteTypeIndex(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.List<PK> pks, java.util.Map<java.lang.String,java.lang.String> indexerHints) throws IndexerException
Same asdeleteTypeIndex(FacetSearchConfig, IndexedType, List)but allows to pass the indexer hints as parameter.- 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.
-
-