lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2566) + - operators allow any amount of whitespace
Date Sat, 23 Oct 2010 14:44:19 GMT

     [ 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


Mime
View raw message