Settings preceding connection; determine what connection type to use (e.g. Remote vs Sidecar), addresses, ports, regardless of Elasticsearch version.
Initially with settings:
- "Connect to a Remote Elasticsearch Server (recommended for production)" (checkbox)
- "Elasticsearch Connection of the Remote Elasticsearch Server" (text or drop: id of a connection from Multiple Elasticsearch Connections)
When "Connect to Remote" is disabled: start and connect to a Sidecar.
When "Connect to Remote" is enabled: Sidecar will not start. Behavior depends on "Elasticsearch Connection of Remote" (see below.)
When "Elasticsearch Connection of Remote" is empty: assume a local Elasticsearch was manually started, and just attempt localhost 9200.
When "Elasticsearch Connection of Remote" is defined: REST will connect to the address from the chosen Elasticsearch Connection (as configured at Multiple Elasticsearch Connections).