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
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 me something concrete and simple and I'll dig into it further.
Erik
On Apr 1, 2005, at 11:13 AM, Kipping, Pet
Any ideas on this? I have purchased your book, Lucene in Action, which
is quite good. To make things easier, consider the example on p212. In
item 4, when you combine the queries, what happens you combine them in
and AND fashion? The book only has OR, which works. Although it may
work since th