Skip to content
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

Generate TokenFilter variants #1287

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

Xtansia
Copy link
Collaborator

@Xtansia Xtansia commented Nov 11, 2024

Description

Generate TokenFilter variants

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>

@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ScriptLanguage implements TaggedUnion<ScriptLanguage.Kind, Object>, PlainJsonSerializable {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The purpose of this class is a bit unclear, I think we don't need it? What does it mean custom script? We only support the builtin ones, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Basically it's so that you can directly specify a string value if for example it's for a plugin that isn't in the "builtin" enum. This is the same pattern as the pre-existing HighlighterType and BuiltinHighlighterType

@Xtansia Xtansia merged commit f73cd06 into opensearch-project:main Nov 12, 2024
56 checks passed
@Xtansia Xtansia deleted the feat/code-gen/tokenfilter branch November 12, 2024 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants