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

[Bug] Inconsistent search #10560

Open
cdervout opened this issue Feb 25, 2025 · 2 comments
Open

[Bug] Inconsistent search #10560

cdervout opened this issue Feb 25, 2025 · 2 comments

Comments

@cdervout
Copy link

The search results are not correct.

Steps to reproduce the behavior:

  1. Go to the docfx documentation : https://dotnet.github.io/docfx/index.html
  2. Do a search on the word "Permission".
  3. "Per" => Returns 4 results
  4. "Perm" => Returns 0 result
  5. "Permi" => Returns 0 result
  6. "Permis" => Returns 0 result
  7. "Permiss" => Returns 2 results
  8. "Permissi" => Returns 0 result
  9. "Permission" => Returns 2 results

=> The 2 results available in step 9 should be brought back systematically.

In addition, I sometimes get empty results even though the word is present in the index.json summary.

For example:
I enter SDK and get no results, even though the word appears in an article. The word can also be found in the index.json file.

Image

Image

Image

  • OS: Windows/Chrome
  • Docfx version: 2.78.3
@filzrev
Copy link
Contributor

filzrev commented Mar 9, 2025

docfx using lunr.js for search backend.
I thought these search behaviors are caused by lurn.js stemmer.

There is similar issue is reported at https://github.com/olivernn/lunr.js/issues/377

@cdervout
Copy link
Author

Hello

In this case, how can I customise the behaviour of lunr.js?

Thank you

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

2 participants