Skip to content

[Feature Request] Add support for matched_fields with the unified highlighter #18164

Open
@nomoa

Description

@nomoa

Is your feature request related to a problem? Please describe

matched_fields is currently only supported with the fvh highlighter.
The fvh highlighter is generally cumbersome to use since it requires term vectors to be stored.
matched_fields is generally useful when a field is analyzed differently with the help of dedicated sub fields. In order to blend the matches from all these fields into a single snippet matched_fields is the solution.

Describe the solution you'd like

In lucene 10 a new function withMaskedFieldsFunc was introduced to let the unified highligher discover what subfields might contains additional matches. It should be relatively straightforward to adapt the current implementation to pass matched_fields to this function.

Related component

Search

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

SearchSearch query, autocomplete ...etcenhancementEnhancement or improvement to existing feature or request

Type

No type

Projects

Status

🆕 New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions