You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jeff Evans (JIRA)" <ji...@apache.org> on 2016/05/04 06:32:12 UTC

[jira] [Commented] (LUCENE-2916) QueryParser treatment of unescaped internal operators

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

Jeff Evans commented on LUCENE-2916:
------------------------------------

I took a stab at the second paragraph in the description.  This is my first contribution, so any feedback is appreciated.  I first modified QueryParser.jj, then ran the javacc-QueryParser target to regenerate the parser.  I added a method to TestQueryParser to cover the change, and ensured all the tests under lucene/queryparser passed.

> QueryParser treatment of unescaped internal operators
> -----------------------------------------------------
>
>                 Key: LUCENE-2916
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2916
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/queryparser
>            Reporter: Yonik Seeley
>            Priority: Minor
>              Labels: newdev
>         Attachments: LUCENE-2916-unescaped-negative.patch
>
>
> myfield:foo-bar and myfield:foo+bar are treated as myfield:"foo-bar" and myfield:"foo+bar"
> but myfield:foo!bar is treated as myfield:foo -defaultfield:bar
> Somewhat related, temp:70 works fine, but temp:-10 throws an exception.  Many people hit this and figure out how to work around it relatively quickly, but just fixing the grammar to accept it might be better?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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