pulibrary / orangelight

PUL Blacklight Project (Ruby 3.1.0, Rails 7.1.4)
21 stars 7 forks source link

Do Not Highlight Stopwords #3837

Open kevinreiss opened 11 months ago

kevinreiss commented 11 months ago

User Story

As a user it's distracting to see common stopwords (https://github.com/pulibrary/pul_solr/blob/main/solr_configs/catalog-production-v2/conf/stopwords.txt) highlighted in search results. I would like not to see these highlighted.

Example

Query "Search and Race": https://catalog-staging.princeton.edu/catalog?utf8=%E2%9C%93&search_field=all_fields&q=search+and+race

"and" is highlighted repeatedly in the search results.

Acceptance criteria

Ka-YT commented 11 months ago

No- I think we'll want to suppress stopwords like and.

kevinreiss commented 11 months ago

These are words we'd want to suppress per the solr configs https://github.com/pulibrary/pul_solr/blob/main/solr_configs/catalog-production-v2/conf/stopwords.txt