Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-6558

Highlighter not working for CustomScoreQuery

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2
    • Fix Version/s: 5.3, 6.0
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Highlighter and FastVectorHighlighter not working for CustomScoreQuery

      CustomScoreQuery query = new CustomScoreQuery(termQuery);
      QueryScorer scorer = new QueryScorer(query, FIELD_NAME);
      Highlighter highlighter = new Highlighter(scorer);
      ...
      String fragment = highlighter.getBestFragment(stream, storedField); // always return null
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              caomanhdat Cao Manh Dat
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: