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];
      }
      
      1. LUCENE-2524.patch
        2 kB
        Koji Sekiguchi

        Activity

        Hide
        Koji Sekiguchi added a comment -

        The fix + more color tags contribution attached. I'll commit shortly.

        Show
        Koji Sekiguchi added a comment - The fix + more color tags contribution attached. I'll commit shortly.
        Hide
        Koji Sekiguchi added a comment -

        trunk: Committed revision 960349.
        branch_3x: Committed revision 960353.

        Show
        Koji Sekiguchi added a comment - trunk: Committed revision 960349. branch_3x: Committed revision 960353.
        Hide
        Robert Muir added a comment -

        reopening for possible 2.9.4/3.0.3 backport.

        Show
        Robert Muir added a comment - reopening for possible 2.9.4/3.0.3 backport.
        Hide
        Koji Sekiguchi added a comment -

        Committed revision 1028850(2.9), 1028854(3.0).

        Show
        Koji Sekiguchi added a comment - Committed revision 1028850(2.9), 1028854(3.0).

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development