You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Koji Sekiguchi (JIRA)" <ji...@apache.org> on 2010/07/04 17:18:50 UTC

[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

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


[jira] Resolved: (LUCENE-2524) when many query clases are specified in boolean or dismax query, highlighted terms are always "yellow" if multi-colored feature is used

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi resolved LUCENE-2524.
------------------------------------

    Resolution: Fixed

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

> when many query clases are specified in boolean or dismax query, highlighted terms 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
>
>         Attachments: LUCENE-2524.patch
>
>
> 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


[jira] Updated: (LUCENE-2524) when many query clases are specified in boolean or dismax query, highlighted terms are always "yellow" if multi-colored feature is used

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi updated LUCENE-2524:
-----------------------------------

    Attachment: LUCENE-2524.patch

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

> when many query clases are specified in boolean or dismax query, highlighted terms 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
>
>         Attachments: LUCENE-2524.patch
>
>
> 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


[jira] Reopened: (LUCENE-2524) when many query clases are specified in boolean or dismax query, highlighted terms are always "yellow" if multi-colored feature is used

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir reopened LUCENE-2524:
---------------------------------


reopening for possible 2.9.4/3.0.3 backport.


> when many query clases are specified in boolean or dismax query, highlighted terms 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: 2.9.4, 3.0.3, 3.1, 4.0
>
>         Attachments: LUCENE-2524.patch
>
>
> 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


[jira] Updated: (LUCENE-2524) when many query clases are specified in boolean or dismax query, highlighted terms are always "yellow" if multi-colored feature is used

Posted by "Robert Muir (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated LUCENE-2524:
--------------------------------

    Fix Version/s: 3.0.3
                   2.9.4

> when many query clases are specified in boolean or dismax query, highlighted terms 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: 2.9.4, 3.0.3, 3.1, 4.0
>
>         Attachments: LUCENE-2524.patch
>
>
> 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


[jira] Updated: (LUCENE-2524) when many query clases are specified in boolean or dismax query, highlighted terms are always "yellow" if multi-colored feature is used

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi updated LUCENE-2524:
-----------------------------------

    Summary: when many query clases are specified in boolean or dismax query, highlighted terms are always "yellow" if multi-colored feature is used  (was: 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
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 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


[jira] Resolved: (LUCENE-2524) when many query clases are specified in boolean or dismax query, highlighted terms are always "yellow" if multi-colored feature is used

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi resolved LUCENE-2524.
------------------------------------

    Resolution: Fixed

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

> when many query clases are specified in boolean or dismax query, highlighted terms 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: 2.9.4, 3.0.3, 3.1, 4.0
>
>         Attachments: LUCENE-2524.patch
>
>
> 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