diff --git a/package-lock.json b/package-lock.json index e3a0e4d9..f48b83ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "1.5.10", + "version": "1.5.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "1.5.10", + "version": "1.5.11", "license": "MIT", "dependencies": { "@cdransf/api-text": "^1.5.0", diff --git a/package.json b/package.json index 2d278fef..f6f72823 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "1.5.10", + "version": "1.5.11", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "engines": { diff --git a/src/assets/scripts/index.js b/src/assets/scripts/index.js index a71f4446..b725b46a 100644 --- a/src/assets/scripts/index.js +++ b/src/assets/scripts/index.js @@ -109,9 +109,8 @@ window.addEventListener("load", () => { searchOptions: { fields: ["title", "tags"], prefix: true, - fuzzy: 0, - boost: { title: 2, tags: 1.5 }, - sort: (a, b) => b.score - a.score, + fuzzy: 0.1, + boost: { title: 3, tags: 1.5 }, }, }); const $form = document.querySelector(".search__form"); @@ -214,7 +213,7 @@ window.addEventListener("load", () => { try { const response = await fetch( - `https://coryd.dev/api/search?q=${query}&type=${typeQuery}&page=${page}&pageSize=${PAGE_SIZE}` + `https://localhost:8787/api/search?q=${query}&type=${typeQuery}&page=${page}&pageSize=${PAGE_SIZE}` ); const index = await response.json(); const results = index.results || []; @@ -297,4 +296,4 @@ window.addEventListener("load", () => { updateSearchResults(nextResults); }); })(); -}); +}); \ No newline at end of file