mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-13 08:25:26 +00:00
Get mapping with no index specified on an empty cluster returns 404, closes #1976.
This commit is contained in:
parent
3bf55a0858
commit
7b2e1b7b4f
@ -121,7 +121,7 @@ public class RestGetMappingAction extends BaseRestHandler {
|
|||||||
|
|
||||||
builder.endObject();
|
builder.endObject();
|
||||||
|
|
||||||
channel.sendResponse(new XContentRestResponse(request, foundAny ? OK : NOT_FOUND, builder));
|
channel.sendResponse(new XContentRestResponse(request, foundAny || indices.length == 0 ? OK : NOT_FOUND, builder));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
onFailure(e);
|
onFailure(e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user