Skip to content

[backport camel-4.14.x] CAMEL-23508: camel-elasticsearch-rest-client - align Exchange header constant names with Camel naming convention#23360

Merged
oscerd merged 1 commit into
camel-4.14.xfrom
backport/23212-to-camel-4.14.x
May 20, 2026
Merged

[backport camel-4.14.x] CAMEL-23508: camel-elasticsearch-rest-client - align Exchange header constant names with Camel naming convention#23360
oscerd merged 1 commit into
camel-4.14.xfrom
backport/23212-to-camel-4.14.x

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 20, 2026

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.x

Changes

Renames the Exchange header string values in ElasticSearchRestClientConstant
from raw uppercase (ID, SEARCH_QUERY, INDEX_SETTINGS, INDEX_NAME,
OPERATION) to the CamelElasticsearch* prefix used across the rest of the
component catalog. Java field names are unchanged - only the header string
values change.

Constant Previous value New value
ID ID CamelElasticsearchId
SEARCH_QUERY SEARCH_QUERY CamelElasticsearchSearchQuery
INDEX_SETTINGS INDEX_SETTINGS CamelElasticsearchIndexSettings
INDEX_NAME INDEX_NAME CamelElasticsearchIndexName
OPERATION OPERATION CamelElasticsearchOperation

JIRA: https://issues.apache.org/jira/browse/CAMEL-23508

Conflict resolution

The cherry-pick had a single modify/delete conflict on
docs/user-manual/modules/ROOT/pages/camel-4x-upgrade-guide-4_21.adoc. That
file does not exist on the camel-4.14.x branch, so the modification was
dropped from the cherry-pick. The corresponding upgrade-guide entry for the
4.14.x release line is added on main via a separate doc-sync PR targeting
camel-4x-upgrade-guide-4_14.adoc (per the project's backport upgrade-guide
policy).

Sanity build

  • mvn clean install -DskipTests from repo root on the backport worktree
    BUILD SUCCESS.

Claude Code (Opus 4.7) on behalf of @oscerd.

…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
@oscerd oscerd merged commit 0a87d31 into camel-4.14.x May 20, 2026
3 checks passed
@oscerd oscerd deleted the backport/23212-to-camel-4.14.x branch May 20, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants