Skip to content

Commit

Permalink
Merge pull request #8588 from Bargs/aggScripts
Browse files Browse the repository at this point in the history
Flag scripted fields as searchable and aggregatable
  • Loading branch information
Matt Bargar authored Oct 7, 2016
2 parents 98ab43e + 701ceed commit 19c3b3f
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 19c3b3f

Please sign in to comment.