public interface ElasticSearchClientService extends ControllerService, VerifiableControllerService
| Modifier and Type | Method and Description |
|---|---|
IndexOperationResponse |
add(IndexOperationRequest operation,
Map<String,String> requestParameters)
Index a document.
|
IndexOperationResponse |
bulk(List<IndexOperationRequest> operations,
Map<String,String> requestParameters)
Bulk process multiple documents.
|
Long |
count(String query,
String index,
String type,
Map<String,String> requestParameters)
Count the documents that match the criteria.
|
DeleteOperationResponse |
deleteById(String index,
String type,
List<String> ids,
Map<String,String> requestParameters)
Delete multiple documents by ID from an index.
|
DeleteOperationResponse |
deleteById(String index,
String type,
String id,
Map<String,String> requestParameters)
Delete a document by its ID from an index.
|
DeleteOperationResponse |
deleteByQuery(String query,
String index,
String type,
Map<String,String> requestParameters)
Delete documents by query.
|
DeleteOperationResponse |
deletePointInTime(String pitId)
Delete a Point in Time.
|
DeleteOperationResponse |
deleteScroll(String scrollId)
Delete a Scroll.
|
boolean |
documentExists(String index,
String type,
String id,
Map<String,String> requestParameters)
Check whether a document exists.
|
boolean |
exists(String index,
Map<String,String> requestParameters)
Check whether an index exists.
|
Map<String,Object> |
get(String index,
String type,
String id,
Map<String,String> requestParameters)
Get a document by ID.
|
String |
getTransitUrl(String index,
String type)
Build a transit URL to use with the provenance reporter.
|
String |
initialisePointInTime(String index,
String keepAlive)
Initialise a Point in Time for paginated queries.
|
void |
refresh(String index,
Map<String,String> requestParameters)
Refresh index/indices.
|
SearchResponse |
scroll(String scroll)
Retrieve next page of results from a Scroll.
|
SearchResponse |
search(String query,
String index,
String type,
Map<String,String> requestParameters)
Perform a search using the JSON DSL.
|
UpdateOperationResponse |
updateByQuery(String query,
String index,
String type,
Map<String,String> requestParameters)
Update documents by query.
|
initialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateverifystatic final PropertyDescriptor HTTP_HOSTS
static final PropertyDescriptor PROP_SSL_CONTEXT_SERVICE
static final PropertyDescriptor PROXY_CONFIGURATION_SERVICE
static final PropertyDescriptor AUTHORIZATION_SCHEME
static final PropertyDescriptor USERNAME
static final PropertyDescriptor PASSWORD
static final PropertyDescriptor API_KEY_ID
static final PropertyDescriptor API_KEY
static final PropertyDescriptor CONNECT_TIMEOUT
static final PropertyDescriptor SOCKET_TIMEOUT
@Deprecated static final PropertyDescriptor RETRY_TIMEOUT
static final PropertyDescriptor CHARSET
static final AllowableValue ALWAYS_SUPPRESS
static final AllowableValue NEVER_SUPPRESS
static final PropertyDescriptor SUPPRESS_NULLS
static final PropertyDescriptor COMPRESSION
static final PropertyDescriptor SEND_META_HEADER
static final PropertyDescriptor STRICT_DEPRECATION
static final AllowableValue NODE_SELECTOR_ANY
static final AllowableValue NODE_SELECTOR_SKIP_DEDICATED_MASTERS
static final PropertyDescriptor NODE_SELECTOR
static final PropertyDescriptor PATH_PREFIX
static final PropertyDescriptor SNIFF_CLUSTER_NODES
static final PropertyDescriptor SNIFF_ON_FAILURE
static final PropertyDescriptor SNIFFER_INTERVAL
static final PropertyDescriptor SNIFFER_REQUEST_TIMEOUT
static final PropertyDescriptor SNIFFER_FAILURE_DELAY
IndexOperationResponse add(IndexOperationRequest operation, Map<String,String> requestParameters)
operation - A document to index.requestParameters - A collection of URL request parameters. Optional.IndexOperationResponse bulk(List<IndexOperationRequest> operations, Map<String,String> requestParameters)
operations - A list of index operations.requestParameters - A collection of URL request parameters. Optional.Long count(String query, String index, String type, Map<String,String> requestParameters)
query - A query in the JSON DSL syntaxindex - The index to target.type - The type to target. Will not be used in future versions of Elasticsearch.requestParameters - A collection of URL request parameters. Optional.DeleteOperationResponse deleteById(String index, String type, String id, Map<String,String> requestParameters)
index - The index to target.type - The type to target. Optional. Will not be used in future versions of Elasticsearch.id - The document ID to remove from the selected index.requestParameters - A collection of URL request parameters. Optional.DeleteOperationResponse deleteById(String index, String type, List<String> ids, Map<String,String> requestParameters)
index - The index to target.type - The type to target. Optional. Will not be used in future versions of Elasticsearch.ids - A list of document IDs to remove from the selected index.requestParameters - A collection of URL request parameters. Optional.DeleteOperationResponse deleteByQuery(String query, String index, String type, Map<String,String> requestParameters)
query - A valid JSON query to be used for finding documents to delete.index - The index to target.type - The type to target within the index. Optional. Will not be used in future versions of Elasticsearch.requestParameters - A collection of URL request parameters. Optional.UpdateOperationResponse updateByQuery(String query, String index, String type, Map<String,String> requestParameters)
query - A valid JSON query to be used for finding documents to update.index - The index to target.type - The type to target within the index. Optional. Will not be used in future versions of Elasticsearch.requestParameters - A collection of URL request parameters. Optional.void refresh(String index, Map<String,String> requestParameters)
index - The index to target, if omitted then all indices will be updated.requestParameters - A collection of URL request parameters. Optional.boolean exists(String index, Map<String,String> requestParameters)
index - The index to check.requestParameters - A collection of URL request parameters. Optional.boolean documentExists(String index, String type, String id, Map<String,String> requestParameters)
index - The index that holds the document.type - The document type. Optional. Will not be used in future versions of Elasticsearch.id - The document IDrequestParameters - A collection of URL request parameters. Optional.Map<String,Object> get(String index, String type, String id, Map<String,String> requestParameters)
index - The index that holds the document.type - The document type. Optional. Will not be used in future versions of Elasticsearch.id - The document IDrequestParameters - A collection of URL request parameters. Optional.SearchResponse search(String query, String index, String type, Map<String,String> requestParameters)
query - A JSON string reprensenting the query.index - The index to target. Optional.type - The type to target. Optional. Will not be used in future versions of Elasticsearch.requestParameters - A collection of URL request parameters. Optional.SearchResponse scroll(String scroll)
scroll - A JSON string containing scrollId and optional scroll (keep alive) retention period.String initialisePointInTime(String index, String keepAlive)
index - Index targeted.keepAlive - Point in Time's retention period (maximum time Elasticsearch will retain the PiT between requests). Optional.DeleteOperationResponse deletePointInTime(String pitId)
pitId - Point in Time Id to be deleted.DeleteOperationResponse deleteScroll(String scrollId)
scrollId - Scroll Id to be deleted.Copyright © 2023 Apache NiFi Project. All rights reserved.