Highlighting issue when more than 1 Search: Fulltext exposed view filters used

Created on 3 June 2025, 5 days ago

Problem

I have a view that is using a solr index. Have a few 'Search: Fulltext search' exposed filters (e.g. Name, Notes, Place) with each of the filter having different 'Searched fields' assigned. Highlighting is enabled.

If only one of the filters is used then the keywords are highlighted in the search results. However, when more than 1 exposed filter is used (e.g. smith in Name filter and letter in Notes filter, the results are returned properly but only the keywords in Name are highlighted. If I adjust the orders of the filters in the view configuration so that the Notes exposed filter is above the Name filter then only the keywords in the Notes filter are returned. It would be useful if keywords in both filters are highlighted in the search results.

Steps to reproduce

  • Create a view that uses solr index.
  • Create 2 exposed filters both being Search: Fulltext but have different 'Searched fields' configured for each.
  • Enable highlighting
  • Enter keyword in both exposed filters. Only the 1st filter will return keywords highlighted.
🐛 Bug report
Status

Active

Version

1.38

Component

General code

Created by

🇨🇦Canada debra

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

Comments & Activities

Production build 0.71.5 2024