mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
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".
40 lines
871 B
Text
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>
|
|
++++
|