docs/versioned_docs/version-2.50.0-LTS/data-sources/elasticsearch.md
ToolJet can connect to your Elasticsearch cluster to read and write data.
To establish a connection with the ElasticSearch data source, you can either click on the + Add new data source button located on the query panel or navigate to the Data Sources page through the ToolJet dashboard.
:::info Please make sure the Host/IP of the database is accessible from your VPC if you have self-hosted ToolJet. If you are using ToolJet cloud, please whitelist our IP. :::
ToolJet requires the following to connect to your Elasticsearch cluster:
Elastic search data source is also providing an option for connecting services with ssl certificates.
:::tip Query results can be transformed using transformations. Read our transformations documentation to see how: link :::
This operation allows you to execute a search query and get back search hits that match the query. Read the Elasticsearch's Search guide here.
{
"query": {
"match": {
"title": "Elasticsearch"
}
}
}
This operation allows you to add a JSON document to the specified data stream or index. Read the Elasticsearch's Index guide here.
{
"title": "Introduction to Elasticsearch",
"content": "Elasticsearch is a search engine based on the Lucene library.",
"published_date": "2024-09-16"
}
This operation allows you to retrieve the specified JSON document from the index. Read the Elasticsearch's Get guide here.
This operation allows to update a document using the specified script. Read the Elasticsearch's Update guide here.
{
"doc": {
"title": "Introduction to Elasticsearch (Updated)"
}
}