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

🎁 Enable snippet highlighting for search #781

Merged
merged 4 commits into from
Sep 12, 2023

Conversation

ShanaLMoore
Copy link
Contributor

@ShanaLMoore ShanaLMoore commented Sep 11, 2023

In this PR we are indexing the pdf text onto the parent record, adding a highlight to the matching search results and displaying the snippet in the search catalog. An index will be required when we deploy to the various environments.

Story

Refs #772

Expected Behavior Before Changes

Search results were not displaying as a highlight on the search catalog page.

Expected Behavior After Changes

Screenshot 2023-09-11 at 3 39 55 PM

In this commit we are indexing the pdf text onto the parent record, adding a highlight to the matching search results and displaying the snippet in the search catalog.
Copy link
Contributor

@kirkkwang kirkkwang left a comment

Choose a reason for hiding this comment

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

Looks good to me! I wish there was a better place for the css class though but i don't think it's that big of a deal

Fix for failing specs + rubocop corrections.
@ShanaLMoore
Copy link
Contributor Author

ShanaLMoore commented Sep 12, 2023

Looks good to me! I wish there was a better place for the css class though but i don't think it's that big of a deal

We could make our own css file and include it in application css

Shana Moore added 2 commits September 12, 2023 07:25
Fix for failing specs + rubocop corrections.
@ShanaLMoore ShanaLMoore merged commit 0f157f4 into main Sep 12, 2023
@ShanaLMoore ShanaLMoore deleted the i772-enable-snippet-highlighting branch September 12, 2023 16:05
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