Skip to content

Commit af940d5

Browse files
author
Maja Grubic
authored
[Discover] Minor cleanup (#90260) (#90283)
1 parent f9b2ad1 commit af940d5

File tree

4 files changed

+4
-454
lines changed

4 files changed

+4
-454
lines changed

src/plugins/discover/public/application/embeddable/search_embeddable.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,9 @@ export class SearchEmbeddable
308308
);
309309
if (useNewFieldsApi) {
310310
searchSource.removeField('fieldsFromSource');
311-
const fields: Record<string, any> = { field: '*' };
311+
const fields: Record<string, string> = { field: '*' };
312312
if (pre712) {
313-
fields.include_unmapped = true;
313+
fields.include_unmapped = 'true';
314314
}
315315
searchSource.setField('fields', [fields]);
316316
} else {

test/functional/apps/discover/_indexpattern_with_unmapped_fields.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
2222

2323
before(async () => {
2424
await esArchiver.loadIfNeeded('unmapped_fields');
25-
await kibanaServer.uiSettings.replace({ defaultIndex: 'test-index-unmapped-fields' });
26-
await kibanaServer.uiSettings.update({
25+
await kibanaServer.uiSettings.replace({
26+
defaultIndex: 'test-index-unmapped-fields',
2727
'discover:searchFieldsFromSource': false,
2828
});
2929
log.debug('discover');
-224 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)