mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 07:40:10 +00:00
Update test
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user