scientist-softserv / adventist_knapsack

Apache License 2.0
1 stars 0 forks source link

Persistent search highlighting issue #522

Open KatharineV opened 5 months ago

KatharineV commented 5 months ago

I've discovered that searching a string of words makes the persistent highlighting fail in the UV.

I just searched "Cleveland AND Hinsdale" and got a result with Hinsdale highlighted in the snippet in the catalog search. However, when I open the work page, the UV doesn't highlight "Hinsdale," because it's searching for "Cleveland AND Hinsdale."

Image

https://adl.b2.adventistdigitallibrary.org/concern/published_works/20206716_northern_union_outlook_march_17_1980?locale=en&parent_query=Cleveland+AND+hinsdale

I'm not sure what the real problem is here. Is it that the catalog search returns results that don't honor the Boolean logic, because "Cleveland" is missing? Or is the problem with the UV and the fact that it can't search more than one word at a time? Something could use a fix here, but I'm still pondering what the ideal behavior is supposed to be.