How to prevent stopwords from being highlighted

Created on 2 October 2024, about 2 months ago

Respect the submission guidelines above! Drupal.org issue forks cause additional work for the project maintainer!

Setup

  • Solr version: 8
  • Drupal Core version: 10.3.1
  • Search API version: 8.x-1.35
  • Search API Solr version: 4.3.4
  • Configured Solr Connector: ?

Issue

This is a minor gripe, but I was wondering if there is any way to configure this module (or Solr itself) so that the "highlights" will not highlight stop words.

For example if I search for "dogs and cats" I am seeing the words "dogs" and "cats" highlighted in the highlights. But I'm also seeing the word "and" highlighted. I'd prefer not to see "and" highlighted, since it is a stopword.

FYI, if I just search for "and" by itself, I get 0 results, which I believe means the stopwords are working as expected.

πŸ’¬ Support request
Status

Active

Version

4.3

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States brockfanning

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024