Add research posts to navbar global search, unify all search behaviour and remove algolia dependency. (#575)

* remove algoliasearch and update search with weight (title=100, tags=50, tldr=25, content=10)

* fix project search and update search with regex \bword\b or \bword

* remove algolia dependencies from package.json, yarn.lock, etc.

* Base search on fuse.js, implement same search in projects/ blog/ and navbar search

* add research to navbar search, improve search functionality, update test.
This commit is contained in:
Stijn Balk
2025-12-02 18:01:23 +01:00
committed by GitHub
parent f408f867d1
commit 6d643a0eeb
10 changed files with 567 additions and 603 deletions

View File

@@ -38,7 +38,6 @@
"@tw-classed/react": "^1.8.0",
"@types/node": "^20.19.0",
"@types/prismjs": "^1.26.5",
"algoliasearch": "^4",
"autoprefixer": "^10.4.14",
"class-variance-authority": "^0.4.0",
"clsx": "^1.2.1",
@@ -60,7 +59,6 @@
"react": "^18.2.0",
"react-cookie": "^7.0.1",
"react-dom": "^18.2.0",
"react-instantsearch-hooks-web": "^6.47.3",
"react-markdown": "^8.0.7",
"react-slick": "^0.30.3",
"react-use": "^17.4.0",