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

[jira] Created: (LUCENE-2566) + - operators allow any amount of whitespace

+ - operators allow any amount of whitespace
--------------------------------------------

                 Key: LUCENE-2566
                 URL: https://issues.apache.org/jira/browse/LUCENE-2566
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: Yonik Seeley
            Priority: Minor


As an example, (foo - bar) is treated like (foo -bar).
It seems like for +- to be treated as unary operators, they should be immediately followed by the operand.

-- 
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-2566) + - operators allow any amount of whitespace

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

Yonik Seeley resolved LUCENE-2566.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0

> + - operators allow any amount of whitespace
> --------------------------------------------
>
>                 Key: LUCENE-2566
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2566
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>            Reporter: Yonik Seeley
>            Priority: Minor
>             Fix For: 4.0
>
>         Attachments: LUCENE-2566.patch
>
>
> As an example, (foo - bar) is treated like (foo -bar).
> It seems like for +- to be treated as unary operators, they should be immediately followed by the operand.

-- 
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] Commented: (LUCENE-2566) + - operators allow any amount of whitespace

Posted by "Uwe Schindler (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12925000#action_12925000 ] 

Uwe Schindler commented on LUCENE-2566:
---------------------------------------

+1 !!!

but i know lots of people that are too stupid to understand that unary operator must be directly in front of term :(

> + - operators allow any amount of whitespace
> --------------------------------------------
>
>                 Key: LUCENE-2566
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2566
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>            Reporter: Yonik Seeley
>            Priority: Minor
>         Attachments: LUCENE-2566.patch
>
>
> As an example, (foo - bar) is treated like (foo -bar).
> It seems like for +- to be treated as unary operators, they should be immediately followed by the operand.

-- 
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-2566) + - operators allow any amount of whitespace

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

Robert Muir updated LUCENE-2566:
--------------------------------

    Component/s: QueryParser

> + - operators allow any amount of whitespace
> --------------------------------------------
>
>                 Key: LUCENE-2566
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2566
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>            Reporter: Yonik Seeley
>            Priority: Minor
>
> As an example, (foo - bar) is treated like (foo -bar).
> It seems like for +- to be treated as unary operators, they should be immediately followed by the operand.

-- 
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-2566) + - operators allow any amount of whitespace

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

Yonik Seeley updated LUCENE-2566:
---------------------------------

    Attachment: LUCENE-2566.patch

Here's a patch that stops treating +, -, ! as operators if they  are followed by whitespace.
Everyone seemed to previously agree about + and -, but I also threw in ! for consistency since it was another single char (largely unknown synonym for NOT) unary operator.  Thoughts?

> + - operators allow any amount of whitespace
> --------------------------------------------
>
>                 Key: LUCENE-2566
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2566
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>            Reporter: Yonik Seeley
>            Priority: Minor
>         Attachments: LUCENE-2566.patch
>
>
> As an example, (foo - bar) is treated like (foo -bar).
> It seems like for +- to be treated as unary operators, they should be immediately followed by the operand.

-- 
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