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

2012-09-27 Thread Andrew Gibb (JIRA)

[ 
https://issues.apache.org/jira/browse/LUCENE-2566?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465361#comment-13465361
 ] 

Andrew Gibb commented on LUCENE-2566:
-

This is great!

There seems to be an inconsistency with the exclamation mark ! (NOT operator)

"foo-" acceptable
"foo+" acceptable
"foo!" parse exception

although if I add whitespace after: 

"foo! " acceptable

Is this expected operation? Am I missing something

> + - operators allow any amount of whitespace
> 
>
> Key: LUCENE-2566
> URL: https://issues.apache.org/jira/browse/LUCENE-2566
> Project: Lucene - Core
>  Issue Type: Bug
>  Components: core/queryparser
>Affects Versions: 3.6
>Reporter: Yonik Seeley
>Assignee: Jan Høydahl
>Priority: Minor
> Fix For: 4.0-ALPHA, 3.6.1
>
> Attachments: LUCENE-2566-3x.patch, 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.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Created] (LUCENE-4454) QueryParser throws exception for string queries ending with ! (exclamation)

2012-09-30 Thread Andrew Gibb (JIRA)
Andrew Gibb created LUCENE-4454:
---

 Summary: QueryParser throws exception for string queries ending 
with ! (exclamation)
 Key: LUCENE-4454
 URL: https://issues.apache.org/jira/browse/LUCENE-4454
 Project: Lucene - Core
  Issue Type: Bug
Affects Versions: 3.6.1, 3.5
Reporter: Andrew Gibb
Priority: Minor


Query parser does not handle the ! (exclamation point) in the same way as the - 
(hyphen).

A string query with the final character being a ! causes a ParseException

"foo-" OK
"foo+" OK
"foo!" ERROR - Parse Exception
"foo! " OK

I am using version 3.5 (have tried 3.6.1 - same issue) I was hoping 2566 may 
also have fixed this issue

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (LUCENE-4454) QueryParser throws exception for string queries ending with ! (exclamation)

2012-09-30 Thread Andrew Gibb (JIRA)

 [ 
https://issues.apache.org/jira/browse/LUCENE-4454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Gibb updated LUCENE-4454:


Description: 
Query parser does not handle the ! (exclamation point) in the same way as the - 
(hyphen).

A string query with the final character being a ! causes a ParseException

"foo-" OK
"foo+" OK
"foo!" ERROR - Parse Exception
"foo! " OK (trailing white space)

I am using version 3.5 (have tried 3.6.1 - same issue) I was hoping 2566 may 
also have fixed this issue

  was:
Query parser does not handle the ! (exclamation point) in the same way as the - 
(hyphen).

A string query with the final character being a ! causes a ParseException

"foo-" OK
"foo+" OK
"foo!" ERROR - Parse Exception
"foo! " OK

I am using version 3.5 (have tried 3.6.1 - same issue) I was hoping 2566 may 
also have fixed this issue


> QueryParser throws exception for string queries ending with ! (exclamation)
> ---
>
> Key: LUCENE-4454
> URL: https://issues.apache.org/jira/browse/LUCENE-4454
> Project: Lucene - Core
>  Issue Type: Bug
>Affects Versions: 3.5, 3.6.1
>Reporter: Andrew Gibb
>Priority: Minor
>
> Query parser does not handle the ! (exclamation point) in the same way as the 
> - (hyphen).
> A string query with the final character being a ! causes a ParseException
> "foo-" OK
> "foo+" OK
> "foo!" ERROR - Parse Exception
> "foo! " OK (trailing white space)
> I am using version 3.5 (have tried 3.6.1 - same issue) I was hoping 2566 may 
> also have fixed this issue

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org