summaryrefslogtreecommitdiff
path: root/database.js
diff options
context:
space:
mode:
Diffstat (limited to 'database.js')
-rw-r--r--database.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/database.js b/database.js
index f48f87e..32365e7 100644
--- a/database.js
+++ b/database.js
@@ -32,6 +32,13 @@ module.exports = {
})
.catch(console.err);
},
+ exists: (index, type, id, callback) => {
+ return esClient.exists({
+ index: index,
+ type: type,
+ id: id
+ })
+ },
search: (index, body) => {
return esClient.search({index: index, body: body});
}