[backport camel-4.14.x] CAMEL-23508: camel-elasticsearch-rest-client - align Exchange header constant names with Camel naming convention#23360
Merged
Conversation
…constant names with Camel naming convention Rename the Exchange header string values in ElasticSearchRestClientConstant from raw uppercase (ID, SEARCH_QUERY, INDEX_SETTINGS, INDEX_NAME, OPERATION) to the Camel naming convention (CamelElasticsearchId, CamelElasticsearchSearchQuery, CamelElasticsearchIndexSettings, CamelElasticsearchIndexName, CamelElasticsearchOperation). The Java field names are unchanged so routes referencing the constants symbolically continue to work. Routes using the literal string value must be updated. Adds an entry to the 4.21 upgrade guide and regenerates the affected component metadata, catalog, and endpoint DSL. Closes #23212
Croway
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #23212
Cherry-pick of #23212 onto
camel-4.14.x.Original PR: #23212 - CAMEL-23508: camel-elasticsearch-rest-client - align Exchange header constant names with Camel naming convention
Original author: @oscerd
Target branch:
camel-4.14.xChanges
Renames the Exchange header string values in
ElasticSearchRestClientConstantfrom raw uppercase (
ID,SEARCH_QUERY,INDEX_SETTINGS,INDEX_NAME,OPERATION) to theCamelElasticsearch*prefix used across the rest of thecomponent catalog. Java field names are unchanged - only the header string
values change.
IDIDCamelElasticsearchIdSEARCH_QUERYSEARCH_QUERYCamelElasticsearchSearchQueryINDEX_SETTINGSINDEX_SETTINGSCamelElasticsearchIndexSettingsINDEX_NAMEINDEX_NAMECamelElasticsearchIndexNameOPERATIONOPERATIONCamelElasticsearchOperationJIRA: https://issues.apache.org/jira/browse/CAMEL-23508
Conflict resolution
The cherry-pick had a single
modify/deleteconflict ondocs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc. Thatfile does not exist on the
camel-4.14.xbranch, so the modification wasdropped from the cherry-pick. The corresponding upgrade-guide entry for the
4.14.x release line is added on
mainvia a separate doc-sync PR targetingcamel-4x-upgrade-guide-4_14.adoc(per the project's backport upgrade-guidepolicy).
Sanity build
mvn clean install -DskipTestsfrom repo root on the backport worktreeBUILD SUCCESS.
Claude Code (Opus 4.7) on behalf of @oscerd.