crystal-book
crystal-book copied to clipboard
Entering "if" in the search bar doesn't gives any results.
Entering "if" in the search bar in the docs doesn't gives any results. But that's weird because there are definitely some articles about if
. Like https://crystal-lang.org/docs/syntax_and_semantics/if.html, https://crystal-lang.org/docs/syntax_and_semantics/if_var.html and https://crystal-lang.org/docs/syntax_and_semantics/not.html etc.
The search engine probably filters stop words, "if" being one of them. That's unfortunate for a language reference where you might want to search for the keyword if
. But if it would show results, it wouldn't be of much help because the term if
appears on almost every page.
It can maybe more relevant that the engine ranks first the occurences in titles, for instance like devdocs. Page results could be added after them.
Update: This is still an issue with mkdocs-material's search engine.
Maybe this could help: https://github.com/squidfunk/mkdocs-material/issues/1099