elasticsearch

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ESIndexSkuInventory = eSIndexPrefix + "sku-inventory"
	ESIndexShop         = eSIndexPrefix + "shop"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchHits

type SearchHits struct {
	Total struct {
		Value    int    `json:"value"`
		Relation string `json:"relation"`
	} `json:"total"`
	MaxScore float64 `json:"max_score"`
	Hits     []struct {
		Index  string                 `json:"_index"`
		Type   string                 `json:"_type"`
		ID     string                 `json:"_id"`
		Score  float64                `json:"_score"`
		Source map[string]interface{} `json:"_source"`
	} `json:"hits"`
}

type SearchResponse

type SearchResponse struct {
	Took     int  `json:"took"`
	TimedOut bool `json:"timed_out"`
	Shards   struct {
		Total      int `json:"total"`
		Successful int `json:"successful"`
		Skipped    int `json:"skipped"`
		Failed     int `json:"failed"`
	} `json:"_shards"`
	Hits SearchHits `json:"hits"`
}

Jump to

Keyboard shortcuts

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