Script Development / Elasticsearch
The Elasticsearch connector operation object primarily provides methods for operating Elasticsearch.
This connector connects based on the HTTP protocol
DFF.CONN(...) parameters are as follows:
| Parameter | Type | Required / Default | Description |
|---|---|---|---|
connector_id |
str | Required | Connector ID |
.query(...)
Sends an HTTP request to Elasticsearch. Parameters are as follows:
| Parameter | Type | Required / Default | Description |
|---|---|---|---|
method |
str | Required | Request method: GET, POST, etc. |
path |
str | None |
Request path |
query |
dict | None |
Request URL parameters |
body |
dict | None |
Request body |
| Example | |
|---|---|
1 2 3 | |
For specific query syntax, format, etc., please refer to the official Elasticsearch documentation.