Skip to content

[backport camel-4.18.x] CAMEL-23509: camel-lucene - align Exchange header constant values with Camel naming convention#23220

Merged
oscerd merged 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23208-to-camel-4.18.x
May 14, 2026
Merged

[backport camel-4.18.x] CAMEL-23509: camel-lucene - align Exchange header constant values with Camel naming convention#23220
oscerd merged 1 commit into
apache:camel-4.18.xfrom
oscerd:backport/23208-to-camel-4.18.x

Conversation

@oscerd
Copy link
Copy Markdown
Contributor

@oscerd oscerd commented May 14, 2026

Backport of #23208 onto camel-4.18.x

Cherry-pick of #23208 onto camel-4.18.x for the 4.18.3 release line.

Original PR: #23208CAMEL-23509: camel-lucene - align Exchange header constant values with Camel naming convention
Target branch: camel-4.18.x
Conflicts resolved: the camel-4x-upgrade-guide-4_21.adoc hunk from the source PR was dropped (file does not exist on this branch). A matching entry will be added to camel-4x-upgrade-guide-4_18.adoc on main via a follow-up PR, in line with the project's backport upgrade-guide policy.

Original description

Renames the values of the Exchange header constants exposed by LuceneConstants to follow the standard CamelLucene* Camel naming convention:

  • LuceneConstants.HEADER_QUERY: QUERY -> CamelLuceneQuery
  • LuceneConstants.HEADER_RETURN_LUCENE_DOCS: RETURN_LUCENE_DOCS -> CamelLuceneReturnLuceneDocs

The field names are unchanged, so routes that reference the constants continue to work without modification. Routes that set or read these headers using the raw string values must be updated.

As a consequence of the value rename, the auto-generated Endpoint DSL header accessors on LuceneHeaderNameBuilder are also renamed:

  • qUERY() -> luceneQuery()
  • returnLuceneDocs() -> luceneReturnLuceneDocs()

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

Claude Code on behalf of Andrea Cosentino

…h Camel naming convention

Signed-off-by: Andrea Cosentino <ancosen@gmail.com>
@oscerd oscerd merged commit 16a70d4 into apache:camel-4.18.x May 14, 2026
3 checks passed
oscerd added a commit that referenced this pull request May 14, 2026
Doc-sync companion to backport #23220 (camel-lucene header rename onto
camel-4.18.x).

Per the project's backport upgrade-guide policy, the
camel-4x-upgrade-guide-4_XX.adoc files live only on main and act as the
canonical history across all releases. This PR adds the camel-lucene
entry to camel-4x-upgrade-guide-4_18.adoc under the
"Upgrading from 4.18.1 to 4.18.3" section, documenting the rename of
the LuceneConstants Exchange header string values to the CamelLucene*
convention.

Closes #23222
@oscerd oscerd deleted the backport/23208-to-camel-4.18.x branch May 14, 2026 17:13
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