SearchWorks icon indicating copy to clipboard operation
SearchWorks copied to clipboard

add autocomplete for authors search

Open dnoneill opened this issue 7 months ago • 4 comments

closes #4879

uses the default blacklight autocomplete and disables autocomplete by removing the src attribute when the dropdown isn't authors.

https://github.com/sul-dlss/sul-solr-configs/pull/368 needs to be merged as well

dnoneill avatar May 14 '25 16:05 dnoneill

Is this behind a feature flag? If not, can we do that so we can deploy this for testing without a long-lived branch.

cbeer avatar May 14 '25 17:05 cbeer

@cbeer now has a feature flag

dnoneill avatar May 14 '25 19:05 dnoneill

the spell-check index won't be populated until after the weekend, but I'm seeing some odd matches..

for pou, it's suggesting:

"pou":{
        "numFound":5,
        "suggestions":[{
            "term":"puccini, giacomo, 1858-1924",
            "weight":34,
            "payload":""},
          {
            "term":"poulenc, francis, 1899-1963",
            "weight":10,
            "payload":""},
          {
            "term":"purcell, henry, 1659-1695",
            "weight":10,
            "payload":""},
          {
            "term":"ponchielli, amilcare, 1834-1886",
            "weight":8,
            "payload":""},
          {
            "term":"popp, lucia",
            "weight":7,
            "payload":""}]}

cbeer avatar May 22 '25 21:05 cbeer

@cbeer That makes sense to me. I think solr suggest has stemming for such short queries. We could probably update it to do exact for 2-3 length queries, but if you look at earthworks that is also how it works. Screenshot 2025-05-22 at 6 01 15 PM Screenshot 2025-05-22 at 6 01 09 PM

dnoneill avatar May 22 '25 22:05 dnoneill