Skip to content

Remove support for deprecated force_source highlighting parameter #116943

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

Conversation

javanna
Copy link
Member

@javanna javanna commented Nov 18, 2024

force_source is being parsed as a no-op since 8.8. This commit removes support for it at REST, meaning a search request that provides it gets now an error back.

force_source is being parsed as a no-op since 8.8. This commit removes support
for it at REST, meaning a search request that provides it gets now an error back.
Copy link
Contributor

Documentation preview:

@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Nov 18, 2024
@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. Note that since this PR is labelled >breaking, you need to update the changelog YAML to fill out the extended information sections.

@javanna javanna changed the title Remove support for deprecated force_source higlighting parameter Remove support for deprecated force_source highlighting parameter Nov 18, 2024
@@ -193,9 +189,6 @@ public final void writeTo(StreamOutput out) throws IOException {
}
out.writeOptionalWriteable(order);
out.writeOptionalBoolean(highlightFilter);
if (out.getTransportVersion().before(TransportVersions.V_8_8_0)) {
out.writeOptionalBoolean(false);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I have not added a new transport version associated with this change. My assumption is that it is not needed given that 9.0 will never communicate with versions previous than 8.last, hence the conditionals under which the flag was read or written are always going to render false.

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

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

Thanks @javanna, makes sense.

@javanna
Copy link
Member Author

javanna commented Nov 18, 2024

Thanks for the speedy review @mayya-sharipova !

@javanna javanna merged commit 9968928 into elastic:main Nov 18, 2024
16 checks passed
@javanna javanna deleted the breaking/remove_force_source_highlighting branch November 18, 2024 16:36
rjernst pushed a commit to rjernst/elasticsearch that referenced this pull request Nov 20, 2024
…astic#116943)

force_source is being parsed as a no-op since 8.8. This commit removes support
for it at REST, meaning a search request that provides it gets now an error back.
alexey-ivanov-es pushed a commit to alexey-ivanov-es/elasticsearch that referenced this pull request Nov 28, 2024
…astic#116943)

force_source is being parsed as a no-op since 8.8. This commit removes support
for it at REST, meaning a search request that provides it gets now an error back.
@leemthompo
Copy link
Contributor

@javanna is this PR relevant to the serverless changelog? [FYI this question is based on 9.0 breaking changes]

@javanna
Copy link
Member Author

javanna commented Apr 11, 2025

@leemthompo yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>breaking :Search Relevance/Highlighting How a query matched a document Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants