sunny6142 opened a new issue, #15442: URL: https://github.com/apache/lucene/issues/15442
### Description FastVectorHighlighter incorrectly handles boost values in two scenarios: 1. **Phrase Expansion**: When overlapping phrases with different boosts expand, the expanded phrase loses original boost values and defaults to 1.0 2. **Nested Boosts**: Nested BoostQuery objects only preserve the outermost boost value, shouldn't we preserve max of them ## Impact - Critical content gets weak highlighting despite high boost values - Search result emphasis doesn't reflect query importance - Breaks boost value semantics in search applications ## Example **Scenario**: Legal document search where "contract termination" (boost: 10.0) and "termination clause" (boost: 5.0) should highlight "contract termination clause" prominently. **Current Result**: "contract termination clause" gets boost 1.0 → weak highlighting **Expected Result**: "contract termination clause" should get meaningful boost value → appropriate highlighting ### Version and environment details - Lucene main branch - Component: `lucene/highlighter` (FastVectorHighlighter) - Likely affected code: `FieldQuery.java` phrase expansion logic -- 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]
