From d937fee744d6baacfea34bfc8770e56a9922bc09 Mon Sep 17 00:00:00 2001 From: markharwood Date: Fri, 18 Sep 2015 12:04:40 +0100 Subject: [PATCH] Significant terms: add scriptable significance heuristic #7850 --- public/webpackShims/kb/api_2_0/aggregations.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/public/webpackShims/kb/api_2_0/aggregations.js b/public/webpackShims/kb/api_2_0/aggregations.js index 0409560dc9eb5..2d8bf71a5fc90 100644 --- a/public/webpackShims/kb/api_2_0/aggregations.js +++ b/public/webpackShims/kb/api_2_0/aggregations.js @@ -143,6 +143,14 @@ define(function () { "percentage":{}, "gnd": { "background_is_superset": { __one_of: [ true, false ] } + }, + "script_heuristic":{ + __template: { + "script": "_subset_freq/(_superset_freq - _subset_freq + 1)" + }, + "script": { + // populated by a global rule + } } }, "range": {