org.apache.lucene.search
Class BooleanClause
java.lang.Object
org.apache.lucene.search.BooleanClause
- java.io.Serializable
public class BooleanClause
extends java.lang.Object
implements java.io.Serializable
A clause in a BooleanQuery.
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.
|
BooleanClause(Query q, boolean r, boolean p) - Constructs a BooleanClause with query
q , required
r and prohibited p .
|
boolean | equals(Object o) - Returns true iff
o is equal to this.
|
int | hashCode() - Returns a hash code value for this object.
|
prohibited
public boolean prohibited
If true, documents documents which do
match this sub-query will not match the boolean query.
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.
BooleanClause
public BooleanClause(Query q,
boolean r,
boolean p)
Constructs a BooleanClause with query q
, required
r
and prohibited p
.
equals
public boolean equals(Object o)
Returns true iff o
is equal to this.
hashCode
public int hashCode()
Returns a hash code value for this object.
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.