Skip to content

Conversation

@mikebarkmin
Copy link
Member

@mikebarkmin mikebarkmin commented Nov 12, 2024

Implements #428

Here are a few comments that may affect the pull request’s approval:

  • Search Scope: Currently, search functionality is limited to a single hyperbook. There is no support for cross-search across a hyperlibrary.

  • Stemming: Stemming is only implemented for the English language at the moment. To improve stemming for other languages, we would need to standardize the language key in the hyperbook configuration and use it to load appropriate language models in Lunr (see Lunr Language Support Guide).

  • Keyword Highlighting: The search results do not currently highlight the searched keyword. For reference, this feature is implemented in this example.

Let me know if you'd like further clarification on any of these points, or if one of those is a showstopper for you.

Update:

  • The first match in the search is result is highlighted.

@vercel
Copy link

vercel bot commented Nov 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperbook-4fwa ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 15, 2024 8:21pm

@mikebarkmin mikebarkmin merged commit a669acf into main Nov 15, 2024
2 checks passed
@mikebarkmin mikebarkmin deleted the search branch November 15, 2024 20:22
@github-actions github-actions bot mentioned this pull request Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants