Skip to main content

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&param2=value2

Basic Parameters

ParameterDescriptionDefault
usernameAuthentication usernameNone
passwordAuthentication passwordNone

Network & Timeout

ParameterDescriptionDefault
connectTimeoutConnection timeout (milliseconds)-
socketTimeoutSocket read timeout (milliseconds)-

Behavior Control

ParameterDescriptionDefault
indexRefreshWhether to automatically refresh the index after write operationsfalse

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.

ParameterDescriptionDefault
preReadWhether to enable pre-readtrue
preReadThresholdPre-read threshold (bytes); triggers file caching when exceeded5MB
preReadMaxFileSizeMaximum pre-read file size20MB
preReadCacheDirPre-read cache directorySystem temp directory