-
Notifications
You must be signed in to change notification settings - Fork 94
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
Option to affect search result order/prioritization #436
Comments
How would you want the order be configured? Under the hood, we use lunr.js to do the search job, which will order the results by the relevant score to the search keywords for each document. On the top level, we separates each document to 3 parts: page titles, section titles, and contents. We always put page titles before section titles, and put section titles before contents. |
thanks for the info, that's helpful, I think it could be useful to mention that in your readme:) One option I can think of to help control the order is the ability to prioritize attributes so that they have more weight than others. Attributes like "number of times the word appears in the page". Another option is to support tags on pages, so that if someone searches for a keyword and it exists as a tag on a page, that will be the top result. |
I'm seeing the same functional issue here. A quick idea I have is to maybe add "weight" when explicit e.g. you have multiple pages containing the Or maybe it should use a dedicated flag instead, such as |
Currently, I don't see a way to configure how results should be ordered. The current behavior works well for some search terms, but not as well for others.
Is there a way to change it? Perhaps choose one or more attributes by which to order the results?
The text was updated successfully, but these errors were encountered: