### Steps 1. <https://docs.freebsd.org/en/> 2. observe the hint in the search field, Search in the articles, books and guides. 3. seek GNATS ### Expected 4. search results for the word in the docs.freebsd.org area ### Actual result 4. <https://duckduckgo.com/?ka=v&kt=v&kh=1&kj=r2&q=GNATS&ia=web> Ugly, evil little creatures. ---- Incidentally, whilst I could not find what was required with DuckDuckGo, Startpage found phrases such as: GNAT Modified General Public License.
… I'm fairly certain that there was a comparable bug report involving DuckDuckGo (or "DDG") in the past – but not for the _new_ documentation portal. Maybe the earlier report was for the main www site. Unfortunately, I can not find a matching report, so I assume carlavilla@ for this one. Assigning to myself, although it's not something that I can fix.
It should be noted that https://docs.freebsd.org/en/ has two search boxes: - one at the top of the page (defined in documentation/themes/beastie/layouts/partials/site-header.html ), which works as expected; - one in the main page, with the hint "Search in the articles, books and guides." which is indeed broken. It is defined at documentation/themes/beastie/layouts/partials/global-search.html . The definition seems to add ' site:docs.FreeBSD.org' to the query, but for some reason it does not work.
(In reply to Lorenzo Salvadore from comment #2) > - one at the top of the page (defined in > documentation/themes/beastie/layouts/partials/site-header.html ), > which works as expected; … Confirmed, working for freebsd.org (not specific to the documentation portal). Thanks
(In reply to Graham Perrin from comment #1) This commit the one you’re thinking of? https://cgit.freebsd.org/doc/commit/website/content?id=f595e3118ea1c5e1e39a14f812b30f12709f1b03
(In reply to Ceri Davies from comment #4) It didn't look familiar, at first, but it does seem to be a perfect fit for bug 261197 comment 1. Thanks!
I'll take it.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/doc/commit/?id=77187a3c40eb09b10c28c4550530442c2f6e221a commit 77187a3c40eb09b10c28c4550530442c2f6e221a Author: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> AuthorDate: 2022-11-05 13:08:42 +0000 Commit: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> CommitDate: 2022-11-05 13:08:42 +0000 Fix global search input PR: 267234 Submitted by: grahamperrin@ documentation/themes/beastie/layouts/partials/global-search.html | 4 ++-- documentation/themes/beastie/layouts/partials/site-header.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
Fixed. Thanks and sorry for the delay.