summaryrefslogtreecommitdiff
path: root/source/_posts/fuse-search.md
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2020-02-17 19:59:15 +0000
committerDavid T. Sadler <davidtsadler@googlemail.com>2020-02-17 19:59:15 +0000
commit498913806182905cc0c14bd12a61f9af26fa16b4 (patch)
tree0c36a6df72900c184e900b274bad14aa5114fc5d /source/_posts/fuse-search.md
parent12b052b1f480c5a95acd1477e28ce76f84ff7932 (diff)
Switch over to Jigsaw
Diffstat (limited to 'source/_posts/fuse-search.md')
-rw-r--r--source/_posts/fuse-search.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/_posts/fuse-search.md b/source/_posts/fuse-search.md
new file mode 100644
index 0000000..d469c81
--- /dev/null
+++ b/source/_posts/fuse-search.md
@@ -0,0 +1,16 @@
+---
+extends: _layouts.post
+section: content
+title: Fuse Search
+date: 2018-12-22
+description: Fast local search powered by FuseJS
+cover_image: /assets/img/post-cover-image-1.png
+categories: [feature]
+---
+
+To provide fast, local search of your blog, this starter template comes with a pre-built Vue.js component that uses Fuse.js. [Fuse.js](http://fusejs.io/) is a "lightweight fuzzy-search library with _no_ dependencies." It works by running queries against a JSON index of your content.
+
+During the [build process](http://jigsaw.tighten.co/docs/building-and-previewing/), the contents of your `posts` collection is processed by the `GenerateIndex.php` listener, and an `index.json` file is generated in the build directory. The `Search.vue` component provides a search input that queries this local index.
+
+If you'd like to customize the generation of your search index, take a look at the `handle` method of the `GenerateIndex.php` file.
+