Skip to content

Commit

Permalink
[Discover] Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Feb 4, 2021
1 parent df4eb0f commit 7c3069b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 454 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ export class SearchEmbeddable
);
if (useNewFieldsApi) {
searchSource.removeField('fieldsFromSource');
const fields: Record<string, any> = { field: '*' };
const fields: Record<string, string> = { field: '*' };
if (pre712) {
fields.include_unmapped = true;
fields.include_unmapped = 'true';
}
searchSource.setField('fields', [fields]);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {

before(async () => {
await esArchiver.loadIfNeeded('unmapped_fields');
await kibanaServer.uiSettings.replace({ defaultIndex: 'test-index-unmapped-fields' });
await kibanaServer.uiSettings.update({
await kibanaServer.uiSettings.replace({
defaultIndex: 'test-index-unmapped-fields',
'discover:searchFieldsFromSource': false,
});
log.debug('discover');
Expand Down
Binary file removed test/functional/fixtures/es_archiver/data/data.json.gz
Binary file not shown.
Loading

0 comments on commit 7c3069b

Please sign in to comment.