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

Pagefind needs to load index chunks based on the stemmed word #478

Open
bglw opened this issue Oct 18, 2023 · 0 comments
Open

Pagefind needs to load index chunks based on the stemmed word #478

bglw opened this issue Oct 18, 2023 · 0 comments

Comments

@bglw
Copy link
Contributor

bglw commented Oct 18, 2023

Example:

  1. Pagefind encounters the text rebase on page A, and rebaseMerge on page B.
  2. Page A's word stems to rebas, page B's word stems to rebasemerg.
  3. A chunk boundary falls in between these words. So one chunk ends with rebas and the next starts with rebasem.
  4. A user is dropped into a search for rebase without any intermediary typing.
  5. Pagefind finds the chunks needed for rebase, and loads the rebasem* chunk.
  6. Pagefind then stems to word down to rebas and searches.
  7. Pagefind does not find page A, as that chunk was not loaded.

Solution: Swap steps 5 and 6 — searching for rebase should load chunks for rebas* instead of rebase*

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

No branches or pull requests

1 participant