summaryrefslogtreecommitdiff
path: root/routes/index.js
diff options
context:
space:
mode:
authorMarvin Borner2018-11-08 18:19:13 +0100
committerMarvin Borner2018-11-08 18:19:13 +0100
commitd243f31f7d245efce4bd857b32dc758205c28758 (patch)
treed615c1d5443aeea0ab7dd99c2bd08b34e6ec66f6 /routes/index.js
parent641ed66837dd4bd45c977978609fb38cbeac9319 (diff)
Improved search algorithms
Diffstat (limited to 'routes/index.js')
-rw-r--r--routes/index.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/routes/index.js b/routes/index.js
deleted file mode 100644
index 570aea0..0000000
--- a/routes/index.js
+++ /dev/null
@@ -1,18 +0,0 @@
-const database = require("../database");
-const express = require("express");
-const router = express.Router();
-
-/* GET home page. */
-router.get('/', (req, res, next) => {
- database.search("crawled", {
- size: 20,
- from: 0,
- query: {
- match_all: {}
- }
- }).then(results => {
- res.json(results.hits)
- })
-});
-
-module.exports = router; \ No newline at end of file