Connection Parameters
Hint
This article is generated by AI translation.
jdbc-elastic supports configuring various parameters in the JDBC URL to control connection behavior, authentication, timeout settings, and more.
JDBC URL Format
jdbc:dbvisitor:elastic://host:port?param1=value1¶m2=value2
Basic Parameters
| Parameter | Description | Default |
|---|---|---|
username | Authentication username | None |
password | Authentication password | None |
Network & Timeout
| Parameter | Description | Default |
|---|---|---|
connectTimeout | Connection timeout (milliseconds) | - |
socketTimeout | Socket read timeout (milliseconds) | - |
Behavior Control
| Parameter | Description | Default |
|---|---|---|
indexRefresh | Whether to automatically refresh the index after write operations | false |
Pre-Read Configuration
These parameters control pre-read behavior for large files or large volumes of data. When pre-read is enabled, the query result set will display all fields in the document, rather than only the _ID and _DOC fields.
| Parameter | Description | Default |
|---|---|---|
preRead | Whether to enable pre-read | true |
preReadThreshold | Pre-read threshold (bytes); triggers file caching when exceeded | 5MB |
preReadMaxFileSize | Maximum pre-read file size | 20MB |
preReadCacheDir | Pre-read cache directory | System temp directory |