Christoph Goller created LUCENE-8637: ----------------------------------------
Summary: WeightedSpanTermExtractor unnexessarily enforces rewrite for some SpanQueiries Key: LUCENE-8637 URL: https://issues.apache.org/jira/browse/LUCENE-8637 Project: Lucene - Core Issue Type: Bug Components: modules/highlighter Affects Versions: 7.5, 7.3.1, 7.4, 7.6 Reporter: Christoph Goller Method mustRewriteQuery(SpanQuery) returns true for SpanPositionCheckQuery, SpanContainingQuery, SpanWithinQuery, and SpanBoostQuery, however, these queries do not require rewriting. One effect of this is e.g. that UnifiedHighlighter does not work with OffsetSource Postings and switches to Analysis which of course has consequences for performance. I attach a patch for lucene version 7.6.0. I have not checked whether it breaks existing unit tests. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org