Method Add
Add(Query, Occur)
Adds a clause to a boolean query.
Declaration
public virtual void Add(Query query, Occur occur)
Parameters
Type | Name | Description |
---|---|---|
Query | query | |
Occur | occur |
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If the new number of clauses exceeds the maximum clause number |
See Also
Add(BooleanClause)
Adds a clause to a boolean query.
Declaration
public virtual void Add(BooleanClause clause)
Parameters
Type | Name | Description |
---|---|---|
BooleanClause | clause |
Exceptions
Type | Condition |
---|---|
BooleanQuery.TooManyClausesException | If the new number of clauses exceeds the maximum clause number |