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

when many query clases are specified in boolean or dismax query, highlighted terms are always "yellow" if multi-colored feature is used

    Details

    • Lucene Fields:
      New

      Description

      The problem is the following snippet:

      protected String getPreTag( int num ){
        return preTags.length > num ? preTags[num] : preTags[0];
      }
      

      it should be:

      protected String getPreTag( int num ){
        int n = num % preTags.length;
        return  preTags[n];
      }
      

        Attachments

          Activity

            People

            • Assignee:
              koji Koji Sekiguchi
              Reporter:
              koji Koji Sekiguchi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: