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.
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.