org.apache.lucene.search
Class BooleanClause

java.lang.Object
  |
  +--org.apache.lucene.search.BooleanClause

public final class BooleanClause
extends Object

A clause in a BooleanQuery.


Field Summary
 boolean prohibited
          If true, documents documents which do match this sub-query will not match the boolean query.
 Query query
          The query whose matching documents are combined by the boolean query.
 boolean required
          If true, documents documents which do not match this sub-query will not match the boolean query.
 
Constructor Summary
BooleanClause(Query q, boolean r, boolean p)
          Constructs a BooleanClause with query q, required r and prohibited p.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

query

public Query query
The query whose matching documents are combined by the boolean query.

required

public boolean required
If true, documents documents which do not match this sub-query will not match the boolean query.

prohibited

public boolean prohibited
If true, documents documents which do match this sub-query will not match the boolean query.
Constructor Detail

BooleanClause

public BooleanClause(Query q,
                     boolean r,
                     boolean p)
Constructs a BooleanClause with query q, required r and prohibited p.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.