Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SearchServiceClient ¶
type SearchServiceClient interface {
SearchService(queryString string, from int, size int, searchFields map[string]interface{}, includeFields []string) (ServiceHits, error)
}
func NewSearchServiceClient ¶
func NewSearchServiceClient(esUrl *url.URL) (SearchServiceClient, error)
type ServiceAggregations ¶
type ServiceAggregations struct { AgeGroup common.Aggregation `json:"ageGroup,omitempty"` Branch common.Aggregation `json:"branch,omitempty"` Direction common.Aggregation `json:"direction,omitempty"` FocusArea common.Aggregation `json:"focusArea,omitempty"` Frequency common.Aggregation `json:"frequency,omitempty"` ExtendedUsage common.Aggregation `json:"extendedUsage,omitempty"` LifeCycle common.Aggregation `json:"lifeCycle,omitempty"` TargetArea common.Aggregation `json:"targetArea,omitempty"` TargetAudience common.Aggregation `json:"targetAudience,omitempty"` Season common.Aggregation `json:"season,omitempty"` ServiceForm common.Aggregation `json:"serviceForm,omitempty"` ServiceType common.Aggregation `json:"serviceType,omitempty"` Status common.Aggregation `json:"status,omitempty"` DontShowOnWeb common.Aggregation `json:"dontShowOnWeb,omitempty"` }
type ServiceHits ¶
type ServiceHits struct { TotalHits int `json:"totalHits,omitempty"` Hits []map[string]interface{} `json:"hits,omitempty"` Aggregations ServiceAggregations `json:"aggregations,omitempty"` }
Click to show internal directories.
Click to hide internal directories.