yangfeng123456 opened a new pull request, #15604: URL: https://github.com/apache/lucene/pull/15604
Summary This PR fixes a small issue in FastVectorHighlighter where boost values were not fully preserved when overlapping phrases were merged (#15442). The change is limited to the boost accumulation logic, and a unit test is added to cover the case. Motivation While investigating FastVectorHighlighter behavior with overlapping phrase queries, I noticed that part of the boost information could be lost during phrase merging. This can lead to highlight scoring that does not fully reflect the original query boosts. This mainly affects legacy Elasticsearch and Solr setups that still rely on FVH. Implementation Preserve boost values when merging overlapping WeightedPhraseInfo instances Add a small null-safety guard around TokenGroup boost handling Add a focused test reproducing the issue Risks The change is small and limited to FVH internals, and should be safe to backport to 10.3. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
