Skip to content

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

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

4 participants