Skip to content

Commit

Permalink
Merge pull request elastic#8589 from elastic/jasper/backport/8588/5.x
Browse files Browse the repository at this point in the history
[backport] PR elastic#8588 to 5.x - Flag scripted fields as searchable and aggregatable

Former-commit-id: 99e38a7
  • Loading branch information
epixa authored Oct 7, 2016
2 parents 649efe9 + 1ec20a2 commit 670fd7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/public/index_patterns/_field.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export default function FieldObjectProvider(Private, shortDotsFilter, $rootScope
obj.fact('doc_values', !!spec.doc_values);

// stats
obj.fact('searchable', !!spec.searchable);
obj.fact('aggregatable', !!spec.aggregatable);
obj.fact('searchable', !!spec.searchable || scripted);
obj.fact('aggregatable', !!spec.aggregatable || scripted);

// usage flags, read-only and won't be saved
obj.comp('format', format);
Expand Down

0 comments on commit 670fd7f

Please sign in to comment.