Skip to content

Highlighter does not highlight when using large exact phrase query [LUCENE-4502] #5568

@asfimport

Description

@asfimport

For example I have the text

 
The text which appears before and after a highlighted term when using the simple formatter This parameter accepts per-field overrides.

I want to highlight this text with the query

 
String query = "\"which appears before and after a highlighted term when using the simple formatter\""

Using the EnglishAnalyzer it does not highlight.
Using the WhitespaceAnalyzer it's highlight.

If the query is smaller the hightlight is correct.

I have try to track the issue, but it go to deeply into Lucene core at NearSpansUnordered


Migrated from LUCENE-4502 by Nicolas Labrot (@nithril), updated Aug 09 2013
Attachments: LUCENE-4502.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions