Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregation ¶
type AuthorFacet ¶
func (*AuthorFacet) GetName ¶
func (af *AuthorFacet) GetName() string
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func NewMiddleware ¶
func NewMiddleware(es elastic.Client) *Middleware
func (*Middleware) Search ¶
func (m *Middleware) Search(index string, facets *SearchFacets) (*Result, error)
type PersonFacet ¶
func (PersonFacet) FromJSON ¶
func (sf PersonFacet) FromJSON(dataBytes []byte) ([]*PersonFacetResult, error)
func (*PersonFacet) GetName ¶
func (sf *PersonFacet) GetName() string
type PersonFacetResult ¶
type PersonFacets ¶
type PersonFacets []*PersonFacet
func (PersonFacets) FromJSON ¶
func (sf PersonFacets) FromJSON(dataBytes []byte) (*PersonFacetsResult, error)
func (PersonFacets) GetName ¶
func (PersonFacets) GetName() string
type PersonFacetsResult ¶
type PersonFacetsResult struct { DocCount int `json:"-"` Facets map[string][]*PersonFacetResult }
type SearchFacets ¶
type SearchFacets struct { StringFacets StringFacets PersonFacets PersonFacets }
type StringFacet ¶
func (StringFacet) FromJSON ¶
func (sf StringFacet) FromJSON(dataBytes []byte) ([]*StringFacetResult, error)
func (*StringFacet) GetName ¶
func (sf *StringFacet) GetName() string
type StringFacetResult ¶
type StringFacets ¶
type StringFacets []*StringFacet
func (StringFacets) FromJSON ¶
func (sf StringFacets) FromJSON(dataBytes []byte) (*StringFacetsResult, error)
func (StringFacets) GetName ¶
func (StringFacets) GetName() string
type StringFacetsResult ¶
type StringFacetsResult struct { DocCount int `json:"-"` Facets map[string][]*StringFacetResult }
Click to show internal directories.
Click to hide internal directories.