elasticsearch/docs/reference/tab-widgets/highlighting-multi-fields-widget.asciidoc
Mayya Sharipova 2337eb05a0
Unified Highlighter to support matched_fields (#107640)
Add support to the Unified highlighter to combine matches on multiple fields
to highlight a single field: "matched_fields".

Based on Lucene PR: https://github.com/apache/lucene/pull/13268

Lucene PR is based on the concept of masked fields where masked fields
are different from the original highlighted field. This PR in
Elasticsearch uses the already existing highlighter parameter
"matched_fields".
2024-05-09 10:35:29 -04:00

40 lines
871 B
Text

++++
<div class="tabs" data-tab-group="highligther">
<div role="tablist" aria-label="Highlighting based on multi fields">
<button role="tab"
aria-selected="true"
aria-controls="unified-tab"
id="unified-highlighter">
Unified
</button>
<button role="tab"
aria-selected="false"
aria-controls="fvh-tab"
id="fvh-highlighter"
tabindex="-1">
FVH
</button>
</div>
<div tabindex="0"
role="tabpanel"
id="unified-tab"
aria-labelledby="unified-highlighter">
++++
include::highlighting-multi-fields.asciidoc[tag=unified]
++++
</div>
<div tabindex="0"
role="tabpanel"
id="fvh-tab"
aria-labelledby="fvh-highlighter"
hidden="">
++++
include::highlighting-multi-fields.asciidoc[tag=fvh]
++++
</div>
</div>
++++