From daaa8688f3a125835f192b2e0a5fb5d05e3403ca Mon Sep 17 00:00:00 2001 From: daphnes Date: Fri, 1 Dec 2017 13:13:29 +0100 Subject: [PATCH 1/2] [ElasticSearch] skipped missing in Shards & sort values for each document returned are also returned as part of the response --- types/elasticsearch/index.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/elasticsearch/index.d.ts b/types/elasticsearch/index.d.ts index 8acc7e4097..1552652edd 100644 --- a/types/elasticsearch/index.d.ts +++ b/types/elasticsearch/index.d.ts @@ -131,6 +131,7 @@ declare module Elasticsearch { total: number; successful: number; failed: number; + skipped: number; } /** @@ -632,6 +633,7 @@ declare module Elasticsearch { fields?: any; highlight?: any; inner_hits?: any; + sort?: string[]; }[]; }; aggregations?: any; From 886c0a0b655a549864a3374a6fcd57f0c55ac13f Mon Sep 17 00:00:00 2001 From: daphnes Date: Mon, 4 Dec 2017 12:26:48 +0100 Subject: [PATCH 2/2] Remove tabbing --- types/elasticsearch/index.d.ts | 48 +++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/types/elasticsearch/index.d.ts b/types/elasticsearch/index.d.ts index 8ab269768d..dbf836c6ae 100644 --- a/types/elasticsearch/index.d.ts +++ b/types/elasticsearch/index.d.ts @@ -620,30 +620,30 @@ export interface SearchParams extends GenericParams { type?: NameList; } - export interface SearchResponse { - took: number; - timed_out: boolean; - _scroll_id?: string; - _shards: ShardsResponse; - hits: { - total: number; - max_score: number; - hits: Array<{ - _index: string; - _type: string; - _id: string; - _score: number; - _source: T; - _version?: number; - _explanation?: Explanation; - fields?: any; - highlight?: any; - inner_hits?: any; - sort?: string[]; - }>; - }; - aggregations?: any; - } +export interface SearchResponse { + took: number; + timed_out: boolean; + _scroll_id?: string; + _shards: ShardsResponse; + hits: { + total: number; + max_score: number; + hits: Array<{ + _index: string; + _type: string; + _id: string; + _score: number; + _source: T; + _version?: number; + _explanation?: Explanation; + fields?: any; + highlight?: any; + inner_hits?: any; + sort?: string[]; + }>; + }; + aggregations?: any; +} export interface SearchShardsParams extends GenericParams { preference?: string;