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

Add typless endpoints for get_source and exist_source #36426

Merged
merged 13 commits into from
Dec 17, 2018
Prev Previous commit
Next Next commit
iter
Christoph Büscher committed Dec 10, 2018
commit d499679e55697db8db382a86554ce9ab70d1ea09
Original file line number Diff line number Diff line change
@@ -175,7 +175,7 @@ public void testGetSourceAction() throws IOException {
request.setJsonEntity(Strings.toString(builder));
client().performRequest(request);
createTestDoc("test-no-source", "test-no-source");
headTestCase("/test-no-source/test-no-source/1/_source", emptyMap(), NOT_FOUND.getStatus(), greaterThan(0));
headTestCase("/test-no-source/1/_source", emptyMap(), NOT_FOUND.getStatus(), greaterThan(0));
}
}

Original file line number Diff line number Diff line change
@@ -52,7 +52,8 @@
public class RestGetSourceAction extends BaseRestHandler {

private static final DeprecationLogger deprecationLogger = new DeprecationLogger(LogManager.getLogger(RestGetSourceAction.class));
static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in get_source requests is deprecated.";
static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in get_source and exist_source"
+ "requests is deprecated.";

public RestGetSourceAction(final Settings settings, final RestController controller) {
super(settings);