Skip to content

Restore V8 REST compatibility around highlight force_source parameter #124873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 14, 2025

Conversation

javanna
Copy link
Member

@javanna javanna commented Mar 14, 2025

While that was an approved breaking change, the change should have ensured v8 compatibility, so that under v8 compatibility mode the parameter is still accepted, but rejected in v9 compatibility mode (default).

This commit ensures compatibility and adds a test for it.

While that was an approved breaking change, the change should have ensured v8
compatibility, so that under v8 compatiblity mode the parameter is still accepted,
but rejected in v9 compatibility mode (default).

This commit ensures compatiblity and adds a test for it.
@javanna javanna requested a review from iverase March 14, 2025 12:02
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Mar 14, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@elasticsearchmachine
Copy link
Collaborator

Hi @javanna, I've created a changelog YAML for you.

Copy link
Contributor

@iverase iverase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks Luca!

@javanna javanna added the auto-backport Automatically create backport pull requests when merged label Mar 14, 2025
@javanna javanna merged commit 6d914a2 into elastic:main Mar 14, 2025
17 checks passed
@javanna javanna deleted the fix/force_source_v8 branch March 14, 2025 13:09
javanna added a commit to javanna/elasticsearch that referenced this pull request Mar 14, 2025
…elastic#124873)

While that was an approved breaking change, the change should have ensured v8
compatibility, so that under v8 compatibility mode the parameter is still accepted,
but rejected in v9 compatibility mode (default).

This commit ensures compatibility and adds a test for it.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.0

elasticsearchmachine pushed a commit that referenced this pull request Mar 14, 2025
…#124873) (#124881)

While that was an approved breaking change, the change should have ensured v8
compatibility, so that under v8 compatibility mode the parameter is still accepted,
but rejected in v9 compatibility mode (default).

This commit ensures compatibility and adds a test for it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >bug :Search Relevance/Highlighting How a query matched a document Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants