You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Eric Jain (JIRA)" <ji...@apache.org> on 2007/02/02 10:37:05 UTC
[jira] Created: (LUCENE-792) PrecedenceQueryParser misinterprets
queries starting with NOT
PrecedenceQueryParser misinterprets queries starting with NOT
-------------------------------------------------------------
Key: LUCENE-792
URL: https://issues.apache.org/jira/browse/LUCENE-792
Project: Lucene - Java
Issue Type: Bug
Components: QueryParser
Affects Versions: 2.0.0
Reporter: Eric Jain
"NOT foo AND baz" is parsed as "-(+foo +baz)" instead of "-foo +bar".
(I'm setting parser.setDefaultOperator(PrecedenceQueryParser.AND_OPERATOR) but the issue applies otherwise too.)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-792) PrecedenceQueryParser misinterprets
queries starting with NOT
Posted by "Steven Parkes (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12477444 ]
Steven Parkes commented on LUCENE-792:
--------------------------------------
Yeah, this was noted by Erik in the svn logs.
Unfortunately, it looks like PQP has been basically dormant (read: undergoing bitrot) since then so not only is NOT precedence not handled, but a lot of other changes that have been made to QP aren't in PQP.
> PrecedenceQueryParser misinterprets queries starting with NOT
> -------------------------------------------------------------
>
> Key: LUCENE-792
> URL: https://issues.apache.org/jira/browse/LUCENE-792
> Project: Lucene - Java
> Issue Type: Bug
> Components: QueryParser
> Affects Versions: 2.0.0
> Reporter: Eric Jain
>
> "NOT foo AND baz" is parsed as "-(+foo +baz)" instead of "-foo +bar".
> (I'm setting parser.setDefaultOperator(PrecedenceQueryParser.AND_OPERATOR) but the issue applies otherwise too.)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-792) PrecedenceQueryParser misinterprets
queries starting with NOT
Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12786683#action_12786683 ]
Mark Miller commented on LUCENE-792:
------------------------------------
Based on its state, we should prob deprecate PrecedenceQueryParser in favor of the precedence thats about to land in the new QueryParser impl.
> PrecedenceQueryParser misinterprets queries starting with NOT
> -------------------------------------------------------------
>
> Key: LUCENE-792
> URL: https://issues.apache.org/jira/browse/LUCENE-792
> Project: Lucene - Java
> Issue Type: Bug
> Components: QueryParser
> Affects Versions: 2.0.0
> Reporter: Eric Jain
>
> "NOT foo AND baz" is parsed as "-(+foo +baz)" instead of "-foo +bar".
> (I'm setting parser.setDefaultOperator(PrecedenceQueryParser.AND_OPERATOR) but the issue applies otherwise too.)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org