Use highlighted data from backend for creating excerpts

Created on 28 August 2025, about 1 month ago

Split off from 🐛 Excerpt shows all fields even when only one field has the searchterm Active : When backends return highlighted field data, we could use that for creating the excerpts in the Highlight processor instead of doing all this work ourselves. However, we cannot be sure that the data from the results’ highlighted_fields extra data will be suitable for use as excerpt snippets as-is, as they are usually complete field values with highlighting added.
Also see this thread from the issue’s MR.

Side note: When this code is in place and working well, successfully extracting suitable snippets from highlighted field values, there might be no reason to restrict ourselves to the highlighted field values coming from the backend: we might as well also re-use any field values we are already highlighting in the Highlight processor, to avoid re-doing this work where possible.

Feature request
Status

Active

Version

1.0

Component

Plugins

Created by

🇦🇹Austria drunken monkey Vienna, Austria

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024