Package com.flowable.indexing
Interface ElasticsearchClient
- All Known Implementing Classes:
ElasticsearchClientImpl
public interface ElasticsearchClient
Low-level operations for Elasticsearch.
Doesn't know anything about aliases, this must be handled in the layer above.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createAliasForIndex
(String alias, String index) Creates a new alias for the given index.void
createCustomAlias
(String alias, String indexMapping) com.fasterxml.jackson.databind.JsonNode
createIndex
(String indexName, String alias, String indexMapping) Creates an index with the given name and creates an alias with the same name at the same time.void
void
deleteAliasForIndex
(String alias, String index) void
deleteByQuery
(String index, com.fasterxml.jackson.databind.node.ObjectNode requestNode) void
deleteDocument
(String alias, String id) void
deleteIndexIfExists
(String index) com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.JsonNode
getIndexCurrentMapping
(String index) com.fasterxml.jackson.databind.JsonNode
getIndexCurrentSettings
(String index) getIndexNameForAlias
(String alias) com.fasterxml.jackson.databind.JsonNode
boolean
indexExists
(String index) com.fasterxml.jackson.databind.JsonNode
com.fasterxml.jackson.databind.JsonNode
void
refreshIndex
(String index) com.fasterxml.jackson.databind.JsonNode
setIndexSettings
(String index, com.fasterxml.jackson.databind.node.ObjectNode settings) void
Swaps the alias from one index to another index.void
synchronousIndexDocumentRequest
(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, Long version) Indexes a document using external versioning through Elasticsearch Index API, overriding the whole document.void
synchronousUpdateDocumentRequest
(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, com.fasterxml.jackson.databind.node.ObjectNode scriptNode) void
synchronousUpsertDocumentRequest
(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode) Indexes a document using an upsert queryvoid
updateAliasMapping
(String indexName, String aliasName, com.fasterxml.jackson.databind.JsonNode indexMapping) void
updateByQuery
(String index, com.fasterxml.jackson.databind.node.ObjectNode requestNode) void
updateIndexMapping
(String indexName, com.fasterxml.jackson.databind.JsonNode mappingDelta) void
updateIndexMetaData
(String index, com.fasterxml.jackson.databind.JsonNode metaData)
-
Method Details
-
getVersionInformation
com.fasterxml.jackson.databind.JsonNode getVersionInformation() -
createIndex
com.fasterxml.jackson.databind.JsonNode createIndex(String indexName, String alias, String indexMapping) Creates an index with the given name and creates an alias with the same name at the same time.- Parameters:
indexName
- The name of the index.alias
- The alias name for the index. If alias is null, NO alias will be created, but the index still will be created.indexMapping
- The full ES mapping json that will be created.
-
createAliasForIndex
Creates a new alias for the given index. -
swapAlias
Swaps the alias from one index to another index. -
synchronousUpsertDocumentRequest
void synchronousUpsertDocumentRequest(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode) Indexes a document using an upsert query -
synchronousIndexDocumentRequest
void synchronousIndexDocumentRequest(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, Long version) Indexes a document using external versioning through Elasticsearch Index API, overriding the whole document. Update API is not available for external versioning. -
synchronousUpdateDocumentRequest
-
updateByQuery
-
deleteDocument
-
deleteByQuery
-
deleteAliasForIndex
-
deleteAliasAndRelatedIndices
-
deleteIndexIfExists
-
indexExists
-
refreshIndex
-
getIndexNameForAlias
-
getById
-
query
-
query
com.fasterxml.jackson.databind.JsonNode query(String index, com.fasterxml.jackson.databind.node.ObjectNode queryBody) -
createCustomAlias
-
getIndexCurrentMapping
-
getIndexCurrentSettings
-
setIndexSettings
com.fasterxml.jackson.databind.JsonNode setIndexSettings(String index, com.fasterxml.jackson.databind.node.ObjectNode settings) -
updateIndexMetaData
-
updateAliasMapping
-
updateIndexMapping
-
bulkRequest
ElasticsearchClient.BulkRequestClient bulkRequest()
-