Parameters
Hint
This article is generated by AI translation.
jdbc-elastic supports many JDBC URL parameters to control connection behavior, auth, timeouts, etc.
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 & Timeouts
| Parameter | Description | Default |
|---|---|---|
connectTimeout | Connection timeout (ms) | - |
socketTimeout | Socket read timeout (ms) | - |
Behavior Control
| Parameter | Description | Default |
|---|---|---|
indexRefresh | Whether to automatically refresh the index after write operations | false |
Pre-Read Settings
These parameters are used to control the pre-read behavior for large files or large amounts of data. When pre-read is enabled, the query result set will display all fields in the document, instead of just _ID and _DOC fields.
| Parameter | Description | Default |
|---|---|---|
preRead | Whether to enable pre-read | true |
preReadThreshold | Pre-read threshold (bytes), triggers file caching if exceeded | 5MB |
preReadMaxFileSize | Pre-read max file size | 20MB |
preReadCacheDir | Pre-read cache directory | System temp dir |