-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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] type from CIR.mapping and CIRB.mapping #2478
[Remove] type from CIR.mapping and CIRB.mapping #2478
Conversation
❌ Gradle Check failure ce3242eafca12e888ebd1398069a75ced2bdc989 |
ce3242e
to
7b36c28
Compare
❌ Gradle Check failure 7b36c2834d1888d5ce2fa4158ae50de7ec71d9c7 |
Yes. I'll definitely need to rebase now that the lucene 9 PR has landed. |
7b36c28
to
0e06bdd
Compare
❌ Gradle Check failure 0e06bdd387da328eabd3720054cf729354b334a5 |
❌ Gradle Check failure 48208afd67e2248e96c4364511866a05e17e1058 |
3e1010e
to
776f152
Compare
...rnalClusterTest/java/org/opensearch/search/fetch/subphase/highlight/HighlighterSearchIT.java
Show resolved
Hide resolved
...rnalClusterTest/java/org/opensearch/search/fetch/subphase/highlight/HighlighterSearchIT.java
Show resolved
Hide resolved
...rnalClusterTest/java/org/opensearch/search/fetch/subphase/highlight/HighlighterSearchIT.java
Show resolved
Hide resolved
Please ignore my previous comments, will wait for current gradle check to complete before review. |
✅ Gradle Check success 776f15239f94a2e5643c1dffee71f598a7ea304d |
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.
Nice! LGTM
Objects.requireNonNull(xContentType); | ||
Map<String, Object> mappingAsMap = XContentHelper.convertToMap(source, false, xContentType).v2(); | ||
return mapping(type, mappingAsMap); | ||
return mapping(MapperService.SINGLE_MAPPING_NAME, mappingAsMap); |
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.
With type removal, do we still need method private CreateIndexRequest mapping(String type, Map<String, ?> source)
which has type related checks/validations ?
If this is not needed, I am fine removing this in follow up PR.
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.
This will be removed in a followup, just to keep the blast radius "small" for now
test/framework/src/main/java/org/opensearch/index/RandomCreateIndexGenerator.java
Outdated
Show resolved
Hide resolved
First pass to remove types from CreateIndexRequest and CreateIndexRequestBuilder mapping method. This method is overloaded several times so the most widely used methods in the RequestBuilder are refactored from mapping to setMapping to avoid confusion, conflicts, and to be consistent with other method names (e.g., setSettings, setCause, setAlias). Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
776f152
to
d40271f
Compare
First pass to remove types from CreateIndexRequest and CreateIndexRequestBuilder
mapping method. This method is overloaded several times so the most widely used
methods in the RequestBuilder are refactored from mapping to setMapping to avoid
confusion, conflicts, and to be consistent with other method names (e.g.,
setSettings, setCause, setAlias).
relates #1940