Section navigation

Public classSealed PhraseQuery

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

Exact ordered phrase match using positional data, with optional slop.

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

Public constructor PhraseQuery(string, int, params string[])

Initialises a new PhraseQuery with the specified field, slop, and terms.

Public constructor PhraseQuery(string, params string[])

Initialises a new PhraseQuery with the specified field and terms.

Public constructor PhraseQuery(string, string[], int[], int)

Initialises a phrase query with explicit term positions.

Public property Field

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

Public property Positions

Gets the explicit position for each term.

Public property QualifiedTerms

Gets the qualified term strings ("field\0term") for each phrase term, lazily computed.

Public property Slop

Maximum number of positional gaps allowed between terms. 0 = exact phrase.

Public property Terms

Gets the ordered terms that form the phrase.

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.