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

Group search results by section (Doc, Product Update, Guides) #172

Open
paulRbr opened this issue Jan 23, 2024 · 1 comment
Open

Group search results by section (Doc, Product Update, Guides) #172

paulRbr opened this issue Jan 23, 2024 · 1 comment
Labels
enhancement New feature or request search

Comments

@paulRbr
Copy link
Member

paulRbr commented Jan 23, 2024

Current Behavior

Right now, the search in the hub content displays a list of result without a lot of context (only a title and an excerpt) as seen below:

Capture d’écran du 2024-01-23 12-42-47

Ideas on potential future behavior

  • It would be really nice if the items of the results are grouped by section (Documentation, Product Update or Guides), or if we add a visual label, or whatever other nice UI trick to quickly identify which result comes from which section.

  • Ideally, the groups order would depend on which page we are in (if the user visits a documentation page, the “Documentation” section of search results should be displayed first)

@paulRbr paulRbr added enhancement New feature or request search labels Jan 23, 2024
@thimy
Copy link
Member

thimy commented Jun 25, 2024

Not exactly related but I made a PR on the search plugin repository to prepend the collection name to the search results.
bridgetownrb/bridgetown-quick-search#26

If we want more customization of the search results, this needs to be done on the plugin so this won't be an immediate priority. 😬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request search
Projects
None yet
Development

No branches or pull requests

2 participants