We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a3978d commit 104613cCopy full SHA for 104613c
src/test/java/org/elasticsearch/indices/mapping/UpdateMappingTests.java
@@ -78,7 +78,7 @@ public boolean apply(Object input) {
78
assertThat(response.getCount(), equalTo((long) recCount));
79
80
logger.info("checking all the fields are in the mappings");
81
- String source = client().admin().indices().prepareGetMappings("test").setTypes("type").get().getMappings().get("test").get("type").source().string();
+ String source = client().admin().cluster().prepareState().get().getState().getMetaData().getIndices().get("test").getMappings().get("type").source().string();
82
for (int rec = 0; rec < recCount; rec++) {
83
assertThat(source, containsString("\"field" + rec + "\""));
84
}
0 commit comments