You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -176,6 +176,7 @@ This setup ensures continuous data synchronization and minimal downtime in captu
176
176
|`elasticsearch.compressionEnabled`| bool | no | false | Enable compression for large messages | Useful if message sizes are large, but may increase CPU usage. |
177
177
|`elasticsearch.disableDiscoverNodesOnStart`| bool | no | false | Disable node discovery on client initialization | Skips node discovery when the client starts. |
178
178
|`elasticsearch.discoverNodesInterval`| time.Duration | no | 5 min | Periodic node discovery interval | Specify in a human-readable format, e.g., `5m` for 5 minutes. |
179
+
|`elasticsearch.version`| string | no | - | Elasticsearch version to determine compatibility features | Used to handle version-specific behaviors, such as `_type` parameter support (removed in ES 8.0+). If not specified, version is automatically detected from the cluster. |
179
180
180
181
### API
181
182
@@ -206,6 +207,17 @@ All cdc related metrics are automatically injected. It means you don't need to d
| Below 8.0 |`_type` parameter is included in the index requests |
217
+
| 8.0 and above |`_type` parameter is automatically omitted |
218
+
219
+
If no version is specified, the connector will automatically detect the Elasticsearch cluster version by querying the Info API after connection. This eliminates the need to manually configure the version.
220
+
209
221
### Breaking Changes
210
222
211
223
| Date taking effect | Version | Change | How to check |
logger.Warn("elasticsearch version detection failed", "error", err, "fallback_version", "7.0.0", "hint", "specify 'elasticsearch.version' in config to set manually")
41
+
config.Elasticsearch.Version="7.0.0"
42
+
} else {
43
+
logger.Info("elasticsearch version detected", "version", version)
0 commit comments