Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Query Definition Style] Property has a value of "FULL_QUERY".Query Clause | el-rest-query-clause | | | A "query" clause in JSON syntax, not Lucene syntax. Ex: {"match":{"somefield":"somevalue"}}. If the query is empty, a default JSON Object will be used, which will result in a "match_all" query in Elasticsearch. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Query Definition Style] Property has a value of "BUILD_QUERY". |
Script | el-rest-script | | | A "script" to execute during the operation, in JSON syntax. Ex: {"source": "ctx._source.count++", "lang": "painless"} Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
This Property is only considered if the [Query Definition Style] Property has a value of "BUILD_QUERY". |
Query Attribute | el-query-attribute | | | If set, the executed query will be set on each result flowfile in the specified attribute. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Index | el-rest-fetch-index | | | The name of the index to use. Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Type | el-rest-type | | | The type of this document (used by Elasticsearch for indexing and searching). Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Client Service | el-rest-client-service | | Controller Service API: ElasticSearchClientService Implementation: ElasticSearchClientServiceImpl | An Elasticsearch client service to use for running queries. |
Dynamic Properties:
Supports Sensitive Dynamic Properties: No
Dynamic Properties allow the user to specify both the name and value of a property.
Name | Value | Description |
---|
The name of a URL query parameter to add | The value of the URL query parameter | Adds the specified property name/value as a query parameter in the Elasticsearch URL used for processing. These parameters will override any matching parameters in the query request body Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Relationships:
Name | Description |
---|
retry | All flowfiles that fail due to server/cluster availability go to this relationship. |
success | If the "by query" operation succeeds, and a flowfile was read, it will be sent to this relationship. |
failure | If the "by query" operation fails, and a flowfile was read, it will be sent to this relationship. |
Reads Attributes:
None specified.Writes Attributes:
Name | Description |
---|
elasticsearch.update.took | The amount of time that it took to complete the update operation in ms. |
elasticsearch.update.error | The error message provided by Elasticsearch if there is an error running the update. |
State management:
This component does not store state.Restricted:
This component is not restricted.Input requirement:
This component allows an incoming relationship.System Resource Considerations:
None specified.