(If i could go back in time and stop the AND/OR/NOT//|| aliases from
being added to the QueryParser -- i would)
Yes, this is the cause of the confusion. Our users are accustomed to the
boolean logic syntax from a legacy search engine (also common to many other
engines). We'll have to convert
On Feb 1, 2007, at 5:03 PM, Peter Keegan wrote:
OK, I see that I'm not the first to discover this behavior of
QueryParser.
Can anyone vouch for the integrity of the PrecedenceQueryParser here:
http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/
I have discovered a serious bug in QueryParser. The following query:
contents:sales contents:marketing || contents:industrial
contents:sales
is parsed as:
+contents:sales +contents:marketing +contents:industrial +contents:sales
The same parsed query occurs even with parenthesis:
This is a ton of discussion on this if you search the lucene user list
(QueryParser and precendence and the 'binary' operators). I have seen
many mentions of the precedence parser still having open issues but no
mention of what those issues are.
Peter Keegan wrote:
OK, I see that I'm not the
Correction:
The query parser produces the correct query with the parenthesis.
But, I'm still looking for a fix for this. I could use some advice on where
to look in QueryParser to fix this.
Thanks,
Peter
On 2/1/07, Peter Keegan [EMAIL PROTECTED] wrote:
I have discovered a serious bug in
OK, I see that I'm not the first to discover this behavior of QueryParser.
Can anyone vouch for the integrity of the PrecedenceQueryParser here:
http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/miscellaneous/src/java/org/apache/lucene/queryParser/precedence/
Thanks,
Peter
On 2/1/07,
please do not cross post questions about using the Lucene API to both the
user and dev mailing lists -- the user list is the correct place to ask
questions about behavior you are seeing that you think may be a bug.
-Hoss
-
: The query parser produces the correct query with the parenthesis.
: But, I'm still looking for a fix for this. I could use some advice on where
: to look in QueryParser to fix this.
the best advice i can give you: don't use the binary operators.
* Lucene is not a boolean logic system
*