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

The search functionality seems to be limited to 15 results #1062

Open
EgbertRijke opened this issue Mar 10, 2024 · 1 comment
Open

The search functionality seems to be limited to 15 results #1062

EgbertRijke opened this issue Mar 10, 2024 · 1 comment
Labels
question Further information is requested website

Comments

@EgbertRijke
Copy link
Collaborator

I noticed today that on our website the search functionality seems to give 15 results only. That would be a great choice if the search functionality would be very good and give you relevant results first. However, it isn't very good, so I think it would be useful to not limit the number of search results so that we can browse more through them. Is this possible, or is this a limitation of mdbook?

@fredrik-bakke fredrik-bakke added question Further information is requested website labels Mar 10, 2024
@VojtechStep
Copy link
Collaborator

The number is configurable in book.toml, at the bottom we set limit-results = 15. We can make the number bigger (the default is 30), but I don't think it's possible to make it unbounded, and I wouldn't want that either, because I'm not sure if it does any form of incremental search.

The "right" solution would be to improve the search. I don't think the built-in one is built to work well on this kind of code-heavy wiki-style websites

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested website
Projects
None yet
Development

No branches or pull requests

3 participants