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/10/23 16:44:19 UTC

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

     [ 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