elasticsearch/plugins/mapper-annotated-text
Jim Ferenczi 28a504d7a1
Use the Weight#matches mode for highlighting by default (#96068)
This PR adapts the unified highlighter to use the Weight#matches mode by default when possible.
This is the default mode in Lucene for some time now. For cases where the matches mode won't work (nested and parent-child queries),
 the matches mode is disabled automatically.
I didn't expose an  option to explicitly disable this mode because that should be seen as an internal implementation detail.
With this change, matches that span multiple terms are highlighted together (something that users asked for years) and the clauses that don't match the document are ignored.
2023-08-09 10:44:38 +09:00
..
src Use the Weight#matches mode for highlighting by default (#96068) 2023-08-09 10:44:38 +09:00
build.gradle Add JUnit rule based integration test cluster orchestration framework (#92379) 2022-12-21 15:33:46 -08:00