From 1ec20a23d9f9d7f78f0e0e8718b875724c25194a Mon Sep 17 00:00:00 2001 From: Elastic Jasper Date: Fri, 7 Oct 2016 16:54:33 -0400 Subject: [PATCH] Backport PR #8588 --------- **Commit 1:** Flag scripted fields as searchable and aggregatable * Original sha: fedfe5004392599387b1212734f819be5368d52b [formerly 701ceed063a54027383ccbf6d2758e3b4d33bc2e] * Authored by Matthew Bargar on 2016-10-07T19:15:59Z Former-commit-id: e31430bda6224534774ee19b9a879a4aaab511a8 --- src/ui/public/index_patterns/_field.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/public/index_patterns/_field.js b/src/ui/public/index_patterns/_field.js index 826a6da55a6ad..54cb8f86364b0 100644 --- a/src/ui/public/index_patterns/_field.js +++ b/src/ui/public/index_patterns/_field.js @@ -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);