Method GetBooleanQuery
GetBooleanQuery(IList<BooleanClause>)
Factory method for generating query, given a set of clauses. By default creates a boolean query composed of clauses passed in.
Can be overridden by extending classes, to modify query being returned.
Declaration
protected virtual Query GetBooleanQuery(IList<BooleanClause> clauses)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<BooleanClause> | clauses | List that contains BooleanClause instances to join. |
Returns
Type | Description |
---|---|
Query | Resulting Query object. |
Exceptions
Type | Condition |
---|---|
ParseException | throw in overridden method to disallow |
GetBooleanQuery(IList<BooleanClause>, Boolean)
Factory method for generating query, given a set of clauses. By default creates a boolean query composed of clauses passed in.
Can be overridden by extending classes, to modify query being returned.
Declaration
protected virtual Query GetBooleanQuery(IList<BooleanClause> clauses, bool disableCoord)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<BooleanClause> | clauses | List that contains BooleanClause instances to join. |
System.Boolean | disableCoord | true if coord scoring should be disabled. |
Returns
Type | Description |
---|---|
Query | Resulting Query object. |
Exceptions
Type | Condition |
---|---|
ParseException | throw in overridden method to disallow |