diff --git a/public/webpackShims/kb/api_2_0.js b/public/webpackShims/kb/api_2_0.js index 11434f12c7f8a..ef0cfa6bbcc48 100644 --- a/public/webpackShims/kb/api_2_0.js +++ b/public/webpackShims/kb/api_2_0.js @@ -26,6 +26,7 @@ define([ './api_2_0/cluster', './api_2_0/count', './api_2_0/document', + './api_2_0/field_stats', './api_2_0/filter', './api_2_0/nodes', './api_2_0/globals', diff --git a/public/webpackShims/kb/api_2_0/field_stats.js b/public/webpackShims/kb/api_2_0/field_stats.js new file mode 100644 index 0000000000000..e1ee01392ad75 --- /dev/null +++ b/public/webpackShims/kb/api_2_0/field_stats.js @@ -0,0 +1,67 @@ +/** + * ELASTICSEARCH CONFIDENTIAL + * _____________________________ + * + * [2014] Elasticsearch Incorporated All Rights Reserved. + * + * NOTICE: All information contained herein is, and remains + * the property of Elasticsearch Incorporated and its suppliers, + * if any. The intellectual and technical concepts contained + * herein are proprietary to Elasticsearch Incorporated + * and its suppliers and may be covered by U.S. and Foreign Patents, + * patents in process, and are protected by trade secret or copyright law. + * Dissemination of this information or reproduction of this material + * is strictly forbidden unless prior written permission is obtained + * from Elasticsearch Incorporated. + */ + +define(function () { + 'use strict'; + return function init(api) { + api.addEndpointDescription('_field_stats', { + methods: ['GET', 'POST'], + patterns: [ + "_field_stats", + "{indices}/_field_stats" + ], + url_params: { + fields: [], + level: ["cluster", "indices"], + ignore_unavailable: ["true", "false"], + allow_no_indices: [false, true], + expand_wildcards: ["open", "closed", "none", "all"] + }, + data_autocomplete_rules: { + fields: [ + "{field}", + ], + index_constraints : { + "{field}" : { + min_value : { + gt : "MIN", + gte : "MAX", + lt: "MIN", + lte: "MAX" + }, + max_value : { + gt : "MIN", + gte : "MAX", + lt: "MIN", + lte: "MAX" + } + }, + __template : { + "FIELD" : { + min_value : { + gt : "MIN" + }, + max_value : { + lt: "MAX" + } + } + } + } + } + }); + }; +}); \ No newline at end of file