-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] Types from PutIndexTemplateRequest and builder to reduce mapping to a string #2510
[Remove] Types from PutIndexTemplateRequest and builder to reduce mapping to a string #2510
Conversation
Signed-off-by: Suraj Singh <[email protected]>
Signed-off-by: Suraj Singh <[email protected]>
XContentFactory.jsonBuilder() | ||
.startObject() | ||
.startObject("type1") | ||
.startObject("_doc") |
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 think the _doc
part is not needed
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.
Thank you @reta for your comment. Yes, it looks like _doc is not needed.
I will remove all occurrences of _doc added as part of this commit.
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.
👍
Existing gradle check is failing due to parsing issue. Probable bug in logic change in
|
❌ Gradle Check failure de1f11b371ba0c78b3703e44d5b72886dd1a1323 |
Signed-off-by: Suraj Singh <[email protected]>
de1f11b
to
0fa6b43
Compare
start gradle check |
|
start gradle check |
@nknize : I would also request your review on this PR as it involves changes around serialisation. Can you please have a look ? |
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.
LGTM!
Signed-off-by: Suraj Singh [email protected]
Description
With type removal from codebase, this change prevents
PutIndexTemplateRequest
and corresponding builder to hold multiple mapping types. It change internal representation of mapping from maps to String and a subsequent change of #2497Related: #1940
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.