boostorg / website-v2

New Boost website
https://boost.io
Boost Software License 1.0
8 stars 12 forks source link

Site Search - Default results, site-docs indexing #738

Open d-spencer-strickland opened 1 year ago

d-spencer-strickland commented 1 year ago

Is there a way to have the default search results (when no keyword is entered) be an explicitly-defined set of pages rather than the results it is giving now? Right now it has one result whose body text only shows as “]]” (Chrono) and then near 30 different results for Any. Even if those are the "proper" results for an empty string search, I don't think there's much use to a user to get those results.

Also, is it indexing the site docs? I tried searching for “Explore the Content” but nothing comes up. (https://www.stage.boost.cppalliance.org/doc/user-guide/explore-the-content.html)

Thanks!

ashtum commented 1 year ago

Is there a way to have the default search results (when no keyword is entered) be an explicitly-defined set of pages rather than the results it is giving now? Right now it has one result whose body text only shows as “]]” (Chrono) and then near 30 different results for Any. Even if those are the "proper" results for an empty string search, I don't think there's much use to a user to get those results.

Yeah, I think the straightforward solution would be to avoid performing any query with an empty string.

Also, is it indexing the site docs? I tried searching for “Explore the Content” but nothing comes up. (https://www.stage.boost.cppalliance.org/doc/user-guide/explore-the-content.html)

No, it currently only searches in library documentations. I'll add other sections like docs, news, and mailing lists in the future.

ashtum commented 1 year ago

The issue of showing results for empty search query has been resolved in this PR: https://github.com/cppalliance/boost-gecko/pull/142.