-
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 SearchHit and Explain API #2205
[Remove] types from SearchHit and Explain API #2205
Conversation
Can one of the admins verify this patch? |
❌ Gradle Check failure e9546057577b15fba054473c60440e17fca1c475 |
3365313
to
b33f8e5
Compare
❌ Gradle Check failure 3365313956f48257a602f0ae5b546db9624c8a40 |
❌ Gradle Check failure b33f8e5e2d1bc11d3ee806dc81d18b248e63716f |
start gradle check |
@@ -116,7 +116,7 @@ private void testCancel( | |||
false, | |||
true, | |||
IntStream.range(0, numDocs) | |||
.mapToObj(i -> client().prepareIndex(INDEX, TYPE, String.valueOf(i)).setSource("n", i)) | |||
.mapToObj(i -> client().prepareIndex(INDEX, MapperService.SINGLE_MAPPING_NAME, String.valueOf(i)).setSource("n", i)) |
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.
Should we remove the type completely here as we are removing _doc type info from validation ymls
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.
Type is still needed here for cancellation tests because it hasn't yet been fully removed from the DocWriter. That'll be in a coming PR
@@ -55,20 +54,11 @@ | |||
* Rest action for computing a score explanation for specific documents. | |||
*/ | |||
public class RestExplainAction extends BaseRestHandler { | |||
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(RestExplainAction.class); | |||
public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] " + "Specifying a type in explain requests is deprecated."; |
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.
minor: Can we remove TYPES_DEPRECATION_MESSAGE
as well ?
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.
It's still needed in FullClusterRestartIT for bwc testing; so I removed it from the RestExplainAction class as a local to FullClusterRestartIT
❌ Gradle Check failure b33f8e5e2d1bc11d3ee806dc81d18b248e63716f |
b33f8e5
to
9986327
Compare
❌ Gradle Check failure 9986327761b82f34424937b89b58930ecd41b4db |
❌ Gradle Check failure 8a45d99b1aaa418c498f1ef931c9d52c4db40189 |
8a45d99
to
2da7968
Compare
❌ Gradle Check failure 2da796881568a43145ac453a98e526a0b9dd6dcc |
2da7968
to
2d7e58d
Compare
❌ Gradle Check failure 2d7e58d4dc77d992427037e58206a47dcb1a097c |
start gradle check |
❌ Gradle Check failure 2d7e58d4dc77d992427037e58206a47dcb1a097c |
✅ Gradle Check success 73b1598d7c60fdc181ec59d10fc015d69a8d3073 |
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
@nknize : Do you think |
no.. |
Removes type support from SearchHit and Explain API. Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
…estartIT 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>
73b1598
to
b20b9a2
Compare
Removes type support from SearchHit and Explain API.
relates #1940