Update test

This commit is contained in:
Sander Bouwhuis
2018-08-27 08:43:00 +02:00
parent a806b2eca6
commit 324efba513

View File

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