No, you don't need required or prohibited, but you can't have both.
Here is a rundown:
* A required clause will allow a document to be selected if and only if
it contains that clause and will exclude any documents that don't.
* A prohibited clause will exclude any documents that contain that
Karl Koch sagte:
> Hi all,
>
> why does the boolean query have a "required" and a "prohited" field
> (boolean
> value)? If something is required it cannot be forbidden and otherwise? How
> does this match with the Boolean model we know from theory?
What if required and prohibited are both off? Th
Hi all,
why does the boolean query have a "required" and a "prohited" field (boolean
value)? If something is required it cannot be forbidden and otherwise? How
does this match with the Boolean model we know from theory?
Are there differences between Lucene and the Boolean model in theory?
Kind R
this is just an example, but I figured it out. Stemming/lower casing problem
. du!
- Original Message -
From: "Otis Gospodnetic" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, November 13, 2002 4:54 PM
Subject: Re: Bo
Maybe "A" and "B" are getting eliminated by your Analyzer?
a and b are in the list of stop words, no?
And A and B are lowercased.
Or is this just an example?
Try bq.toString()
Try adding just one Query to it
etc.
etc.
Otis
--- aaz <[EMAIL PROTECTED]> wrote:
> Hi,
> Suppose I want to match docume
Hi,
Suppose I want to match documents where fieldX is equal to "A" OR "B". Is the
following correct?
BooleanQuery bq = new BooleanQuery();
Term a = new Term("fieldX","A");
Term b = new Term("fieldX","B");
TermQuery tqA = new TermQuery(a);
TermQuery tqB = new TermQuery(b);
bq.add(tqA,false,fal