package
Version:
v1.60.2
Opens a new window with list of versions in this module.
Published: Dec 13, 2024
License: AGPL-3.0, AGPL-3.0-or-later
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
-
type Query
-
func All(queries ...Query) Query
-
func Any(queries ...Query) Query
-
func Between(field string, from, to any) Query
-
func Bool(all []Query, none []Query) Query
-
func Exists(field string) Query
-
func GreaterThan(field string, value any) Query
-
func GreaterThanOrEqual(field string, value any) Query
-
func Ids(values ...string) Query
-
func LessThan(field string, value any) Query
-
func LessThanOrEqual(field string, value any) Query
-
func Match(field string, value any) Query
-
func MatchAll() Query
-
func MatchPhrase(field, value string) Query
-
func Nested(path string, query Query) Query
-
func Not(query Query) Query
-
func Term(field string, value any) Query
-
type Sort
All is a shortcut for a bool query with a must clause
Any is a shortcut for a bool query with a should clause
Between is a shortcut for a range query where from <= x < to
Bool is a shortcut for a bool query with multiple must and must_not clauses
Exists is a shortcut for an exists query
GreaterThan is a shortcut for a range query where x > value
GreaterThanOrEqual is a shortcut for a range query where x >= value
Not is a shortcut for an ids query
LessThan is a shortcut for a range query where x < value
LessThanOrEqual is a shortcut for a range query where x <= value
Match is a shortcut for a match query
MatchAll is a shortcut for a match all query
MatchPhrase is a shortcut for a match_phrase query
Nested is a shortcut for a nested query
Not is a shortcut for a bool query with a must_not clause
Term is a shortcut for a term query
SortBy is a shortcut for a simple field sort
SortNested is a shortcut for a nested field sort
Source Files
¶
Click to show internal directories.
Click to hide internal directories.