crystal-book icon indicating copy to clipboard operation
crystal-book copied to clipboard

Entering "if" in the search bar doesn't gives any results.

Open wooster0 opened this issue 6 years ago • 4 comments

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.

wooster0 avatar Mar 17 '18 17:03 wooster0

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.

straight-shoota avatar Mar 17 '18 20:03 straight-shoota

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.

j8r avatar Mar 17 '18 20:03 j8r

Update: This is still an issue with mkdocs-material's search engine.

straight-shoota avatar Mar 18 '21 20:03 straight-shoota

Maybe this could help: https://github.com/squidfunk/mkdocs-material/issues/1099

straight-shoota avatar Mar 18 '21 20:03 straight-shoota