
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
PhraseQuery(string, int, params string[])
Initialises a new PhraseQuery with the specified field, slop, and terms.
PhraseQuery(string, params string[])
Initialises a new PhraseQuery with the specified field and terms.
PhraseQuery(string, string[], int[], int)
Initialises a phrase query with explicit term positions.
Field
Gets the single field this query targets, or an empty value for fieldless and multi-field queries.
Positions
Gets the explicit position for each term.
QualifiedTerms
Gets the qualified term strings ("field\0term") for each phrase term, lazily computed.
Slop
Maximum number of positional gaps allowed between terms. 0 = exact phrase.
Terms
Gets the ordered terms that form the phrase.
Equals(object?)
Determines whether the specified object is equal to the current object.
GetHashCode()
Serves as the default hash function.
Visit(QueryVisitor)
Visits this query and its children.