Skip to main content
The driver for Elasticsearch is community-supported and is not maintained by Cube or the database vendor.
Elasticsearch driver is deprecated and will be removed in a future release.

Prerequisites

To connect to an Elasticsearch database, use CUBEJS_DB_URL with the username and password embedded in the URL, if required.
If you’re not using Elastic Cloud, you must specify CUBEJS_DB_ELASTIC_QUERY_FORMAT.

Setup

Manual

For a self-hosted Elasticsearch instance, add the following to a .env file in your Cube project:
For an Elasticsearch instanced hosted by Elastic.co, add the following to a .env file in your Cube project:

Environment Variables

SSL

Cube does not require any additional configuration to enable SSL as Elasticsearch connections are made over HTTPS.