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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Kenneth William Krugler (Jira)
+ - 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Kenneth William Krugler (Jira)

     [ 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Kenneth William Krugler (Jira)
In reply to this post by Kenneth William Krugler (Jira)

     [ 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Kenneth William Krugler (Jira)
In reply to this post by Kenneth William Krugler (Jira)

    [ 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Kenneth William Krugler (Jira)
In reply to this post by Kenneth William Krugler (Jira)

     [ 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: [hidden email]
For additional commands, e-mail: [hidden email]