Class LateBoundQuery
Represents a late bound query
public class LateBoundQuery : Query
- Inheritance
-
QueryLateBoundQuery
- Inherited Members
-
Query.ToString()Query.GetHashCode()
Constructors
LateBoundQuery(Func<Query>)
public LateBoundQuery(Func<Query> factory)
Parameters
factory
Func<Query>
Properties
Boost
Gets or sets the boost for this query clause to b
. Documents
matching this clause will (in addition to the normal weightings) have
their score multiplied by b
. The boost is 1.0 by default.
public override float Boost { get; set; }
Property Value
Wrapped
The wrapped query
public Query Wrapped { get; }
Property Value
- Query
Methods
Clone()
public override object? Clone()
Returns
CreateWeight(IndexSearcher)
public override Weight? CreateWeight(IndexSearcher searcher)
Parameters
searcher
IndexSearcher
Returns
- Weight
ExtractTerms(ISet<Term>)
Expert: adds all terms occuring in this query to the terms set. Only works if this query is in its rewritten form.
public override void ExtractTerms(ISet<Term> terms)
Parameters
terms
ISet<Term>
Rewrite(IndexReader)
public override Query? Rewrite(IndexReader reader)
Parameters
reader
IndexReader
Returns
- Query
ToString(string)
public override string? ToString(string field)
Parameters
field
string