package
Version:
v1.14.2
Opens a new window with list of versions in this module.
Published: Jun 19, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Hit[T any] struct {
Index string `json:"_index"`
Id string `json:"_id"`
Score interface{} `json:"_score"`
Source T `json:"_source"`
Sort []int `json:"sort"`
}
type Hits[T any] struct {
Total Total `json:"total"`
MaxScore any `json:"max_score"`
Hits []Hit[T] `json:"hits"`
}
type SearchResponse[T any] struct {
Took int `json:"took"`
TimedOut bool `json:"timed_out"`
Shards Shards `json:"_shards"`
Hits Hits[T] `json:"hits"`
}
type Shards struct {
Total int `json:"total"`
Successful int `json:"successful"`
Skipped int `json:"skipped"`
Failed int `json:"failed"`
}
type Total struct {
Value int `json:"value"`
Relation string `json:"relation"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.