summaryrefslogtreecommitdiff
path: root/public/js/posts.lunr.js
diff options
context:
space:
mode:
authorAdam Carpenter <gitlab@53hor.net>2019-06-03 20:19:17 -0400
committerAdam Carpenter <gitlab@53hor.net>2019-06-03 20:19:17 -0400
commitcd1969f17742d9d72b1502cb2a6baa62e8be5c3e (patch)
tree2e02df5b0f4d5aa13b71878722a1998bf7a7f116 /public/js/posts.lunr.js
parentc7e3a802639ba8bfadbf92a8795b7f80277cf6eb (diff)
downloadcobalt-site-cd1969f17742d9d72b1502cb2a6baa62e8be5c3e.tar.xz
cobalt-site-cd1969f17742d9d72b1502cb2a6baa62e8be5c3e.zip
Let's call it version 1.0.
Diffstat (limited to 'public/js/posts.lunr.js')
-rw-r--r--public/js/posts.lunr.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/public/js/posts.lunr.js b/public/js/posts.lunr.js
deleted file mode 100644
index bea1216..0000000
--- a/public/js/posts.lunr.js
+++ /dev/null
@@ -1,23 +0,0 @@
-let documents = [{
- "name": "Lunr",
- "text": "Like Solr, but much smaller, and not as bright."
-}, {
- "name": "React",
- "text": "A JavaScript library for building user interfaces."
-}, {
- "name": "Lodash",
- "text": "A modern JavaScript utility library delivering modularity, performance & extras."
-}];
-
-function search() {
- let searchIndex = lunr(function() {
- this.ref("name")
- this.field("text")
-
- documents.forEach(function(doc) {
- this.add(doc)
- }, this)
- });
-
- return searchIndex.search("bright");
-}