Documentation ¶
Index ¶
- type Builder
- func (b *Builder) Build() *Query
- func (b *Builder) Facets(facets Facets) *Builder
- func (b *Builder) Filter(w *filter.WrappedFilter) *Builder
- func (b *Builder) GroupBy(groupBy GroupBy) *Builder
- func (b *Builder) NoSearchFilter(w *filter.WrappedFilter) *Builder
- func (b *Builder) PageSize(s int) *Builder
- func (b *Builder) Query(q string) *Builder
- func (b *Builder) ReadFields(f *read.FieldFactory) *Builder
- func (b *Builder) SearchFields(f []string) *Builder
- func (b *Builder) SortOrder(o *sort.Ordering) *Builder
- func (b *Builder) VectorSearch(vecSearch VectorSearch) *Builder
- type FacetField
- type Facets
- type GroupBy
- type Query
- func (q *Query) HasNoSearchFilter() bool
- func (q *Query) IsGroupByQuery() bool
- func (q *Query) IsQAndVectorBoth() bool
- func (q *Query) IsVectorSearch() bool
- func (q *Query) ToSearchFacetSize() int
- func (q *Query) ToSearchFacets() string
- func (q *Query) ToSearchFields() string
- func (q *Query) ToSearchGroupBy() string
- func (q *Query) ToSearchVector() string
- func (q *Query) ToSortFields() string
- type VectorSearch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) NoSearchFilter ¶
func (b *Builder) NoSearchFilter(w *filter.WrappedFilter) *Builder
NoSearchFilter allows to send the empty filter to search. If this is set then we send empty filter to search but still use "WrappedF"(above) filter for in-memory filtering.
func (*Builder) ReadFields ¶
func (b *Builder) ReadFields(f *read.FieldFactory) *Builder
func (*Builder) SearchFields ¶
func (*Builder) VectorSearch ¶
func (b *Builder) VectorSearch(vecSearch VectorSearch) *Builder
type FacetField ¶
func NewFacetField ¶
func NewFacetField(name string, value jsoniter.RawMessage) (FacetField, error)
type Facets ¶
type Facets struct {
Fields []FacetField
}
func UnmarshalFacet ¶
func UnmarshalFacet(input jsoniter.RawMessage) (Facets, error)
type GroupBy ¶
func UnmarshalGroupBy ¶
func UnmarshalGroupBy(input jsoniter.RawMessage) (GroupBy, error)
type Query ¶
type Query struct { Q string SearchFields []string Facets Facets PageSize int WrappedF *filter.WrappedFilter NoSearchFilter *filter.WrappedFilter ReadFields *read.FieldFactory SortOrder *sort.Ordering GroupBy GroupBy VectorS VectorSearch }
func (*Query) HasNoSearchFilter ¶
func (*Query) IsGroupByQuery ¶
func (*Query) IsQAndVectorBoth ¶
func (*Query) IsVectorSearch ¶
func (*Query) ToSearchFacetSize ¶
func (*Query) ToSearchFacets ¶
func (*Query) ToSearchFields ¶
func (*Query) ToSearchGroupBy ¶
func (*Query) ToSearchVector ¶
func (*Query) ToSortFields ¶
type VectorSearch ¶
type VectorSearch struct { TopK int `json:"top_k,omitempty"` VectorF string VectorV []float64 RawVectorV []byte }
func UnmarshalVectorSearch ¶
func UnmarshalVectorSearch(input jsoniter.RawMessage) (VectorSearch, error)
Click to show internal directories.
Click to hide internal directories.