Skip to content

Conversation

@gyst
Copy link
Collaborator

@gyst gyst commented Nov 12, 2025

Refs https://github.com/syslabcom/scrum/issues/3149

This branch builds on the faceted search implementation that was staged before. We may want to remove that work and use the previously provided search instead. (Because the theme browser is independent from the search view).

Features:

  • Solr based faceting browser as layout on themen-epochen-regionen

  • Added search input there

  • Seems to be pretty fast

  • Facet narrowing, including suppression of facet criteria that would result in an empty result set, is all handled in backend code that closely matches the old code

  • Main code changes versus the old implementation derive from replacing filter expressions with list generators

  • I removed SearchableText as a stored index for speed (and also ObjectProvides but that's not yet reflected in the running solr schema).

Constraints:

  • No JS collapsing/expanding of submenus. The old JS code depends on jQuery. I've looked at pat-depends but that's not valid for this use case.

  • Searching for text, then narrowing on facets, works. But narrowing on facets, then adding or changing Searchable Text, resets the facets. I've worked on keeping the facets but realized that is invalid from a UX perspective: it may result in an empty result set. In which case you then need a new affordance to reset the facets.

Not yet done / future work:

  • The search view I applied from collective.solr is suboptimal. Porting the old search view, or improving this one, is todo.

  • I tried to rip out eea.facetednavigation but plenty of other views depend on that.

  • Those views should be redone as part of the Decarbonize 2 ticket.

  • I have not set up Solr boosting or tuned Solr for performance yet.

gyst and others added 30 commits September 24, 2025 13:30
- Backport the index fields from the old deployment.
- No test changes, because no test coverage on this view at all.

This is just a dirty MVP checkpoint. It works but the schema needs
cleaning up.
Also: provide upgrade, adjust tests
Filter on portal root to avoid Unauthorized
... checkpoint where it at least doesn't error out.
To do:
- Suppress faceting links resulting in 0 matches
- Javascriptified expand/collapse of browsing menu
@gyst
Copy link
Collaborator Author

gyst commented Nov 12, 2025

Note that the commit list is long because it includes commit from the solr branch that where squashed on merge, hence not suppressed in this commit list. I don't want to waste time on rebasing that, I've already resolved the merge.

Copy link
Member

@pilz pilz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The facet search works fine as described.

@gyst
Copy link
Collaborator Author

gyst commented Nov 17, 2025

Reviewed Alex's changes, lookin good but needs further attention in the debarbonization and cleanup.

Before we merge this, I first want to validate that we want to keep the work I did on the /search view. If not, I can rebase this branch to remove that work, so we just keep the theme browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants