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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateAliasForIndex(String alias, String index) Creates a new alias for the given index.voidcreateCustomAlias(String alias, String indexMapping) com.fasterxml.jackson.databind.JsonNodecreateIndex(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.voidvoiddeleteAliasForIndex(String alias, String index) voiddeleteByQuery(String index, com.fasterxml.jackson.databind.node.ObjectNode requestNode) voiddeleteDocument(String alias, String id) voiddeleteIndexIfExists(String index) com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodegetIndexCurrentMapping(String index) com.fasterxml.jackson.databind.JsonNodegetIndexCurrentSettings(String index) getIndexNameForAlias(String alias) com.fasterxml.jackson.databind.JsonNodebooleanindexExists(String index) com.fasterxml.jackson.databind.JsonNodecom.fasterxml.jackson.databind.JsonNodevoidrefreshIndex(String index) com.fasterxml.jackson.databind.JsonNodesetIndexSettings(String index, com.fasterxml.jackson.databind.node.ObjectNode settings) voidSwaps the alias from one index to another index.voidsynchronousIndexDocumentRequest(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.voidsynchronousUpdateDocumentRequest(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode, com.fasterxml.jackson.databind.node.ObjectNode scriptNode) voidsynchronousUpsertDocumentRequest(String index, String id, com.fasterxml.jackson.databind.node.ObjectNode objectNode) Indexes a document using an upsert queryvoidupdateAliasMapping(String indexName, String aliasName, com.fasterxml.jackson.databind.JsonNode indexMapping) voidupdateByQuery(String index, com.fasterxml.jackson.databind.node.ObjectNode requestNode) voidupdateIndexMapping(String indexName, com.fasterxml.jackson.databind.JsonNode mappingDelta) voidupdateIndexMetaData(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()
-