elasticsearch: added existsType and putMaaping

This commit is contained in:
Uros Smolnik
2016-07-06 15:27:37 -07:00
parent 572eea00eb
commit f396791a8f

View File

@@ -38,6 +38,8 @@ declare module Elasticsearch {
create(params: IndicesCreateParams): PromiseLike<any>;
exists(params: IndicesIndexExitsParams, callback: (error: any, response: any, status: any) => void): void;
exists(params: IndicesIndexExitsParams): PromiseLike<any>;
existsType(params: IndicesIndexExitsParams & {type: string}, callback: (error: any, response: any, status: any) => void): void;
existsType(params: IndicesIndexExitsParams & {type: string}): PromiseLike<any>;
get(params: IndicesGetParams, callback: (error: any, response: any, status: any) => void): void;
get(params: IndicesGetParams): PromiseLike<any>;
getAlias(params: IndicesGetAliasParams, callback: (error: any, response: any, status: any) => void): void;
@@ -46,6 +48,8 @@ declare module Elasticsearch {
putAlias(params: IndicesPutAliasParams): PromiseLike<any>;
putTemplate(params: IndicesPutTemplateParams, callback: (error: any, response: any) => void): void;
putTemplate(params: IndicesPutTemplateParams): PromiseLike<any>;
putMapping(params: IndicesPutMappingParams, callback: (error: any, response: any) => void): void;
putMapping(params: IndicesPutMappingParams): PromiseLike<any>;
refresh(params: IndicesRefreshParams, callback: (error: any, response: any) => void): void;
refresh(params: IndicesRefreshParams): PromiseLike<any>;
}
@@ -125,6 +129,17 @@ declare module Elasticsearch {
body: string | any;
}
export interface IndicesPutMappingParams extends GenericParams {
timeout?: Date | number;
masterTimeout?: Date | number;
ignoreUnavailable?: boolean;
allowNoIndices?: boolean;
expandWildcards?: string;
updateAllTypes?: boolean;
index: string | string[] | boolean;
type: string;
}
export interface IndicesGetAliasParams extends GenericParams {
ignoreUnavailable?: boolean;
allowNoIndices?: boolean;