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

Add sort filters to search page #1314

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Add sort filters to search page #1314

merged 1 commit into from
Oct 7, 2024

Conversation

deborahchua
Copy link
Contributor

@deborahchua deborahchua commented Oct 4, 2024

By default the results returned are "best match" and the sort option in the filter is automatically selected.

When the results are sorted by "most recent" we want to sort using the public_updated_at (the equivalent field in Solr is metadata_modified) and ordered by desc. This is passed as the sort parameter in the Solr query.

This has been tested in Integration.

Sorted by "Best match":
Screenshot 2024-10-07 at 12 17 58

Sorted by "Most recent":
Screenshot 2024-10-07 at 12 18 09

By default the results returned are "best match" and the sort option
in the filter is automatically selected.

When the results are sorted by "most recent" we want to sort using
the `public_updated_at` (the equivalent field in Solr is
`metadata_modified`) and ordered by desc. This is passed as the
`sort` parameter in the Solr query.
@deborahchua deborahchua marked this pull request as ready for review October 7, 2024 11:24
Copy link
Contributor

@kentsanggds kentsanggds left a comment

Choose a reason for hiding this comment

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

LGTM

@deborahchua deborahchua merged commit d69e944 into main-solr Oct 7, 2024
8 checks passed
@deborahchua deborahchua deleted the add-sort-filters branch October 7, 2024 15:41
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.

2 participants