Remove inclue_type_name parameter from rest api spec (#2410)
Signed-off-by: Suraj Singh <surajrider@gmail.com>
This commit is contained in:
parent
044f53630a
commit
a6a47e7321
|
@ -22,10 +22,6 @@
|
|||
]
|
||||
},
|
||||
"params":{
|
||||
"include_type_name":{
|
||||
"type":"boolean",
|
||||
"description":"Whether a type should be expected in the body of the mappings."
|
||||
},
|
||||
"wait_for_active_shards":{
|
||||
"type":"string",
|
||||
"description":"Set the number of active shards to wait for before the operation returns."
|
||||
|
|
|
@ -22,10 +22,6 @@
|
|||
]
|
||||
},
|
||||
"params":{
|
||||
"include_type_name":{
|
||||
"type":"boolean",
|
||||
"description":"Whether to add the type name to the response (default: false)"
|
||||
},
|
||||
"local":{
|
||||
"type":"boolean",
|
||||
"description":"Return local information, do not retrieve the state from master node (default: false)"
|
||||
|
|
|
@ -38,10 +38,6 @@
|
|||
]
|
||||
},
|
||||
"params":{
|
||||
"include_type_name":{
|
||||
"type":"boolean",
|
||||
"description":"Whether a type should be returned in the body of the mappings."
|
||||
},
|
||||
"include_defaults":{
|
||||
"type":"boolean",
|
||||
"description":"Whether the default mapping values should be returned as well"
|
||||
|
|
|
@ -28,10 +28,6 @@
|
|||
]
|
||||
},
|
||||
"params":{
|
||||
"include_type_name":{
|
||||
"type":"boolean",
|
||||
"description":"Whether a type should be returned in the body of the mappings."
|
||||
},
|
||||
"flat_settings":{
|
||||
"type":"boolean",
|
||||
"description":"Return settings in flat format (default: false)"
|
||||
|
|
|
@ -23,10 +23,6 @@
|
|||
]
|
||||
},
|
||||
"params":{
|
||||
"include_type_name":{
|
||||
"type":"boolean",
|
||||
"description":"Whether a type should be returned in the body of the mappings."
|
||||
},
|
||||
"order":{
|
||||
"type":"number",
|
||||
"description":"The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)"
|
||||
|
|
|
@ -38,10 +38,6 @@
|
|||
]
|
||||
},
|
||||
"params":{
|
||||
"include_type_name":{
|
||||
"type":"boolean",
|
||||
"description":"Whether a type should be included in the body of the mappings."
|
||||
},
|
||||
"timeout":{
|
||||
"type":"time",
|
||||
"description":"Explicit operation timeout"
|
||||
|
|
|
@ -60,7 +60,6 @@ import static org.opensearch.rest.RestStatus.NOT_FOUND;
|
|||
import static org.opensearch.rest.RestStatus.OK;
|
||||
|
||||
public class RestGetFieldMappingAction extends BaseRestHandler {
|
||||
|
||||
private static final Logger logger = LogManager.getLogger(RestGetFieldMappingAction.class);
|
||||
private static final DeprecationLogger deprecationLogger = DeprecationLogger.getLogger(logger.getName());
|
||||
|
||||
|
@ -107,7 +106,7 @@ public class RestGetFieldMappingAction extends BaseRestHandler {
|
|||
status = NOT_FOUND;
|
||||
}
|
||||
response.toXContent(builder, request);
|
||||
return new BytesRestResponse(RestStatus.OK, builder);
|
||||
return new BytesRestResponse(status, builder);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue