Documentation
¶
Index ¶
- func CertaintyToDist(certainty float64) (dist float64)
- func CertaintyToDistPtr(maybeCertainty *float64) (distPtr *float64)
- func DistToCertainty(dist float64) (certainty float64)
- type AsyncReplicationTargetNodeOverride
- type Classification
- type Group
- type GroupHitAdditional
- type GroupedBy
- type Properties
- type ReplicationProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertaintyToDist ¶
func CertaintyToDistPtr ¶
func DistToCertainty ¶
Types ¶
type AsyncReplicationTargetNodeOverride ¶ added in v1.31.0
type AsyncReplicationTargetNodeOverride struct {
CollectionID string
ShardID string
SourceNode string
TargetNode string
UpperTimeBound int64
}
func (*AsyncReplicationTargetNodeOverride) Equal ¶ added in v1.31.0
func (left *AsyncReplicationTargetNodeOverride) Equal(right *AsyncReplicationTargetNodeOverride) bool
type Classification ¶
type GroupHitAdditional ¶ added in v1.19.0
type Properties ¶
type Properties struct {
Classification bool `json:"classification"`
RefMeta bool `json:"refMeta"`
Vector bool `json:"vector"`
Vectors []string `json:"vectors"`
Certainty bool `json:"certainty"`
ID bool `json:"id"`
CreationTimeUnix bool `json:"creationTimeUnix"`
LastUpdateTimeUnix bool `json:"lastUpdateTimeUnix"`
ModuleParams map[string]interface{} `json:"moduleParams"`
Distance bool `json:"distance"`
Score bool `json:"score"`
ExplainScore bool `json:"explainScore"`
IsConsistent bool `json:"isConsistent"`
Group bool `json:"group"`
// The User is not interested in returning props, we can skip any costly
// operation that isn't required.
NoProps bool `json:"noProps"`
// ReferenceQuery is used to indicate that a search
// is being conducted on behalf of a referenced
// property. for example: this is relevant when a
// where filter operand is passed in with a path to
// a referenced class, rather than a path to one of
// its own props.
//
// The reason we need this indication is that
// without it, the sub-Search which is
// conducted to extract the reference propValuePair
// is conducted with the pagination set to whatever
// the QueryMaximumResults. if this value is set low
// relative to the number of objects being searched,
// weaviate will be unable to find enough results to
// make any comparisons, and erroneously returns
// empty, or with fewer results than expected.
ReferenceQuery bool `json:"-"`
}
type ReplicationProperties ¶
type ReplicationProperties struct {
// ConsistencyLevel indicates how many nodes should
// respond to a request before it is considered
// successful. Can be "ONE", "QUORUM", or "ALL"
//
// This is only relevant for a replicated
// class
ConsistencyLevel string
// NodeName is the node which is expected to
// fulfill the request
NodeName string
}
ReplicationProperties are replication-related handles and configurations which allow replication context to pass through different layers of abstraction, usually initiated via client requests
Click to show internal directories.
Click to hide internal directories.