Class ElasticsearchEntityIndexer
java.lang.Object
io.jmix.search.index.impl.BaseEntityIndexer
io.jmix.searchelasticsearch.index.impl.ElasticsearchEntityIndexer
- All Implemented Interfaces:
EntityIndexer
Implementation for Elasticsearch
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.search.index.impl.BaseEntityIndexer
BaseEntityIndexer.IndexDocumentData
-
Field Summary
Modifier and TypeFieldDescriptionprotected final co.elastic.clients.elasticsearch.ElasticsearchClient
Fields inherited from class io.jmix.search.index.impl.BaseEntityIndexer
dataManager, fetchPlans, idSerialization, indexConfigurationManager, indexStateRegistry, metadata, metadataTools, objectMapper, searchProperties
-
Constructor Summary
ConstructorDescriptionElasticsearchEntityIndexer
(UnconstrainedDataManager dataManager, FetchPlans fetchPlans, IndexConfigurationManager indexConfigurationManager, Metadata metadata, IdSerialization idSerialization, IndexStateRegistry indexStateRegistry, MetadataTools metadataTools, SearchProperties searchProperties, co.elastic.clients.elasticsearch.ElasticsearchClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected IndexResult
createIndexResult
(co.elastic.clients.elasticsearch.core.BulkResponse response) protected co.elastic.clients.elasticsearch.core.BulkResponse
protected IndexResult
deleteByGroupedDocIds
(Map<IndexConfiguration, Collection<String>> groupedDocIds) protected co.elastic.clients.elasticsearch.core.BulkResponse
execute
(co.elastic.clients.elasticsearch.core.BulkRequest.Builder requestBuilder) protected co.elastic.clients.elasticsearch.core.BulkResponse
executeBulkRequest
(co.elastic.clients.elasticsearch.core.BulkRequest request) protected IndexResult
indexDocuments
(List<BaseEntityIndexer.IndexDocumentData> documents) protected co.elastic.clients.elasticsearch._types.Refresh
Methods inherited from class io.jmix.search.index.impl.BaseEntityIndexer
addFieldValueToEntityIndexContent, createFetchPlan, createObjectNodeForField, delete, deleteByEntityId, deleteByGroupedIndexIdsInternal, deleteCollection, deleteCollectionByEntityIds, generateIndexDocument, index, indexByEntityId, indexCollection, indexCollectionByEntityIds, indexGroupedInstances, merge, prepareIndexIdsByEntityIds, prepareIndexIdsByEntityInstances, prepareInstancesForIndexing, prepareInstancesForIndexingByIds, reloadEntityInstances, updateArray, updateObject
-
Field Details
-
client
protected final co.elastic.clients.elasticsearch.ElasticsearchClient client
-
-
Constructor Details
-
ElasticsearchEntityIndexer
public ElasticsearchEntityIndexer(UnconstrainedDataManager dataManager, FetchPlans fetchPlans, IndexConfigurationManager indexConfigurationManager, Metadata metadata, IdSerialization idSerialization, IndexStateRegistry indexStateRegistry, MetadataTools metadataTools, SearchProperties searchProperties, co.elastic.clients.elasticsearch.ElasticsearchClient client)
-
-
Method Details
-
indexDocuments
- Specified by:
indexDocuments
in classBaseEntityIndexer
-
deleteByGroupedDocIds
protected IndexResult deleteByGroupedDocIds(Map<IndexConfiguration, Collection<String>> groupedDocIds) - Specified by:
deleteByGroupedDocIds
in classBaseEntityIndexer
-
execute
protected co.elastic.clients.elasticsearch.core.BulkResponse execute(co.elastic.clients.elasticsearch.core.BulkRequest.Builder requestBuilder) -
executeBulkRequest
protected co.elastic.clients.elasticsearch.core.BulkResponse executeBulkRequest(co.elastic.clients.elasticsearch.core.BulkRequest request) -
createNoopBulkResponse
protected co.elastic.clients.elasticsearch.core.BulkResponse createNoopBulkResponse() -
createIndexResult
protected IndexResult createIndexResult(co.elastic.clients.elasticsearch.core.BulkResponse response) -
resolveRefresh
protected co.elastic.clients.elasticsearch._types.Refresh resolveRefresh()
-