[Bug] Multiple-Word-Search does not find relevant articles, when one word is used repeatedly
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 890
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 10
Description
**Describe the bug**
My documentation uses the word 'WordA' quite often. If I want to search for 'WordB WordA' there are no relevant search results on the first page.
I tried to use single and double quotation marks ('WordB WordA' and "WordB WordA") as search term. But then there are _no_ results.
Notice that 'WordB WordA' in the search field is written exactly the same like in the documentation.
However, on page 3 of the search results, there is the article I am searching for. But unfortunately, the excerpt does not show the part where the search term 'WordB WordA'. Therefore nobody would click on this result.
**To Reproduce**
Steps to reproduce the behavior:
1. Create a documentation with multiple articles containing 'WordA'
2. In one article write the combination 'WordB WordA'.
4. Create the DocFX Website
5. Search for 'WordB WordA'
**Expected behavior**
- If there is a search result, which fits the search term exactly, it should be shown as a/the top result.
- It would be very helpful if searching with quotation marks would behave the same like Google search.
- Also it is mandatory that the excerpt of the result contains the search term.
**Context (please complete the following information):**
- Browser: edge
- Form factor: desktop
- Docfx version: docfx.console.2.59.4
- Template: default
Contributor guide
Assessment
This issue has not been assessed yet.