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

    • 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

        1. LUCENE-2524.patch
          2 kB
          Koji Sekiguchi

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: