[
https://issues.apache.org/jira/browse/SOLR-3823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Erick Erickson resolved SOLR-3823.
--
Resolution: Invalid
The error is because of the colon character, it has meaning in a query and must
be escaped. See: http://lucene.apache.org/core/3_6_1/queryparsersyntax.html.
So I'll close this as invalid, if you disagree please let us know.
BTW, it's better to raise this kind of question on the user's list rather than
open a JIRA, at least until you're sure it's really a bug.
> Parentheses in a boost query cause errors
> -
>
> Key: SOLR-3823
> URL: https://issues.apache.org/jira/browse/SOLR-3823
> Project: Solr
> Issue Type: Bug
> Components: query parsers
>Affects Versions: 4.0-BETA
> Environment: Mac, jdk 1.6, Chrome
>Reporter: Mathos Marcer
>
> When using a boost query (bq) that contains a parentheses (like this example
> from the Relevancy Cookbook section of the wiki):
> ? defType = dismax
> & q = foo bar
> & bq = (*:* -xxx)^999
> You get the following error:
> org.apache.lucene.queryparser.classic.ParseException: Cannot parse '-xxx)':
> Encountered " ")" ") "" at line 1, column 12. Was expecting one of:
> ... ... ... "+" ... "-" ... ... "(" ... "*" ...
> "^" ... ... ... ... ...
> ... ... "[" ... "{" ... ...
--
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