dotnet / dotnet/docfx

[Bug] Inconsistent search

Open
#10,560 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

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](https://github.com/user-attachments/assets/2256385e-959f-4ece-8ab5-4a6d59b10308)

![Image](https://github.com/user-attachments/assets/f4457db4-e60d-4c81-997f-97415a321fff)

![Image](https://github.com/user-attachments/assets/9449b79c-ccdc-4daa-b3d1-21c088e9e8b6)

- OS: Windows/Chrome
- Docfx version: 2.78.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.