OpenSearch/plugins/mapper-annotated-text/src
Jim Ferenczi bd6e2592a7 Remove the SearchContext from the highlighter context (#47733)
Today built-in highlighter and plugins have access to the SearchContext through the
highlighter context. However most of the information exposed in the SearchContext are not needed and a QueryShardContext
would be enough to perform highlighting. This change replaces the SearchContext by the informations that are absolutely
required by highlighter: a QueryShardContext and the SearchContextHighlight. This change allows to reduce the exposure of the
complex SearchContext and remove the needs to clone it in the percolator sub phase.

Relates #47198
Relates #46523
2019-10-10 10:34:10 +02:00
..
main/java/org/elasticsearch Remove the SearchContext from the highlighter context (#47733) 2019-10-10 10:34:10 +02:00
test Bug fix for AnnotatedTextHighlighter - port of 39525 (#39749) 2019-03-06 19:02:04 +00:00