-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
Remove support for deprecated force_source highlighting parameter #116943
Conversation
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.
Documentation preview: |
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
Hi @javanna, I've created a changelog YAML for you. Note that since this PR is labelled |
@@ -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); | |||
} |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Thanks for the speedy review @mayya-sharipova ! |
…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.
…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.
@javanna is this PR relevant to the serverless changelog? [FYI this question is based on 9.0 breaking changes] |
@leemthompo yes |
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.