Add test for accessing property

This commit is contained in:
Sander Bouwhuis
2018-08-26 10:57:21 +02:00
parent a40d251db4
commit a806b2eca6

View File

@@ -37,6 +37,14 @@ client.search({
}, (error) => {
});
client.search({
q: 'pants'
}).then((body) => {
const hit = body.hits.hits[0];
const names = hit && hit.matched_queries;
}, (error) => {
});
client.indices.delete({
index: 'test_index',
ignore: [404]