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

Begin generating index CRUD operations #1220

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Xtansia
Copy link
Collaborator

@Xtansia Xtansia commented Oct 7, 2024

Description

Begin generating indices.get, shortcutting a few of the more expansive types for property mapping and query types etc. Will make follow up PRs to generate them.

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.

@Xtansia Xtansia marked this pull request as draft October 7, 2024 05:10
@Xtansia Xtansia force-pushed the feat/code-gen/indices-get branch 5 times, most recently from 92d4e70 to d1b3104 Compare October 9, 2024 10:25
@Xtansia Xtansia marked this pull request as ready for review October 9, 2024 20:19
@Xtansia Xtansia changed the title Begin generating indices.get Begin generating index CRUD operations Oct 10, 2024
dblock
dblock previously approved these changes Oct 11, 2024
UPGRADING.md Outdated Show resolved Hide resolved

### InlineScript
- The `lang` property now accepts a `ScriptLanguage` enum instead of a `String`.
Copy link
Member

Choose a reason for hiding this comment

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

This too could be made backwards compatible with a patch?

public enum ExpandWildcard implements JsonEnum {
/**
* Match any data stream or index, including hidden ones.
* Match any index, including hidden ones.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we bring back the previous comment? The note about data streams is important I think

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm unable to find any reference to expand wildcard in the context of data streams in any OS docs or in the source code. So I'm not sure if those comments are actually relevant to OS or if they're related to the expanded data stream APIs added in ES.


@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RuntimeField implements PlainJsonSerializable {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't support RuntimeFields, the equivalent feature is derived fields (see please opensearch-project/OpenSearch#12281)


Synthetic("synthetic");
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we don't support synthetic either

@Nullable
private final Query filter;

@Nullable
private final String indexRouting;
@Nonnull
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this is not the shape of the API we support (https://www.elastic.co/guide/en/elasticsearch/reference/7.12/indices-aliases.html)

Signed-off-by: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
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.

3 participants