Package io.jmix.search.index
Interface EntityIndexer
- All Known Implementing Classes:
BaseEntityIndexer
,ElasticsearchEntityIndexer
,OpenSearchEntityIndexer
public interface EntityIndexer
Provides functionality for direct documents indexing.
-
Method Summary
Modifier and TypeMethodDescriptionDeletes provided entity instance from index.deleteByEntityId
(Id<?> entityId) Deletes entity instance from index by provided ID.deleteCollection
(Collection<Object> entityInstances) Deletes provided entity instances from index.deleteCollectionByEntityIds
(Collection<Id<?>> entityIds) Deletes entity instances from index by provided IDs.Stores provided entity instance to index.indexByEntityId
(Id<?> entityId) Stores entity instance to index by provided ID.indexCollection
(Collection<Object> entityInstances) Stores provided entity instances to index.indexCollectionByEntityIds
(Collection<Id<?>> entityIds) Stores entity instances to index by provided IDs.
-
Method Details
-
index
Stores provided entity instance to index.- Parameters:
entityInstance
- instance- Returns:
IndexResult
-
indexCollection
Stores provided entity instances to index.- Parameters:
entityInstances
- instances- Returns:
IndexResult
-
indexByEntityId
Stores entity instance to index by provided ID.- Parameters:
entityId
- ID of entity instance- Returns:
IndexResult
-
indexCollectionByEntityIds
Stores entity instances to index by provided IDs.- Parameters:
entityIds
- IDs of entity instances- Returns:
IndexResult
-
delete
Deletes provided entity instance from index.- Parameters:
entityInstance
- instance- Returns:
IndexResult
-
deleteCollection
Deletes provided entity instances from index.- Parameters:
entityInstances
- instances- Returns:
IndexResult
-
deleteByEntityId
Deletes entity instance from index by provided ID.- Parameters:
entityId
- ID of entity instance- Returns:
IndexResult
-
deleteCollectionByEntityIds
Deletes entity instances from index by provided IDs.- Parameters:
entityIds
- IDs of entity instances- Returns:
IndexResult
-