Discover Packages
github.com/codfrm/cago
database
elasticsearch
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Mar 1, 2024
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type ErrorResponse struct {
Info *ErrorInfo `json:"error,omitempty"`
}
type IndexResponse struct {
Index string `json:"_index"`
ID string `json:"_id"`
Version int `json:"_version"`
Result string
}
type SearchHit[T any ] struct {
Score float64 `json:"_score"`
Index string `json:"_index"`
Type string `json:"_type"`
Version int64 `json:"_version,omitempty"`
Source T `json:"_source"`
}
type SearchResponse[T any ] struct {
Took int64
Hits struct {
Total struct {
Value int64
}
Hits []*SearchHit [T]
}
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.