lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Sekiguchi (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-2524) when many query clases are specified in boolean or dismax query, highlighted tarms are always "yellow" if multi-colored feature is used
Date Sun, 04 Jul 2010 15:18:50 GMT
when many query clases are specified in boolean or dismax query, highlighted tarms are always
"yellow" if multi-colored feature is used
---------------------------------------------------------------------------------------------------------------------------------------

                 Key: LUCENE-2524
                 URL: https://issues.apache.org/jira/browse/LUCENE-2524
             Project: Lucene - Java
          Issue Type: Bug
          Components: contrib/highlighter
    Affects Versions: 2.9
            Reporter: Koji Sekiguchi
            Assignee: Koji Sekiguchi
            Priority: Trivial
             Fix For: 3.1, 4.0


The problem is the following snippet:

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

it should be:

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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message