protected GetBooleanQuery ( IList |
||
clauses | IList |
List that contains {@link BooleanClause} instances /// to join. /// |
disableCoord | bool | true if coord scoring should be disabled. /// /// |
return |
protected internal virtual Query GetBooleanQuery(IList<BooleanClause> clauses, bool disableCoord)
{
if (clauses.Count == 0)
{
return null; // all clause words were filtered away by the analyzer.
}
BooleanQuery query = NewBooleanQuery(disableCoord);
foreach (var clause in clauses)
{
query.Add(clause);
}
return query;
}
QueryParser::GetBooleanQuery ( IList |