Discover Packages
github.com/karim-w/nselastic
impl
index
package
Version:
v0.0.6
Opens a new window with list of versions in this module.
Published: Apr 25, 2025
License: BSD-3-Clause
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
Documentation
¶
type Delete struct {
Index string `json:"_index"`
ID string `json:"_id"`
Version int64 `json:"_version"`
Result string `json:"result"`
Shards Shards `json:"_shards"`
SeqNo int64 `json:"_seq_no"`
PrimaryTerm int64 `json:"_primary_term"`
Status int64 `json:"status"`
}
type Hit[T any ] struct {
Index string `json:"_index"`
ID string `json:"_id"`
Score any `json:"_score"`
Source T `json:"_source"`
}
type Hits[T any ] struct {
Total Total `json:"total"`
MaxScore any `json:"max_score"`
Hits []Hit [T] `json:"hits"`
}
type Item struct {
Delete Delete `json:"delete"`
}
type Shards struct {
Total int64 `json:"total"`
Successful int64 `json:"successful"`
Failed int64 `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.