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
factoryFunc<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()
Returns a clone of this query.
public override object? Clone()
Returns
CreateWeight(IndexSearcher)
Expert: Constructs an appropriate Lucene.Net.Search.Weight implementation for this query.
Only implemented by primitive queries, which re-write to themselves.
public override Weight? CreateWeight(IndexSearcher searcher)
Parameters
searcherIndexSearcher
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
termsISet<Term>
Rewrite(IndexReader)
Expert: called to re-write queries into primitive queries. For example, a Lucene.Net.Search.PrefixQuery will be rewritten into a Lucene.Net.Search.BooleanQuery that consists of Lucene.Net.Search.TermQuerys.
public override Query? Rewrite(IndexReader reader)
Parameters
readerIndexReader
Returns
- Query
ToString(string)
Prints a query to a string, with field assumed to be the
default field and omitted.
public override string? ToString(string field)
Parameters
fieldstring