Section navigation

Public classSealed TermQuery

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

Single exact-term lookup against the index.

public sealed class TermQuery : Query, IEquatable<Query>
Inheritance
TermQuery
Implements
Inherited Members
Extension Methods

Public constructor TermQuery(string, string)

Initialises a new TermQuery for the given field and term.

Public property Field

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

Public property Term

Gets the exact term to match against indexed tokens.

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 Visit(QueryVisitor)

Visits this query and its children.