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) => {