[
https://issues.apache.org/jira/browse/LUCENE-2916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15289892#comment-15289892
]
Jeff Evans commented on LUCENE-2916:
------------------------------------
Regarding the first paragraph, it's easy enough to accomplish this by just
adding another disjunction to the {{#_TERM_CHAR}} expansion - {{| "!"}})
I'm curious, though, what characters should be consumed as part of a term?
Currently, {{-}} and {{+}} are included. Is there some reason these two are
explicitly included, while others are not? It's easy enough to add {{!}}, or
others, but it would be good to understand if there is a historical basis for
what's here.
> 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: [email protected]
For additional commands, e-mail: [email protected]