Skip to content

Commit

Permalink
Backport PR elastic#8588
Browse files Browse the repository at this point in the history
---------

**Commit 1:**
Flag scripted fields as searchable and aggregatable

* Original sha: fedfe5004392599387b1212734f819be5368d52b [formerly 701ceed]
* Authored by Matthew Bargar <mbargar@gmail.com> on 2016-10-07T19:15:59Z


Former-commit-id: e31430b
  • Loading branch information
elastic-jasper committed Oct 7, 2016
1 parent 649efe9 commit 1ec20a2
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 1ec20a2

Please sign in to comment.