Joshua Wallace

Search

Engineer & Developer

Add search to an Astro static site using Fuse.js

Astro

const search = new Fuse(data, {
    includeScore: true,
    shouldSort: true,
    minMatchCharLength: 2,
    threshold: 0.4
})