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 Solr and basic search page #1313

Merged
merged 3 commits into from
Oct 1, 2024
Merged

Add Solr and basic search page #1313

merged 3 commits into from
Oct 1, 2024

Conversation

deborahchua
Copy link
Contributor

This PR contains the initial set up for using Solr and performs a basic search to display the first page of results to the user when the page is loaded. It can be reached at /search/solr to allow OpenSearch to still be the default search method.

We are moving away from using OpenSearch and depending on the Publish
app to get search results and information about datasets. We can use
the RSolr gem to query for this information directly from Solr.
This allows us to perform a basic query to Solr which will return a
maximum of 20 datasets if they are available. We specify the fields
to be included in the response which will then be available to use
in the view.
The default behaviour for this page is to show all results if a search
term has not been provided. This initial search page does not have
working filters or a working search box, and the results do not link
to individual dataset pages. Their functionality will be added in
future commits.

We still want OpenSearch to be our default search method, but we can
access the alternative search using Solr via /search/solr.
@deborahchua deborahchua marked this pull request as ready for review September 27, 2024 12:19
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 f396df7 into main-solr Oct 1, 2024
7 checks passed
@deborahchua deborahchua deleted the add-solr-search branch October 1, 2024 11:13
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