24 lines
526 KiB
Vue
24 lines
526 KiB
Vue
|
/*! elasticsearch - v13.0.1 - 2017-05-09
|
||
|
* http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html
|
||
|
* Copyright (c) 2017 Elasticsearch BV; Licensed Apache-2.0 */
|
||
|
|
||
|
;(function () {
|
||
|
/* prevent lodash from detecting external amd loaders */var define;
|
||
|
!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.elasticsearch=b():a.elasticsearch=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};return a[d].call(e.exports,e,e.exports,b),e.loaded=!0,e.exports}var c={};return b.m=a,b.c=c,b.p="",b(0)}([function(a,b,c){function d(){throw new Error('Looks like you are expecting the previous "elasticsearch" module. It is now the "es" module. To create a client with this module use `new es.Client(params)`.')}d.Client=c(1),d.ConnectionPool=c(33),d.Transport=c(2),d.errors=c(17),a.exports=d},function(a,b,c){function d(a){function b(){a.hasOwnProperty("log")||(a.log="warning"),a.hosts||a.host||(a.host="http://localhost:9200"),this.close=function(){this.transport.close()},this.transport=new e(a),g.each(b.prototype,g.bind(function(a,b){a.prototype instanceof f.ApiNamespace&&(this[b]=new a(this.transport,this))},this)),delete this._namespaces}if(a=a||{},a.__reused)throw new Error("Do not reuse objects to configure the elasticsearch Client class: https://github.com/elasticsearch/elasticsearch-js/issues/33");a.__reused=!0,b.prototype=g.funcEnum(a,"apiVersion",d.apis,"_default"),a.sniffEndpoint||b.prototype!==d.apis["0.90"]||(a.sniffEndpoint="/_cluster/nodes");var h=b;return a.plugins&&(h.prototype=g.cloneDeep(h.prototype),g.each(a.plugins,function(b){h=b(h,a,{apis:c(47),connectors:c(37),loggers:c(30),selectors:c(34),serializers:c(42),Client:c(1),clientAction:f,Connection:c(39),ConnectionPool:c(33),Errors:c(17),Host:c(18),Log:c(28),Logger:c(32),NodesToHost:c(45),Transport:c(2),utils:c(4)})||h})),new h}a.exports=d;var e=c(2),f=c(46),g=c(4);d.apis=c(47)},function(a,b,c){(function(b){function d(a){var b=this;a=b._config=a||{};var f="function"==typeof a.log?a.log:c(28);a.log=b.log=new f(a);var j=e.funcEnum(a,"connectionPool",d.connectionPools,"main");b.connectionPool=new j(a);var k=e.funcEnum(a,"serializer",d.serializers,"json");b.serializer=new k(a),b.nodesToHostCallback=e.funcEnum(a,"nodesToHostCallback",d.nodesToHostCallbacks,"main"),b.maxRetries=a.hasOwnProperty("maxRetries")?a.maxRetries:3,b.sniffEndpoint=a.hasOwnProperty("sniffEndpoint")?a.sniffEndpoint:"/_nodes/_all/http",b.requestTimeout=a.hasOwnProperty("requestTimeout")?a.requestTimeout:3e4,a.hasOwnProperty("defer")&&(b.defer=a.defer);var l=!a.hasOwnProperty("randomizeHosts")||!!a.randomizeHosts;if(a.host&&(a.hosts=a.host),a.hosts){var m=e.createArray(a.hosts,function(a){if(e.isPlainObject(a)||e.isString(a)||a instanceof g)return a});if(!m)throw new TypeError("Invalid hosts config. Expected a URL, an array of urls, a host config object, or an array of host config objects.");l&&(m=e.shuffle(m)),b.setHosts(m)}a.hasOwnProperty("sniffedNodesProtocol")?b.sniffedNodesProtocol=a.sniffedNodesProtocol||null:b.sniffedNodesProtocol=i(b.connectionPool.getAllHosts())||null,a.sniffOnStart&&b.sniff(),a.sniffInterval&&b._timeout(function c(){b.sniff(),b._timeout(c,a.sniffInterval)},a.sniffInterval),a.sniffOnConnectionFault&&h(b)}a.exports=d;var e=c(4),f=c(17),g=c(18),h=c(25),i=c(26);d.connectionPools={main:c(33)},d.serializers=c(42),d.nodesToHostCallbacks={main:c(45)},d.prototype.defer=function(){if("undefined"==typeof Promise)throw new Error("No Promise implementation found. In order for elasticsearch-js to create promises either specify the `defer` configuration or include a global Promise shim");var a={};return a.promise=new Promise(function(b,c){a.resolve=b,a.reject=c}),a},d.prototype.request=function(a,c){function d(b,c){r||(b?h(b):c?(j=c,k=j.request(a.req,g)):(o.log.warning("No living connections"),h(new f.NoConnections)))}function g(b,c,e,g){if(!r){if(k=void 0,b instanceof f.RequestTypeError)return o.log.error("Connection refused to execute the request",b),void h(b,c,e,g);if(b){j.setStatus("dead");var i=b.message||"";i="\n"+a.req.method+" "+j.host.makeUrl(a.req)+(i.length?" => ":"")+i,p?(p--,o.log.error("Request error, retrying"+i),o.connectionPool.select(d)):(o.l
|
||
|
return"="===a[b-2]?2:"="===a[b-1]?1:0}function d(a){return 3*a.length/4-c(a)}function e(a){var b,d,e,f,g,h,i=a.length;g=c(a),h=new k(3*i/4-g),e=g>0?i-4:i;var l=0;for(b=0,d=0;b<e;b+=4,d+=3)f=j[a.charCodeAt(b)]<<18|j[a.charCodeAt(b+1)]<<12|j[a.charCodeAt(b+2)]<<6|j[a.charCodeAt(b+3)],h[l++]=f>>16&255,h[l++]=f>>8&255,h[l++]=255&f;return 2===g?(f=j[a.charCodeAt(b)]<<2|j[a.charCodeAt(b+1)]>>4,h[l++]=255&f):1===g&&(f=j[a.charCodeAt(b)]<<10|j[a.charCodeAt(b+1)]<<4|j[a.charCodeAt(b+2)]>>2,h[l++]=f>>8&255,h[l++]=255&f),h}function f(a){return i[a>>18&63]+i[a>>12&63]+i[a>>6&63]+i[63&a]}function g(a,b,c){for(var d,e=[],g=b;g<c;g+=3)d=(a[g]<<16)+(a[g+1]<<8)+a[g+2],e.push(f(d));return e.join("")}function h(a){for(var b,c=a.length,d=c%3,e="",f=[],h=16383,j=0,k=c-d;j<k;j+=h)f.push(g(a,j,j+h>k?k:j+h));return 1===d?(b=a[c-1],e+=i[b>>2],e+=i[b<<4&63],e+="=="):2===d&&(b=(a[c-2]<<8)+a[c-1],e+=i[b>>10],e+=i[b>>4&63],e+=i[b<<2&63],e+="="),f.push(e),f.join("")}b.byteLength=d,b.toByteArray=e,b.fromByteArray=h;for(var i=[],j=[],k="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,n=l.length;m<n;++m)i[m]=l[m],j[l.charCodeAt(m)]=m;j["-".charCodeAt(0)]=62,j["_".charCodeAt(0)]=63},function(a,b){b.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<<h)-1,j=i>>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?NaN:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},b.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<<j)-1,l=k>>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=b<0||0===b&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<<e|h,j+=e;j>0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},function(a,b){var c={}.toString;a.exports=Array.isArray||function(a){return"[object Array]"==c.call(a)}},function(a,b,c){(function(a){function c(a,b){for(var c=0,d=a.length-1;d>=0;d--){var e=a[d];"."===e?a.splice(d,1):".."===e?(a.splice(d,1),c++):c&&(a.splice(d,1),c--)}if(b)for(;c--;c)a.unshift("..");return a}function d(a,b){if(a.filter)return a.filter(b);for(var c=[],d=0;d<a.length;d++)b(a[d],d,a)&&c.push(a[d]);return c}var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,f=function(a){return e.exec(a).slice(1)};b.resolve=function(){for(var b="",e=!1,f=arguments.length-1;f>=-1&&!e;f--){var g=f>=0?arguments[f]:a.cwd();if("string"!=typeof g)throw new TypeError("Arguments to path.resolve must be strings");g&&(b=g+"/"+b,e="/"===g.charAt(0))}return b=c(d(b.split("/"),function(a){return!!a}),!e).join("/"),(e?"/":"")+b||"."},b.normalize=function(a){var e=b.isAbsolute(a),f="/"===g(a,-1);return a=c(d(a.split("/"),function(a){return!!a}),!e).join("/"),a||e||(a="."),a&&f&&(a+="/"),(e?"/":"")+a},b.isAbsolute=function(a){return"/"===a.charAt(0)},b.join=function(){var a=Array.prototype.slice.call(arguments,0);return b.normalize(d(a,function(a,b){if("string"!=typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))},b.relative=function(a,c){function d(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;c>=0&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=b.resolve(a).substr(1),c=b.resolve(c).substr(1);for(var e=d(a.split("/")),f=d(c.split("/")),g=Math.min(e.length,f.length),h=g,i=0;i<g;i++)if(e[i]!==f[i]){h=i;break}for(var j=[],i=h;i<e.length;i++)j.push("..");return j=j.concat(f.slice(h)),j.join("/")},b.sep="/",b.delimiter=":",b.dirname=function(a){var b=f(a),c=b[0],d=b[1];return c||d?(d&&(d=d.substr(0,d.length-1)),c+d):"."},b.basename=function(a,b){var c=f(a)[2];return b&&c.substr(-1*b.length)===b&&(c=c.substr(0,c.length-b.length)),c},b.extname=function(a){return f(a)[3]};var g="b"==="a
|
||
|
a.replace(n,function(b,c,d,e,g,h){return d||(d=e),l+=a.slice(j,h).replace(N,m),c&&(l+="' +\n__e("+c+") +\n'"),g&&(f=!0,l+="';\n"+g+";\n__p += '"),d&&(l+="' +\n((__t = ("+d+")) == null ? '' : __t) +\n'"),j=h+b.length,b}),l+="';\n";var o=d.variable,p=o;p||(o="obj",l="with ("+o+") {\n"+l+"\n}\n"),l=(f?l.replace(D,""):l).replace(E,"$1").replace(F,"$1;"),l="function("+o+") {\n"+(p?"":o+" || ("+o+" = {});\n")+"var __t, __p = '', __e = _.escape"+(f?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+l+"return __p\n}";var q="\n/*\n//# sourceURL="+(d.sourceURL||"/lodash/template/source["+Q++ +"]")+"\n*/";try{var r=yc(h,"return "+l+q).apply(u,i)}catch(a){throw a.source=l,a}return c?r(c):(r.source=l,r)}function mc(a,b,c){a=(a=+a)>-1?a:0;var d=-1,e=uc(a);for(b=v(b,c,1);++d<a;)e[d]=b(d);return e}function nc(a){return null==a?"":Dc(a).replace(sd,sa)}function oc(a){var b=++x;return Dc(null==a?"":a)+b}function pc(a){return a=new c(a),a.__chain__=!0,a}function qc(a,b){return b(a),a}function rc(){return this.__chain__=!0,this}function sc(){return Dc(this.__wrapped__)}function tc(){return this.__wrapped__}a=a?ja.defaults(fa.Object(),a,ja.pick(fa,O)):fa;var uc=a.Array,vc=a.Boolean,wc=a.Date,xc=a.Error,yc=a.Function,zc=a.Math,Ac=a.Number,Bc=a.Object,Cc=a.RegExp,Dc=a.String,Ec=a.TypeError,Fc=[],Gc=xc.prototype,Hc=Bc.prototype,Ic=Dc.prototype,Jc=a._,Kc=Hc.toString,Lc=Cc("^"+Dc(Kc).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Mc=zc.ceil,Nc=a.clearTimeout,Oc=zc.floor,Pc=yc.prototype.toString,Qc=qa(Qc=Bc.getPrototypeOf)&&Qc,Rc=Hc.hasOwnProperty,Sc=Fc.push,Tc=Hc.propertyIsEnumerable,Uc=a.setTimeout,Vc=Fc.splice,Wc=Fc.unshift,Xc=function(){try{var a={},b=qa(b=Bc.defineProperty)&&b,c=b(a,a,a)&&b}catch(a){}return c}(),Yc=qa(Yc=Bc.create)&&Yc,Zc=qa(Zc=uc.isArray)&&Zc,$c=a.isFinite,_c=a.isNaN,ad=qa(ad=Bc.keys)&&ad,bd=zc.max,cd=zc.min,dd=a.parseInt,ed=zc.random,fd={};fd[S]=uc,fd[T]=vc,fd[U]=wc,fd[W]=yc,fd[Y]=Bc,fd[X]=Ac,fd[Z]=Cc,fd[$]=Dc;var gd={};gd[S]=gd[U]=gd[X]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},gd[T]=gd[$]={constructor:!0,toString:!0,valueOf:!0},gd[V]=gd[W]=gd[Z]={constructor:!0,toString:!0},gd[Y]={constructor:!0},function(){for(var a=P.length;a--;){var b=P[a];for(var c in gd)Rc.call(gd,c)&&!Rc.call(gd[c],b)&&(gd[c][b]=!1)}}(),c.prototype=b.prototype;var hd=b.support={};!function(){var b=function(){this.x=1},c={0:1,length:1},d=[];b.prototype={valueOf:1,y:1};for(var e in new b)d.push(e);for(e in arguments);hd.argsClass=Kc.call(arguments)==R,hd.argsObject=arguments.constructor==Bc&&!(arguments instanceof uc),hd.enumErrorProps=Tc.call(Gc,"message")||Tc.call(Gc,"name"),hd.enumPrototypes=Tc.call(b,"prototype"),hd.funcDecomp=!qa(a.WinRTError)&&M.test(t),hd.funcNames="string"==typeof yc.name,hd.nonEnumArgs=0!=e,hd.nonEnumShadows=!/valueOf/.test(d),hd.ownLast="x"!=d[0],hd.spliceObjects=(Fc.splice.call(c,0,1),!c[0]),hd.unindexedChars="x"[0]+Bc("x")[0]!="xx";try{hd.nodeClass=!(Kc.call(document)==Y&&!({toString:0}+""))}catch(a){hd.nodeClass=!0}}(1),b.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:J,variable:"",imports:{_:b}};var id=function(a){var b="var index, iterable = "+a.firstArg+", result = "+a.init+";\nif (!iterable) return result;\n"+a.top+";";a.array?(b+="\nvar length = iterable.length; index = -1;\nif ("+a.array+") { ",hd.unindexedChars&&(b+="\n if (isString(iterable)) {\n iterable = iterable.split('')\n } "),b+="\n while (++index < length) {\n "+a.loop+";\n }\n}\nelse { "):hd.nonEnumArgs&&(b+="\n var length = iterable.length; index = -1;\n if (length && isArguments(iterable)) {\n while (++index < length) {\n index += '';\n "+a.loop+";\n }\n } else { "),hd.enumPrototypes&&(b+="\n var skipProto = typeof iterable == 'function';\n "),hd.enumErrorProps&&(b+="\n var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n ");var c=[];if(hd.enumPrototypes&&c.push('!(skipProto && index == "prototype")'),hd.enumErrorProps&&c.push('!(skipErrorProps && (index == "message
|
||
|
}function h(a,b){for(var c=a.length,d=[];c--;)d[c]=b(a[c]);return d}function i(a,b){var c=a.split("@"),d="";c.length>1&&(d=c[0]+"@",a=c[1]),a=a.replace(F,".");var e=a.split("."),f=h(e,b).join(".");return d+f}function j(a){for(var b,c,d=[],e=0,f=a.length;e<f;)b=a.charCodeAt(e++),b>=55296&&b<=56319&&e<f?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function k(a){return h(a,function(a){var b="";return a>65535&&(a-=65536,b+=J(a>>>10&1023|55296),a=56320|1023&a),b+=J(a)}).join("")}function l(a){return a-48<10?a-22:a-65<26?a-65:a-97<26?a-97:v}function m(a,b){return a+22+75*(a<26)-((0!=b)<<5)}function n(a,b,c){var d=0;for(a=c?I(a/z):a>>1,a+=I(a/b);a>H*x>>1;d+=v)a=I(a/H);return I(d+(H+1)*a/(a+y))}function o(a){var b,c,d,e,f,h,i,j,m,o,p=[],q=a.length,r=0,s=B,t=A;for(c=a.lastIndexOf(C),c<0&&(c=0),d=0;d<c;++d)a.charCodeAt(d)>=128&&g("not-basic"),p.push(a.charCodeAt(d));for(e=c>0?c+1:0;e<q;){for(f=r,h=1,i=v;e>=q&&g("invalid-input"),j=l(a.charCodeAt(e++)),(j>=v||j>I((u-r)/h))&&g("overflow"),r+=j*h,m=i<=t?w:i>=t+x?x:i-t,!(j<m);i+=v)o=v-m,h>I(u/o)&&g("overflow"),h*=o;b=p.length+1,t=n(r-f,b,0==f),I(r/b)>u-s&&g("overflow"),s+=I(r/b),r%=b,p.splice(r++,0,s)}return k(p)}function p(a){var b,c,d,e,f,h,i,k,l,o,p,q,r,s,t,y=[];for(a=j(a),q=a.length,b=B,c=0,f=A,h=0;h<q;++h)p=a[h],p<128&&y.push(J(p));for(d=e=y.length,e&&y.push(C);d<q;){for(i=u,h=0;h<q;++h)p=a[h],p>=b&&p<i&&(i=p);for(r=d+1,i-b>I((u-c)/r)&&g("overflow"),c+=(i-b)*r,b=i,h=0;h<q;++h)if(p=a[h],p<b&&++c>u&&g("overflow"),p==b){for(k=c,l=v;o=l<=f?w:l>=f+x?x:l-f,!(k<o);l+=v)t=k-o,s=v-o,y.push(J(m(o+t%s,0))),k=I(t/s);y.push(J(m(k,0))),f=n(c,r,d==e),c=0,++d}++c,++b}return y.join("")}function q(a){return i(a,function(a){return D.test(a)?o(a.slice(4).toLowerCase()):a})}function r(a){return i(a,function(a){return E.test(a)?"xn--"+p(a):a})}var s=("object"==typeof b&&b&&!b.nodeType&&b,"object"==typeof a&&a&&!a.nodeType&&a,"object"==typeof e&&e);s.global!==s&&s.window!==s&&s.self!==s||(f=s);var t,u=2147483647,v=36,w=1,x=26,y=38,z=700,A=72,B=128,C="-",D=/^xn--/,E=/[^\x20-\x7E]/,F=/[\x2E\u3002\uFF0E\uFF61]/g,G={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},H=v-w,I=Math.floor,J=String.fromCharCode;t={version:"1.3.2",ucs2:{decode:j,encode:k},decode:o,encode:p,toASCII:r,toUnicode:q},d=function(){return t}.call(b,c,b,a),!(void 0!==d&&(a.exports=d))}(this)}).call(b,c(14)(a),function(){return this}())},function(a,b){"use strict";a.exports={isString:function(a){return"string"==typeof a},isObject:function(a){return"object"==typeof a&&null!==a},isNull:function(a){return null===a},isNullOrUndefined:function(a){return null==a}}},function(a,b,c){"use strict";b.decode=b.parse=c(23),b.encode=b.stringify=c(24)},function(a,b){"use strict";function c(a,b){return Object.prototype.hasOwnProperty.call(a,b)}a.exports=function(a,b,d,e){b=b||"&",d=d||"=";var f={};if("string"!=typeof a||0===a.length)return f;var g=/\+/g;a=a.split(b);var h=1e3;e&&"number"==typeof e.maxKeys&&(h=e.maxKeys);var i=a.length;h>0&&i>h&&(i=h);for(var j=0;j<i;++j){var k,l,m,n,o=a[j].replace(g,"%20"),p=o.indexOf(d);p>=0?(k=o.substr(0,p),l=o.substr(p+1)):(k=o,l=""),m=decodeURIComponent(k),n=decodeURIComponent(l),c(f,m)?Array.isArray(f[m])?f[m].push(n):f[m]=[f[m],n]:f[m]=n}return f}},function(a,b){"use strict";var c=function(a){switch(typeof a){case"string":return a;case"boolean":return a?"true":"false";case"number":return isFinite(a)?a:"";default:return""}};a.exports=function(a,b,d,e){return b=b||"&",d=d||"=",null===a&&(a=void 0),"object"==typeof a?Object.keys(a).map(function(e){var f=encodeURIComponent(c(e))+d;return Array.isArray(a[e])?a[e].map(function(a){return f+encodeURIComponent(c(a))}).join(b):f+encodeURIComponent(c(a[e]))}).join(b):e?encodeURIComponent(c(e))+d+encodeURIComponent(c(a)):""}},function(a,b,c){var d=c(4);a.exports=function(a){var b=0,c=a.connectionPool,e=c._onConnectionDied,f=function(){f.timerId=a._timeout(f.timerId),a.sniff()},g=function(a){var b=d.now();retur
|
||
|
type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),f.cat.prototype.tasks=d({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),f.cat.prototype.templates=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),f.cat.prototype.threadPool=d({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),f.cluster=e(),f.cluster.prototype.allocationExplain=d({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"includ
|
||
|
req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:{type:"time"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats/<%=metric%>/<%=indexMetric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]},indexMetric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_nodes/<%=nodeId%>/stats",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/stats/<%=metric%>",req:{metric:{type:"list",options:["_all","breaker","fs","http","indices","jvm","os","process","thread_pool","transport","discovery"]}}},{fmt:"/_nodes/stats"}]}),f.percolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"igno
|
||
|
}},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}}}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}}}),f.index=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},opType:{type:"enum",default:"index",options:["index","create"],name:"op_type"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>",req:{index:{type:"string"},type:{type:"string"}}}],needBody:!0,method:"POST"}),f.indices=e(),f.indices.prototype.analyze=d({params:{analyzer:{type:"string"},charFilter:{type:"list",name:"char_filter"},field:{type:"string"},filter:{type:"list"},index:{type:"string"},preferLocal:{type:"boolean",name:"prefer_local"},text:{type:"list"},tokenizer:{type:"string"},explain:{type:"boolean"},attributes:{type:"list"},format:{type:"enum",default:"detailed",options:["detailed","text"]}},urls:[{fmt:"/<%=index%>/_analyze",req:{index:{type:"string"}}},{fmt:"/_analyze"}],method:"POST"}),f.indices.prototype.clearCache=d({params:{fieldData:{type:"boolean",name:"field_data"},fielddata:{type:"boolean"},fields:{type:"list"},query:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},index:{type:"list"},recycler:{type:"boolean"},request:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_cache/clear",req:{index:{type:"list"}}},{fmt:"/_cache/clear"}],method:"POST"}),f.indices.prototype.close=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_close",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},updateAllTypes:{type:"boolean",name:"update_all_types"}},url:{fmt:"/<%=index%>",req:{index:{type:"string"}}},method:"PUT"}),f.indices.prototype.delete=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>",req:{index:{type:"list"}}},method:"DELETE"}),f.indices.prototype.deleteAlias=d({params:{timeout:{type:"time"},masterTimeout
|
||
|
fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents"],name:"group_by"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_termvectors",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_termvectors",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.update=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},fields:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},lang:{type:"string"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},retryOnConflict:{type:"number",name:"retry_on_conflict"},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_update",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.updateByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},conflicts:{type:"enum",default:"abort",options:["abort","proceed"]},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},pipeline:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},searchTimeout:{type:"time",name:"search_timeout"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},version:{type:"boolean"},versionType:{type:"boolean",name:"version_type"},requestCache:{type:"boolean",name:"request_cache"},refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},scrollSize:{type:"number",name:"scroll_size"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_update_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_update_by_query",req:{index:{type:"list"}}}],method:"POST"})},function(a,b,c){var d=c(46).makeFactoryWithModifier(function(a){return c(4).merge(a,{params:{filterPath:{type:"list",name:"filter_path"}}})}),e=c(46).namespaceFactory,f=a.exports={};f._namespaces=["cat","cluster","indices",
|
||
|
needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"}},urls:[{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings"}],needBody:!0,method:"PUT"}),f.indices.prototype.putTemplate=d({params:{order:{type:"number"},create:{type:"boolean",default:!1},timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"}},url:{fmt:"/_template/<%=name%>",req:{name:{type:"string"}}},needBody:!0,method:"PUT"}),f.indices.prototype.recovery=d({params:{detailed:{type:"boolean",default:!1},activeOnly:{type:"boolean",default:!1,name:"active_only"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_recovery",req:{index:{type:"list"}}},{fmt:"/_recovery"}]}),f.indices.prototype.refresh=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},force:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_refresh",req:{index:{type:"list"}}},{fmt:"/_refresh"}],method:"POST"}),f.indices.prototype.rollover=d({params:{timeout:{type:"time"},dryRun:{type:"boolean",name:"dry_run"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},urls:[{fmt:"/<%=alias%>/_rollover/<%=newIndex%>",req:{alias:{type:"string"},newIndex:{type:"string"}}},{fmt:"/<%=alias%>/_rollover",req:{alias:{type:"string"}}}],method:"POST"}),f.indices.prototype.segments=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1},operationThreading:{name:"operation_threading"},verbose:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_segments",req:{index:{type:"list"}}},{fmt:"/_segments"}]}),f.indices.prototype.shardStores=d({params:{status:{type:"list",options:["green","yellow","red","all"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},operationThreading:{name:"operation_threading"}},urls:[{fmt:"/<%=index%>/_shard_stores",req:{index:{type:"list"}}},{fmt:"/_shard_stores"}]}),f.indices.prototype.shrink=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"}},url:{fmt:"/<%=index%>/_shrink/<%=target%>",req:{index:{type:"string"},target:{type:"string"}}},method:"POST"}),f.indices.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"list"},human:{type:"boolean",default:!1},level:{type:"enum",default:"indices",options:["cluster","indices","shards"]},types:{type:"list"},includeSegmentFileSizes:{type:"boolean",default:!1,name:"include_segment_file_sizes"}},urls:[{fmt:"/<%=index%>/_stats/<%=metric%>",req:{index:{type:"list"},metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer","suggest"]}}},{fmt:"/_stats/<%=metric%>",req:{metric:{type:"list",options:["_all","completion","docs","fielddata","query_cache","flush","get","indexing","merge","percolate","request_cache","refresh","search","segments","store","warmer"
|
||
|
}),f.cluster.prototype.reroute=d({params:{dryRun:{type:"boolean",name:"dry_run"},explain:{type:"boolean"},retryFailed:{type:"boolean",name:"retry_failed"},metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","master_node","version"]},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_cluster/reroute"},method:"POST"}),f.cluster.prototype.state=d({params:{local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},flatSettings:{type:"boolean",name:"flat_settings"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/_cluster/state/<%=metric%>/<%=index%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]},index:{type:"list"}}},{fmt:"/_cluster/state/<%=metric%>",req:{metric:{type:"list",options:["_all","blocks","metadata","nodes","routing_table","routing_nodes","master_node","version"]}}},{fmt:"/_cluster/state"}]}),f.cluster.prototype.stats=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},human:{type:"boolean",default:!1},timeout:{type:"time"}},urls:[{fmt:"/_cluster/stats/nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_cluster/stats"}]}),f.count=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},minScore:{type:"number",name:"min_score"},preference:{type:"string"},routing:{type:"string"},q:{type:"string"},analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"}},urls:[{fmt:"/<%=index%>/<%=type%>/_count",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_count",req:{index:{type:"list"}}},{fmt:"/_count"}],method:"POST"}),f.countPercolate=d({params:{routing:{type:"list"},preference:{type:"string"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},percolateIndex:{type:"string",name:"percolate_index"},percolateType:{type:"string",name:"percolate_type"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/<%=id%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},{fmt:"/<%=index%>/<%=type%>/_percolate/count",req:{index:{type:"string"},type:{type:"string"}}}],method:"POST"}),f.create=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},timestamp:{type:"time"},ttl:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"},pipeline:{type:"string"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_create",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},needBody:!0,method:"POST"}),f.delete=d({params:{waitForActiveShards:{type:"string",name:"wait_for_active_shards"},parent:{type:"string"},refresh:{type:"enum",options:["true","false","wait_for",""]},routing:{type:"string"},timeout:{type:"time"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"DELETE"}),f.deleteByQuery=d({params:{analyzer:{type:"string"},analyzeWildcard:{typ
|
||
|
}),f.ping=d({url:{fmt:"/"},requestTimeout:3e3,method:"HEAD"}),f.putScript=d({url:{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},needBody:!0,method:"PUT"}),f.putTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},needBody:!0,method:"PUT"}),f.reindex=d({params:{refresh:{type:"boolean"},timeout:{type:"time",default:"1m"},waitForActiveShards:{type:"string",name:"wait_for_active_shards"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"},requestsPerSecond:{type:"number",default:0,name:"requests_per_second"}},url:{fmt:"/_reindex"},needBody:!0,method:"POST"}),f.reindexRethrottle=d({params:{requestsPerSecond:{type:"number",required:!0,name:"requests_per_second"}},url:{fmt:"/_reindex/<%=taskId%>/_rethrottle",req:{taskId:{type:"string"}}},method:"POST"}),f.renderSearchTemplate=d({urls:[{fmt:"/_render/template/<%=id%>",req:{id:{type:"string"}}},{fmt:"/_render/template"}],method:"POST"}),f.scroll=d({params:{scroll:{type:"time"},scrollId:{type:"string",name:"scroll_id"}},urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"string"}}},{fmt:"/_search/scroll"}],paramAsBody:"scrollId",method:"POST"}),f.search=d({params:{analyzer:{type:"string"},analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},explain:{type:"boolean"},storedFields:{type:"list",name:"stored_fields"},docvalueFields:{type:"list",name:"docvalue_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},from:{type:"number"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},lenient:{type:"boolean"},lowercaseExpandedTerms:{type:"boolean",name:"lowercase_expanded_terms"},preference:{type:"string"},q:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","dfs_query_then_fetch"],name:"search_type"},size:{type:"number"},sort:{type:"list"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},terminateAfter:{type:"number",name:"terminate_after"},stats:{type:"list"},suggestField:{type:"string",name:"suggest_field"},suggestMode:{type:"enum",default:"missing",options:["missing","popular","always"],name:"suggest_mode"},suggestSize:{type:"number",name:"suggest_size"},suggestText:{type:"string",name:"suggest_text"},timeout:{type:"time"},trackScores:{type:"boolean",name:"track_scores"},version:{type:"boolean"},requestCache:{type:"boolean",name:"request_cache"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search",req:{index:{type:"list"}}},{fmt:"/_search"}],method:"POST"}),f.searchShards=d({params:{preference:{type:"string"},routing:{type:"string"},local:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search_shards",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search_shards",req:{index:{type:"list"}}},{fmt:"/_search_shards"}],method:"POST"}),f.searchTemplate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"list"},scroll:{type:"time"},searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],me
|
||
|
name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},human:{type:"boolean",default:!1}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.getWarmer=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/<%=type%>/_warmer/<%=name%>",req:{index:{type:"list"},type:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_warmer/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_warmer",req:{index:{type:"list"}}},{fmt:"/_warmer/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_warmer"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.optimize=d({params:{flush:{type:"boolean"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},maxNumSegments:{type:"number",name:"max_num_segments"},onlyExpungeDeletes:{type:"boolean",name:"only_expunge_deletes"},operationThreading:{name:"operation_threading"},waitForMerge:{type:"boolean",name:"wait_for_merge"}},urls:[{fmt:"/<%=index%>/_optimize",req:{index:{type:"list"}}},{fmt:"/_optimize"}],method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},
|
||
|
type:"string"},fullId:{type:"boolean",name:"full_id"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/nodes"}}),f.cat.prototype.pendingTasks=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/pending_tasks"}}),f.cat.prototype.plugins=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/plugins"}}),f.cat.prototype.recovery=d({params:{format:{type:"string"},bytes:{type:"enum",options:["b","k","kb","m","mb","g","gb","t","tb","p","pb"]},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/recovery/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/recovery"}]}),f.cat.prototype.repositories=d({params:{format:{type:"string"},local:{type:"boolean",default:!1},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/repositories"}}),f.cat.prototype.segments=d({params:{format:{type:"string"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/segments/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/segments"}]}),f.cat.prototype.shards=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/shards/<%=index%>",req:{index:{type:"list"}}},{fmt:"/_cat/shards"}]}),f.cat.prototype.snapshots=d({params:{format:{type:"string"},ignoreUnavailable:{type:"boolean",default:!1,name:"ignore_unavailable"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/snapshots/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_cat/snapshots"}]}),f.cat.prototype.tasks=d({params:{format:{type:"string"},nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"number",name:"parent_task"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},url:{fmt:"/_cat/tasks"}}),f.cat.prototype.templates=d({params:{format:{type:"string"},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/templates/<%=name%>",req:{name:{type:"string"}}},{fmt:"/_cat/templates"}]}),f.cat.prototype.threadPool=d({params:{format:{type:"string"},size:{type:"enum",options:["","k","m","g","t","p"]},local:{type:"boolean"},masterTimeout:{type:"time",name:"master_timeout"},h:{type:"list"},help:{type:"boolean",default:!1},s:{type:"list"},v:{type:"boolean",default:!1}},urls:[{fmt:"/_cat/thread_pool/<%=threadPoolPatterns%>",req:{threadPoolPatterns:{type:"list"}}},{fmt:"/_cat/thread_pool"}]}),f.clearScroll=d({urls:[{fmt:"/_search/scroll/<%=scrollId%>",req:{scrollId:{type:"list"}}},{fmt:"/_search/scroll"}],paramAsBody:{param:"scrollId",body:"scroll_id"},method:"DELETE"}),f.cluster=e(),f.cluster.prototype.allocationExplain=d({params:{includeYesDecisions:{type:"boolean",name:"include_yes_decisions"},includeDiskInfo:{type:"boolean",name:"include_disk_info"}},url:{fmt:"/_cluster/allocation/explain"},method:"POST"}),f.cluster.prototype.getSettings=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},includeDefaults:{type:"boolean",default:!1,name:"includ
|
||
|
params:{verbose:{type:"boolean",default:!1}},urls:[{fmt:"/_ingest/pipeline/<%=id%>/_simulate",req:{id:{type:"string"}}},{fmt:"/_ingest/pipeline/_simulate"}],needBody:!0,method:"POST"}),f.mget=d({params:{storedFields:{type:"list",name:"stored_fields"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mget",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mget",req:{index:{type:"string"}}},{fmt:"/_mget"}],needBody:!0,method:"POST"}),f.mpercolate=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mpercolate",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mpercolate",req:{index:{type:"string"}}},{fmt:"/_mpercolate"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearch=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},maxConcurrentSearches:{type:"number",name:"max_concurrent_searches"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch",req:{index:{type:"list"}}},{fmt:"/_msearch"}],needBody:!0,bulkBody:!0,method:"POST"}),f.msearchTemplate=d({params:{searchType:{type:"enum",options:["query_then_fetch","query_and_fetch","dfs_query_then_fetch","dfs_query_and_fetch"],name:"search_type"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_msearch/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_msearch/template",req:{index:{type:"list"}}},{fmt:"/_msearch/template"}],needBody:!0,bulkBody:!0,method:"POST"}),f.mtermvectors=d({params:{ids:{type:"list",required:!1},termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_statistics"},fields:{type:"list",required:!1},offsets:{type:"boolean",default:!0,required:!1},positions:{type:"boolean",default:!0,required:!1},payloads:{type:"boolean",default:!0,required:!1},preference:{type:"string",required:!1},routing:{type:"string",required:!1},parent:{type:"string",required:!1},realtime:{type:"boolean",required:!1},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},urls:[{fmt:"/<%=index%>/<%=type%>/_mtermvectors",req:{index:{type:"string"},type:{type:"string"}}},{fmt:"/<%=index%>/_mtermvectors",req:{index:{type:"string"}}},{fmt:"/_mtermvectors"}],method:"POST"}),f.nodes=e(),f.nodes.prototype.hotThreads=d({params:{interval:{type:"time"},snapshots:{type:"number"},threads:{type:"number"},ignoreIdleThreads:{type:"boolean",name:"ignore_idle_threads"},type:{type:"enum",options:["cpu","wait","block"]},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/hotthreads",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/hotthreads"}]}),f.nodes.prototype.info=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},timeout:{type:"time"}},urls:[{fmt:"/_nodes/<%=nodeId%>/<%=metric%>",req:{nodeId:{type:"list"},metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes/<%=nodeId%>",req:{nodeId:{type:"list"}}},{fmt:"/_nodes/<%=metric%>",req:{metric:{type:"list",options:["settings","os","process","jvm","thread_pool","transport","http","plugins","ingest"]}}},{fmt:"/_nodes"}]}),f.nodes.prototype.stats=d({params:{completionFields:{type:"list",name:"completion_fields"},fielddataFields:{type:"list",name:"fielddata_fields"},fields:{type:"list"},groups:{type:"boolean"},level:{type:"enum",default:"node",options:["indices","node","shards"]},types:{type:"list"},timeout:
|
||
|
default:0,name:"requests_per_second"},slices:{type:"number",default:1}},urls:[{fmt:"/<%=index%>/<%=type%>/_delete_by_query",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_delete_by_query",req:{index:{type:"list"}}}],needBody:!0,method:"POST"}),f.deleteScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}],method:"DELETE"}),f.deleteTemplate=d({url:{fmt:"/_search/template/<%=id%>",req:{id:{type:"string"}}},method:"DELETE"}),f.exists=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.existsSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_source",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"HEAD"}),f.explain=d({params:{analyzeWildcard:{type:"boolean",name:"analyze_wildcard"},analyzer:{type:"string"},defaultOperator:{type:"enum",default:"OR",options:["AND","OR"],name:"default_operator"},df:{type:"string"},storedFields:{type:"list",name:"stored_fields"},lenient:{type:"boolean"},parent:{type:"string"},preference:{type:"string"},q:{type:"string"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>/_explain",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}},method:"POST"}),f.fieldCaps=d({params:{fields:{type:"list"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_caps",req:{index:{type:"list"}}},{fmt:"/_field_caps"}],method:"POST"}),f.fieldStats=d({params:{fields:{type:"list"},level:{type:"enum",default:"cluster",options:["indices","cluster"]},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_field_stats",req:{index:{type:"list"}}},{fmt:"/_field_stats"}],method:"POST"}),f.get=d({params:{storedFields:{type:"list",name:"stored_fields"},parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},version:{type:"number"},versionType:{type:"enum",options:["internal","external","external_gte","force"],name:"version_type"}},url:{fmt:"/<%=index%>/<%=type%>/<%=id%>",req:{index:{type:"string"},type:{type:"string"},id:{type:"string"}}}}),f.getScript=d({urls:[{fmt:"/_scripts/<%=lang%>/<%=id%>",req:{lang:{type:"string"},id:{type:"string"}}},{fmt:"/_scripts/<%=lang%>",req:{lang:{type:"string"}}}]}),f.getSource=d({params:{parent:{type:"string"},preference:{type:"string"},realtime:{type:"boolean"},refresh:{type:"boolean"},routing:{type:"string"},_source:{type:"list"},_sourceExclude:{type:"list",name:"_source_exclude"},_sourceInclude:{type:"list",name:"_source_include"},ver
|
||
|
name:"search_type"},explain:{type:"boolean"},profile:{type:"boolean"},typedKeys:{type:"boolean",name:"typed_keys"}},urls:[{fmt:"/<%=index%>/<%=type%>/_search/template",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_search/template",req:{index:{type:"list"}}},{fmt:"/_search/template"}],method:"POST"}),f.snapshot=e(),f.snapshot.prototype.create=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.createRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"},verify:{type:"boolean"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"string"}}},needBody:!0,method:"POST"}),f.snapshot.prototype.delete=d({params:{masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"DELETE"}),f.snapshot.prototype.deleteRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},method:"DELETE"}),f.snapshot.prototype.get=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>",req:{repository:{type:"string"},snapshot:{type:"list"}}}}),f.snapshot.prototype.getRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_snapshot/<%=repository%>",req:{repository:{type:"list"}}},{fmt:"/_snapshot"}]}),f.snapshot.prototype.restore=d({params:{masterTimeout:{type:"time",name:"master_timeout"},waitForCompletion:{type:"boolean",default:!1,name:"wait_for_completion"}},url:{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_restore",req:{repository:{type:"string"},snapshot:{type:"string"}}},method:"POST"}),f.snapshot.prototype.status=d({params:{masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"}},urls:[{fmt:"/_snapshot/<%=repository%>/<%=snapshot%>/_status",req:{repository:{type:"string"},snapshot:{type:"list"}}},{fmt:"/_snapshot/<%=repository%>/_status",req:{repository:{type:"string"}}},{fmt:"/_snapshot/_status"}]}),f.snapshot.prototype.verifyRepository=d({params:{masterTimeout:{type:"time",name:"master_timeout"},timeout:{type:"time"}},url:{fmt:"/_snapshot/<%=repository%>/_verify",req:{repository:{type:"string"}}},method:"POST"}),f.suggest=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},preference:{type:"string"},routing:{type:"string"}},urls:[{fmt:"/<%=index%>/_suggest",req:{index:{type:"list"}}},{fmt:"/_suggest"}],needBody:!0,method:"POST"}),f.tasks=e(),f.tasks.prototype.cancel=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"}},urls:[{fmt:"/_tasks/<%=taskId%>/_cancel",req:{taskId:{type:"string"}}},{fmt:"/_tasks/_cancel"}],method:"POST"}),f.tasks.prototype.get=d({params:{waitForCompletion:{type:"boolean",name:"wait_for_completion"}},url:{fmt:"/_tasks/<%=taskId%>",req:{taskId:{type:"string"}}}}),f.tasks.prototype.list=d({params:{nodeId:{type:"list",name:"node_id"},actions:{type:"list"},detailed:{type:"boolean"},parentNode:{type:"string",name:"parent_node"},parentTask:{type:"string",name:"parent_task"},waitForCompletion:{type:"boolean",name:"wait_for_completion"},groupBy:{type:"enum",default:"nodes",options:["nodes","parents"],name:"group_by"}},url:{fmt:"/_tasks"}}),f.termvectors=d({params:{termStatistics:{type:"boolean",default:!1,required:!1,name:"term_statistics"},fieldStatistics:{type:"boolean",default:!0,required:!1,name:"field_stati
|
||
|
}}},{fmt:"/<%=index%>/_alias",req:{index:{type:"list"}}},{fmt:"/_alias"}]}),f.indices.prototype.getFieldMapping=d({params:{includeDefaults:{type:"boolean",name:"include_defaults"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>/field/<%=fields%>",req:{index:{type:"list"},type:{type:"list"},fields:{type:"list"}}},{fmt:"/<%=index%>/_mapping/field/<%=fields%>",req:{index:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/<%=type%>/field/<%=fields%>",req:{type:{type:"list"},fields:{type:"list"}}},{fmt:"/_mapping/field/<%=fields%>",req:{fields:{type:"list"}}}]}),f.indices.prototype.getMapping=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},local:{type:"boolean"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"list"}}},{fmt:"/<%=index%>/_mapping",req:{index:{type:"list"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"list"}}},{fmt:"/_mapping"}]}),f.indices.prototype.getSettings=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:["open","closed"],options:["open","closed","none","all"],name:"expand_wildcards"},flatSettings:{type:"boolean",name:"flat_settings"},local:{type:"boolean"},includeDefaults:{type:"boolean",default:!1,name:"include_defaults"}},urls:[{fmt:"/<%=index%>/_settings/<%=name%>",req:{index:{type:"list"},name:{type:"list"}}},{fmt:"/<%=index%>/_settings",req:{index:{type:"list"}}},{fmt:"/_settings/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_settings"}]}),f.indices.prototype.getTemplate=d({params:{flatSettings:{type:"boolean",name:"flat_settings"},masterTimeout:{type:"time",name:"master_timeout"},local:{type:"boolean"}},urls:[{fmt:"/_template/<%=name%>",req:{name:{type:"list"}}},{fmt:"/_template"}]}),f.indices.prototype.getUpgrade=d({params:{ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"}},urls:[{fmt:"/<%=index%>/_upgrade",req:{index:{type:"list"}}},{fmt:"/_upgrade"}]}),f.indices.prototype.open=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"closed",options:["open","closed","none","all"],name:"expand_wildcards"}},url:{fmt:"/<%=index%>/_open",req:{index:{type:"list"}}},method:"POST"}),f.indices.prototype.putAlias=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"}},url:{fmt:"/<%=index%>/_alias/<%=name%>",req:{index:{type:"list"},name:{type:"string"}}},method:"PUT"}),f.indices.prototype.putMapping=d({params:{timeout:{type:"time"},masterTimeout:{type:"time",name:"master_timeout"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","closed","none","all"],name:"expand_wildcards"},updateAllTypes:{type:"boolean",name:"update_all_types"}},urls:[{fmt:"/<%=index%>/_mapping/<%=type%>",req:{index:{type:"list"},type:{type:"string"}}},{fmt:"/_mapping/<%=type%>",req:{type:{type:"string"}}}],needBody:!0,method:"PUT"}),f.indices.prototype.putSettings=d({params:{masterTimeout:{type:"time",name:"master_timeout"},preserveExisting:{type:"boolean",name:"preserve_existing"},ignoreUnavailable:{type:"boolean",name:"ignore_unavailable"},allowNoIndices:{type:"boolean",name:"allow_no_indices"},expandWildcards:{type:"enum",default:"open",options:["open","close
|
||
|
}());
|