C# Class Lucene.Net.Search.Occur

Inheritance: Lucene.Net.Util.Parameter
Show file Open project: synhershko/lucene.net Class Usage Examples

Public Properties

Property Type Description
MUST Occur
MUST_NOT Occur
SHOULD Occur

Public Methods

Method Description
ToString ( ) : System.String

Private Methods

Method Description
Occur ( System name ) : System

Method Details

ToString() public method

public ToString ( ) : System.String
return System.String

Property Details

MUST public static property

Use this operator for clauses that must appear in the matching documents.
public static Occur,Lucene.Net.Search MUST
return Occur

MUST_NOT public static property

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 Occur,Lucene.Net.Search MUST_NOT
return Occur

SHOULD public static property

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 static Occur,Lucene.Net.Search SHOULD
return Occur