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

UnifiedHighlighter doesn't highlight PrefixQuery with multi-byte chars

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1, 6.3, 6.4.1
    • Fix Version/s: 6.4.2
    • Component/s: modules/highlighter
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      UnifiedHighlighter highlighter = new UnifiedHighlighter(null, new StandardAnalyzer());
      Query query = new PrefixQuery(new Term("title", "я"));
      String testData = "я";
      Object snippet = highlighter.highlightWithoutSearcher(fieldName, query, testData, 1);
      System.out.printf("testData=[%s] Query=%s snippet=[%s]\n", testData, query, snippet==null?null:snippet.toString());

        Attachments

        1. LUCENE-7717.patch
          6 kB
          David Smiley
        2. LUCENE-7717.patch
          2 kB
          Christine Poerschke

          Issue Links

            Activity

              People

              • Assignee:
                dsmiley David Smiley
                Reporter:
                dmitrymalinin Dmitry Malinin
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: