diff options
Diffstat (limited to 'public/js/posts.lunr.js')
-rw-r--r-- | public/js/posts.lunr.js | 23 |
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"); -} |