Skip to content

Commit

Permalink
Merge pull request elastic#7751 from Bargs/restoreSource
Browse files Browse the repository at this point in the history
Restore _source fetching behavior

Former-commit-id: 33b3c45
  • Loading branch information
Matt Bargar authored Jul 14, 2016
2 parents fa2749f + 1370072 commit 4e9de0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/public/courier/data_source/_abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ export default function SourceAbstractFactory(Private, Promise, PromiseEmitter)

if (flatState.body.size > 0) {
let computedFields = flatState.index.getComputedFields();
flatState.body.fields = computedFields.fields;
flatState.body.stored_fields = computedFields.storedFields;
flatState.body._source = computedFields._source;
flatState.body.script_fields = flatState.body.script_fields || {};
flatState.body.fielddata_fields = flatState.body.fielddata_fields || [];

Expand Down

0 comments on commit 4e9de0e

Please sign in to comment.