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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        55m 34s 1 Koji Sekiguchi 04/Jul/10 16:11
        Resolved Resolved Reopened Reopened
        116d 21h 4m 1 Robert Muir 29/Oct/10 13:15
        Reopened Reopened Resolved Resolved
        3h 58m 1 Koji Sekiguchi 29/Oct/10 17:13
        Resolved Resolved Closed Closed
        32d 21h 36m 1 Uwe Schindler 01/Dec/10 14:49
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12563999 ] jira [ 12585472 ]
        Mark Thomas made changes -
        Workflow jira [ 12514921 ] Default workflow, editable Closed status [ 12563999 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Koji Sekiguchi made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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).
        Robert Muir made changes -
        Fix Version/s 2.9.4 [ 12315148 ]
        Fix Version/s 3.0.3 [ 12315147 ]
        Robert Muir made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        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.
        Koji Sekiguchi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        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.
        Koji Sekiguchi made changes -
        Attachment LUCENE-2524.patch [ 12448648 ]
        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.
        Koji Sekiguchi made changes -
        Field Original Value New Value
        Summary when many query clases are specified in boolean or dismax query, highlighted tarms are always "yellow" if multi-colored feature is used when many query clases are specified in boolean or dismax query, highlighted terms are always "yellow" if multi-colored feature is used
        Koji Sekiguchi created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development