Table of Contents

Class LateBoundQuery

Namespace
Examine.Lucene.Search
Assembly
Examine.Lucene.dll

Represents a late bound query

public class LateBoundQuery : Query
Inheritance
Query
LateBoundQuery
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

float

Wrapped

The wrapped query

public Query Wrapped { get; }

Property Value

Query

Methods

Clone()

Returns a clone of this query.

public override object? Clone()

Returns

object

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

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)

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

reader IndexReader

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

field string

Returns

string