[
https://issues.apache.org/jira/browse/SOLR-3823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13455831#comment-13455831
]
Jack Krupansky edited comment on SOLR-3823 at 9/15/12 1:59 AM:
---------------------------------------------------------------
bq. bq is parsed with the defType specified parser. Rather it should, like
fq's, default to the "lucene" query parser.
Sounds reasonable for fq and bq to be parsed the same way, but it seems
unrelated to this specific Jira.
And this also begs the question of why bq shouldn't simply be a global query
parameter like fq. I don't see any reason why a multiplicative boost shouldn't
apply to a non-dismax/edismax query - but again this is outside the scope of
this specific Jira.
was (Author: jkrupan):
bq. bq is parsed with the defType specified parser. Rather it should, like
fq's, default to the "lucene" query parser.
Sounds reasonable for fq and bq to be parsed the same way, but it seems
unrelated to this specific Jira.
> 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
> Assignee: Hoss Man
> Fix For: 4.0, 5.0
>
>
> When using a boost query (bq) that contains a parentheses (like this example
> from the Relevancy Cookbook section of the wiki):
> {noformat}
> ? defType = dismax
> & q = foo bar
> & bq = (*:* -xxx)^999
> {noformat}
> You get the following error:
> org.apache.lucene.queryparser.classic.ParseException: Cannot parse '-xxx)':
> Encountered " ")" ") "" at line 1, column 12. Was expecting one of: <EOF>
> <AND> ... <OR> ... <NOT> ... "+" ... "-" ... <BAREOPER> ... "(" ... "*" ...
> "^" ... <QUOTED> ... <TERM> ... <FUZZY_SLOP> ... <PREFIXTERM> ... <WILDTERM>
> ... <REGEXPTERM> ... "[" ... "{" ... <NUMBER> ...
--
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: [email protected]
For additional commands, e-mail: [email protected]