diff --git a/browser/elastic-builder.min.js b/browser/elastic-builder.min.js index aae04e5a..40172876 100644 --- a/browser/elastic-builder.min.js +++ b/browser/elastic-builder.min.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.bob=t():e.bob=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=97)}([function(e,t,r){"use strict";t.RequestBodySearch=r(95),t.Aggregation=r(29),t.Query=r(15),t.Highlight=r(22),t.GeoPoint=r(92),t.GeoShape=r(93),t.IndexedShape=r(94),t.Sort=r(23),t.Rescore=r(31),t.InnerHits=r(30),t.consts=r(21),t.util=r(7)},function(e,t){function r(e){return null==e}e.exports=r},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var r=0;r-1}function _(e,t){var r=this.__data__,n=m(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function g(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Z}function L(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $(e){return!!e&&"object"==typeof e}function H(e){return"symbol"==typeof e||$(e)&&be.call(e)==te}function J(e){return null==e?"":P(e)}function U(e,t){return null!=e&&x(e,t,j)}var W="Expected a function",V="__lodash_hash_undefined__",K=1/0,Z=9007199254740991,X="[object Arguments]",Y="[object Function]",ee="[object GeneratorFunction]",te="[object Symbol]",re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,oe=/^\./,ie=/^\[object .+?Constructor\]$/,ue=/^(?:0|[1-9]\d*)$/,ce="object"==typeof t&&t&&t.Object===Object&&t,ae="object"==typeof self&&self&&self.Object===Object&&self,se=ce||ae||Function("return this")(),fe=Array.prototype,le=Function.prototype,pe=Object.prototype,he=se["__core-js_shared__"],ye=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_e=le.toString,ge=pe.hasOwnProperty,be=pe.toString,ve=RegExp("^"+_e.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=se.Symbol,we=pe.propertyIsEnumerable,Oe=fe.splice,me=T(se,"Map"),je=T(Object,"create"),ke=de?de.prototype:void 0,Pe=ke?ke.toString:void 0;o.prototype.clear=i,o.prototype.delete=u,o.prototype.get=c,o.prototype.has=a,o.prototype.set=s,f.prototype.clear=l,f.prototype.delete=p,f.prototype.get=h,f.prototype.has=y,f.prototype.set=_,g.prototype.clear=b,g.prototype.delete=v,g.prototype.get=d,g.prototype.has=w,g.prototype.set=O;var Ee=M(function(e){e=J(e);var t=[];return oe.test(e)&&t.push(""),e.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(e,r,n,o){t.push(n?o.replace(/\\(\\)?/g,"$1"):r||e)}),t});M.Cache=g;var Se=Array.isArray;e.exports=U}).call(t,r(8))},function(e,t,r){(function(e,n){function o(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),O(n.showHidden)&&(n.showHidden=!1),O(n.depth)&&(n.depth=2),O(n.colors)&&(n.colors=!1),O(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=i),a(n,e,n.depth)}function i(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function u(e,t){return e}function c(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function a(e,r,n){if(e.customInspect&&r&&E(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return d(o)||(o=a(e,o,n)),o}var i=s(e,r);if(i)return i;var u=Object.keys(r),_=c(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(r)),P(r)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return f(r);if(0===u.length){if(E(r)){var g=r.name?": "+r.name:"";return e.stylize("[Function"+g+"]","special")}if(m(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(P(r))return f(r)}var b="",v=!1,w=["{","}"];if(y(r)&&(v=!0,w=["[","]"]),E(r)){b=" [Function"+(r.name?": "+r.name:"")+"]"}if(m(r)&&(b=" "+RegExp.prototype.toString.call(r)),k(r)&&(b=" "+Date.prototype.toUTCString.call(r)),P(r)&&(b=" "+f(r)),0===u.length&&(!v||0==r.length))return w[0]+b+w[1];if(n<0)return m(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var O;return O=v?l(e,r,n,_,u):u.map(function(t){return p(e,r,n,_,t,v)}),e.seen.pop(),h(O,b,w)}function s(e,t){if(O(t))return e.stylize("undefined","undefined");if(d(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return v(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,r,n,o){for(var i=[],u=0,c=t.length;u-1&&(c=i?c.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+c.split("\n").map(function(e){return" "+e}).join("\n"))):c=e.stylize("[Circular]","special")),O(u)){if(i&&o.match(/^\d+$/))return c;u=JSON.stringify(""+o),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+c}function h(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return null==e}function v(e){return"number"==typeof e}function d(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function O(e){return void 0===e}function m(e){return j(e)&&"[object RegExp]"===T(e)}function j(e){return"object"==typeof e&&null!==e}function k(e){return j(e)&&"[object Date]"===T(e)}function P(e){return j(e)&&("[object Error]"===T(e)||e instanceof Error)}function E(e){return"function"==typeof e}function S(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}function A(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.format=function(e){if(!d(e)){for(var t=[],r=0;r=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),c=n[r];r=t&&e<=r}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(14),u=r(19),c=r(155),a=r(153);t.checkType=function(e,t){if(!(e instanceof t))throw console.warn(e+" is of the type "+(void 0===e?"undefined":o(e))),new TypeError("Argument must be an instance of "+t.name)},t.constructorWrapper=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n-1}function b(e,t){var r=this.__data__,n=P(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function v(e){var t=-1,r=e?e.length:0;for(this.clear();++to?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n-1&&e%1==0&&e-1&&e%1==0&&e<=ue}function X(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Y(e){return!!e&&"object"==typeof e}function ee(e){return"symbol"==typeof e||Y(e)&&Ee.call(e)==fe}function te(e){return null==e?"":C(e)}function re(e){return W(e)?k(e):A(e)}var ne="Expected a function",oe="__lodash_hash_undefined__",ie=1/0,ue=9007199254740991,ce="[object Arguments]",ae="[object Function]",se="[object GeneratorFunction]",fe="[object Symbol]",le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pe=/^\w*$/,he=/^\./,ye=/^\[object .+?Constructor\]$/,_e=/^(?:0|[1-9]\d*)$/,ge="object"==typeof t&&t&&t.Object===Object&&t,be="object"==typeof self&&self&&self.Object===Object&&self,ve=ge||be||Function("return this")(),de=Array.prototype,we=Function.prototype,Oe=Object.prototype,me=ve["__core-js_shared__"],je=function(){var e=/[^.]+$/.exec(me&&me.keys&&me.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ke=we.toString,Pe=Oe.hasOwnProperty,Ee=Oe.toString,Se=RegExp("^"+ke.call(Pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=ve.Symbol,xe=Oe.propertyIsEnumerable,Ae=de.splice,qe=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Ce=Math.max,Qe=D(ve,"Map"),Re=D(Object,"create"),De=Te?Te.prototype:void 0,Me=De?De.toString:void 0;u.prototype.clear=c,u.prototype.delete=a,u.prototype.get=s,u.prototype.has=f,u.prototype.set=l,p.prototype.clear=h,p.prototype.delete=y,p.prototype.get=_,p.prototype.has=g,p.prototype.set=b,v.prototype.clear=d,v.prototype.delete=w,v.prototype.get=O,v.prototype.has=m,v.prototype.set=j;var Fe=function(e,t){return function(r,n){if(null==r)return r;if(!W(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i-1&&e%1==0&&e<=w}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){return!!e&&"object"==typeof e}function d(){return!1}var w=9007199254740991,O="[object Arguments]",m="[object Function]",j="[object GeneratorFunction]",k="[object Map]",P="[object Set]",E=/^\[object .+?Constructor\]$/,S="object"==typeof e&&e&&e.Object===Object&&e,T="object"==typeof self&&self&&self.Object===Object&&self,x=S||T||Function("return this")(),A="object"==typeof t&&t&&!t.nodeType&&t,q=A&&"object"==typeof r&&r&&!r.nodeType&&r,C=q&&q.exports===A,Q=Function.prototype,R=Object.prototype,D=x["__core-js_shared__"],M=function(){var e=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),F=Q.toString,z=R.hasOwnProperty,N=R.toString,G=RegExp("^"+F.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=C?x.Buffer:void 0,I=R.propertyIsEnumerable,L=B?B.isBuffer:void 0,$=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),H=c(x,"DataView"),J=c(x,"Map"),U=c(x,"Promise"),W=c(x,"Set"),V=c(x,"WeakMap"),K=!I.call({valueOf:1},"valueOf"),Z=f(H),X=f(J),Y=f(U),ee=f(W),te=f(V),re=i;(H&&"[object DataView]"!=re(new H(new ArrayBuffer(1)))||J&&re(new J)!=k||U&&"[object Promise]"!=re(U.resolve())||W&&re(new W)!=P||V&&"[object WeakMap]"!=re(new V))&&(re=function(e){var t=N.call(e),r="[object Object]"==t?e.constructor:void 0,n=r?f(r):void 0;if(n)switch(n){case Z:return"[object DataView]";case X:return k;case Y:return"[object Promise]";case ee:return P;case te:return"[object WeakMap]"}return t});var ne=Array.isArray,oe=L||d;r.exports=y}).call(t,r(8),r(20)(e))},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var r=0;r0&&o(f)?t>1?n(f,t-1,o,u,c):r(c,f):u||(c[c.length]=f)}return c}function o(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r-1&&e%1==0&&e<=y}function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){return!!e&&"object"==typeof e}var y=9007199254740991,_="[object Arguments]",g="[object Function]",b="[object GeneratorFunction]",v="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,w=v||d||Function("return this")(),O=Object.prototype,m=O.hasOwnProperty,j=O.toString,k=w.Symbol,P=O.propertyIsEnumerable,E=k?k.isConcatSpreadable:void 0,S=Array.isArray;e.exports=u}).call(t,r(8))},function(e,t){function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";t.EXECUTION_HINT_SET=new Set(["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinalit"]),t.UNIT_SET=new Set(["in","inch","yd","yards","ft","feet","km","kilometers","NM","nmi","nauticalmiles","mm","millimeters","cm","centimeters","mi","miles","m","meters"]),t.MODEL_SET=new Set(["simple","linear","ewma","holt","holt_winters"]),t.SORT_MODE_SET=new Set(["min","max","sum","avg","median"]),t.RESCORE_MODE_SET=new Set(["total","multiply","min","max","avg"]),t.REWRITE_METHOD_SET=new Set(["constant_score","constant_score_auto","constant_score_filter","scoring_boolean","constant_score_boolean","top_terms_N","top_terms_boost_N","top_terms_blended_freqs_N"]),t.MULTI_MATCH_TYPE=new Set(["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]),t.SCORE_MODE_SET=new Set(["multiply","sum","first","min","max","avg"]),t.BOOST_MODE_SET=new Set(["multiply","sum","replace","min","max","avg"]),t.FIELD_MODIFIER_SET=new Set(["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]),t.NESTED_SCORE_MODE_SET=new Set(["none","sum","min","max","avg"]),t.GEO_RELATION_SET=new Set(["WITHIN","CONTAINS","DISJOINT","INTERSECTS"])},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"desc",r=t.toLowerCase();if("asc"!==r&&"desc"!==r)throw new Error("`direction` must be either `asc` or `desc`");return this._aggsDef.order=n({},e,r),this}},{key:"minDocCount",value:function(e){return this._aggsDef.min_doc_count=e,this}},{key:"extendedBounds",value:function(e,t){return this._aggsDef.extended_bounds={min:e,max:t},this}},{key:"missing",value:function(e){return this._aggsDef.missing=e,this}},{key:"keyed",value:function(e){return this._aggsDef.keyed=e,this}}]),t}(s);e.exports=f},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var r=0;r-1}function o(e,t,r){for(var n=-1,o=e?e.length:0;++n-1}function S(e,t){var r=this.__data__,n=z(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function T(e){var t=-1,r=e?e.length:0;for(this.clear();++t=ye&&(a=p,s=!1,t=new R(t));e:for(;++c0&&r(a)?t>1?G(a,t-1,r,n,o):u(o,a):n||(o[o.length]=a)}return o}function B(e,t,r){var n=t(e);return Ue(e)?n:u(n,r(e))}function I(e){return!(!se(e)||X(e))&&(ce(e)||y(e)?De:me).test(re(e))}function L(e){if(!se(e))return ee(e);var t=Y(e),r=[];for(var n in e)("constructor"!=n||!t&&Qe.call(e,n))&&r.push(n);return r}function $(e,t){return e=Object(e),H(e,t,function(t,r){return r in e})}function H(e,t,r){for(var n=-1,o=t.length,i={};++n-1&&e%1==0&&e-1&&e%1==0&&e<=be}function se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function fe(e){return!!e&&"object"==typeof e}function le(e){return"symbol"==typeof e||fe(e)&&Re.call(e)==Oe}function pe(e){return ie(e)?F(e,!0):L(e)}function he(){return[]}var ye=200,_e="__lodash_hash_undefined__",ge=1/0,be=9007199254740991,ve="[object Arguments]",de="[object Function]",we="[object GeneratorFunction]",Oe="[object Symbol]",me=/^\[object .+?Constructor\]$/,je=/^(?:0|[1-9]\d*)$/,ke="object"==typeof t&&t&&t.Object===Object&&t,Pe="object"==typeof self&&self&&self.Object===Object&&self,Ee=ke||Pe||Function("return this")(),Se=Array.prototype,Te=Function.prototype,xe=Object.prototype,Ae=Ee["__core-js_shared__"],qe=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ce=Te.toString,Qe=xe.hasOwnProperty,Re=xe.toString,De=RegExp("^"+Ce.call(Qe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Ee.Symbol,Fe=_(Object.getPrototypeOf,Object),ze=xe.propertyIsEnumerable,Ne=Se.splice,Ge=Me?Me.isConcatSpreadable:void 0,Be=Object.getOwnPropertySymbols,Ie=Math.max,Le=W(Ee,"Map"),$e=W(Object,"create");g.prototype.clear=b,g.prototype.delete=v,g.prototype.get=d,g.prototype.has=w,g.prototype.set=O,m.prototype.clear=j,m.prototype.delete=k,m.prototype.get=P,m.prototype.has=E,m.prototype.set=S,T.prototype.clear=x,T.prototype.delete=A,T.prototype.get=q,T.prototype.has=C,T.prototype.set=Q,R.prototype.add=R.prototype.push=D,R.prototype.has=M;var He=Be?_(Be,Object):he,Je=Be?function(e){for(var t=[];e;)u(t,He(e)),e=Fe(e);return t}:he,Ue=Array.isArray,We=function(e,t){return t=Ie(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Ie(n.length-t,0),u=Array(i);++o12)throw new Error("`precision` can only be value from 1 to 12.");return this._aggsDef.precision=e,this}},{key:"size",value:function(e){return this._aggsDef.size=e,this}},{key:"shardSize",value:function(e){return this._aggsDef.shard_size=e,this}}]),t}(c);e.exports=s},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._aggsDef.mutual_information={include_negatives:e,background_is_superset:t},this}},{key:"chiSquare",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._aggsDef.chi_square={include_negatives:e,background_is_superset:t},this}},{key:"gnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._aggsDef.gnd={background_is_superset:e},this}},{key:"percentage",value:function(){return this._aggsDef.percentage={},this}},{key:"scriptHeuristic",value:function(e){return f(e,s),this._aggsDef.script_heuristic={script:e},this}},{key:"backgroundFilter",value:function(e){return f(e,a),this._aggsDef.background_filter=e,this}}]),t}(l);e.exports=h},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"desc",r=t.toLowerCase();if("asc"!==r&&"desc"!==r)throw new Error("`direction` must be either `asc` or `desc`");return this._aggsDef.order=n({},e,r),this}}]),t}(a);e.exports=f},function(e,t,r){"use strict";t.MatrixStatsAggregation=r(62)},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"gauss",r=arguments[1];o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a(r)||(n._field=r),n}return u(t,e),c(t,[{key:"mode",value:function(e){var t=e.toLowerCase();if("linear"!==t&&"exp"!==t&&"gauss"!==t)throw console.log("See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay"),console.warn("Got 'mode' - "+e),new Error("The mode can only be `linear`, `exp` or `gauss`");return this.name=e,this}},{key:"linear",value:function(){return this.name="linear",this}},{key:"exp",value:function(){return this.name="exp",this}},{key:"gauss",value:function(){return this.name="gauss",this}},{key:"field",value:function(e){return this._field=e,this}},{key:"origin",value:function(e){return this._opts.origin=e,this}},{key:"scale",value:function(e){return this._opts.scale=e,this}},{key:"offset",value:function(e){return this._opts.offset=e,this}},{key:"decay",value:function(e){return this._opts.decay=e,this}},{key:"toJSON",value:function(){var e=Object.assign(n({},this.name,n({},this._field,this._opts)),this._body);return f(e)}}]),t}(l);e.exports=p},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var r=0;r-1}function m(e,t){var r=this.__data__,n=N(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function j(e){var t=-1,r=e?e.length:0;for(this.clear();++ta))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var l=-1,p=!0,h=i&Ne?new x:void 0;for(u.set(e,t),u.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=Ie}function Se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Te(e){return!!e&&"object"==typeof e}function xe(e){return"symbol"==typeof e||Te(e)&&St.call(e)==rt}function Ae(e){return null==e?"":te(e)}function qe(e,t,r){var n=null==e?void 0:I(e,t);return void 0===n?r:n}function Ce(e,t){return null!=e&&se(e,t,$)}function Qe(e){return je(e)?z(e):Z(e)}function Re(e){return e}function De(e){return le(e)?i(be(e)):ee(e)}var Me=200,Fe="Expected a function",ze="__lodash_hash_undefined__",Ne=1,Ge=2,Be=1/0,Ie=9007199254740991,Le="[object Arguments]",$e="[object Array]",He="[object Boolean]",Je="[object Date]",Ue="[object Error]",We="[object Function]",Ve="[object GeneratorFunction]",Ke="[object Map]",Ze="[object Number]",Xe="[object Object]",Ye="[object RegExp]",et="[object Set]",tt="[object String]",rt="[object Symbol]",nt="[object ArrayBuffer]",ot="[object DataView]",it=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,ct=/^\./,at=/^\[object .+?Constructor\]$/,st=/^(?:0|[1-9]\d*)$/,ft={};ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft[Le]=ft[$e]=ft[nt]=ft[He]=ft[ot]=ft[Je]=ft[Ue]=ft[We]=ft[Ke]=ft[Ze]=ft[Xe]=ft[Ye]=ft[et]=ft[tt]=ft["[object WeakMap]"]=!1;var lt="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=lt||pt||Function("return this")(),yt="object"==typeof t&&t&&!t.nodeType&&t,_t=yt&&"object"==typeof r&&r&&!r.nodeType&&r,gt=_t&&_t.exports===yt,bt=gt&<.process,vt=function(){try{return bt&&bt.binding("util")}catch(e){}}(),dt=vt&&vt.isTypedArray,wt=Array.prototype,Ot=Function.prototype,mt=Object.prototype,jt=ht["__core-js_shared__"],kt=function(){var e=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pt=Ot.toString,Et=mt.hasOwnProperty,St=mt.toString,Tt=RegExp("^"+Pt.call(Et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=ht.Symbol,At=ht.Uint8Array,qt=mt.propertyIsEnumerable,Ct=wt.splice,Qt=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rt=ae(ht,"DataView"),Dt=ae(ht,"Map"),Mt=ae(ht,"Promise"),Ft=ae(ht,"Set"),zt=ae(ht,"WeakMap"),Nt=ae(Object,"create"),Gt=ve(Rt),Bt=ve(Dt),It=ve(Mt),Lt=ve(Ft),$t=ve(zt),Ht=xt?xt.prototype:void 0,Jt=Ht?Ht.valueOf:void 0,Ut=Ht?Ht.toString:void 0;l.prototype.clear=p,l.prototype.delete=h,l.prototype.get=y,l.prototype.has=_,l.prototype.set=g,b.prototype.clear=v,b.prototype.delete=d,b.prototype.get=w,b.prototype.has=O,b.prototype.set=m,j.prototype.clear=k,j.prototype.delete=P,j.prototype.get=E,j.prototype.has=S,j.prototype.set=T,x.prototype.add=x.prototype.push=A,x.prototype.has=q,C.prototype.clear=Q,C.prototype.delete=R,C.prototype.get=D,C.prototype.has=M,C.prototype.set=F;var Wt=function(e,t){return function(r,n){if(null==r)return r;if(!je(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i-1}function _(e,t){var r=this.__data__,n=m(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function g(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Z}function L(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $(e){return!!e&&"object"==typeof e}function H(e){return"symbol"==typeof e||$(e)&&be.call(e)==te}function J(e){return null==e?"":P(e)}function U(e,t){return null!=e&&x(e,t,j)}var W="Expected a function",V="__lodash_hash_undefined__",K=1/0,Z=9007199254740991,X="[object Arguments]",Y="[object Function]",ee="[object GeneratorFunction]",te="[object Symbol]",re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,oe=/^\./,ie=/^\[object .+?Constructor\]$/,ue=/^(?:0|[1-9]\d*)$/,ce="object"==typeof t&&t&&t.Object===Object&&t,ae="object"==typeof self&&self&&self.Object===Object&&self,se=ce||ae||Function("return this")(),fe=Array.prototype,le=Function.prototype,pe=Object.prototype,he=se["__core-js_shared__"],ye=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_e=le.toString,ge=pe.hasOwnProperty,be=pe.toString,ve=RegExp("^"+_e.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=se.Symbol,we=pe.propertyIsEnumerable,Oe=fe.splice,me=T(se,"Map"),je=T(Object,"create"),ke=de?de.prototype:void 0,Pe=ke?ke.toString:void 0;o.prototype.clear=i,o.prototype.delete=u,o.prototype.get=c,o.prototype.has=a,o.prototype.set=s,f.prototype.clear=l,f.prototype.delete=p,f.prototype.get=h,f.prototype.has=y,f.prototype.set=_,g.prototype.clear=b,g.prototype.delete=v,g.prototype.get=d,g.prototype.has=w,g.prototype.set=O;var Ee=M(function(e){e=J(e);var t=[];return oe.test(e)&&t.push(""),e.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(e,r,n,o){t.push(n?o.replace(/\\(\\)?/g,"$1"):r||e)}),t});M.Cache=g;var Se=Array.isArray;e.exports=U}).call(t,r(8))},function(e,t){function r(e){return!!e&&"object"==typeof e}function n(e){return"string"==typeof e||!c(e)&&r(e)&&u.call(e)==o}var o="[object String]",i=Object.prototype,u=i.toString,c=Array.isArray;e.exports=n},function(e,t,r){(function(e,r){function n(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r-1}function m(e,t){var r=this.__data__,n=N(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function j(e){var t=-1,r=e?e.length:0;for(this.clear();++ta))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var l=-1,p=!0,h=i&Ne?new x:void 0;for(u.set(e,t),u.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=Ie}function Se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Te(e){return!!e&&"object"==typeof e}function xe(e){return"symbol"==typeof e||Te(e)&&St.call(e)==rt}function Ae(e){return null==e?"":te(e)}function qe(e,t,r){var n=null==e?void 0:B(e,t);return void 0===n?r:n}function Ce(e,t){return null!=e&&se(e,t,L)}function Qe(e){return je(e)?z(e):K(e)}function Re(e){return e}function De(e){return le(e)?i(be(e)):ee(e)}var Me=200,Fe="Expected a function",ze="__lodash_hash_undefined__",Ne=1,Ge=2,Be=1/0,Ie=9007199254740991,Le="[object Arguments]",$e="[object Array]",He="[object Boolean]",Je="[object Date]",Ue="[object Error]",We="[object Function]",Ve="[object GeneratorFunction]",Ke="[object Map]",Ze="[object Number]",Xe="[object Object]",Ye="[object RegExp]",et="[object Set]",tt="[object String]",rt="[object Symbol]",nt="[object ArrayBuffer]",ot="[object DataView]",it=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,ct=/^\./,at=/^\[object .+?Constructor\]$/,st=/^(?:0|[1-9]\d*)$/,ft={};ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft[Le]=ft[$e]=ft[nt]=ft[He]=ft[ot]=ft[Je]=ft[Ue]=ft[We]=ft[Ke]=ft[Ze]=ft[Xe]=ft[Ye]=ft[et]=ft[tt]=ft["[object WeakMap]"]=!1;var lt="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=lt||pt||Function("return this")(),yt="object"==typeof t&&t&&!t.nodeType&&t,_t=yt&&"object"==typeof r&&r&&!r.nodeType&&r,gt=_t&&_t.exports===yt,bt=gt&<.process,vt=function(){try{return bt&&bt.binding("util")}catch(e){}}(),dt=vt&&vt.isTypedArray,wt=Array.prototype,Ot=Function.prototype,mt=Object.prototype,jt=ht["__core-js_shared__"],kt=function(){var e=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pt=Ot.toString,Et=mt.hasOwnProperty,St=mt.toString,Tt=RegExp("^"+Pt.call(Et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=ht.Symbol,At=ht.Uint8Array,qt=mt.propertyIsEnumerable,Ct=wt.splice,Qt=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rt=ae(ht,"DataView"),Dt=ae(ht,"Map"),Mt=ae(ht,"Promise"),Ft=ae(ht,"Set"),zt=ae(ht,"WeakMap"),Nt=ae(Object,"create"),Gt=ve(Rt),Bt=ve(Dt),It=ve(Mt),Lt=ve(Ft),$t=ve(zt),Ht=xt?xt.prototype:void 0,Jt=Ht?Ht.valueOf:void 0,Ut=Ht?Ht.toString:void 0;l.prototype.clear=p,l.prototype.delete=h,l.prototype.get=y,l.prototype.has=_,l.prototype.set=g,b.prototype.clear=v,b.prototype.delete=d,b.prototype.get=w,b.prototype.has=O,b.prototype.set=m,j.prototype.clear=k,j.prototype.delete=P,j.prototype.get=E,j.prototype.has=S,j.prototype.set=T,x.prototype.add=x.prototype.push=A,x.prototype.has=q,C.prototype.clear=Q,C.prototype.delete=R,C.prototype.get=D,C.prototype.has=M,C.prototype.set=F;var Wt=function(e,t){return function(r,n){if(null==r)return r;if(!je(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i-1}function j(e,t){var r=this.__data__,n=G(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function k(e){var t=-1,r=e?e.length:0;for(this.clear();++ta))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var l=-1,p=!0,h=i&Ne?new A:void 0;for(u.set(e,t),u.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=Ie}function Se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Te(e){return!!e&&"object"==typeof e}function xe(e){return"symbol"==typeof e||Te(e)&&St.call(e)==rt}function Ae(e){return null==e?"":te(e)}function qe(e,t,r){var n=null==e?void 0:I(e,t);return void 0===n?r:n}function Ce(e,t){return null!=e&&se(e,t,$)}function Qe(e){return je(e)?N(e):Z(e)}function Re(e){return e}function De(e){return le(e)?i(be(e)):ee(e)}var Me=200,Fe="Expected a function",ze="__lodash_hash_undefined__",Ne=1,Ge=2,Be=1/0,Ie=9007199254740991,Le="[object Arguments]",$e="[object Array]",He="[object Boolean]",Je="[object Date]",Ue="[object Error]",We="[object Function]",Ve="[object GeneratorFunction]",Ke="[object Map]",Ze="[object Number]",Xe="[object Object]",Ye="[object RegExp]",et="[object Set]",tt="[object String]",rt="[object Symbol]",nt="[object ArrayBuffer]",ot="[object DataView]",it=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,ct=/^\./,at=/^\[object .+?Constructor\]$/,st=/^(?:0|[1-9]\d*)$/,ft={};ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft[Le]=ft[$e]=ft[nt]=ft[He]=ft[ot]=ft[Je]=ft[Ue]=ft[We]=ft[Ke]=ft[Ze]=ft[Xe]=ft[Ye]=ft[et]=ft[tt]=ft["[object WeakMap]"]=!1;var lt="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=lt||pt||Function("return this")(),yt="object"==typeof t&&t&&!t.nodeType&&t,_t=yt&&"object"==typeof r&&r&&!r.nodeType&&r,gt=_t&&_t.exports===yt,bt=gt&<.process,vt=function(){try{return bt&&bt.binding("util")}catch(e){}}(),dt=vt&&vt.isTypedArray,wt=Array.prototype,Ot=Function.prototype,mt=Object.prototype,jt=ht["__core-js_shared__"],kt=function(){var e=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pt=Ot.toString,Et=mt.hasOwnProperty,St=mt.toString,Tt=RegExp("^"+Pt.call(Et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=ht.Symbol,At=ht.Uint8Array,qt=mt.propertyIsEnumerable,Ct=wt.splice,Qt=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rt=ae(ht,"DataView"),Dt=ae(ht,"Map"),Mt=ae(ht,"Promise"),Ft=ae(ht,"Set"),zt=ae(ht,"WeakMap"),Nt=ae(Object,"create"),Gt=ve(Rt),Bt=ve(Dt),It=ve(Mt),Lt=ve(Ft),$t=ve(zt),Ht=xt?xt.prototype:void 0,Jt=Ht?Ht.valueOf:void 0,Ut=Ht?Ht.toString:void 0;p.prototype.clear=h,p.prototype.delete=y,p.prototype.get=_,p.prototype.has=g,p.prototype.set=b,v.prototype.clear=d,v.prototype.delete=w,v.prototype.get=O,v.prototype.has=m,v.prototype.set=j,k.prototype.clear=P,k.prototype.delete=E,k.prototype.get=S,k.prototype.has=T,k.prototype.set=x,A.prototype.add=A.prototype.push=q,A.prototype.has=C,Q.prototype.clear=R,Q.prototype.delete=D,Q.prototype.get=M,Q.prototype.has=F,Q.prototype.set=z;var Wt=function(e,t){return function(r,n){if(null==r)return r;if(!je(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i1)for(var r=1;r-1}function _(e,t){var r=this.__data__,n=m(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function g(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Z}function L(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $(e){return!!e&&"object"==typeof e}function H(e){return"symbol"==typeof e||$(e)&&be.call(e)==te}function J(e){return null==e?"":P(e)}function U(e,t){return null!=e&&x(e,t,j)}var W="Expected a function",V="__lodash_hash_undefined__",K=1/0,Z=9007199254740991,X="[object Arguments]",Y="[object Function]",ee="[object GeneratorFunction]",te="[object Symbol]",re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,oe=/^\./,ie=/^\[object .+?Constructor\]$/,ue=/^(?:0|[1-9]\d*)$/,ce="object"==typeof t&&t&&t.Object===Object&&t,ae="object"==typeof self&&self&&self.Object===Object&&self,se=ce||ae||Function("return this")(),fe=Array.prototype,le=Function.prototype,pe=Object.prototype,he=se["__core-js_shared__"],ye=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_e=le.toString,ge=pe.hasOwnProperty,be=pe.toString,ve=RegExp("^"+_e.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=se.Symbol,we=pe.propertyIsEnumerable,Oe=fe.splice,me=T(se,"Map"),je=T(Object,"create"),ke=de?de.prototype:void 0,Pe=ke?ke.toString:void 0;o.prototype.clear=i,o.prototype.delete=u,o.prototype.get=c,o.prototype.has=a,o.prototype.set=s,f.prototype.clear=l,f.prototype.delete=p,f.prototype.get=h,f.prototype.has=y,f.prototype.set=_,g.prototype.clear=b,g.prototype.delete=v,g.prototype.get=d,g.prototype.has=w,g.prototype.set=O;var Ee=M(function(e){e=J(e);var t=[];return oe.test(e)&&t.push(""),e.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(e,r,n,o){t.push(n?o.replace(/\\(\\)?/g,"$1"):r||e)}),t});M.Cache=g;var Se=Array.isArray;e.exports=U}).call(t,r(8))},function(e,t,r){(function(e,n){function o(e,r){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),_(r)?n.showHidden=r:r&&t._extend(n,r),O(n.showHidden)&&(n.showHidden=!1),O(n.depth)&&(n.depth=2),O(n.colors)&&(n.colors=!1),O(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=i),a(n,e,n.depth)}function i(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function u(e,t){return e}function c(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}function a(e,r,n){if(e.customInspect&&r&&E(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var o=r.inspect(n,e);return d(o)||(o=a(e,o,n)),o}var i=s(e,r);if(i)return i;var u=Object.keys(r),_=c(u);if(e.showHidden&&(u=Object.getOwnPropertyNames(r)),P(r)&&(u.indexOf("message")>=0||u.indexOf("description")>=0))return f(r);if(0===u.length){if(E(r)){var g=r.name?": "+r.name:"";return e.stylize("[Function"+g+"]","special")}if(m(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(k(r))return e.stylize(Date.prototype.toString.call(r),"date");if(P(r))return f(r)}var b="",v=!1,w=["{","}"];if(y(r)&&(v=!0,w=["[","]"]),E(r)){b=" [Function"+(r.name?": "+r.name:"")+"]"}if(m(r)&&(b=" "+RegExp.prototype.toString.call(r)),k(r)&&(b=" "+Date.prototype.toUTCString.call(r)),P(r)&&(b=" "+f(r)),0===u.length&&(!v||0==r.length))return w[0]+b+w[1];if(n<0)return m(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var O;return O=v?l(e,r,n,_,u):u.map(function(t){return p(e,r,n,_,t,v)}),e.seen.pop(),h(O,b,w)}function s(e,t){if(O(t))return e.stylize("undefined","undefined");if(d(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return v(t)?e.stylize(""+t,"number"):_(t)?e.stylize(""+t,"boolean"):g(t)?e.stylize("null","null"):void 0}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function l(e,t,r,n,o){for(var i=[],u=0,c=t.length;u-1&&(c=i?c.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+c.split("\n").map(function(e){return" "+e}).join("\n"))):c=e.stylize("[Circular]","special")),O(u)){if(i&&o.match(/^\d+$/))return c;u=JSON.stringify(""+o),u.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(u=u.substr(1,u.length-2),u=e.stylize(u,"name")):(u=u.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),u=e.stylize(u,"string"))}return u+": "+c}function h(e,t,r){var n=0;return e.reduce(function(e,t){return n++,t.indexOf("\n")>=0&&n++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}function y(e){return Array.isArray(e)}function _(e){return"boolean"==typeof e}function g(e){return null===e}function b(e){return null==e}function v(e){return"number"==typeof e}function d(e){return"string"==typeof e}function w(e){return"symbol"==typeof e}function O(e){return void 0===e}function m(e){return j(e)&&"[object RegExp]"===T(e)}function j(e){return"object"==typeof e&&null!==e}function k(e){return j(e)&&"[object Date]"===T(e)}function P(e){return j(e)&&("[object Error]"===T(e)||e instanceof Error)}function E(e){return"function"==typeof e}function S(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function T(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}function A(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),R[e.getMonth()],t].join(" ")}function q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.format=function(e){if(!d(e)){for(var t=[],r=0;r=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),c=n[r];r=t&&e<=r}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=r(14),u=r(19),c=r(155),a=r(153);t.checkType=function(e,t){if(!(e instanceof t))throw console.warn(e+" is of the type "+(void 0===e?"undefined":o(e))),new TypeError("Argument must be an instance of "+t.name)},t.constructorWrapper=function(e){return function(){for(var t=arguments.length,r=Array(t),n=0;n-1}function b(e,t){var r=this.__data__,n=P(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function v(e){var t=-1,r=e?e.length:0;for(this.clear();++to?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n-1&&e%1==0&&e-1&&e%1==0&&e<=ue}function X(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Y(e){return!!e&&"object"==typeof e}function ee(e){return"symbol"==typeof e||Y(e)&&Ee.call(e)==fe}function te(e){return null==e?"":C(e)}function re(e){return W(e)?k(e):A(e)}var ne="Expected a function",oe="__lodash_hash_undefined__",ie=1/0,ue=9007199254740991,ce="[object Arguments]",ae="[object Function]",se="[object GeneratorFunction]",fe="[object Symbol]",le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pe=/^\w*$/,he=/^\./,ye=/^\[object .+?Constructor\]$/,_e=/^(?:0|[1-9]\d*)$/,ge="object"==typeof t&&t&&t.Object===Object&&t,be="object"==typeof self&&self&&self.Object===Object&&self,ve=ge||be||Function("return this")(),de=Array.prototype,we=Function.prototype,Oe=Object.prototype,me=ve["__core-js_shared__"],je=function(){var e=/[^.]+$/.exec(me&&me.keys&&me.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ke=we.toString,Pe=Oe.hasOwnProperty,Ee=Oe.toString,Se=RegExp("^"+ke.call(Pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Te=ve.Symbol,xe=Oe.propertyIsEnumerable,Ae=de.splice,qe=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Ce=Math.max,Qe=D(ve,"Map"),Re=D(Object,"create"),De=Te?Te.prototype:void 0,Me=De?De.toString:void 0;u.prototype.clear=c,u.prototype.delete=a,u.prototype.get=s,u.prototype.has=f,u.prototype.set=l,p.prototype.clear=h,p.prototype.delete=y,p.prototype.get=_,p.prototype.has=g,p.prototype.set=b,v.prototype.clear=d,v.prototype.delete=w,v.prototype.get=O,v.prototype.has=m,v.prototype.set=j;var Fe=function(e,t){return function(r,n){if(null==r)return r;if(!W(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i-1&&e%1==0&&e<=w}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){return!!e&&"object"==typeof e}function d(){return!1}var w=9007199254740991,O="[object Arguments]",m="[object Function]",j="[object GeneratorFunction]",k="[object Map]",P="[object Set]",E=/^\[object .+?Constructor\]$/,S="object"==typeof e&&e&&e.Object===Object&&e,T="object"==typeof self&&self&&self.Object===Object&&self,x=S||T||Function("return this")(),A="object"==typeof t&&t&&!t.nodeType&&t,q=A&&"object"==typeof r&&r&&!r.nodeType&&r,C=q&&q.exports===A,Q=Function.prototype,R=Object.prototype,D=x["__core-js_shared__"],M=function(){var e=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),F=Q.toString,z=R.hasOwnProperty,N=R.toString,G=RegExp("^"+F.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=C?x.Buffer:void 0,I=R.propertyIsEnumerable,L=B?B.isBuffer:void 0,$=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),H=c(x,"DataView"),J=c(x,"Map"),U=c(x,"Promise"),W=c(x,"Set"),V=c(x,"WeakMap"),K=!I.call({valueOf:1},"valueOf"),Z=f(H),X=f(J),Y=f(U),ee=f(W),te=f(V),re=i;(H&&"[object DataView]"!=re(new H(new ArrayBuffer(1)))||J&&re(new J)!=k||U&&"[object Promise]"!=re(U.resolve())||W&&re(new W)!=P||V&&"[object WeakMap]"!=re(new V))&&(re=function(e){var t=N.call(e),r="[object Object]"==t?e.constructor:void 0,n=r?f(r):void 0;if(n)switch(n){case Z:return"[object DataView]";case X:return k;case Y:return"[object Promise]";case ee:return P;case te:return"[object WeakMap]"}return t});var ne=Array.isArray,oe=L||d;r.exports=y}).call(t,r(8),r(20)(e))},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var r=0;r0&&o(f)?t>1?n(f,t-1,o,u,c):r(c,f):u||(c[c.length]=f)}return c}function o(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r-1&&e%1==0&&e<=y}function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){return!!e&&"object"==typeof e}var y=9007199254740991,_="[object Arguments]",g="[object Function]",b="[object GeneratorFunction]",v="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,w=v||d||Function("return this")(),O=Object.prototype,m=O.hasOwnProperty,j=O.toString,k=w.Symbol,P=O.propertyIsEnumerable,E=k?k.isConcatSpreadable:void 0,S=Array.isArray;e.exports=u}).call(t,r(8))},function(e,t){function r(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";t.EXECUTION_HINT_SET=new Set(["map","global_ordinals","global_ordinals_hash","global_ordinals_low_cardinalit"]),t.UNIT_SET=new Set(["in","inch","yd","yards","ft","feet","km","kilometers","NM","nmi","nauticalmiles","mm","millimeters","cm","centimeters","mi","miles","m","meters"]),t.MODEL_SET=new Set(["simple","linear","ewma","holt","holt_winters"]),t.SORT_MODE_SET=new Set(["min","max","sum","avg","median"]),t.RESCORE_MODE_SET=new Set(["total","multiply","min","max","avg"]),t.REWRITE_METHOD_SET=new Set(["constant_score","constant_score_auto","constant_score_filter","scoring_boolean","constant_score_boolean","top_terms_N","top_terms_boost_N","top_terms_blended_freqs_N"]),t.MULTI_MATCH_TYPE=new Set(["best_fields","most_fields","cross_fields","phrase","phrase_prefix"]),t.SCORE_MODE_SET=new Set(["multiply","sum","first","min","max","avg"]),t.BOOST_MODE_SET=new Set(["multiply","sum","replace","min","max","avg"]),t.FIELD_MODIFIER_SET=new Set(["none","log","log1p","log2p","ln","ln1p","ln2p","square","sqrt","reciprocal"]),t.NESTED_SCORE_MODE_SET=new Set(["none","sum","min","max","avg"]),t.GEO_RELATION_SET=new Set(["WITHIN","CONTAINS","DISJOINT","INTERSECTS"])},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"desc",r=t.toLowerCase();if("asc"!==r&&"desc"!==r)throw new Error("`direction` must be either `asc` or `desc`");return this._aggsDef.order=n({},e,r),this}},{key:"minDocCount",value:function(e){return this._aggsDef.min_doc_count=e,this}},{key:"extendedBounds",value:function(e,t){return this._aggsDef.extended_bounds={min:e,max:t},this}},{key:"missing",value:function(e){return this._aggsDef.missing=e,this}},{key:"keyed",value:function(e){return this._aggsDef.keyed=e,this}}]),t}(s);e.exports=f},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var r=0;r-1}function o(e,t,r){for(var n=-1,o=e?e.length:0;++n-1}function S(e,t){var r=this.__data__,n=z(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function T(e){var t=-1,r=e?e.length:0;for(this.clear();++t=ye&&(a=p,s=!1,t=new R(t));e:for(;++c0&&r(a)?t>1?G(a,t-1,r,n,o):u(o,a):n||(o[o.length]=a)}return o}function B(e,t,r){var n=t(e);return Ue(e)?n:u(n,r(e))}function I(e){return!(!se(e)||X(e))&&(ce(e)||y(e)?De:me).test(re(e))}function L(e){if(!se(e))return ee(e);var t=Y(e),r=[];for(var n in e)("constructor"!=n||!t&&Qe.call(e,n))&&r.push(n);return r}function $(e,t){return e=Object(e),H(e,t,function(t,r){return r in e})}function H(e,t,r){for(var n=-1,o=t.length,i={};++n-1&&e%1==0&&e-1&&e%1==0&&e<=be}function se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function fe(e){return!!e&&"object"==typeof e}function le(e){return"symbol"==typeof e||fe(e)&&Re.call(e)==Oe}function pe(e){return ie(e)?F(e,!0):L(e)}function he(){return[]}var ye=200,_e="__lodash_hash_undefined__",ge=1/0,be=9007199254740991,ve="[object Arguments]",de="[object Function]",we="[object GeneratorFunction]",Oe="[object Symbol]",me=/^\[object .+?Constructor\]$/,je=/^(?:0|[1-9]\d*)$/,ke="object"==typeof t&&t&&t.Object===Object&&t,Pe="object"==typeof self&&self&&self.Object===Object&&self,Ee=ke||Pe||Function("return this")(),Se=Array.prototype,Te=Function.prototype,xe=Object.prototype,Ae=Ee["__core-js_shared__"],qe=function(){var e=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ce=Te.toString,Qe=xe.hasOwnProperty,Re=xe.toString,De=RegExp("^"+Ce.call(Qe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Me=Ee.Symbol,Fe=_(Object.getPrototypeOf,Object),ze=xe.propertyIsEnumerable,Ne=Se.splice,Ge=Me?Me.isConcatSpreadable:void 0,Be=Object.getOwnPropertySymbols,Ie=Math.max,Le=W(Ee,"Map"),$e=W(Object,"create");g.prototype.clear=b,g.prototype.delete=v,g.prototype.get=d,g.prototype.has=w,g.prototype.set=O,m.prototype.clear=j,m.prototype.delete=k,m.prototype.get=P,m.prototype.has=E,m.prototype.set=S,T.prototype.clear=x,T.prototype.delete=A,T.prototype.get=q,T.prototype.has=C,T.prototype.set=Q,R.prototype.add=R.prototype.push=D,R.prototype.has=M;var He=Be?_(Be,Object):he,Je=Be?function(e){for(var t=[];e;)u(t,He(e)),e=Fe(e);return t}:he,Ue=Array.isArray,We=function(e,t){return t=Ie(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Ie(n.length-t,0),u=Array(i);++o12)throw new Error("`precision` can only be value from 1 to 12.");return this._aggsDef.precision=e,this}},{key:"size",value:function(e){return this._aggsDef.size=e,this}},{key:"shardSize",value:function(e){return this._aggsDef.shard_size=e,this}}]),t}(c);e.exports=s},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._aggsDef.mutual_information={include_negatives:e,background_is_superset:t},this}},{key:"chiSquare",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this._aggsDef.chi_square={include_negatives:e,background_is_superset:t},this}},{key:"gnd",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._aggsDef.gnd={background_is_superset:e},this}},{key:"percentage",value:function(){return this._aggsDef.percentage={},this}},{key:"scriptHeuristic",value:function(e){return f(e,s),this._aggsDef.script_heuristic={script:e},this}},{key:"backgroundFilter",value:function(e){return f(e,a),this._aggsDef.background_filter=e,this}}]),t}(l);e.exports=h},function(e,t,r){"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"desc",r=t.toLowerCase();if("asc"!==r&&"desc"!==r)throw new Error("`direction` must be either `asc` or `desc`");return this._aggsDef.order=n({},e,r),this}}]),t}(a);e.exports=f},function(e,t,r){"use strict";t.MatrixStatsAggregation=r(63)},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"gauss",r=arguments[1];o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a(r)||(n._field=r),n}return u(t,e),c(t,[{key:"mode",value:function(e){var t=e.toLowerCase();if("linear"!==t&&"exp"!==t&&"gauss"!==t)throw console.log("See https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-function-score-query.html#function-decay"),console.warn("Got 'mode' - "+e),new Error("The mode can only be `linear`, `exp` or `gauss`");return this.name=e,this}},{key:"linear",value:function(){return this.name="linear",this}},{key:"exp",value:function(){return this.name="exp",this}},{key:"gauss",value:function(){return this.name="gauss",this}},{key:"field",value:function(e){return this._field=e,this}},{key:"origin",value:function(e){return this._opts.origin=e,this}},{key:"scale",value:function(e){return this._opts.scale=e,this}},{key:"offset",value:function(e){return this._opts.offset=e,this}},{key:"decay",value:function(e){return this._opts.decay=e,this}},{key:"toJSON",value:function(){var e=Object.assign(n({},this.name,n({},this._field,this._opts)),this._body);return f(e)}}]),t}(l);e.exports=p},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var r=0;r-1}function m(e,t){var r=this.__data__,n=N(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function j(e){var t=-1,r=e?e.length:0;for(this.clear();++ta))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var l=-1,p=!0,h=i&Ne?new x:void 0;for(u.set(e,t),u.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=Ie}function Se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Te(e){return!!e&&"object"==typeof e}function xe(e){return"symbol"==typeof e||Te(e)&&St.call(e)==rt}function Ae(e){return null==e?"":te(e)}function qe(e,t,r){var n=null==e?void 0:I(e,t);return void 0===n?r:n}function Ce(e,t){return null!=e&&se(e,t,$)}function Qe(e){return je(e)?z(e):Z(e)}function Re(e){return e}function De(e){return le(e)?i(be(e)):ee(e)}var Me=200,Fe="Expected a function",ze="__lodash_hash_undefined__",Ne=1,Ge=2,Be=1/0,Ie=9007199254740991,Le="[object Arguments]",$e="[object Array]",He="[object Boolean]",Je="[object Date]",Ue="[object Error]",We="[object Function]",Ve="[object GeneratorFunction]",Ke="[object Map]",Ze="[object Number]",Xe="[object Object]",Ye="[object RegExp]",et="[object Set]",tt="[object String]",rt="[object Symbol]",nt="[object ArrayBuffer]",ot="[object DataView]",it=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,ct=/^\./,at=/^\[object .+?Constructor\]$/,st=/^(?:0|[1-9]\d*)$/,ft={};ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft[Le]=ft[$e]=ft[nt]=ft[He]=ft[ot]=ft[Je]=ft[Ue]=ft[We]=ft[Ke]=ft[Ze]=ft[Xe]=ft[Ye]=ft[et]=ft[tt]=ft["[object WeakMap]"]=!1;var lt="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=lt||pt||Function("return this")(),yt="object"==typeof t&&t&&!t.nodeType&&t,_t=yt&&"object"==typeof r&&r&&!r.nodeType&&r,gt=_t&&_t.exports===yt,bt=gt&<.process,vt=function(){try{return bt&&bt.binding("util")}catch(e){}}(),dt=vt&&vt.isTypedArray,wt=Array.prototype,Ot=Function.prototype,mt=Object.prototype,jt=ht["__core-js_shared__"],kt=function(){var e=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pt=Ot.toString,Et=mt.hasOwnProperty,St=mt.toString,Tt=RegExp("^"+Pt.call(Et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=ht.Symbol,At=ht.Uint8Array,qt=mt.propertyIsEnumerable,Ct=wt.splice,Qt=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rt=ae(ht,"DataView"),Dt=ae(ht,"Map"),Mt=ae(ht,"Promise"),Ft=ae(ht,"Set"),zt=ae(ht,"WeakMap"),Nt=ae(Object,"create"),Gt=ve(Rt),Bt=ve(Dt),It=ve(Mt),Lt=ve(Ft),$t=ve(zt),Ht=xt?xt.prototype:void 0,Jt=Ht?Ht.valueOf:void 0,Ut=Ht?Ht.toString:void 0;l.prototype.clear=p,l.prototype.delete=h,l.prototype.get=y,l.prototype.has=_,l.prototype.set=g,b.prototype.clear=v,b.prototype.delete=d,b.prototype.get=w,b.prototype.has=O,b.prototype.set=m,j.prototype.clear=k,j.prototype.delete=P,j.prototype.get=E,j.prototype.has=S,j.prototype.set=T,x.prototype.add=x.prototype.push=A,x.prototype.has=q,C.prototype.clear=Q,C.prototype.delete=R,C.prototype.get=D,C.prototype.has=M,C.prototype.set=F;var Wt=function(e,t){return function(r,n){if(null==r)return r;if(!je(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i-1}function _(e,t){var r=this.__data__,n=m(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function g(e){var t=-1,r=e?e.length:0;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=Z}function L(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $(e){return!!e&&"object"==typeof e}function H(e){return"symbol"==typeof e||$(e)&&be.call(e)==te}function J(e){return null==e?"":P(e)}function U(e,t){return null!=e&&x(e,t,j)}var W="Expected a function",V="__lodash_hash_undefined__",K=1/0,Z=9007199254740991,X="[object Arguments]",Y="[object Function]",ee="[object GeneratorFunction]",te="[object Symbol]",re=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,oe=/^\./,ie=/^\[object .+?Constructor\]$/,ue=/^(?:0|[1-9]\d*)$/,ce="object"==typeof t&&t&&t.Object===Object&&t,ae="object"==typeof self&&self&&self.Object===Object&&self,se=ce||ae||Function("return this")(),fe=Array.prototype,le=Function.prototype,pe=Object.prototype,he=se["__core-js_shared__"],ye=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),_e=le.toString,ge=pe.hasOwnProperty,be=pe.toString,ve=RegExp("^"+_e.call(ge).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=se.Symbol,we=pe.propertyIsEnumerable,Oe=fe.splice,me=T(se,"Map"),je=T(Object,"create"),ke=de?de.prototype:void 0,Pe=ke?ke.toString:void 0;o.prototype.clear=i,o.prototype.delete=u,o.prototype.get=c,o.prototype.has=a,o.prototype.set=s,f.prototype.clear=l,f.prototype.delete=p,f.prototype.get=h,f.prototype.has=y,f.prototype.set=_,g.prototype.clear=b,g.prototype.delete=v,g.prototype.get=d,g.prototype.has=w,g.prototype.set=O;var Ee=M(function(e){e=J(e);var t=[];return oe.test(e)&&t.push(""),e.replace(/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,function(e,r,n,o){t.push(n?o.replace(/\\(\\)?/g,"$1"):r||e)}),t});M.Cache=g;var Se=Array.isArray;e.exports=U}).call(t,r(8))},function(e,t){function r(e){return!!e&&"object"==typeof e}function n(e){return"string"==typeof e||!c(e)&&r(e)&&u.call(e)==o}var o="[object String]",i=Object.prototype,u=i.toString,c=Array.isArray;e.exports=n},function(e,t,r){(function(e,r){function n(e,t){for(var r=-1,n=e?e.length:0,o=Array(n);++r-1}function m(e,t){var r=this.__data__,n=N(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function j(e){var t=-1,r=e?e.length:0;for(this.clear();++ta))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var l=-1,p=!0,h=i&Ne?new x:void 0;for(u.set(e,t),u.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=Ie}function Se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Te(e){return!!e&&"object"==typeof e}function xe(e){return"symbol"==typeof e||Te(e)&&St.call(e)==rt}function Ae(e){return null==e?"":te(e)}function qe(e,t,r){var n=null==e?void 0:B(e,t);return void 0===n?r:n}function Ce(e,t){return null!=e&&se(e,t,L)}function Qe(e){return je(e)?z(e):K(e)}function Re(e){return e}function De(e){return le(e)?i(be(e)):ee(e)}var Me=200,Fe="Expected a function",ze="__lodash_hash_undefined__",Ne=1,Ge=2,Be=1/0,Ie=9007199254740991,Le="[object Arguments]",$e="[object Array]",He="[object Boolean]",Je="[object Date]",Ue="[object Error]",We="[object Function]",Ve="[object GeneratorFunction]",Ke="[object Map]",Ze="[object Number]",Xe="[object Object]",Ye="[object RegExp]",et="[object Set]",tt="[object String]",rt="[object Symbol]",nt="[object ArrayBuffer]",ot="[object DataView]",it=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,ct=/^\./,at=/^\[object .+?Constructor\]$/,st=/^(?:0|[1-9]\d*)$/,ft={};ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft[Le]=ft[$e]=ft[nt]=ft[He]=ft[ot]=ft[Je]=ft[Ue]=ft[We]=ft[Ke]=ft[Ze]=ft[Xe]=ft[Ye]=ft[et]=ft[tt]=ft["[object WeakMap]"]=!1;var lt="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=lt||pt||Function("return this")(),yt="object"==typeof t&&t&&!t.nodeType&&t,_t=yt&&"object"==typeof r&&r&&!r.nodeType&&r,gt=_t&&_t.exports===yt,bt=gt&<.process,vt=function(){try{return bt&&bt.binding("util")}catch(e){}}(),dt=vt&&vt.isTypedArray,wt=Array.prototype,Ot=Function.prototype,mt=Object.prototype,jt=ht["__core-js_shared__"],kt=function(){var e=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pt=Ot.toString,Et=mt.hasOwnProperty,St=mt.toString,Tt=RegExp("^"+Pt.call(Et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=ht.Symbol,At=ht.Uint8Array,qt=mt.propertyIsEnumerable,Ct=wt.splice,Qt=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rt=ae(ht,"DataView"),Dt=ae(ht,"Map"),Mt=ae(ht,"Promise"),Ft=ae(ht,"Set"),zt=ae(ht,"WeakMap"),Nt=ae(Object,"create"),Gt=ve(Rt),Bt=ve(Dt),It=ve(Mt),Lt=ve(Ft),$t=ve(zt),Ht=xt?xt.prototype:void 0,Jt=Ht?Ht.valueOf:void 0,Ut=Ht?Ht.toString:void 0;l.prototype.clear=p,l.prototype.delete=h,l.prototype.get=y,l.prototype.has=_,l.prototype.set=g,b.prototype.clear=v,b.prototype.delete=d,b.prototype.get=w,b.prototype.has=O,b.prototype.set=m,j.prototype.clear=k,j.prototype.delete=P,j.prototype.get=E,j.prototype.has=S,j.prototype.set=T,x.prototype.add=x.prototype.push=A,x.prototype.has=q,C.prototype.clear=Q,C.prototype.delete=R,C.prototype.get=D,C.prototype.has=M,C.prototype.set=F;var Wt=function(e,t){return function(r,n){if(null==r)return r;if(!je(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i-1}function j(e,t){var r=this.__data__,n=G(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}function k(e){var t=-1,r=e?e.length:0;for(this.clear();++ta))return!1;var f=u.get(e);if(f&&u.get(t))return f==t;var l=-1,p=!0,h=i&Ne?new A:void 0;for(u.set(e,t),u.set(t,e);++l-1&&e%1==0&&e-1&&e%1==0&&e<=Ie}function Se(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Te(e){return!!e&&"object"==typeof e}function xe(e){return"symbol"==typeof e||Te(e)&&St.call(e)==rt}function Ae(e){return null==e?"":te(e)}function qe(e,t,r){var n=null==e?void 0:I(e,t);return void 0===n?r:n}function Ce(e,t){return null!=e&&se(e,t,$)}function Qe(e){return je(e)?N(e):Z(e)}function Re(e){return e}function De(e){return le(e)?i(be(e)):ee(e)}var Me=200,Fe="Expected a function",ze="__lodash_hash_undefined__",Ne=1,Ge=2,Be=1/0,Ie=9007199254740991,Le="[object Arguments]",$e="[object Array]",He="[object Boolean]",Je="[object Date]",Ue="[object Error]",We="[object Function]",Ve="[object GeneratorFunction]",Ke="[object Map]",Ze="[object Number]",Xe="[object Object]",Ye="[object RegExp]",et="[object Set]",tt="[object String]",rt="[object Symbol]",nt="[object ArrayBuffer]",ot="[object DataView]",it=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ut=/^\w*$/,ct=/^\./,at=/^\[object .+?Constructor\]$/,st=/^(?:0|[1-9]\d*)$/,ft={};ft["[object Float32Array]"]=ft["[object Float64Array]"]=ft["[object Int8Array]"]=ft["[object Int16Array]"]=ft["[object Int32Array]"]=ft["[object Uint8Array]"]=ft["[object Uint8ClampedArray]"]=ft["[object Uint16Array]"]=ft["[object Uint32Array]"]=!0,ft[Le]=ft[$e]=ft[nt]=ft[He]=ft[ot]=ft[Je]=ft[Ue]=ft[We]=ft[Ke]=ft[Ze]=ft[Xe]=ft[Ye]=ft[et]=ft[tt]=ft["[object WeakMap]"]=!1;var lt="object"==typeof e&&e&&e.Object===Object&&e,pt="object"==typeof self&&self&&self.Object===Object&&self,ht=lt||pt||Function("return this")(),yt="object"==typeof t&&t&&!t.nodeType&&t,_t=yt&&"object"==typeof r&&r&&!r.nodeType&&r,gt=_t&&_t.exports===yt,bt=gt&<.process,vt=function(){try{return bt&&bt.binding("util")}catch(e){}}(),dt=vt&&vt.isTypedArray,wt=Array.prototype,Ot=Function.prototype,mt=Object.prototype,jt=ht["__core-js_shared__"],kt=function(){var e=/[^.]+$/.exec(jt&&jt.keys&&jt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pt=Ot.toString,Et=mt.hasOwnProperty,St=mt.toString,Tt=RegExp("^"+Pt.call(Et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xt=ht.Symbol,At=ht.Uint8Array,qt=mt.propertyIsEnumerable,Ct=wt.splice,Qt=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rt=ae(ht,"DataView"),Dt=ae(ht,"Map"),Mt=ae(ht,"Promise"),Ft=ae(ht,"Set"),zt=ae(ht,"WeakMap"),Nt=ae(Object,"create"),Gt=ve(Rt),Bt=ve(Dt),It=ve(Mt),Lt=ve(Ft),$t=ve(zt),Ht=xt?xt.prototype:void 0,Jt=Ht?Ht.valueOf:void 0,Ut=Ht?Ht.toString:void 0;p.prototype.clear=h,p.prototype.delete=y,p.prototype.get=_,p.prototype.has=g,p.prototype.set=b,v.prototype.clear=d,v.prototype.delete=w,v.prototype.get=O,v.prototype.has=m,v.prototype.set=j,k.prototype.clear=P,k.prototype.delete=E,k.prototype.get=S,k.prototype.has=T,k.prototype.set=x,A.prototype.add=A.prototype.push=q,A.prototype.has=C,Q.prototype.clear=R,Q.prototype.delete=D,Q.prototype.get=M,Q.prototype.has=F,Q.prototype.set=z;var Wt=function(e,t){return function(r,n){if(null==r)return r;if(!je(r))return e(r,n);for(var o=r.length,i=t?o:-1,u=Object(r);(t?i--:++i1)for(var r=1;relastic-builder + + + + + +
  • + Script + + + +
  • @@ -747,70 +811,6 @@

    elastic-builder

    - - - - - -
  • - Script - - - -
  • @@ -1187,9 +1187,9 @@

    elastic-builder

  • - MatchPhrasePrefixQuery + MatchPhraseQueryBase @@ -1200,15 +1200,21 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #maxExpansions + #minimumShouldMatch +
  • + +
  • + #slop
  • @@ -1221,9 +1227,9 @@

    elastic-builder

  • - MatchPhraseQueryBase + MatchPhrasePrefixQuery @@ -1234,21 +1240,15 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #minimumShouldMatch -
  • - -
  • - #slop + #maxExpansions
  • @@ -1607,40 +1607,6 @@

    elastic-builder

    - - - - - -
  • - SimpleQueryStringQuery - - - -
  • @@ -1711,6 +1677,40 @@

    elastic-builder

    + + + + + +
  • + SimpleQueryStringQuery + + + +
  • @@ -2275,6 +2275,40 @@

    elastic-builder

    + + + + + +
  • + ScriptScoreFunction + + + +
  • @@ -2321,40 +2355,6 @@

    elastic-builder

    - - - - - -
  • - ScriptScoreFunction - - - -
  • @@ -2847,9 +2847,9 @@

    elastic-builder

  • - JoiningQueryBase + HasChildQuery @@ -2860,33 +2860,33 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #query + #type
  • - #scoreMode + #childType
  • - #ignoreUnmapped + #minChildren
  • - #innerHits + #maxChildren
  • @@ -2899,9 +2899,9 @@

    elastic-builder

  • - HasChildQuery + JoiningQueryBase @@ -2912,33 +2912,33 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #type + #query
  • - #childType + #scoreMode
  • - #minChildren + #ignoreUnmapped
  • - #maxChildren + #innerHits
  • @@ -3606,6 +3606,16 @@

    elastic-builder

    +
  • + SpanQueryBase + + + +
  • + +
  • @@ -3640,16 +3650,6 @@

    elastic-builder

  • -
  • - SpanQueryBase - - - -
  • - -
  • @@ -3987,9 +3987,9 @@

    elastic-builder

  • - MetricsAggregationBase + CardinalityAggregation @@ -4000,33 +4000,21 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #field -
  • - -
  • - #script -
  • - -
  • - #missing + #format
  • - #format + #precisionThreshold
  • @@ -4039,9 +4027,9 @@

    elastic-builder

  • - CardinalityAggregation + ExtendedStatsAggregation @@ -4052,21 +4040,15 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #format -
  • - -
  • - #precisionThreshold + #sigma
  • @@ -4079,9 +4061,9 @@

    elastic-builder

  • - ExtendedStatsAggregation + GeoBoundsAggregation @@ -4092,15 +4074,27 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #sigma + #format +
  • + +
  • + #script +
  • + +
  • + #wrapLongitude
  • @@ -4113,9 +4107,9 @@

    elastic-builder

  • - GeoBoundsAggregation + MetricsAggregationBase @@ -4126,27 +4120,33 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #format + #field
  • #script
  • - #wrapLongitude + #missing +
  • + +
  • + #format
  • @@ -5749,9 +5749,9 @@

    elastic-builder

  • - DerivativeAggregation + PipelineAggregationBase @@ -5762,15 +5762,27 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #unit + #bucketsPath +
  • + +
  • + #gapPolicy +
  • + +
  • + #format
  • @@ -5783,9 +5795,9 @@

    elastic-builder

  • - PipelineAggregationBase + DerivativeAggregation @@ -5796,27 +5808,15 @@

    elastic-builder

  • Instance members
  • #constructor
  • - #bucketsPath -
  • - -
  • - #gapPolicy -
  • - -
  • - #format + #unit
  • @@ -9420,8 +9420,8 @@

    -

    - Highlight +

    + Script

    @@ -9432,20 +9432,11 @@

    -

    Allows to highlight search results on one or more fields. In order to -perform highlighting, the actual content of the field is required. If the -field in question is stored (has store set to yes in the mapping), it will -be used, otherwise, the actual _source will be loaded and the relevant -field will be extracted from it.

    -

    If no term_vector information is provided (by setting it to -with_positions_offsets in the mapping), then the plain highlighter will be -used. If it is provided, then the fast vector highlighter will be used. -When term vectors are available, highlighting will be performed faster at -the cost of bigger index size.

    -

    Elasticsearch reference

    +

    Class supporting the Elasticsearch scripting API.

    +

    Elasticsearch reference

    -
    new Highlight()
    +
    new Script()
    @@ -9465,6 +9456,20 @@

    +
    Example
    + + +
    const script = bob.script('inline', "doc['my_field'] * multiplier")
    + .lang('expression')
    + .params({ multiplier: 2 });
    +
    +// cat "log(_score * 2) + my_modifier" > config/scripts/calculate-score.groovy
    +const script = bob.script()
    + .lang('groovy')
    + .file('calculate-score')
    + .params({ my_modifier: 2 });
    + + @@ -9472,11 +9477,11 @@

    Instance Members
    -
    +
    - constructor(fields?) + constructor(type?, source?)
    -

    Creates an instance of Highlight to highlight search results on one or more fields.

    +

    Creates an instance of Script

    -
    constructor(fields: (String | Array)?)
    +
    constructor(type: string?, source: string?)
    @@ -9513,8 +9518,25 @@

    - fields ((String | Array)?) - An optional field or array of fields to highlight. + type (string?) + One of +inline +, +stored +, +file + +
    + +
    + +
    +
    + source (string?) + Source of the script. +This needs to be specified if optional argument +type + is passed.
    @@ -9541,11 +9563,11 @@

    -
    +
    - field(field) + inline(scriptCode)
    -

    Allows you to set a field that will be highlighted. The field is -added to the current list of fields.

    +

    Sets the type of script to be inline and specifies the source of the script.

    -
    field(field: Array): Highlight
    +
    inline(scriptCode: string): Script
    @@ -9583,9 +9604,8 @@

    - field (Array) - A field name. - + scriptCode (string) +
    @@ -9598,10 +9618,10 @@

    Returns
    - Highlight: + Script: returns this - so that calls can be chained + so that calls can be chained. @@ -9621,11 +9641,11 @@

    -
    +
    - fields(fields) + stored(scriptId)
    -

    Allows you to set the fields that will be highlighted. All fields are -added to the current list of fields.

    +

    Specify the stored script by id which will be retrieved from cluster state.

    -
    fields(fields: Array): Highlight
    +
    stored(scriptId: string): Script
    @@ -9663,8 +9682,8 @@

    - fields (Array) - Array of field names. + scriptId (string) + The unique identifier for the stored script.
    @@ -9678,26 +9697,16 @@

    Returns
    - Highlight: + Script: returns this - so that calls can be chained + so that calls can be chained. -
    Throws
    -
      - -
    • TypeError: If -fields - is not an instance of Array -
    • - -
    - @@ -9711,11 +9720,11 @@

    -
    +
    - preTags(tags, field?) + file(fileName)
    -

    Sets the pre tags for highlighted fragments. You can apply the -tags to a specific field by passing the optional field name parameter.

    +

    Specify the stored script by id which will be retrieved from cluster state.

    -
    preTags(tags: (string | Array), field: string?): Highlight
    +
    file(fileName: string): Script
    @@ -9753,16 +9761,16 @@

    - tags ((string | Array)) - -
    - -
    - -
    -
    - field (string?) - + fileName (string) + The name of the script stored as a file in the scripts folder. +For script file +config/scripts/calculate-score.groovy +, + +fileName + should be +calculate-score +
    @@ -9775,10 +9783,10 @@

    Returns
    - Highlight: + Script: returns this - so that calls can be chained + so that calls can be chained. @@ -9798,11 +9806,11 @@

    -
    +
    - postTags(tags, field?) + lang(lang)
    -

    Sets the post tags for highlighted fragments. You can apply the -tags to a specific field by passing the optional field name parameter.

    +

    Specifies the language the script is written in. Defaults to painless but +may be set to any of languages listed in Scripting. +The default language may be changed in the elasticsearch.yml config file by setting +script.default_lang to the appropriate language.

    +

    For a file script, it should correspond with the script file suffix. +groovy for config/scripts/calculate-score.groovy.

    -
    postTags(tags: (string | Array), field: string?): Highlight
    +
    lang(lang: string): Script
    @@ -9840,16 +9852,9 @@

    - tags ((string | Array)) - -
    - -
    - -
    -
    - field (string?) - + lang (string) + The language for the script. +
    @@ -9862,10 +9867,10 @@

    Returns
    - Highlight: + Script: returns this - so that calls can be chained + so that calls can be chained. @@ -9885,11 +9890,11 @@

    -
    +
    - styledTagsSchema() + params(params)
    -

    Sets the styled schema to be used for the tags.

    -

    styled - 10 <em> pre tags with css class of hltN, where N is 1-10

    +

    Specifies any named parameters that are passed into the script as variables.

    -
    styledTagsSchema(): Highlight
    +
    params(params: Object): Script
    @@ -9922,16 +9926,30 @@

    +
    Parameters
    +
    + +
    +
    + params (Object) + Named parameters to be passed to script. + +
    + +
    + +
    +
    Returns
    - Highlight: + Script: returns this - so that calls can be chained + so that calls can be chained. @@ -9951,11 +9969,11 @@

    -
    +
    - scoreOrder(field?) + toJSON()
    -

    Sets the order of highlight fragments. You can apply the -score order to a specific field by passing the optional field name parameter.

    +

    Override default toJSON to return DSL representation for the script.

    -
    scoreOrder(field: string?): Highlight
    +
    toJSON(): Object
    @@ -9988,30 +10005,14 @@

    -
    Parameters
    -
    - -
    -
    - field (string?) - An optional field name - -
    - -
    - -
    -
    Returns
    - Highlight: - returns -this - so that calls can be chained + Object: + returns an Object which maps to the elasticsearch query DSL @@ -10031,11 +10032,78 @@

    -
    +
    + + + + + + + + + +
    + + +
    + +

    + Highlight +

    + + + + + + +
    + + +

    Allows to highlight search results on one or more fields. In order to +perform highlighting, the actual content of the field is required. If the +field in question is stored (has store set to yes in the mapping), it will +be used, otherwise, the actual _source will be loaded and the relevant +field will be extracted from it.

    +

    If no term_vector information is provided (by setting it to +with_positions_offsets in the mapping), then the plain highlighter will be +used. If it is provided, then the fast vector highlighter will be used. +When term vectors are available, highlighting will be performed faster at +the cost of bigger index size.

    +

    Elasticsearch reference

    + + +
    new Highlight()
    + + + + + + + + + + + + + + + + + + + + + + + +
    Instance Members
    +
    + +
    - fragmentSize(size, field?) + constructor(fields?)
    -

    Sets the size of each highlight fragment in characters. You can apply the -option to a specific field by passing the optional field name parameter.

    +

    Creates an instance of Highlight to highlight search results on one or more fields.

    -
    fragmentSize(size: number, field: string?): Highlight
    +
    constructor(fields: (String | Array)?)
    @@ -10073,17 +10140,8 @@

    - size (number) - The fragment size in characters. Defaults to 100. - -
    - -
    - -
    -
    - field (string?) - An optional field name + fields ((String | Array)?) + An optional field or array of fields to highlight.
    @@ -10095,16 +10153,6 @@

    - -
    Returns
    - Highlight: - returns -this - so that calls can be chained - - - - @@ -10120,11 +10168,11 @@

    -
    +
    - numberOfFragments(count, field?) + field(field)
    -

    Sets the maximum number of fragments to return. You can apply the -option to a specific field by passing the optional field name parameter.

    +

    Allows you to set a field that will be highlighted. The field is +added to the current list of fields.

    -
    numberOfFragments(count: number, field: string?): Highlight
    +
    field(field: Array): Highlight
    @@ -10162,17 +10210,8 @@

    - count (number) - The maximum number of fragments to return - -
    - -
    - -
    -
    - field (string?) - An optional field name + field (Array) + A field name.
    @@ -10209,11 +10248,11 @@

    -
    +
    - highlightQuery(query, field?) + fields(fields)
    -

    Highlight against a query other than the search query. -Useful if you use a rescore query because those -are not taken into account by highlighting by default.

    +

    Allows you to set the fields that will be highlighted. All fields are +added to the current list of fields.

    -
    highlightQuery(query: Query, field: string?): Highlight
    +
    fields(fields: Array): Highlight
    @@ -10252,16 +10290,8 @@

    - query (Query) - -
    - -
    - -
    -
    - field (string?) - An optional field name + fields (Array) + Array of field names.
    @@ -10289,9 +10319,8 @@

    • TypeError: If -query - is not an instance of -Query +fields + is not an instance of Array
    @@ -10309,11 +10338,11 @@

    -
    +
    - matchedFields(fields, field) + preTags(tags, field?)
    -

    Combine matches on multiple fields to highlight a single field. -Useful for multifields that analyze the same string in different ways. -Sets the highlight type to Fast Vector Highlighter(fvh).

    +

    Sets the pre tags for highlighted fragments. You can apply the +tags to a specific field by passing the optional field name parameter.

    -
    matchedFields(fields: Array, field: string): Highlight
    +
    preTags(tags: (string | Array), field: string?): Highlight
    @@ -10352,7 +10380,7 @@

    - fields (Array) + tags ((string | Array))
    @@ -10360,9 +10388,8 @@

    - field (string) - Field name - + field (string?) +
    @@ -10385,19 +10412,6 @@

    -
    Throws
    -
      - -
    • Error: field parameter should be valid field name -
    • - -
    • TypeError: If -fields - is not an instance of Array -
    • - -
    - @@ -10411,11 +10425,11 @@

    -
    +
    - phraseLimit(limit) + postTags(tags, field?)
    -

    The fast vector highlighter has a phrase_limit parameter that prevents -it from analyzing too many phrases and eating tons of memory. It defaults -to 256 so only the first 256 matching phrases in the document scored -considered. You can raise the limit with the phrase_limit parameter.

    -

    If using matched_fields, phrase_limit phrases per matched field -are considered.

    +

    Sets the post tags for highlighted fragments. You can apply the +tags to a specific field by passing the optional field name parameter.

    -
    phraseLimit(limit: number): Highlight
    +
    postTags(tags: (string | Array), field: string?): Highlight
    @@ -10457,9 +10467,16 @@

    - limit (number) - Defaults to 256. - + tags ((string | Array)) + +
    + +
    + +
    +
    + field (string?) +
    @@ -10495,11 +10512,11 @@

    -
    +
    - encoder(encoder) + styledTagsSchema()
    -

    Can be used to define how highlighted text will be encoded.

    +

    Sets the styled schema to be used for the tags.

    +

    styled - 10 <em> pre tags with css class of hltN, where N is 1-10

    -
    encoder(encoder: string): Highlight
    +
    styledTagsSchema(): Highlight
    + + + + + + + + + + + + + + + + +
    Returns
    + Highlight: + returns +this + so that calls can be chained + + + + + + + + + + + + + + +
    + +
    +
    + +
    +
    +
    + + scoreOrder(field?) +
    +
    + -
    +
    - requireFieldMatch(requireFieldMatch, field?) + fragmentSize(size, field?)
    -

    By default only fields that hold a query match will be highlighted. -This can be set to false to highlight the field regardless of whether -the query matched specifically on them. You can apply the +

    Sets the size of each highlight fragment in characters. You can apply the option to a specific field by passing the optional field name parameter.

    -
    requireFieldMatch(requireFieldMatch: boolean, field: string?): Highlight
    +
    fragmentSize(size: number, field: string?): Highlight
    @@ -10630,8 +10700,9 @@

    - requireFieldMatch (boolean) - + size (number) + The fragment size in characters. Defaults to 100. +
    @@ -10676,11 +10747,11 @@

    -
    +
    - boundaryMaxScan(count, field?) + numberOfFragments(count, field?)
    -

    Allows to control how far to look for boundary characters, and defaults to 20. -You can apply the option to a specific field by passing the optional field name parameter.

    +

    Sets the maximum number of fragments to return. You can apply the +option to a specific field by passing the optional field name parameter.

    -
    boundaryMaxScan(count: number, field: string?): Highlight
    +
    numberOfFragments(count: number, field: string?): Highlight
    @@ -10719,7 +10790,7 @@

    count (number) - The max characters to scan. + The maximum number of fragments to return
    @@ -10765,11 +10836,11 @@

    -
    +
    - boundaryChars(charStr, field?) + highlightQuery(query, field?)
    -

    Defines what constitutes a boundary for highlighting. -It is a single string with each boundary character defined in it. -It defaults to .,!? \t\n. You can apply the -option to a specific field by passing the optional field name parameter.

    +

    Highlight against a query other than the search query. +Useful if you use a rescore query because those +are not taken into account by highlighting by default.

    -
    boundaryChars(charStr: string, field: string?): Highlight
    +
    highlightQuery(query: Query, field: string?): Highlight
    @@ -10809,7 +10879,7 @@

    - charStr (string) + query (Query)
    @@ -10842,6 +10912,17 @@

    +
    Throws
    +
      + +
    • TypeError: If +query + is not an instance of +Query +
    • + +
    + @@ -10855,11 +10936,11 @@

    -
    +
    - type(type, field?) + matchedFields(fields, field)
    -

    Allows to force a specific highlighter type. -This is useful for instance when needing to use -the plain highlighter on a field that has term_vectors enabled. -You can apply the option to a specific field by passing the optional field name parameter.

    +

    Combine matches on multiple fields to highlight a single field. +Useful for multifields that analyze the same string in different ways. +Sets the highlight type to Fast Vector Highlighter(fvh).

    -
    type(type: string, field: string?): Highlight
    +
    matchedFields(fields: Array, field: string): Highlight
    @@ -10899,23 +10979,16 @@

    - type (string) - The allowed values are: -plain -, -postings - and -fvh -. - + fields (Array) +
    - field (string?) - An optional field name + field (string) + Field name
    @@ -10942,13 +11015,12 @@

    Throws
      -
    • Error: Type can be one of -plain -, -postings - or -fvh -. +
    • Error: field parameter should be valid field name +
    • + +
    • TypeError: If +fields + is not an instance of Array
    @@ -10966,11 +11038,11 @@

    -
    +
    - forceSource(forceSource, field?) + phraseLimit(limit)
    -

    Forces the highlighting to highlight fields based on the source -even if fields are stored separately. Defaults to false.

    +

    The fast vector highlighter has a phrase_limit parameter that prevents +it from analyzing too many phrases and eating tons of memory. It defaults +to 256 so only the first 256 matching phrases in the document scored +considered. You can raise the limit with the phrase_limit parameter.

    +

    If using matched_fields, phrase_limit phrases per matched field +are considered.

    -
    forceSource(forceSource: boolean, field: string?): Highlight
    +
    phraseLimit(limit: number): Highlight
    @@ -11008,16 +11084,8 @@

    - forceSource (boolean) - -
    - -
    - -
    -
    - field (string?) - An optional field name + limit (number) + Defaults to 256.
    @@ -11054,11 +11122,11 @@

    -
    +
    - fragmenter(fragmenter, field?) + encoder(encoder)
    -

    Sets the fragmenter type. You can apply the -option to a specific field by passing the optional field name parameter. -Valid values for order are:

    -
      -
    • simple - breaks text up into same-size fragments with no concerns -over spotting sentence boundaries.
    • -
    • span - breaks text up into same-size fragments but does not split -up Spans.
    • -
    +

    Can be used to define how highlighted text will be encoded.

    -
    fragmenter(fragmenter: string, field: string?): Highlight
    +
    encoder(encoder: string): Highlight
    @@ -11103,17 +11163,9 @@

    - fragmenter (string) - The fragmenter. - -
    - -
    - -
    -
    - field (string?) - An optional field name + encoder (string) + It can be either default (no encoding) +or html (will escape html, if you use html highlighting tags)
    @@ -11140,10 +11192,10 @@

    Throws
      -
    • Error: Fragmenter can be either -simple +
    • Error: Encoder can be either +default or -span +html
    @@ -11161,11 +11213,11 @@

    -
    +
    - toJSON() + requireFieldMatch(requireFieldMatch, field?)
    -

    Override default toJSON to return DSL representation for the highlight request

    +

    By default only fields that hold a query match will be highlighted. +This can be set to false to highlight the field regardless of whether +the query matched specifically on them. You can apply the +option to a specific field by passing the optional field name parameter.

    -
    toJSON(): Object
    +
    requireFieldMatch(requireFieldMatch: boolean, field: string?): Highlight
    @@ -11197,131 +11252,41 @@

    - - - - - -
    Returns
    - Object: - returns an Object which maps to the elasticsearch query DSL - +
    Parameters
    +
    - - - - - - - - - - - - - +
    +
    + requireFieldMatch (boolean) + +
    + +
    + +
    +
    + field (string?) + An optional field name -
    +
    + +
    +

    -
    - - - - - -
    - - -
    -

    - GeoPoint -

    - - - - - - -
    - - -

    A GeoPoint object that can be used in queries and filters that -take a GeoPoint. GeoPoint supports various input formats.

    -

    Elasticsearch reference

    - - -
    new GeoPoint()
    - - - - - - - - - - - - - - - - - - - - - - - -
    Instance Members
    -
    - -
    -
    -
    - - constructor() -
    -
    -
    -
    +
    - lat(lat) + boundaryMaxScan(count, field?)
    -

    Sets the latitude for the object representation.

    +

    Allows to control how far to look for boundary characters, and defaults to 20. +You can apply the option to a specific field by passing the optional field name parameter.

    -
    lat(lat: number): GeoPoint
    +
    boundaryMaxScan(count: number, field: string?): Highlight
    @@ -11379,8 +11345,17 @@

    - lat (number) - Latitude + count (number) + The max characters to scan. + +
    + +
    + +
    +
    + field (string?) + An optional field name
    @@ -11394,7 +11369,7 @@

    Returns
    - GeoPoint: + Highlight: returns this so that calls can be chained @@ -11417,11 +11392,11 @@

    -
    +
    - lon(lon) + boundaryChars(charStr, field?)
    -

    Sets the longitude for the object representation.

    +

    Defines what constitutes a boundary for highlighting. +It is a single string with each boundary character defined in it. +It defaults to .,!? \t\n. You can apply the +option to a specific field by passing the optional field name parameter.

    -
    lon(lon: number): GeoPoint
    +
    boundaryChars(charStr: string, field: string?): Highlight
    @@ -11458,8 +11436,16 @@

    - lon (number) - Longitude + charStr (string) + +
    + +
    + +
    +
    + field (string?) + An optional field name
    @@ -11473,7 +11459,7 @@

    Returns
    - GeoPoint: + Highlight: returns this so that calls can be chained @@ -11496,11 +11482,11 @@

    -
    +
    - object(point) + type(type, field?)
    -

    Sets the Geo Point value expressed as an object, -with lat and lon keys.

    +

    Allows to force a specific highlighter type. +This is useful for instance when needing to use +the plain highlighter on a field that has term_vectors enabled. +You can apply the option to a specific field by passing the optional field name parameter.

    -
    object(point: Object): GeoPoint
    +
    type(type: string, field: string?): Highlight
    @@ -11538,8 +11526,24 @@

    - point (Object) - + type (string) + The allowed values are: +plain +, +postings + and +fvh +. + +
    + +
    + +
    +
    + field (string?) + An optional field name +
    @@ -11552,7 +11556,7 @@

    Returns
    - GeoPoint: + Highlight: returns this so that calls can be chained @@ -11565,9 +11569,13 @@

    Throws
      -
    • TypeError: If -point - is not an instance of object +
    • Error: Type can be one of +plain +, +postings + or +fvh +.
    @@ -11585,11 +11593,11 @@

    -
    +
    - array(point) + forceSource(forceSource, field?)
    -

    Sets the Geo Point value expressed as an array -with the format: [ lon, lat ].

    +

    Forces the highlighting to highlight fields based on the source +even if fields are stored separately. Defaults to false.

    -
    array(point: Array): GeoPoint
    +
    forceSource(forceSource: boolean, field: string?): Highlight
    @@ -11627,12 +11635,16 @@

    - point (Array) - Array in format -[ lon, lat ] -( -GeoJson - standard) + forceSource (boolean) + +
    + +
    + +
    +
    + field (string?) + An optional field name
    @@ -11646,7 +11658,7 @@

    Returns
    - GeoPoint: + Highlight: returns this so that calls can be chained @@ -11656,16 +11668,6 @@

    -
    Throws
    -
      - -
    • TypeError: If -point - is not an instance of Array -
    • - -
    - @@ -11679,11 +11681,11 @@

    -
    +
    - string(point) + fragmenter(fragmenter, field?)
    -

    Sets Geo-point expressed as a string with the format: "lat,lon" -or as a geo hash

    +

    Sets the fragmenter type. You can apply the +option to a specific field by passing the optional field name parameter. +Valid values for order are:

    +
      +
    • simple - breaks text up into same-size fragments with no concerns +over spotting sentence boundaries.
    • +
    • span - breaks text up into same-size fragments but does not split +up Spans.
    • +
    -
    string(point: string): GeoPoint
    +
    fragmenter(fragmenter: string, field: string?): Highlight
    @@ -11721,8 +11730,18 @@

    - point (string) - + fragmenter (string) + The fragmenter. + +
    + +
    + +
    +
    + field (string?) + An optional field name +
    @@ -11735,7 +11754,7 @@

    Returns
    - GeoPoint: + Highlight: returns this so that calls can be chained @@ -11745,6 +11764,17 @@

    +
    Throws
    +
      + +
    • Error: Fragmenter can be either +simple + or +span +
    • + +
    + @@ -11758,7 +11788,7 @@

    -
    +
    @@ -11779,7 +11809,7 @@

    -

    Override default toJSON to return DSL representation for the GeoPoint

    +

    Override default toJSON to return DSL representation for the highlight request

    toJSON(): Object
    @@ -11836,8 +11866,8 @@

    -

    - GeoShape +

    + GeoPoint

    @@ -11848,11 +11878,12 @@

    -

    Shape object that can be used in queries and filters that -take a Shape. Shape uses the GeoJSON format.

    +

    A GeoPoint object that can be used in queries and filters that +take a GeoPoint. GeoPoint supports various input formats.

    +

    Elasticsearch reference

    -
    new GeoShape()
    +
    new GeoPoint()
    @@ -11872,33 +11903,6 @@

    -
    Example
    - - -
    // Pass options using method
    -const shape = bob.geoShape()
    - .type('linestring')
    - .coordinates([ [-77.03653, 38.897676], [-77.009051, 38.889939] ]);
    -
    -// bob.prettyPrint(shape);
    -// {
    -//   "type": "linestring",
    -//   "coordinates": [
    -//     [
    -//       -77.03653,
    -//       38.897676
    -//     ],
    -//     [
    -//       -77.009051,
    -//       38.889939
    -//     ]
    -//   ]
    -// }
    -
    -// Pass parameters using contructor
    -bob.geoShape('multipoint', [ [102.0, 2.0], [103.0, 2.0] ])
    - - @@ -11906,11 +11910,11 @@

    Instance Members
    -
    +
    - constructor(type?, coords?) + constructor()
    -

    A Shape object that can be used in queries and filters that -take a Shape. Shape uses the GeoJSON format.

    +

    Creates an instance of GeoPoint

    -
    constructor(type: string?, coords: Array?)
    +
    constructor()
    @@ -11943,48 +11946,6 @@

    -
    Parameters
    -
    - -
    -
    - type (string?) - A valid shape type. -Can be one of -point -, -linestring -, -polygon -, -multipoint -, -multilinestring -, - -multipolygon -, -geometrycollection -, -envelope - and -circle - -
    - -
    - -
    -
    - coords (Array?) - A valid coordinat definition for the given shape. - -
    - -
    - -
    - @@ -12004,11 +11965,11 @@

    -
    +
    - type(type) + lat(lat)
    -

    Sets the GeoJSON format type used to represent shape.

    +

    Sets the latitude for the object representation.

    -
    type(type: string): GeoShape
    +
    lat(lat: number): GeoPoint
    @@ -12045,27 +12006,8 @@

    - type (string) - A valid shape type. -Can be one of -point -, -linestring -, -polygon -, -multipoint -, -multilinestring -, - -multipolygon -, -geometrycollection -, -envelope -, -circle + lat (number) + Latitude
    @@ -12079,10 +12021,10 @@

    Returns
    - GeoShape: + GeoPoint: returns this - so that calls can be chained. + so that calls can be chained @@ -12091,14 +12033,6 @@

    -
    Example
    - - -
    bob.geoShape()
    - .type('envelope')
    - .coordinates([ [-45.0, 45.0], [45.0, -45.0] ])
    - - @@ -12110,11 +12044,11 @@

    -
    +
    - coordinates(coords) + lon(lon)
    -

    Sets the coordinates for the shape definition. Note, the coordinates -are not validated in this api. Please see GeoJSON -and ElasticSearch documentation for correct coordinate definitions.

    +

    Sets the longitude for the object representation.

    -
    coordinates(coords: Array): GeoShape
    +
    lon(lon: number): GeoPoint
    @@ -12153,8 +12085,9 @@

    - coords (Array) - + lon (number) + Longitude +
    @@ -12167,10 +12100,10 @@

    Returns
    - GeoShape: + GeoPoint: returns this - so that calls can be chained. + so that calls can be chained @@ -12179,14 +12112,6 @@

    -
    Example
    - - -
    bob.geoShape()
    - .type('point')
    - .coordinates([-77.03653, 38.897676])
    - - @@ -12198,11 +12123,11 @@

    -
    +
    - radius(radius) + object(point)
    -

    Sets the radius for parsing a circle GeoShape.

    +

    Sets the Geo Point value expressed as an object, +with lat and lon keys.

    -
    radius(radius: (string | number)): GeoShape
    +
    object(point: Object): GeoPoint
    @@ -12239,9 +12165,8 @@

    - radius ((string | number)) - The radius for shape circle. - + point (Object) +
    @@ -12254,26 +12179,27 @@

    Returns
    - GeoShape: + GeoPoint: returns this - so that calls can be chained. + so that calls can be chained - - -
    Example
    - +
    Throws
    +
      -
      bob.geoShape()
      - .type('circle')
      - .coordinates([-45.0, 45.0])
      - .radius('100m)
      - +
    • TypeError: If +point + is not an instance of object +
    • + +
    + + @@ -12286,11 +12212,11 @@

    -
    +
    - toJSON() + array(point)
    -

    Override default toJSON to return DSL representation of the geo shape -class instance.

    +

    Sets the Geo Point value expressed as an array +with the format: [ lon, lat ].

    -
    toJSON(): Object
    +
    array(point: Array): GeoPoint
    @@ -12323,20 +12249,50 @@

    +
    Parameters
    +
    + +
    +
    + point (Array) + Array in format +[ lon, lat ] +( +GeoJson + standard) + +
    + +
    + +
    +
    Returns
    - Object: - returns an Object which maps to the elasticsearch query DSL + GeoPoint: + returns +this + so that calls can be chained +
    Throws
    +
      + +
    • TypeError: If +point + is not an instance of Array +
    • + +
    + @@ -12350,86 +12306,11 @@

    -
    - - - - -

    - - - - -
    - - -
    - -

    - IndexedShape -

    - - - - - - -
    - - -

    A shape which has already been indexed in another index and/or index -type. This is particularly useful for when you have a pre-defined list of -shapes which are useful to your application and you want to reference this -using a logical name (for example 'New Zealand') rather than having to -provide their coordinates each time.

    - - -
    new IndexedShape()
    - - - - - - - - - - - - - - - - - - - -
    Example
    - - -
    const shape = bob.indexedShape('DEU', 'countries')
    - .index('shapes')
    - .path('location');
    -
    -const shape = bob.indexedShape()
    - .id('DEU')
    - .type('countries')
    - .index('shapes')
    - .path('location');
    - - - - - - -
    Instance Members
    -
    - -
    +
    - constructor(id, type) + string(point)
    -

    Creates an instance of IndexedShape

    +

    Sets Geo-point expressed as a string with the format: "lat,lon" +or as a geo hash

    -
    constructor(id: string, type: string)
    +
    string(point: string): GeoPoint
    @@ -12466,18 +12348,8 @@

    - id (string) - The document id of the shape. - -
    - -
    - -
    -
    - type (string) - The name of the type where the shape is indexed. - + point (string) +
    @@ -12488,6 +12360,16 @@

    + +
    Returns
    + GeoPoint: + returns +this + so that calls can be chained + + + + @@ -12503,11 +12385,11 @@

    -
    +
    - id(id) + toJSON()
    -

    Sets the ID of the document that containing the pre-indexed shape.

    +

    Override default toJSON to return DSL representation for the GeoPoint

    - +
    toJSON(): Object
    @@ -12539,30 +12421,14 @@

    -
    Parameters
    -
    - -
    -
    - id (string) - The document id of the shape. - -
    - -
    - -
    -
    Returns
    - IndexedShape: - returns -this - so that calls can be chained. + Object: + returns an Object which maps to the elasticsearch query DSL @@ -12582,19 +12448,25 @@

    -
    -
    -
    - - type(type) -
    -
    - + + + + +
    + + + + +
    -

    Sets the index type where the pre-indexed shape is.

    +

    Shape object that can be used in queries and filters that +take a Shape. Shape uses the GeoJSON format.

    -
    +
    new GeoShape()
    @@ -12618,54 +12491,53 @@

    -
    Parameters
    -
    - -
    -
    - type (string) - The name of the type where the shape is indexed. -
    - -
    - -
    - -
    Returns
    - IndexedShape: - returns -this - so that calls can be chained. - - - - +
    Example
    + + +
    // Pass options using method
    +const shape = bob.geoShape()
    + .type('linestring')
    + .coordinates([ [-77.03653, 38.897676], [-77.009051, 38.889939] ]);
     
    -  
    +// bob.prettyPrint(shape);
    +// {
    +//   "type": "linestring",
    +//   "coordinates": [
    +//     [
    +//       -77.03653,
    +//       38.897676
    +//     ],
    +//     [
    +//       -77.009051,
    +//       38.889939
    +//     ]
    +//   ]
    +// }
     
    +// Pass parameters using contructor
    +bob.geoShape('multipoint', [ [102.0, 2.0], [103.0, 2.0] ])
    + -

    - -
    -
    +
    Instance Members
    +
    -
    +
    - index(index) + constructor(type?, coords?)
    -

    Sets the name of the index where the pre-indexed shape is. Defaults to shapes.

    +

    A Shape object that can be used in queries and filters that +take a Shape. Shape uses the GeoJSON format.

    -
    index(index: string): IndexedShape
    +
    constructor(type: string?, coords: Array?)
    @@ -12702,28 +12575,46 @@

    - index (string) - A valid index name + type (string?) + A valid shape type. +Can be one of +point +, +linestring +, +polygon +, +multipoint +, +multilinestring +, + +multipolygon +, +geometrycollection +, +envelope + and +circle
    -

    - +
    +
    + coords (Array?) + A valid coordinat definition for the given shape. +
    + +
    + +
    - -
    Returns
    - IndexedShape: - returns -this - so that calls can be chained. - - @@ -12740,11 +12631,11 @@

    -
    +
    - path(path) + type(type)
    -

    Sets the field specified as path containing the pre-indexed shape. -Defaults to shape.

    +

    Sets the GeoJSON format type used to represent shape.

    -
    path(path: string): IndexedShape
    +
    type(type: string): GeoShape
    @@ -12782,8 +12672,27 @@

    - path (string) - field name. + type (string) + A valid shape type. +Can be one of +point +, +linestring +, +polygon +, +multipoint +, +multilinestring +, + +multipolygon +, +geometrycollection +, +envelope +, +circle
    @@ -12797,7 +12706,7 @@

    Returns
    - IndexedShape: + GeoShape: returns this so that calls can be chained. @@ -12809,6 +12718,14 @@

    +
    Example
    + + +
    bob.geoShape()
    + .type('envelope')
    + .coordinates([ [-45.0, 45.0], [45.0, -45.0] ])
    + + @@ -12820,11 +12737,11 @@

    -
    +
    - toJSON() + coordinates(coords)
    -

    Override default toJSON to return DSL representation of the geo shape -class instance.

    +

    Sets the coordinates for the shape definition. Note, the coordinates +are not validated in this api. Please see GeoJSON +and ElasticSearch documentation for correct coordinate definitions.

    -
    toJSON(): Object
    +
    coordinates(coords: Array): GeoShape
    @@ -12857,14 +12775,29 @@

    +
    Parameters
    +
    + +
    +
    + coords (Array) + +
    + +
    + +
    +
    Returns
    - Object: - returns an Object which maps to the elasticsearch query DSL + GeoShape: + returns +this + so that calls can be chained. @@ -12873,63 +12806,13 @@

    - - - - - - - - -

    -
    - -
    - - - - - - - - - -
    - - -
    - -

    - Sort -

    - +
    Example
    - - - + +
    bob.geoShape()
    + .type('point')
    + .coordinates([-77.03653, 38.897676])
    -
    - - -

    Allows creating and configuring sort on specified field.

    -

    Elasticsearch reference

    - - -
    new Sort()
    - - - - - - - - - - - - - - @@ -12937,16 +12820,16 @@

    +

    +
    +
    -
    Instance Members
    -
    - -
    +
    - constructor(field, order?) + radius(radius)
    -

    Creates an instance of Sort

    +

    Sets the radius for parsing a circle GeoShape.

    -
    constructor(field: string, order: string?)
    +
    radius(radius: (string | number)): GeoShape
    @@ -12983,24 +12866,8 @@

    - field (string) - The field to sort on - -
    - -
    - -
    -
    - order (string?) - The -order - option can have the following values. - -asc -, -desc - to sort in ascending, descending order respectively. + radius ((string | number)) + The radius for shape circle.
    @@ -13012,10 +12879,29 @@

    + +
    Returns
    + GeoShape: + returns +this + so that calls can be chained. + + + + +
    Example
    + + +
    bob.geoShape()
    + .type('circle')
    + .coordinates([-45.0, 45.0])
    + .radius('100m)
    + + @@ -13027,11 +12913,11 @@

    -
    +
    - order(order) + toJSON()
    -

    Set order for sorting. The order defaults to desc when sorting on the _score, -and defaults to asc when sorting on anything else.

    +

    Override default toJSON to return DSL representation of the geo shape +class instance.

    -
    order(order: string): Sort
    +
    toJSON(): Object
    @@ -13064,37 +12950,14 @@

    -
    Parameters
    -
    - -
    -
    - order (string) - The -order - option can have the following values. - -asc -, -desc - to sort in ascending, descending order respectively. - -
    - -
    - -
    -
    Returns
    - Sort: - returns -this - so that calls can be chained. + Object: + returns an Object which maps to the elasticsearch query DSL @@ -13114,19 +12977,25 @@

    -
    -
    -
    - - mode(mode) -
    -
    - + + + + + + + + + +
    +

    + IndexedShape +

    + @@ -13135,11 +13004,14 @@

    -

    The mode option controls what array value is picked for sorting the -document it belongs to.

    +

    A shape which has already been indexed in another index and/or index +type. This is particularly useful for when you have a pre-defined list of +shapes which are useful to your application and you want to reference this +using a logical name (for example 'New Zealand') rather than having to +provide their coordinates each time.

    -
    +
    new IndexedShape()
    @@ -13151,64 +13023,40 @@

    -
    Parameters
    -
    - -
    -
    - mode (string) - One of -avg -, -min -, -max -, -sum - and -median -. - -
    - -
    - -
    - - -
    Returns
    - Sort: - returns -this - so that calls can be chained. - - - - +
    Example
    + + +
    const shape = bob.indexedShape('DEU', 'countries')
    + .index('shapes')
    + .path('location');
     
    +const shape = bob.indexedShape()
    + .id('DEU')
    + .type('countries')
    + .index('shapes')
    + .path('location');
    + -

    - -
    -
    +
    Instance Members
    +
    -
    +
    - nestedPath(path) + constructor(id, type)
    -

    Defines on which nested object to sort. The actual sort field must be a direct -field inside this nested object. When sorting by nested field, this field -is mandatory.

    +

    Creates an instance of IndexedShape

    -
    nestedPath(path: string): Sort
    +
    constructor(id: string, type: string)
    @@ -13247,28 +13093,27 @@

    - path (string) - Nested object to sort on + id (string) + The document id of the shape.
    -

    - +
    +
    + type (string) + The name of the type where the shape is indexed. +
    + +
    + +
    - -
    Returns
    - Sort: - returns -this - so that calls can be chained. - - @@ -13285,11 +13130,11 @@

    -
    +
    - nestedFilter(filterQuery) + id(id)
    -

    A filter that the inner objects inside the nested path should match with in order -for its field values to be taken into account by sorting. By default no -nested_filter is active.

    +

    Sets the ID of the document that containing the pre-indexed shape.

    -
    nestedFilter(filterQuery: Query): Sort
    + @@ -13328,8 +13171,9 @@

    - filterQuery (Query) - + id (string) + The document id of the shape. +
    @@ -13342,7 +13186,7 @@

    Returns
    - Sort: + IndexedShape: returns this so that calls can be chained. @@ -13352,15 +13196,6 @@

    -
    Throws
    -
      - -
    • TypeError: If filter query is not an instance of -Query -
    • - -
    - @@ -13374,11 +13209,11 @@

    -
    +
    - missing(value) + type(type)
    -

    The missing parameter specifies how docs which are missing the field should -be treated: The missing value can be set to _last, _first, or a custom value -(that will be used for missing docs as the sort value). The default is _last.

    +

    Sets the index type where the pre-indexed shape is.

    -
    missing(value: (string | number)): Sort
    +
    type(type: string): IndexedShape
    @@ -13417,8 +13250,9 @@

    - value ((string | number)) - + type (string) + The name of the type where the shape is indexed. +
    @@ -13431,7 +13265,7 @@

    Returns
    - Sort: + IndexedShape: returns this so that calls can be chained. @@ -13454,11 +13288,11 @@

    -
    +
    - unmappedType(type) + index(index)
    -

    By default, the search request will fail if there is no mapping associated with -a field. The unmapped_type option allows to ignore fields that have no mapping -and not sort by them. The value of this parameter is used to determine what sort -values to emit.

    +

    Sets the name of the index where the pre-indexed shape is. Defaults to shapes.

    -
    unmappedType(type: string): Sort
    +
    index(index: string): IndexedShape
    @@ -13498,8 +13329,9 @@

    - type (string) - + index (string) + A valid index name +
    @@ -13512,7 +13344,7 @@

    Returns
    - Sort: + IndexedShape: returns this so that calls can be chained. @@ -13535,11 +13367,11 @@

    -
    +
    - geoDistance(geoPoint) + path(path)
    -

    Sorts documents by distance of the geo point field from reference point. -If multiple reference points are specified, the final distance for a -document will then be min/max/avg (defined via mode) distance of all -points contained in the document to all points given in the sort request.

    +

    Sets the field specified as path containing the pre-indexed shape. +Defaults to shape.

    -
    geoDistance(geoPoint: (GeoPoint | Object | Array | string)): Sort
    +
    path(path: string): IndexedShape
    @@ -13579,22 +13409,8 @@

    - geoPoint ((GeoPoint | Object | Array | string)) - Reference point or array of -points to calculate distance from. Can be expressed using the -GeoPoint - class, - -Object - with -lat -, -lon - keys, as a string either -lat,lon - or geohash -or as Array with GeoJSON format -[lon, lat] + path (string) + field name.
    @@ -13608,7 +13424,7 @@

    Returns
    - Sort: + IndexedShape: returns this so that calls can be chained. @@ -13631,11 +13447,11 @@

    -
    +
    - distanceType(type) + toJSON()
    -

    Sets the distance calculation mode, arc or plane. -The arc calculation is the more accurate. -The plane is the faster but least accurate.

    +

    Override default toJSON to return DSL representation of the geo shape +class instance.

    -
    distanceType(type: string): Sort
    +
    toJSON(): Object
    @@ -13669,49 +13484,20 @@

    -
    Parameters
    -
    - -
    -
    - type (string) - -
    - -
    - -
    -
    Returns
    - Sort: - returns -this - so that calls can be chained + Object: + returns an Object which maps to the elasticsearch query DSL -
    Throws
    -
      - -
    • Error: If -type - is neither -plane - nor -arc -. -
    • - -
    - @@ -13725,19 +13511,25 @@

    -
    -
    -
    - - unit(unit) -
    -
    - + + + + + + + + + +
    -

    Sets the distance unit. Valid values are: -mi (miles), in (inches), yd (yards), -km (kilometers), cm (centimeters), mm (millimeters), -ft(feet), NM(nauticalmiles)

    +

    Allows creating and configuring sort on specified field.

    +

    Elasticsearch reference

    -
    unit(unit: string): Sort
    +
    new Sort()
    @@ -13764,46 +13554,10 @@

    -
    Parameters
    -
    - -
    -
    - unit (string) - Distance unit, default is -m -(meters). - -
    - -
    - -
    - - - - - - -
    Returns
    - Sort: - returns -this - so that calls can be chained - - -
    Throws
    -
      - -
    • Error: If Unit is outside the accepted set. -
    • - -
    - @@ -13812,16 +13566,14 @@

    -

    - -
    -
    +
    Instance Members
    +
    -
    +
    - script(script) + constructor(field, order?)
    -

    Sorts based on custom script. When sorting on a field, scores are not computed.

    +

    Creates an instance of Sort

    -
    script(script: Script): Sort
    +
    constructor(field: string, order: string?)
    @@ -13858,40 +13610,36 @@

    - script (Script) - + field (string) + The field to sort on +
    -

    - +
    +
    + order (string?) + The +order + option can have the following values. - +asc +, +desc + to sort in ascending, descending order respectively. +
    + +
    + +
    - -
    Returns
    - Sort: - returns -this - so that calls can be chained - - -
    Throws
    -
      - -
    • TypeError: If -script - is not an instance of -Script -
    • - -
    + @@ -13906,11 +13654,11 @@

    -
    +
    - trackScores(enable) + order(order)
    -

    When sorting on a field, scores are not computed. By setting track_scores to true, -scores will still be computed and tracked.

    +

    Set order for sorting. The order defaults to desc when sorting on the _score, +and defaults to asc when sorting on anything else.

    -
    trackScores(enable: boolean): Sort
    +
    order(order: string): Sort
    @@ -13948,8 +13696,16 @@

    - enable (boolean) - + order (string) + The +order + option can have the following values. + +asc +, +desc + to sort in ascending, descending order respectively. +
    @@ -13965,7 +13721,7 @@

    Sort: returns this - so that calls can be chained + so that calls can be chained. @@ -13985,11 +13741,11 @@

    -
    +
    - reverse(reverse) + mode(mode)
    -

    Reverse the sort order. Valid during sort types: field, geo distance, and script.

    +

    The mode option controls what array value is picked for sorting the +document it belongs to.

    -
    reverse(reverse: boolean): Sort
    +
    mode(mode: string): Sort
    @@ -14026,8 +13783,18 @@

    - reverse (boolean) - If sort should be in reverse order. + mode (string) + One of +avg +, +min +, +max +, +sum + and +median +.
    @@ -14044,7 +13811,7 @@

    Sort: returns this - so that calls can be chained + so that calls can be chained. @@ -14064,11 +13831,11 @@

    -
    +
    - toJSON() + nestedPath(path)
    -

    Override default toJSON to return DSL representation for sort parameter.

    +

    Defines on which nested object to sort. The actual sort field must be a direct +field inside this nested object. When sorting by nested field, this field +is mandatory.

    -
    toJSON(): (Object | string)
    +
    nestedPath(path: string): Sort
    @@ -14100,14 +13869,30 @@

    +
    Parameters
    +
    + +
    +
    + path (string) + Nested object to sort on + +
    + +
    + +
    +
    Returns
    - (Object | string): - returns an Object which maps to the elasticsearch query DSL + Sort: + returns +this + so that calls can be chained. @@ -14127,25 +13912,19 @@

    -
    - - - - - - - - - -
    +
    +
    +
    + + nestedFilter(filterQuery) +
    +
    + +
    + +
    - constructor(type?, source?) + missing(value)
    -

    Creates an instance of Script

    +

    The missing parameter specifies how docs which are missing the field should +be treated: The missing value can be set to _last, _first, or a custom value +(that will be used for missing docs as the sort value). The default is _last.

    -
    constructor(type: string?, source: string?)
    +
    missing(value: (string | number)): Sort
    @@ -14240,26 +14044,8 @@

    - type (string?) - One of -inline -, -stored -, -file - -
    - -
    - -
    -
    - source (string?) - Source of the script. -This needs to be specified if optional argument -type - is passed. - + value ((string | number)) +
    @@ -14270,6 +14056,16 @@

    + +
    Returns
    + Sort: + returns +this + so that calls can be chained. + + + + @@ -14285,11 +14081,11 @@

    -
    +
    - inline(scriptCode) + unmappedType(type)
    -

    Sets the type of script to be inline and specifies the source of the script.

    +

    By default, the search request will fail if there is no mapping associated with +a field. The unmapped_type option allows to ignore fields that have no mapping +and not sort by them. The value of this parameter is used to determine what sort +values to emit.

    -
    inline(scriptCode: string): Script
    +
    unmappedType(type: string): Sort
    @@ -14326,7 +14125,7 @@

    - scriptCode (string) + type (string)
    @@ -14340,7 +14139,7 @@

    Returns
    - Script: + Sort: returns this so that calls can be chained. @@ -14363,11 +14162,11 @@

    -
    +
    - stored(scriptId) + geoDistance(geoPoint)
    -

    Specify the stored script by id which will be retrieved from cluster state.

    +

    Sorts documents by distance of the geo point field from reference point. +If multiple reference points are specified, the final distance for a +document will then be min/max/avg (defined via mode) distance of all +points contained in the document to all points given in the sort request.

    -
    stored(scriptId: string): Script
    +
    geoDistance(geoPoint: (GeoPoint | Object | Array | string)): Sort
    @@ -14404,8 +14206,22 @@

    - scriptId (string) - The unique identifier for the stored script. + geoPoint ((GeoPoint | Object | Array | string)) + Reference point or array of +points to calculate distance from. Can be expressed using the +GeoPoint + class, + +Object + with +lat +, +lon + keys, as a string either +lat,lon + or geohash +or as Array with GeoJSON format +[lon, lat]
    @@ -14419,7 +14235,7 @@

    Returns
    - Script: + Sort: returns this so that calls can be chained. @@ -14442,11 +14258,11 @@

    -
    +
    - file(fileName) + distanceType(type)
    -

    Specify the stored script by id which will be retrieved from cluster state.

    +

    Sets the distance calculation mode, arc or plane. +The arc calculation is the more accurate. +The plane is the faster but least accurate.

    -
    file(fileName: string): Script
    +
    distanceType(type: string): Sort
    @@ -14483,15 +14301,105 @@

    - fileName (string) - The name of the script stored as a file in the scripts folder. -For script file -config/scripts/calculate-score.groovy -, + type (string) + +
    + +
    + +

    + -fileName - should be -calculate-score + + + + +
    Returns
    + Sort: + returns +this + so that calls can be chained + + + + + + +
    Throws
    +
      + +
    • Error: If +type + is neither +plane + nor +arc +. +
    • + +
    + + + + + + + + + + + +
    +
    + +
    +
    +
    + + unit(unit) +
    +
    + +
    + +
    +
    +
    + + trackScores(enable) +
    +
    + -
    +
    - params(params) + reverse(reverse)
    -

    Specifies any named parameters that are passed into the script as variables.

    +

    Reverse the sort order. Valid during sort types: field, geo distance, and script.

    -
    params(params: Object): Script
    +
    reverse(reverse: boolean): Sort
    @@ -14653,8 +14653,8 @@

    - params (Object) - Named parameters to be passed to script. + reverse (boolean) + If sort should be in reverse order.
    @@ -14668,10 +14668,10 @@

    Returns
    - Script: + Sort: returns this - so that calls can be chained. + so that calls can be chained @@ -14691,7 +14691,7 @@

    -
    +
    @@ -14712,10 +14712,10 @@

    -

    Override default toJSON to return DSL representation for the script.

    +

    Override default toJSON to return DSL representation for sort parameter.

    -
    toJSON(): Object
    +
    toJSON(): (Object | string)
    @@ -14733,7 +14733,7 @@

    Returns
    - Object: + (Object | string): returns an Object which maps to the elasticsearch query DSL @@ -18125,8 +18125,8 @@

    -

    - MatchPhrasePrefixQuery +

    + MatchPhraseQueryBase

    @@ -18137,16 +18137,17 @@

    -

    Elasticsearch reference

    +

    The MatchPhraseQueryBase provides support for common options used across +various bucket match phrase query implementations.

    -
    new MatchPhrasePrefixQuery()
    +
    new MatchPhraseQueryBase()

    Extends - MatchPhraseQueryBase + MonoFieldQueryBase

    @@ -18174,11 +18175,11 @@

    Instance Members
    -
    +
    - constructor(field?, queryString?) + constructor(queryType, refUrl, field?, queryString?)
    -

    Creates an instance of MatchPhrasePrefixQuery

    +

    Creates an instance of MatchPhraseQueryBase

    -
    constructor(field: string?, queryString: string?)
    +
    constructor(queryType: string, refUrl: string, field: string?, queryString: string?)
    @@ -18213,6 +18214,22 @@

    Parameters
    +
    +
    + queryType (string) + +
    + +
    + +
    +
    + refUrl (string) + +
    + +
    +
    field (string?) @@ -18252,11 +18269,11 @@

    -
    +
    - maxExpansions(limit) + minimumShouldMatch()
    -

    Control to how many prefixes the last term will be expanded.

    + +
    minimumShouldMatch()
    + + -
    maxExpansions(limit: number): MatchPhrasePrefixQuery
    + + + + + + + + + + + + + + +
    Throws
    +
      + +
    • Error: This method cannot be called on +MatchPhraseQueryBase +
    • + +
    + + + + + + + + + + + +
    +
    + +
    +
    +
    + + slop(slop) +
    +
    + -
    +
    Instance Members
    +
    -
    +
    - quoteFieldSuffix(suffix) + constructor(queryString?)
    -

    A suffix to append to fields for quoted parts of the query string. -This allows to use a field that has a different analysis chain for exact matching.

    +

    Creates an instance of SimpleQueryStringQuery

    -
    quoteFieldSuffix(suffix: string): QueryStringQueryBase
    +
    constructor(queryString: string?)
    @@ -23491,8 +23472,9 @@

    - suffix (string) - + queryString (string?) + The query string +
    @@ -23503,16 +23485,6 @@

    - -
    Returns
    - QueryStringQueryBase: - returns -this - so that calls can be chained. - - - - @@ -23528,11 +23500,11 @@

    -
    +
    - allFields(enable) + flags(flags)
    -

    Perform the query on all fields detected in the mapping that can be queried. -Will be used by default when the _all field is disabled and -no default_field is specified (either in the index settings or -in the request body) and no fields are specified.

    +

    simple_query_string support multiple flags to specify which parsing features +should be enabled. It is specified as a |-delimited string.

    -
    allFields(enable: boolean): QueryStringQueryBase
    + @@ -23572,8 +23542,38 @@

    - enable (boolean) - + flags (string) + | + delimited string. The available flags are: +ALL +, +NONE +, + +AND +, +OR +, +NOT +, +PREFIX +, +PHRASE +, +PRECEDENCE +, +ESCAPE +, +WHITESPACE +, + +FUZZY +, +NEAR +, and +SLOP +. +
    @@ -23586,7 +23586,7 @@

    Returns
    - QueryStringQueryBase: + SimpleQueryStringQuery: returns this so that calls can be chained. @@ -28615,8 +28615,8 @@

    -

    - ScoreFunction +

    + ScriptScoreFunction

    @@ -28627,14 +28627,22 @@

    -

    ScoreFunction provides support for common options used across -various ScoreFunction implementations.

    -

    Elasticsearch reference

    +

    The script_score function allows you to wrap another query and customize +the scoring of it optionally with a computation derived from other numeric +field values in the doc using a script expression.

    +

    Elasticsearch reference

    -
    new ScoreFunction()
    +
    new ScriptScoreFunction()
    +

    + Extends + + ScoreFunction + +

    + @@ -28659,11 +28667,11 @@

    Instance Members
    -
    +
    - constructor(name) + constructor(script)
    -

    Creates an instance of ScoreFunction

    +

    Creates an instance of ScriptScoreFunction

    -
    constructor(name: string)
    +
    constructor(script: Script)
    @@ -28700,7 +28708,7 @@

    - name (string) + script (Script)
    @@ -28727,11 +28735,11 @@

    -
    +
    - filter(filterQry) + script(script)
    -

    Adds a filter query whose matching documents will have the score function applied.

    - + -
    filter(filterQry: Query): ScoreFunction
    +
    script(script: Script): ScriptScoreFunction
    @@ -28768,11 +28775,8 @@

    - filterQry (Query) - A valid -Query - object. - + script (Script) +
    @@ -28785,7 +28789,7 @@

    Returns
    - ScoreFunction: + ScriptScoreFunction: returns this so that calls can be chained. @@ -28808,19 +28812,25 @@

    -
    -
    -
    - - weight(weight) -
    -
    - + + + + + + + + + +
    +

    + ScoreFunction +

    + @@ -28829,10 +28839,12 @@

    -

    Sets the weight of the score function

    +

    ScoreFunction provides support for common options used across +various ScoreFunction implementations.

    +

    Elasticsearch reference

    -
    weight(weight: number): ScoreFunction
    +
    new ScoreFunction()
    @@ -28844,33 +28856,7 @@

    -
    Parameters
    -
    - -
    -
    - weight (number) - The weight of this score function. -
    - -
    - -
    - - - - - - -
    Returns
    - ScoreFunction: - returns -this - so that calls can be chained. - - - @@ -28882,16 +28868,14 @@

    -

    - -
    -
    +
    Instance Members
    +
    -
    +
    - toJSON() + constructor(name)
    -

    Overrides default toJSON to return DSL representation of the score function -class instance.

    +

    Creates an instance of ScoreFunction

    -
    toJSON(): Object
    +
    constructor(name: string)
    @@ -28924,17 +28907,22 @@

    - +
    Parameters
    +
    + +
    +
    + name (string) + +
    + +
    + +
    - -
    Returns
    - Object: - returns an Object which maps to the elasticsearch query DSL - - @@ -28951,25 +28939,19 @@

    -
    - - - - - - - - - -
    +
    +
    +
    + + filter(filterQry) +
    +
    + +
    + +
    - constructor(script) + weight(weight)
    -

    Creates an instance of ScriptScoreFunction

    +

    Sets the weight of the score function

    -
    constructor(script: Script)
    +
    weight(weight: number): ScoreFunction
    @@ -29059,8 +29061,9 @@

    - script (Script) - + weight (number) + The weight of this score function. +
    @@ -29071,6 +29074,16 @@

    + +
    Returns
    + ScoreFunction: + returns +this + so that calls can be chained. + + + + @@ -29086,11 +29099,11 @@

    -
    +
    - script(script) + toJSON()
    - +

    Overrides default toJSON to return DSL representation of the score function +class instance.

    -
    script(script: Script): ScriptScoreFunction
    + +
    toJSON(): Object
    @@ -29121,29 +29136,14 @@

    -
    Parameters
    -
    - -
    -
    - script (Script) - -
    - -
    - -
    -
    Returns
    - ScriptScoreFunction: - returns -this - so that calls can be chained. + Object: + returns an Object which maps to the elasticsearch query DSL @@ -33571,8 +33571,8 @@

    -

    - JoiningQueryBase +

    + HasChildQuery

    @@ -33583,17 +33583,18 @@

    -

    The JoiningQueryBase class provides support for common options used across -various joining query implementations.

    +

    The has_child filter accepts a query and the child type to run against, and +results in parent documents that have child docs matching the query.

    +

    Elasticsearch reference

    -
    new JoiningQueryBase()
    +
    new HasChildQuery()

    Extends - Query + JoiningQueryBase

    @@ -33621,11 +33622,11 @@

    Instance Members
    -
    +
    - constructor(queryType, refUrl, qry?) + constructor(qry?, type?)
    -

    Creates an instance of JoiningQueryBase

    +

    Creates an instance of HasChildQuery

    -
    constructor(queryType: string, refUrl: string, qry: Query?)
    +
    constructor(qry: Query?, type: string?)
    @@ -33662,26 +33663,19 @@

    - queryType (string) - -
    - -
    - -
    -
    - refUrl (string) - + qry (Query?) + A valid +Query + object +
    - qry (Query?) - A valid -Query - object + type (string?) + The child type
    @@ -33708,11 +33702,11 @@

    -
    +
    - query(qry) + type(type)
    -

    Sets the nested query to be executed.

    +

    Sets the child document type to search against. +Alias for method childType.

    -
    query(qry: Query): JoiningQueryBase
    +
    type(type: string): HasChildQuery
    @@ -33749,10 +33744,8 @@

    - qry (Query) - A valid -Query - object + type (string) + A valid doc type name
    @@ -33766,7 +33759,7 @@

    Returns
    - JoiningQueryBase: + HasChildQuery: returns this so that calls can be chained. @@ -33789,11 +33782,11 @@

    -
    +
    - scoreMode(mode) + childType(type)
    -

    Sets the scoring method.

    -

    Valid values are:

    -
      -
    • none - no scoring
    • -
    • max - the highest score of all matched child documents is used
    • -
    • min - the lowest score of all matched child documents is used
    • -
    • sum - the sum the all the matched child documents is used
    • -
    • avg - the default, the average of all matched child documents is used
    • -
    +

    Sets the child document type to search against

    -
    scoreMode(mode: string): JoiningQueryBase
    +
    childType(type: string): HasChildQuery
    @@ -33838,27 +33823,8 @@

    - mode (string) - Can be one of -none -, -sum -, -min -, -max -, -avg -. -Defaults to -avg - for -NestedQuery -, -none - for -HasChildQuery -. + type (string) + A valid doc type name
    @@ -33872,7 +33838,7 @@

    Returns
    - JoiningQueryBase: + HasChildQuery: returns this so that calls can be chained. @@ -33895,11 +33861,11 @@

    -
    +
    - ignoreUnmapped(enable) + minChildren(limit)
    -

    When set to true will ignore an unmapped path and will not match any -documents for this query. When set to false (the default value) the query -will throw an exception if the path is not mapped.

    +

    Specify the minimum number of children are required to match +for the parent doc to be considered a match

    -
    ignoreUnmapped(enable: boolean): JoiningQueryBase
    +
    minChildren(limit: number): NestedQuery
    @@ -33938,13 +33903,10 @@

    - enable (boolean) - true - or -false -, -false - by default. + limit (number) + A positive +integer + value.
    @@ -33958,7 +33920,7 @@

    Returns
    - JoiningQueryBase: + NestedQuery: returns this so that calls can be chained. @@ -33981,11 +33943,11 @@

    -
    +
    - innerHits(innerHits) + maxChildren(limit)
    -

    Sets the inner hits options

    +

    Specify the maximum number of children are required to match +for the parent doc to be considered a match

    -
    innerHits(innerHits: InnerHits): JoiningQueryBase
    +
    maxChildren(limit: number): NestedQuery
    @@ -34022,10 +33985,10 @@

    - innerHits (InnerHits) - A valid -InnerHits - object + limit (number) + A positive +integer + value.
    @@ -34039,7 +34002,7 @@

    Returns
    - JoiningQueryBase: + NestedQuery: returns this so that calls can be chained. @@ -34077,8 +34040,8 @@

    -

    - HasChildQuery +

    + JoiningQueryBase

    @@ -34089,18 +34052,17 @@

    -

    The has_child filter accepts a query and the child type to run against, and -results in parent documents that have child docs matching the query.

    -

    Elasticsearch reference

    +

    The JoiningQueryBase class provides support for common options used across +various joining query implementations.

    -
    new HasChildQuery()
    +
    new JoiningQueryBase()

    Extends - JoiningQueryBase + Query

    @@ -34128,11 +34090,11 @@

    Instance Members
    -
    +
    - constructor(qry?, type?) + constructor(queryType, refUrl, qry?)
    -

    Creates an instance of HasChildQuery

    +

    Creates an instance of JoiningQueryBase

    -
    constructor(qry: Query?, type: string?)
    +
    constructor(queryType: string, refUrl: string, qry: Query?)
    @@ -34169,19 +34131,26 @@

    - qry (Query?) - A valid -Query - object - + queryType (string) +
    - type (string?) - The child type + refUrl (string) + +
    + +
    + +
    +
    + qry (Query?) + A valid +Query + object
    @@ -34208,11 +34177,11 @@

    -
    +
    - type(type) + query(qry)
    -

    Sets the child document type to search against. -Alias for method childType.

    +

    Sets the nested query to be executed.

    -
    type(type: string): HasChildQuery
    +
    query(qry: Query): JoiningQueryBase
    @@ -34250,8 +34218,10 @@

    - type (string) - A valid doc type name + qry (Query) + A valid +Query + object
    @@ -34265,7 +34235,7 @@

    Returns
    - HasChildQuery: + JoiningQueryBase: returns this so that calls can be chained. @@ -34288,11 +34258,11 @@

    -
    +
    - childType(type) + scoreMode(mode)
    -

    Sets the child document type to search against

    +

    Sets the scoring method.

    +

    Valid values are:

    +
      +
    • none - no scoring
    • +
    • max - the highest score of all matched child documents is used
    • +
    • min - the lowest score of all matched child documents is used
    • +
    • sum - the sum the all the matched child documents is used
    • +
    • avg - the default, the average of all matched child documents is used
    • +
    -
    childType(type: string): HasChildQuery
    +
    scoreMode(mode: string): JoiningQueryBase
    @@ -34329,8 +34307,27 @@

    - type (string) - A valid doc type name + mode (string) + Can be one of +none +, +sum +, +min +, +max +, +avg +. +Defaults to +avg + for +NestedQuery +, +none + for +HasChildQuery +.
    @@ -34344,7 +34341,7 @@

    Returns
    - HasChildQuery: + JoiningQueryBase: returns this so that calls can be chained. @@ -34367,11 +34364,11 @@

    -
    +
    - minChildren(limit) + ignoreUnmapped(enable)
    -

    Specify the minimum number of children are required to match -for the parent doc to be considered a match

    +

    When set to true will ignore an unmapped path and will not match any +documents for this query. When set to false (the default value) the query +will throw an exception if the path is not mapped.

    -
    minChildren(limit: number): NestedQuery
    +
    ignoreUnmapped(enable: boolean): JoiningQueryBase
    @@ -34409,10 +34407,13 @@

    - limit (number) - A positive -integer - value. + enable (boolean) + true + or +false +, +false + by default.
    @@ -34426,7 +34427,7 @@

    Returns
    - NestedQuery: + JoiningQueryBase: returns this so that calls can be chained. @@ -34449,11 +34450,11 @@

    -
    +
    - maxChildren(limit) + innerHits(innerHits)
    -

    Specify the maximum number of children are required to match -for the parent doc to be considered a match

    +

    Sets the inner hits options

    -
    maxChildren(limit: number): NestedQuery
    +
    innerHits(innerHits: InnerHits): JoiningQueryBase
    @@ -34491,10 +34491,10 @@

    - limit (number) - A positive -integer - value. + innerHits (InnerHits) + A valid +InnerHits + object
    @@ -34508,7 +34508,7 @@

    Returns
    - NestedQuery: + JoiningQueryBase: returns this so that calls can be chained. @@ -40877,6 +40877,64 @@

    + + + + + + + + + +
    + + +
    + +

    + SpanQueryBase +

    + + + + + + +
    + + +

    Interface-like class used to group and identify various implementations of Span queries.

    + + +
    new SpanQueryBase()
    + + +

    + Extends + + Query + +

    + + + + + + + + + + + + + + + + + + + + @@ -41098,64 +41156,6 @@

    - - - - - - - - - -
    - - -
    - -

    - SpanQueryBase -

    - - - - - - -
    - - -

    Interface-like class used to group and identify various implementations of Span queries.

    - - -
    new SpanQueryBase()
    - - -

    - Extends - - Query - -

    - - - - - - - - - - - - - - - - - - - - @@ -43471,7 +43471,153 @@

    Instance Members
    -
    +
    +
    +
    + + constructor(name, field?) +
    +
    + +
    + +
    + + + + +

    + + + + +
    + + +
    + +

    + CardinalityAggregation +

    + + + + + + +
    + + +

    A single-value metrics aggregation that calculates an approximate count of +distinct values. Values can be extracted either from specific fields in the +document or generated by a script.

    +

    Elasticsearch reference

    +

    Aggregation that calculates an approximate count of distinct values.

    + + +
    new CardinalityAggregation()
    + + +

    + Extends + + MetricsAggregationBase + +

    + + + + + + + + + + + + + + + + + + + + + + +
    Instance Members
    +
    + +
    @@ -43492,7 +43638,7 @@

    -

    Creates an instance of AvgAggregation

    +

    Creates an instance of CardinalityAggregation

    constructor(name: string, field: string?)
    @@ -43549,76 +43695,11 @@

    -
    - - - - -
    - - - - -
    - - -
    - -

    - MetricsAggregationBase -

    - - - - - - -
    - - -

    The MetricsAggregationBase provides support for common options used across -various metrics Aggregation implementations.

    - - -
    new MetricsAggregationBase()
    - - -

    - Extends - - Aggregation - -

    - - - - - - - - - - - - - - - - - - - - - - -
    Instance Members
    -
    - -
    +
    - constructor(name, aggType, field?) + format()
    -

    Creates an instance of MetricsAggregationBase

    - + -
    constructor(name: string, aggType: string, field: string?)
    +
    format()
    @@ -43650,43 +43730,19 @@

    -
    Parameters
    -
    - -
    -
    - name (string) - a valid aggregation name - -
    - -
    - -
    -
    - aggType (string) - type of aggregation - -
    - -
    - -
    -
    - field (string?) - The field to aggregate on -
    - -
    - -
    - +
    Throws
    +
      + +
    • Error: This method cannot be called on CardinalityAggregation +
    • + +
    @@ -43701,11 +43757,11 @@

    -
    +
    - field(field) + precisionThreshold(threshold)
    -

    Sets field to run aggregation on.

    +

    The precision_threshold options allows to trade memory for accuracy, +and defines a unique count below which counts are expected to be close to accurate.

    - +
    precisionThreshold(threshold: number): CardinalityAggregation
    @@ -43742,8 +43799,10 @@

    - field (string) - a valid field name + threshold (number) + The threshold value. +The maximum supported value is 40000, thresholds above this number +will have the same effect as a threshold of 40000. The default values is 3000.
    @@ -43757,7 +43816,7 @@

    Returns
    - MetricsAggregationBase: + CardinalityAggregation: returns this so that calls can be chained @@ -43780,19 +43839,25 @@

    -
    -
    -
    - - script(script) -
    -
    - + + + + +
    + + + + +
    +

    + ExtendedStatsAggregation +

    + @@ -43801,12 +43866,25 @@

    -

    Sets script parameter for aggregation.

    +

    A multi-value metrics aggregation that computes stats over numeric values +extracted from the aggregated documents. These values can be extracted either +from specific numeric fields in the documents, or be generated by a provided +script.

    +

    Elasticsearch reference

    +

    Aggregation that computes extra stats over numeric values extracted from +the aggregated documents.

    - +
    new ExtendedStatsAggregation()
    +

    + Extends + + MetricsAggregationBase + +

    + @@ -43816,46 +43894,10 @@

    -
    Parameters
    -
    - -
    -
    - script (Script) - -
    - -
    - -
    - - -
    Returns
    - MetricsAggregationBase: - returns -this - so that calls can be chained - - - - - - -
    Throws
    -
      - -
    • TypeError: If -script - is not an instance of -Script -
    • - -
    - @@ -43864,16 +43906,14 @@

    -

    - -
    -
    +
    Instance Members
    +
    -
    +
    - missing(value) + constructor(name, field?)
    -

    Sets the missing parameter ehich defines how documents -that are missing a value should be treated.

    +

    Creates an instance of ExtendedStatsAggregation

    - +
    constructor(name: string, field: string?)
    @@ -43911,27 +43950,27 @@

    - value (string) - + name (string) + The name which will be used to refer to this aggregation. +
    -

    - +
    +
    + field (string?) + The field to aggregate on +
    + +
    + +
    - -
    Returns
    - MetricsAggregationBase: - returns -this - so that calls can be chained - - @@ -43948,11 +43987,11 @@

    -
    +
    - format(fmt) + sigma(sigma)
    -

    Sets the format expression if applicable.

    +

    Set sigma in the request for getting custom boundary. +sigma controls how many standard deviations +/- from the mean should be displayed

    - + @@ -43989,8 +44029,10 @@

    - fmt (string) - Format mask to apply on aggregation response. Example: ####.00 + sigma (number) + sigma can be any non-negative double, +meaning you can request non-integer values such as 1.5. +A value of 0 is valid, but will simply return the average for both upper and lower bounds.
    @@ -44004,7 +44046,7 @@

    Returns
    - MetricsAggregationBase: + ExtendedStatsAggregation: returns this so that calls can be chained @@ -44042,8 +44084,8 @@

    -

    - CardinalityAggregation +

    + GeoBoundsAggregation

    @@ -44054,14 +44096,12 @@

    -

    A single-value metrics aggregation that calculates an approximate count of -distinct values. Values can be extracted either from specific fields in the -document or generated by a script.

    -

    Elasticsearch reference

    -

    Aggregation that calculates an approximate count of distinct values.

    +

    A metric aggregation that computes the bounding box +containing all geo_point values for a field.

    +

    Elasticsearch reference

    -
    new CardinalityAggregation()
    +
    new GeoBoundsAggregation()

    @@ -44095,7 +44135,7 @@

    Instance Members
    -
    +
    @@ -44116,7 +44156,7 @@

    -

    Creates an instance of CardinalityAggregation

    +

    Creates an instance of GeoBoundsAggregation

    constructor(name: string, field: string?)
    @@ -44173,7 +44213,7 @@

    -
    +
    @@ -44217,7 +44257,7 @@

    Throws
      -
    • Error: This method cannot be called on CardinalityAggregation +
    • Error: This method cannot be called on GeoBoundsAggregation
    @@ -44235,11 +44275,11 @@

    -
    +
    - precisionThreshold(threshold) + script()
    -

    The precision_threshold options allows to trade memory for accuracy, -and defines a unique count below which counts are expected to be close to accurate.

    + +
    script()
    + + + + + + + + + + + + + + + + + +
    Throws
    +
      + +
    • Error: This method cannot be called on GeoBoundsAggregation +
    • + +
    + + + + + + + -
    precisionThreshold(threshold: number): CardinalityAggregation
    + + + +
    +
    + +
    +
    +
    + + wrapLongitude(allowOverlap) +
    +
    + -
    - -
    -
    -
    - - format() -
    -
    -
    -
    +
    - script() + missing(value)
    - +

    Sets the missing parameter ehich defines how documents +that are missing a value should be treated.

    -
    script()
    + + @@ -44788,19 +44774,34 @@

    - +
    Parameters
    +
    + +
    +
    + value (string) + +
    + +
    + +
    -
    Throws
    -
      - -
    • Error: This method cannot be called on GeoBoundsAggregation -
    • + +
      Returns
      + MetricsAggregationBase: + returns +this + so that calls can be chained + -
    + + + @@ -44815,11 +44816,11 @@

    -
    +
    - wrapLongitude(allowOverlap) + format(fmt)
    - +

    Sets the format expression if applicable.

    -
    wrapLongitude(allowOverlap: boolean): GeoBoundsAggregation
    + + @@ -44855,10 +44857,8 @@

    - allowOverlap (boolean) - Optional parameter which specifies whether -the bounding box should be allowed to overlap the international date line. -The default value is true + fmt (string) + Format mask to apply on aggregation response. Example: ####.00
    @@ -44872,7 +44872,7 @@

    Returns
    - GeoBoundsAggregation: + MetricsAggregationBase: returns this so that calls can be chained @@ -58469,8 +58469,8 @@

    -

    - DerivativeAggregation +

    + PipelineAggregationBase

    @@ -58481,20 +58481,21 @@

    -

    A parent pipeline aggregation which calculates the derivative of a -specified metric in a parent histogram (or date_histogram) aggregation. -The specified metric must be numeric and the enclosing histogram must -have min_doc_count set to 0 (default for histogram aggregations).

    -

    Elasticsearch reference

    +

    The PipelineAggregationBase provides support for common options used across +various pipeline Aggregation implementations.

    +

    Pipeline aggregations cannot have sub-aggregations but depending on the type +it can reference another pipeline in the buckets_path allowing pipeline +aggregations to be chained. For example, you can chain together two derivatives +to calculate the second derivative (i.e. a derivative of a derivative).

    -
    new DerivativeAggregation()
    +
    new PipelineAggregationBase()

    Extends - PipelineAggregationBase + Aggregation

    @@ -58522,11 +58523,11 @@

    Instance Members
    -
    +
    - constructor(name, bucketsPath?) + constructor(name, aggType, bucketsPath?)
    -

    Creates an instance of DerivativeAggregation

    +

    Creates an instance of PipelineAggregationBase

    -
    constructor(name: string, bucketsPath: string?)
    +
    constructor(name: string, aggType: string, bucketsPath: (string | Object)?)
    @@ -58564,7 +58565,7 @@

    name (string) - The name which will be used to refer to this aggregation. + a valid aggregation name
    @@ -58572,7 +58573,16 @@

    - bucketsPath (string?) + aggType (string) + type of aggregation + +
    + +
    + +
    +
    + bucketsPath ((string | Object)?) The relative path of metric to aggregate over
    @@ -58600,11 +58610,11 @@

    -
    +
    - unit(unit) + bucketsPath(path)
    -

    Set the units of the derivative values. unit specifies what unit to use for -the x-axis of the derivative calculation

    +

    Sets the relative path, buckets_path, which refers to the metric to aggregate over. +Required.

    +

    Elasticsearch reference

    - +
    bucketsPath(path: (string | Object)): PipelineAggregationBase
    @@ -58642,11 +58653,8 @@

    - unit (string) - unit - specifies what unit to use for -the x-axis of the derivative calculation - + path ((string | Object)) +
    @@ -58659,7 +58667,7 @@

    Returns
    - DerivativeAggregation: + PipelineAggregationBase: returns this so that calls can be chained @@ -58682,25 +58690,19 @@

    -

    - - - - - - - - - -
    + + +
    - constructor(name, aggType, bucketsPath?) + format(fmt)
    -

    Creates an instance of PipelineAggregationBase

    +

    Sets the format expression if applicable. Optional.

    -
    constructor(name: string, aggType: string, bucketsPath: (string | Object)?)
    + @@ -58792,26 +58814,8 @@

    - name (string) - a valid aggregation name - -
    - -
    - -
    -
    - aggType (string) - type of aggregation - -
    - -
    - -
    -
    - bucketsPath ((string | Object)?) - The relative path of metric to aggregate over + fmt (string) + Format mask to apply on aggregation response. Example: ####.00
    @@ -58823,6 +58827,16 @@

    + +
    Returns
    + PipelineAggregationBase: + returns +this + so that calls can be chained + + + + @@ -58838,19 +58852,25 @@

    -
    -
    -
    - - bucketsPath(path) -
    -
    - + + + + +
    + + + + +
    +

    + DerivativeAggregation +

    + @@ -58859,49 +58879,33 @@

    -

    Sets the relative path, buckets_path, which refers to the metric to aggregate over. -Required.

    -

    Elasticsearch reference

    - +

    A parent pipeline aggregation which calculates the derivative of a +specified metric in a parent histogram (or date_histogram) aggregation. +The specified metric must be numeric and the enclosing histogram must +have min_doc_count set to 0 (default for histogram aggregations).

    +

    Elasticsearch reference

    -
    bucketsPath(path: (string | Object)): PipelineAggregationBase
    - - +
    new DerivativeAggregation()
    +

    + Extends + + PipelineAggregationBase + +

    + - -
    Parameters
    -
    - -
    -
    - path ((string | Object)) - -
    - -
    - -
    - - -
    Returns
    - PipelineAggregationBase: - returns -this - so that calls can be chained - - @@ -58913,16 +58917,14 @@

    -

    - -
    -
    +
    Instance Members
    +
    -
    +
    - gapPolicy(policy) + constructor(name, bucketsPath?)
    -

    Set policy for missing data. Optional.

    -

    Elasticsearch reference

    +

    Creates an instance of DerivativeAggregation

    -
    gapPolicy(policy: string): PipelineAggregationBase
    +
    constructor(name: string, bucketsPath: string?)
    @@ -58960,11 +58961,17 @@

    - policy (string) - Can be -skip - or -insert_zeros + name (string) + The name which will be used to refer to this aggregation. + +
    + +
    + +
    +
    + bucketsPath (string?) + The relative path of metric to aggregate over
    @@ -58976,16 +58983,6 @@

    - -
    Returns
    - PipelineAggregationBase: - returns -this - so that calls can be chained - - - - @@ -59001,11 +58998,11 @@

    -
    +
    - format(fmt) + unit(unit)
    -

    Sets the format expression if applicable. Optional.

    +

    Set the units of the derivative values. unit specifies what unit to use for +the x-axis of the derivative calculation

    - + @@ -59042,8 +59040,10 @@

    - fmt (string) - Format mask to apply on aggregation response. Example: ####.00 + unit (string) + unit + specifies what unit to use for +the x-axis of the derivative calculation
    @@ -59057,7 +59057,7 @@

    Returns
    - PipelineAggregationBase: + DerivativeAggregation: returns this so that calls can be chained