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

        Koji Sekiguchi created issue -
        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 made changes -
        Attachment LUCENE-2524.patch [ 12448648 ]
        Koji Sekiguchi made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Robert Muir made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Robert Muir made changes -
        Fix Version/s 2.9.4 [ 12315148 ]
        Fix Version/s 3.0.3 [ 12315147 ]
        Koji Sekiguchi made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12514921 ] Default workflow, editable Closed status [ 12563999 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12563999 ] jira [ 12585472 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development