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

UnifiedHighlighter doesn't highlight PrefixQuery with multi-byte chars

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1, 6.3, 6.4.1
    • 6.4.2
    • modules/highlighter
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: