Repository navigation
Conversation
jcoyne
added a commit
that referenced
this pull request
Dec 2, 2026
Searches are grouped by collection unless the user chooses "All results" (group=false) or the search is limited to a collection (e.g. a "This Collection" search). Set Arclight::Engine.config.default_grouped_results to false to keep ungrouped results as the default. Fixes #1488
jcoyne
force-pushed
the
default-grouped-results
branch
from
December 3, 2026 13:29
236bf89 to
e8225ea
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1488
Search results are now grouped by collection by default. Results are shown ungrouped ("All results") when:
group=false, so the choice sticks as they page, sort and facet), orf[collection]filter, e.g. a This Collection search from a collection or component page).An explicit
group=truestill groups results, even inside a collection.The default applies only to HTML search results (
catalog#index), so JSON API responses and other actions that use the search builder (e.g.hierarchy) are unchanged.Configuration
Implementers who prefer ungrouped results (for example, single-collection sites) can turn this off:
Upgrade note
This changes the default for existing applications: searches that don't specify
groupwill now be grouped. Setdefault_grouped_results = falseto keep the previous behavior.Whether the collection itself should appear among a group's results is left to a separate issue, as discussed on #1488.
Screenshots
Default search — grouped by collection
http://localhost:3000/catalog?q=alpha+omega
"This Collection" search — all results
http://localhost:3000/catalog?q=alpha+omega&f%5Bcollection%5D%5B%5D=Alpha+Omega+Alpha+Archives%2C+1894-1992
User chose "All results"
http://localhost:3000/catalog?q=alpha+omega&group=false