Adds a clause to a boolean query.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void Add(
	Query query,
	BooleanClause..::..Occur occur
)
Visual Basic
Public Overridable Sub Add ( _
	query As Query, _
	occur As BooleanClause..::..Occur _
)
Visual C++
public:
virtual void Add(
	Query^ query, 
	BooleanClause..::..Occur^ occur
)

Parameters

query
Type: Lucene.Net.Search..::..Query

[Missing <param name="query"/> documentation for "M:Lucene.Net.Search.BooleanQuery.Add(Lucene.Net.Search.Query,Lucene.Net.Search.BooleanClause.Occur)"]

occur
Type: Lucene.Net.Search..::..BooleanClause..::..Occur

[Missing <param name="occur"/> documentation for "M:Lucene.Net.Search.BooleanQuery.Add(Lucene.Net.Search.Query,Lucene.Net.Search.BooleanClause.Occur)"]

See Also