public static enum

BooleanClause.Occur

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ org.apache.lucene.search.BooleanClause.Occur

Class Overview

Specifies how clauses are to occur in matching documents.

Summary

Enum Values
BooleanClause.Occur  MUST  Use this operator for clauses that must appear in the matching documents. 
BooleanClause.Occur  MUST_NOT  Use this operator for clauses that must not appear in the matching documents. 
BooleanClause.Occur  SHOULD  Use this operator for clauses that should appear in the matching documents. 
Public Methods
static BooleanClause.Occur valueOf(String name)
final static Occur[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final BooleanClause.Occur MUST

Use this operator for clauses that must appear in the matching documents.

public static final BooleanClause.Occur MUST_NOT

Use this operator for clauses 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 clause.

public static final BooleanClause.Occur SHOULD

Use this operator for clauses that should appear in the matching documents. For a BooleanQuery with no MUST clauses one or more SHOULD clauses must match a document for the BooleanQuery to match.

Public Methods

public static BooleanClause.Occur valueOf (String name)

public static final Occur[] values ()