|
19 | 19 |
|
20 | 20 | package org.elasticsearch.rest.action.document;
|
21 | 21 |
|
22 |
| -import org.apache.logging.log4j.LogManager; |
23 | 22 | import org.elasticsearch.ResourceNotFoundException;
|
24 | 23 | import org.elasticsearch.action.ActionRequestValidationException;
|
25 | 24 | import org.elasticsearch.action.get.GetRequest;
|
26 | 25 | import org.elasticsearch.action.get.GetResponse;
|
27 | 26 | import org.elasticsearch.client.node.NodeClient;
|
28 | 27 | import org.elasticsearch.common.bytes.BytesReference;
|
29 |
| -import org.elasticsearch.common.logging.DeprecationLogger; |
30 | 28 | import org.elasticsearch.common.xcontent.XContentBuilder;
|
31 | 29 | import org.elasticsearch.common.xcontent.XContentHelper;
|
32 | 30 | import org.elasticsearch.rest.BaseRestHandler;
|
|
50 | 48 | */
|
51 | 49 | public class RestGetSourceAction extends BaseRestHandler {
|
52 | 50 |
|
53 |
| - private static final DeprecationLogger deprecationLogger = new DeprecationLogger(LogManager.getLogger(RestGetSourceAction.class)); |
54 |
| - static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in get_source and exist_source" |
55 |
| - + "requests is deprecated."; |
56 |
| - |
57 | 51 | public RestGetSourceAction(final RestController controller) {
|
58 | 52 | controller.registerHandler(GET, "/{index}/_source/{id}", this);
|
59 | 53 | controller.registerHandler(HEAD, "/{index}/_source/{id}", this);
|
60 |
| - controller.registerHandler(GET, "/{index}/{type}/{id}/_source", this); |
61 |
| - controller.registerHandler(HEAD, "/{index}/{type}/{id}/_source", this); |
62 | 54 | }
|
63 | 55 |
|
64 | 56 | @Override
|
|
0 commit comments