RE: FilteredQuery and Boolean AND

2005-04-27 Thread Kipping, Peter
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

RE: FilteredQuery and Boolean AND

2005-04-06 Thread Chris Hostetter
: 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

RE: FilteredQuery and Boolean AND

2005-04-04 Thread Kipping, Peter
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

Re: FilteredQuery and Boolean AND

2005-04-03 Thread Chris Hostetter
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

Re: FilteredQuery and Boolean AND

2005-04-01 Thread Chris Hostetter
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

Re: FilteredQuery and Boolean AND

2005-04-01 Thread Erik Hatcher
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

RE: FilteredQuery and Boolean AND

2005-04-01 Thread Kipping, Peter
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

FilteredQuery and Boolean AND

2005-03-25 Thread Kipping, Peter
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