Section navigation

Public classAbstract Query

Namespace
Rowles.LeanCorpus.Search
Assembly
Rowles.LeanCorpus.dll

Base class for all query types.

public abstract class Query : IEquatable<Query>
Inheritance
Query
Implements
Derived
Extension Methods

Public property Boost

Boost factor applied to this query's score. Default 1.0.

Public property Field

Gets the single field this query targets, or an empty value for fieldless and multi-field queries.

Public method CombineBoost(int)

Helper to combine boost into a hash code.

Public method CreateWeight(IndexSearcher)

Creates a custom weight for this query, or null to use built-in dispatch.

Public method Equals(Query?)

Indicates whether the current object is equal to another object of the same type.

Public method Equals(object?)

Determines whether the specified object is equal to the current object.

Public method GetHashCode()

Serves as the default hash function.

Public method Rewrite()

Rewrites this query to an executable query form. Custom query types can override this to lower themselves to built-in queries.

Public method Visit(QueryVisitor)

Visits this query and its children.