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

Search: optimize excerpt #1074

Closed
lookupdaily opened this issue Feb 6, 2023 · 0 comments · Fixed by #1075
Closed

Search: optimize excerpt #1074

lookupdaily opened this issue Feb 6, 2023 · 0 comments · Fixed by #1075
Assignees

Comments

@lookupdaily
Copy link
Contributor

lookupdaily commented Feb 6, 2023

Original search PR: #984
Related issues: #1025 (match-counter) #1030 (optimize search)

An excerpt for a search result is often not most relevant excerpt, which may cause a user to dismiss a result as irrelevant. Currently the excerpt is generated by finding the match index for the first matching word in the search term, but does not prioritise full matches (likely to be a more relevant result).

When you search for multiple terms it should try to find a match for the whole search phrase first, then fall back on matches for constituent terms if there's no whole-phrase match. This should make it a little clearer when results are actually relevant, but just part of very long pages.

This is linked somewhat to #1025, which suggests a match-counter for each result so that the user will be able to easily see that there are other relevant results on the same page if the except text is not what the user is looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant