org.apache.lucene.search
Class BooleanClause.Occur
java.lang.Object
org.apache.lucene.util.Parameter
org.apache.lucene.search.BooleanClause.Occur
- All Implemented Interfaces:
- java.io.Serializable
- Enclosing class:
- BooleanClause
public static final class BooleanClause.Occur
- extends Parameter
- implements java.io.Serializable
Specifies how terms may occur in matching documents.
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MUST
public static final BooleanClause.Occur MUST
- Use this operator for terms that must appear in the matching documents.
SHOULD
public static final BooleanClause.Occur SHOULD
- Use this operator for terms that should appear in the
matching documents. For a BooleanQuery with two
SHOULD
subqueries, at least one of the queries must appear in the matching documents.
MUST_NOT
public static final BooleanClause.Occur MUST_NOT
- Use this operator for terms that must not appear in the matching documents.
Note that it is not possible to search for queries that only consist
of a
MUST_NOT
query.
toString
public java.lang.String toString()
- Overrides:
toString
in class Parameter
Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.