schema

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ESHit

type ESHit struct {
	Index string      `json:"_index"`
	Type  string      `json:"_type"`
	ID    string      `json:"_id"`
	Score interface{} `json:"_score"`
	// Source Source      `json:"_source"` // Custom Source (define as we need)
	Sort []interface{} `json:"sort"`
}

ESHit represent ESHit

type ESHits

type ESHits struct {
	Total    *ESTotal    `json:"total"`
	MaxScore interface{} `json:"max_score"`
}

ESHits represent ESHits

type ESIndexSearchResponse

type ESIndexSearchResponse struct {
	Took     int64     `json:"took"`
	TimedOut bool      `json:"timed_out"`
	Shards   *ESShards `json:"_shards"`
}

ESIndexSearchResponse represent ESIndexSearchResponse

type ESShards

type ESShards struct {
	Total      int64 `json:"total"`
	Successful int64 `json:"successful"`
	Skipped    int64 `json:"skipped"`
	Failed     int64 `json:"failed"`
}

ESShards represent ESShards

type ESTotal

type ESTotal struct {
	Value    int64  `json:"value"`
	Relation string `json:"relation"`
}

ESTotal represent ESTotal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL