Class OpenSearchEntityIndexer
java.lang.Object
io.jmix.search.index.impl.BaseEntityIndexer
io.jmix.searchopensearch.index.impl.OpenSearchEntityIndexer
- All Implemented Interfaces:
EntityIndexer
Implementation for OpenSearch
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.search.index.impl.BaseEntityIndexer
BaseEntityIndexer.IndexDocumentData -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.opensearch.client.opensearch.OpenSearchClientFields inherited from class io.jmix.search.index.impl.BaseEntityIndexer
dataManager, fetchPlans, idSerialization, indexConfigurationManager, indexStateRegistry, metadata, metadataTools, objectMapper, searchProperties -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchEntityIndexer(UnconstrainedDataManager dataManager, FetchPlans fetchPlans, IndexConfigurationManager indexConfigurationManager, Metadata metadata, IdSerialization idSerialization, IndexStateRegistry indexStateRegistry, MetadataTools metadataTools, SearchProperties searchProperties, org.opensearch.client.opensearch.OpenSearchClient client) -
Method Summary
Modifier and TypeMethodDescriptionprotected IndexResultcreateIndexResult(org.opensearch.client.opensearch.core.BulkResponse response) protected org.opensearch.client.opensearch.core.BulkResponseprotected IndexResultdeleteByGroupedDocIds(Map<IndexConfiguration, Collection<String>> groupedDocIds) protected org.opensearch.client.opensearch.core.BulkResponseexecute(org.opensearch.client.opensearch.core.BulkRequest.Builder requestBuilder) protected org.opensearch.client.opensearch.core.BulkResponseexecuteBulkRequest(org.opensearch.client.opensearch.core.BulkRequest request) protected IndexResultindexDocuments(List<BaseEntityIndexer.IndexDocumentData> documents) protected org.opensearch.client.opensearch._types.RefreshMethods 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 org.opensearch.client.opensearch.OpenSearchClient client
-
-
Constructor Details
-
OpenSearchEntityIndexer
public OpenSearchEntityIndexer(UnconstrainedDataManager dataManager, FetchPlans fetchPlans, IndexConfigurationManager indexConfigurationManager, Metadata metadata, IdSerialization idSerialization, IndexStateRegistry indexStateRegistry, MetadataTools metadataTools, SearchProperties searchProperties, org.opensearch.client.opensearch.OpenSearchClient client)
-
-
Method Details
-
indexDocuments
- Specified by:
indexDocumentsin classBaseEntityIndexer
-
deleteByGroupedDocIds
protected IndexResult deleteByGroupedDocIds(Map<IndexConfiguration, Collection<String>> groupedDocIds) - Specified by:
deleteByGroupedDocIdsin classBaseEntityIndexer
-
execute
protected org.opensearch.client.opensearch.core.BulkResponse execute(org.opensearch.client.opensearch.core.BulkRequest.Builder requestBuilder) -
executeBulkRequest
protected org.opensearch.client.opensearch.core.BulkResponse executeBulkRequest(org.opensearch.client.opensearch.core.BulkRequest request) -
createNoopBulkResponse
protected org.opensearch.client.opensearch.core.BulkResponse createNoopBulkResponse() -
createIndexResult
protected IndexResult createIndexResult(org.opensearch.client.opensearch.core.BulkResponse response) -
resolveRefresh
protected org.opensearch.client.opensearch._types.Refresh resolveRefresh()
-