Skip to content

Commit

Permalink
[Discover] Always request unmapped fields in a single doc view
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Feb 18, 2021
1 parent 28fa873 commit c355df6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function buildSearchBody(
},
stored_fields: computedFields.storedFields,
_source: !useNewFieldsApi,
fields: useNewFieldsApi ? ['*'] : undefined,
fields: useNewFieldsApi ? [{ field: '*', include_unmapped: 'true' }] : undefined,
script_fields: computedFields.scriptFields,
docvalue_fields: computedFields.docvalueFields,
};
Expand Down

0 comments on commit c355df6

Please sign in to comment.