Documentation ¶
Index ¶
- type Document
- type DocumentContent
- type ES7HitsTotalCount
- type Hits
- type HitsEntry
- type HitsTotal
- type HitsTotalCount
- type IndicesStats
- type IndicesStatsAll
- type Pit
- type PitResponse
- type Result
- type Search
- type SearchInfo
- type SearchParams
- type SearchServerError
- type Shards
- type Sourcer
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Document ¶
type Document struct { Id string Content DocumentContent }
type DocumentContent ¶
type DocumentContent map[string]interface{}
type ES7HitsTotalCount ¶
type Hits ¶
type Hits struct { Total HitsTotalCount `json:"total"` HitsEntries []HitsEntry `json:"hits"` }
type HitsEntry ¶
type HitsEntry struct { Index string `json:"_index"` Type string `json:"_type"` Id string `json:"_id"` Score float64 `json:"_score"` Source DocumentContent `json:"_source"` }
type HitsTotalCount ¶
type HitsTotalCount struct {
Value int
}
func (*HitsTotalCount) UnmarshalJSON ¶
func (h *HitsTotalCount) UnmarshalJSON(i []byte) error
type IndicesStats ¶
type IndicesStats struct { Shards Shards `json:"_shards"` All IndicesStatsAll `json:"_all"` Indices map[string]interface{} `json:"indices"` }
type IndicesStatsAll ¶
type PitResponse ¶
type PitResponse struct {
Id string `json:"id"`
}
type SearchInfo ¶
type SearchParams ¶
type SearchServerError ¶
type SearchServerError struct {
StatusCode int
}
func (SearchServerError) Error ¶
func (s SearchServerError) Error() string
type Version ¶
type Version struct { Number string `json:"number"` BuildFlavor string `json:"build_flavor"` BuildType string `json:"build_type"` BuildHash string `json:"build_hash"` BuildDate time.Time `json:"build_date"` BuildSnapshot bool `json:"build_snapshot"` LuceneVersion string `json:"lucene_version"` MinimumWireCompatibilityVersion string `json:"minimum_wire_compatibility_version"` MinimumIndexCompatibilityVersion string `json:"minimum_index_compatibility_version"` }
Click to show internal directories.
Click to hide internal directories.