[ https://issues.apache.org/jira/browse/LUCENE-9426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Smiley updated LUCENE-9426: --------------------------------- Summary: UnifiedHighlighter ANALYSIS mode does not accurately highlight SpanNotQuery or MUST_NOT (was: UnifiedHighlighter ANALYSIS mode does not accurately highlight SpanNotQuery or NOT) > UnifiedHighlighter ANALYSIS mode does not accurately highlight SpanNotQuery > or MUST_NOT > --------------------------------------------------------------------------------------- > > Key: LUCENE-9426 > URL: https://issues.apache.org/jira/browse/LUCENE-9426 > Project: Lucene - Core > Issue Type: Bug > Components: modules/highlighter > Affects Versions: 8.5.1 > Environment: I tested with 8.5.1, but other versions are probably > also affected. > Reporter: Christoph Goller > Priority: Major > Labels: easyfix > Attachments: TestUnifiedHighlighter.java > > > If UnifiedHighlighter uses MemoryIndexOffsetStrategy, it does not treat > SpanNotQuery correctly. > Since UnifiedHighlighter uses actual search in order to determine which > locations to highlight, it should be consistent with search and only > highlight locations in a document that really match the query. However, it > does not for SpanNotQuery. > For the query spanNot(spanNear([content:100, content:dollars], 1, true), > content:thousand, 0, 0) > it produces > A <b>100</b> fucking <b>dollars</b> wasn't enough to fix it. ... We need > <b>100</b> thousand <b>dollars</b> to buy the house -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org