| hosts | Yes | None | The connection address of the Elasticsearch cluster. You can specify one or more addresses. The database can parse the Elasticsearch version and index shard allocation from this address. The database communicates with your Elasticsearch cluster based on the address returned by the GET /_nodes/http API operation. Therefore, the value of the hosts parameter must be the same as the address returned by the GET /_nodes/http API operation. Otherwise, BEs or CNs may not be able to communicate with your Elasticsearch cluster. |
| type | Yes | None | The type of the data source. Set this parameter to es when you create an Elasticsearch catalog. |
| user | No | Empty | The username that is used to log in to the Elasticsearch cluster with HTTP basic authentication enabled. Make sure that you have permissions to access paths such as /cluster/state/ nodes/http and have permissions to read the index. |
| password | No | Empty | The password that is used to log in to the Elasticsearch cluster. |
| es.type | No | _doc | The type of the index. If you want to query data in Elasticsearch 8 and later versions, you do not need to configure this parameter because the mapping types have been removed in Elasticsearch 8 and later versions. |
| es.nodes.wan.only | No | FALSE | Specifies whether the database only uses the addresses specified by hosts to access the Elasticsearch cluster and fetch data.true: the database only uses the addresses specified by hosts to access the Elasticsearch cluster and fetch data and does not sniff data nodes on which the shards of the Elasticsearch index reside. If the database cannot access the addresses of the data nodes inside the Elasticsearch cluster, you need to set this parameter to true.false: the database uses the addresses specified by hosts to sniff data nodes on which the shards of the Elasticsearch cluster indexes reside. After the database generates a query execution plan, BEs or CNs directly access the data nodes inside the Elasticsearch cluster to fetch data from the shards of indexes. If the database can access the addresses of the data nodes inside the Elasticsearch cluster, we recommend that you retain the default value false.
|
| es.net.ssl | No | FALSE | Specifies whether the HTTPS protocol can be used to access the Elasticsearch cluster. Only StarRocks v2.4 and later support configuring this parameter.true: Both the HTTPS and HTTP protocols can be used to access your Elasticsearch cluster.false: Only the HTTP protocol can be used to access your Elasticsearch cluster.
|
| enable_docvalue_scan | No | TRUE | Specifies whether to obtain the values of the target fields from Elasticsearch columnar storage. In most cases, reading data from columnar storage outperforms reading data from row storage. |
| enable_keyword_sniff | No | TRUE | Specifies whether to sniff TEXT-type fields in Elasticsearch based on KEYWORD-type fields. If this parameter is set to false, the database performs matching after tokenization. |