Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace Algolia search with Flexsearch #10

Merged
merged 7 commits into from
Dec 5, 2022

Conversation

vzakanj
Copy link
Contributor

@vzakanj vzakanj commented Dec 4, 2022

Basic flexsearch implementation based on kit.svelte.dev search

Caused the generated links to have a dot in the url, e.g. /exception-handler.#unhandled-exception-handler.
Make it consistent with the rest of the files so that the logic for generating search hrefs remains consistent and simple.
marked - markdown parsing/rendering
svelte-spotlight - search results in a modal component
flexsearch - client-side search indexing
Because both the type definitions that ship with flexsearch and the definitions in @types/flexsearch are incorrect
Served via /search.json
Fetching of the search file and the indexing/search logic happens in the background, on a SharedWorker to avoid blocking the main browser thread and allowing the page to load before the whole search file is fetched.
The SharedWorker is instantiated alongside the store because it makes it easy to manage the worker lifecycle.
@netlify
Copy link

netlify bot commented Dec 4, 2022

Deploy Preview for fast-endpoints ready!

Name Link
🔨 Latest commit 708125b
🔍 Latest deploy log https://app.netlify.com/sites/fast-endpoints/deploys/638cb3a92a417c0008188a03
😎 Deploy Preview https://deploy-preview-10--fast-endpoints.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@dj-nitehawk dj-nitehawk merged commit 9414ba4 into FastEndpoints:dev Dec 5, 2022
@vzakanj vzakanj deleted the flexsearch branch December 6, 2022 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants