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

Use lucene query parser for search within user-created browse categories #3004

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

marlo-longley
Copy link
Contributor

Fixes the downstream issue in sul-dlss/exhibits#2377, and restores this functionality which was broken.

@marlo-longley marlo-longley force-pushed the browse-category-lucene branch 2 times, most recently from 546c9c1 to dda63b8 Compare January 13, 2024 02:08
@marlo-longley marlo-longley marked this pull request as ready for review January 13, 2024 02:19
Copy link
Member

@jcoyne jcoyne left a comment

Choose a reason for hiding this comment

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

Is it possible to add a feature spec for this?

@marlo-longley
Copy link
Contributor Author

@jcoyne I added more to the search builder test to specify that without a search query, we should not override the default parser. This isn't exactly a feature test, but I think it enhances the coverage and captures the changes. I looked into a feature test but it felt complicated to do the setup necessary to execute a real search. Lmk what you think, thanks for the review.

@jcoyne
Copy link
Member

jcoyne commented Jan 18, 2024

@marlo-longley yes, but that's just a unit test. It says "we're going to use this parser", but it doesn't demonstrate why we have to use that parser. If you could create a feature test that would be better.

@marlo-longley
Copy link
Contributor Author

@jcoyne thanks for reviewing -- added feature tests.

@jcoyne jcoyne merged commit 1a7448e into main Jan 22, 2024
7 checks passed
@jcoyne jcoyne deleted the browse-category-lucene branch January 22, 2024 13:31
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