005 3:48 PM
To: java-user@lucene.apache.org
Subject: RE: FilteredQuery and Boolean AND
Chris, thanks for your help. I came to the same conclusions about using
the ChainedFilter. However there are situations where applying a filter
at the end wouldn't work. Consider the same two f
: shouldn't. If the FilteredQuerys worked properly, they could be put in
: a BooleanQuery and then a BooleanClause. That's why I was doing that
Peter:
Comments in bug#34279 indicate that this problem may have been
inadvertantly fixed in the latest development version of the code base --
or at
riginal Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Hostetter
Sent: Friday, April 01, 2005 7:53 PM
To: java-user@lucene.apache.org
Subject: Re: FilteredQuery and Boolean AND
Peter's problem intrigued me, so I wrote my own test case using two
simple
Filters
Bugged...
http://issues.apache.org/bugzilla/show_bug.cgi?id=34279
: : > BooleanQuery q2 = new BooleanQuery();
: : > TermQuery tq = new TermQuery(new Term("all_entries", "y"));
: : > FilteredQuery fq = new FilteredQuery(tq, ft);
: : > FilteredQuery fq2 = new FilteredQuery(tq, ft2);
: : > q2.add(f
cene.apache.org
: To: java-user@lucene.apache.org
: Subject: Re: FilteredQuery and Boolean AND
:
: Peter,
:
: Could you provide a straight-forward test case that indexes a few
: documents into a RAMDirectory and demonstrates the problem you're
: having with AND'd FilteredQuery's?
:
: Give
ks. Although it may
work since the book only has one filtered query, but what if you made
them both filtered queries and ANDed them?
Thanks,
Peter
-Original Message-
From: Kipping, Peter [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 10:34 AM
To: java-user@lucene.apache.org
Subjec
the book only has one filtered query, but what if you made
them both filtered queries and ANDed them?
Thanks,
Peter
-Original Message-
From: Kipping, Peter [mailto:[EMAIL PROTECTED]
Sent: Friday, March 25, 2005 10:34 AM
To: java-user@lucene.apache.org
Subject: FilteredQuery and Boolean AND
I have the following query structure:
BooleanQuery q2 = new BooleanQuery();
TermQuery tq = new TermQuery(new Term("all_entries", "y"));
FilteredQuery fq = new FilteredQuery(tq, ft);
FilteredQuery fq2 = new FilteredQuery(tq, ft2);
q2.add(fq, false, false);
q2.add(fq2, false, false);
The two filter