Class BooleanQuery
A Query that matches documents matching boolean combinations of other queries, e.g. TermQuerys, PhraseQuerys or other BooleanQuerys.
Inherited Members
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public class BooleanQuery : Query, Collections.Generic.IEnumerable<BooleanClause>, ICloneable
Constructors
Name | Description |
---|---|
BooleanQuery() | Constructs an empty boolean query. |
BooleanQuery(Boolean) | Constructs an empty boolean query. Coord(Int32, Int32) may be disabled in scoring, as appropriate. For example, this score factor does not make sense for most automatically generated queries, like WildcardQuery and FuzzyQuery . |
Fields
Name | Description |
---|---|
minNrShouldMatch |
Properties
Name | Description |
---|---|
Clauses | Returns the list of clauses in this query. |
MaxClauseCount | Gets or sets the maximum number of clauses permitted, 1024 by default. Attempts to add more than the permitted number of clauses cause BooleanQuery.TooManyClauses to be thrown. |
MinimumNumberShouldMatch | Specifies a minimum number of the optional BooleanClauses which must be satisfied. By default no optional clauses are necessary for a match (unless there are no required clauses). If this method is used, then the specified number of clauses is required. Use of this method is totally independent of specifying that any specific clauses are required (or prohibited). This number will only be compared against the number of matching optional clauses. |
Methods
Name | Description |
---|---|
Add(BooleanClause) | Adds a clause to a boolean query. |
Add(Query, Occur) | Adds a clause to a boolean query. |
Clone() | |
CreateWeight(Searcher) | |
Equals(Object) | Returns true iff |
ExtractTerms(Collections.Generic.ISet<Term>) | |
GetClauses() | Returns the set of clauses in this query. |
GetEnumerator() | Returns an iterator on the clauses in this query. |
GetHashCode() | Returns a hash code value for this object. |
GetSimilarity(Searcher) | |
IsCoordDisabled() | Returns true iff Coord(Int32, Int32) is disabled in scoring for this query instance. |
Rewrite(IndexReader) | |
ToString(String) | Prints a user-readable version of this query. |