From 324efba5130936e96bafb71cf93fdbc6cafa84ec Mon Sep 17 00:00:00 2001 From: Sander Bouwhuis Date: Mon, 27 Aug 2018 08:43:00 +0200 Subject: [PATCH] Update test --- types/elasticsearch/elasticsearch-tests.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/types/elasticsearch/elasticsearch-tests.ts b/types/elasticsearch/elasticsearch-tests.ts index c28db244f8..68625bd5bb 100644 --- a/types/elasticsearch/elasticsearch-tests.ts +++ b/types/elasticsearch/elasticsearch-tests.ts @@ -38,8 +38,15 @@ client.search({ }); client.search({ - q: 'pants' -}).then((body) => { + body: { + query: { + match_all: { + _name: 'test' + } + } + } +} +).then((body) => { const hit = body.hits.hits[0]; const names = hit && hit.matched_queries; }, (error) => {