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) 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
- type FacetField
- type Facets
- type Query
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) ReadFields ¶
func (b *Builder) ReadFields(f *read.FieldFactory) *Builder
func (*Builder) SearchFields ¶
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 Query ¶
type Query struct { Q string SearchFields []string Facets Facets PageSize int WrappedF *filter.WrappedFilter ReadFields *read.FieldFactory SortOrder *sort.Ordering }
func (*Query) ToSearchFacetSize ¶
func (*Query) ToSearchFacets ¶
func (*Query) ToSearchFields ¶
func (*Query) ToSortFields ¶
Click to show internal directories.
Click to hide internal directories.