Documentation
¶
Index ¶
- type CountValue
- type CreateIndexResponse
- type ESBucket
- type ESDimensions
- type ESDocCounts
- type ESHighlight
- type ESResponseAggregations
- type ESResponseHit
- type ESResponseHits
- type ESSourceDocument
- type EsResponse
- type EsResponses
- type FilterCount
- type HighlightObj
- type Item
- type Option
- type ReleaseDateChange
- type SearchResponse
- type SearchSuggest
- type Suggest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountValue ¶
type CountValue struct {
Value int `json:"value"`
}
type CreateIndexResponse ¶
type CreateIndexResponse struct {
IndexName string `json:"index_name"`
}
type ESDimensions ¶
type ESDocCounts ¶
type ESDocCounts struct {
Buckets []ESBucket `json:"buckets"`
}
type ESHighlight ¶
type ESResponseAggregations ¶
type ESResponseAggregations struct {
ContentTypes ESDocCounts `json:"content_types"`
Topic ESDocCounts `json:"topic"`
Dimensions ESDocCounts `json:"dimensions"`
DistinctTopicCount CountValue `json:"distinct_topics_count"`
}
type ESResponseHit ¶
type ESResponseHit struct {
Source ESSourceDocument `json:"_source"`
Highlight *ESHighlight `json:"highlight"`
}
type ESResponseHits ¶
type ESResponseHits struct {
Total int
Hits []ESResponseHit `json:"hits"`
}
type ESSourceDocument ¶
type ESSourceDocument struct {
DataType string `json:"type"`
CDID string `json:"cdid"`
DatasetID string `json:"dataset_id"`
Edition string `json:"edition"`
Keywords []string `json:"keywords"`
MetaDescription string `json:"meta_description"`
ReleaseDate string `json:"release_date,omitempty"`
Summary string `json:"summary"`
Title string `json:"title"`
Topics []string `json:"topics"`
URI string `json:"uri"`
Highlight *HighlightObj `json:"highlight,omitempty"`
DateChanges []ReleaseDateChange `json:"date_changes,omitempty"`
Cancelled bool `json:"cancelled,omitempty"`
CanonicalTopic string `json:"canonical_topic"`
Finalised bool `json:"finalised,omitempty"`
ProvisionalDate string `json:"provisional_date,omitempty"`
Published bool `json:"published,omitempty"`
Language string `json:"language,omitempty"`
Survey string `json:"survey,omitempty"`
Dimensions []ESDimensions `json:"dimensions,omitempty"`
}
type EsResponse ¶
type EsResponse struct {
Took int `json:"took"`
Hits ESResponseHits `json:"hits"`
Aggregations ESResponseAggregations `json:"aggregations"`
Suggest Suggest `json:"suggest"`
}
type EsResponses ¶
type EsResponses struct {
Responses []*EsResponse `json:"responses"`
}
EsResponse holds a response slice from ES
type FilterCount ¶
type FilterCount struct {
Type string `json:"type"`
Label string `json:"label"`
Count int `json:"count"`
}
FilterCount represents the API response for an aggregation
type HighlightObj ¶
type Item ¶
type Item struct {
DataType string `json:"type"`
CDID string `json:"cdid"`
DatasetID string `json:"dataset_id"`
Edition string `json:"edition"`
Keywords []string `json:"keywords"`
MetaDescription string `json:"meta_description"`
ReleaseDate string `json:"release_date,omitempty"`
Summary string `json:"summary"`
Title string `json:"title"`
Topics []string `json:"topics"`
URI string `json:"uri"`
Highlight *HighlightObj `json:"highlight,omitempty"`
DateChanges []ReleaseDateChange `json:"date_changes,omitempty"`
Cancelled bool `json:"cancelled,omitempty"`
CanonicalTopic string `json:"canonical_topic"`
Finalised bool `json:"finalised,omitempty"`
ProvisionalDate string `json:"provisional_date,omitempty"`
Published bool `json:"published,omitempty"`
Language string `json:"language,omitempty"`
Survey string `json:"survey,omitempty"`
Dimensions []ESDimensions `json:"dimensions,omitempty"`
}
type ReleaseDateChange ¶
type ReleaseDateChange struct {
ChangeNotice string `json:"change_notice"`
Date string `json:"previous_date"`
}
ReleaseDateChange represent a date change of a release
type SearchResponse ¶
type SearchResponse struct {
Count int `json:"count"`
Took int `json:"took"`
DistinctItemsCount int `json:"distinct_items_count"`
Topics []FilterCount `json:"topics"`
ContentTypes []FilterCount `json:"content_types"`
Items []Item `json:"items"`
Suggestions []string `json:"suggestions,omitempty"`
AdditionSuggestions []string `json:"additional_suggestions,omitempty"`
Dimensions []FilterCount `json:"dimensions,omitempty"`
}
type SearchSuggest ¶
type Suggest ¶
type Suggest struct {
SearchSuggest []SearchSuggest `json:"search_suggest"`
}
Click to show internal directories.
Click to hide internal directories.