Section navigation

Public classStatic QueryBuilder

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

Compile-time-safe fluent builder for constructing query trees.

public static class QueryBuilder
Inheritance
QueryBuilder

Public method BinaryPointInSet(string, params byte[][])

Public method BinaryRange(string, ReadOnlyMemory<byte>?, ReadOnlyMemory<byte>?, bool, bool)

Creates a BinaryRangeQuery.

Public method Bool(Action<BooleanQueryBuilder>)

Starts building a BooleanQuery using a fluent callback.

Public method ConstantScore(Query, float)

Creates a ConstantScoreQuery.

Public method DisMax(float, params Query[])

Starts building a DisjunctionMaxQuery.

Public method Fuzzy(string, string, int)

Creates a FuzzyQuery.

Public method InetAddressPointInSet(string, params IPAddress[])

Public method InetAddressRange(string, IPAddress, IPAddress, bool, bool)

Public method Int32PointInSet(string, params int[])

Public method Int32Range(string, int, int, bool, bool)

Creates an Int32RangeQuery.

Public method Int64Range(string, long, long, bool, bool)

Creates an Int64RangeQuery.

Public method Phrase(string, int, params string[])

Creates a PhraseQuery with the given slop.

Public method Phrase(string, params string[])

Creates a PhraseQuery.

Public method Phrase(string, string[], int[], int)

Creates a PhraseQuery with explicit term positions.

Public method Prefix(string, string)

Creates a PrefixQuery.

Public method Range(string, double, double, bool, bool)

Creates a RangeQuery.

Public method Regexp(string, string)

Creates a RegexpQuery.

Public method SinglePointInSet(string, params float[])

Public method SingleRange(string, float, float, bool, bool)

Creates a SingleRangeQuery.

Public method Synonym(string, params string[])

Creates a SynonymQuery.

Public method Term(string, string)

Creates a TermQuery.

Public method TermRange(string, string?, string?, bool, bool)

Creates a TermRangeQuery.

Public method Vector(string, float[], int)

Creates a VectorQuery.

Public method Wildcard(string, string)

Creates a WildcardQuery.