@Tags(value={"elasticsearch","client"}) @CapabilityDescription(value="A controller service for accessing an ElasticSearch client.") public interface ElasticSearchClientService extends ControllerService
| Modifier and Type | Field and Description |
|---|---|
static PropertyDescriptor |
CHARSET |
static PropertyDescriptor |
CONNECT_TIMEOUT |
static PropertyDescriptor |
HTTP_HOSTS |
static PropertyDescriptor |
PASSWORD |
static PropertyDescriptor |
PROP_SSL_CONTEXT_SERVICE |
static PropertyDescriptor |
RETRY_TIMEOUT |
static PropertyDescriptor |
SOCKET_TIMEOUT |
static PropertyDescriptor |
USERNAME |
| Modifier and Type | Method and Description |
|---|---|
String |
getTransitUrl(String index,
String type)
Build a transit URL to use with the provenance reporter.
|
SearchResponse |
search(String query,
String index,
String type)
Perform a search using the JSON DSL.
|
initializegetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatestatic final PropertyDescriptor HTTP_HOSTS
static final PropertyDescriptor PROP_SSL_CONTEXT_SERVICE
static final PropertyDescriptor USERNAME
static final PropertyDescriptor PASSWORD
static final PropertyDescriptor CONNECT_TIMEOUT
static final PropertyDescriptor SOCKET_TIMEOUT
static final PropertyDescriptor RETRY_TIMEOUT
static final PropertyDescriptor CHARSET
SearchResponse search(String query, String index, String type) throws IOException
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.IOExceptionCopyright © 2018 Apache NiFi Project. All rights reserved.