[types removal] The parameter include_type_name should be explicitly specified in get indices requests to prepare for 7.0. In 7.0 include_type_name will default to 'false', which means responses will omit the type name in mapping definitions." (#32891)

This commit is contained in:
Alexey Antonov 2019-03-11 18:21:41 +03:00 committed by GitHub
parent 71d981762d
commit db9b734fe2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,10 @@ export const createListRoute = () => ({
const dataIndexConfig = sampleDataset.dataIndices[i];
const index = createIndexName(sampleDataset.id, dataIndexConfig.id);
try {
const indexExists = await callWithRequest(request, 'indices.exists', { index: index });
const indexExists = await callWithRequest(request, 'indices.exists', {
index: index,
include_type_name: false,
});
if (!indexExists) {
sampleDataset.status = NOT_INSTALLED;
return;