Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalRef ¶
LocalRef to be filled by the search backend to indicate that the particular reference field is a local ref and does not require further resolving, as opposed to a NetworkRef.
type Result ¶
type Result struct { ID strfmt.UUID ClassName string Score float32 SecondarySortValue float32 ExplainScore string Dist float32 Vector []float32 Beacon string Certainty float32 Schema models.PropertySchema Created int64 Updated int64 AdditionalProperties models.AdditionalProperties VectorWeights map[string]string IsConsistent bool Tenant string // Dimensions in case search was vector-based, 0 otherwise Dims int }
Result contains some info of a concept (kind), but not all. For additional info the ID can be used to retrieve the full concept from the connector storage
type SelectClass ¶
type SelectClass struct { ClassName string `json:"className"` RefProperties SelectProperties `json:"refProperties"` AdditionalProperties additional.Properties `json:"additionalProperties"` }
type SelectProperties ¶
type SelectProperties []SelectProperty
func (SelectProperties) FindProperty ¶
func (sp SelectProperties) FindProperty(propName string) *SelectProperty
func (SelectProperties) HasRefs ¶
func (sp SelectProperties) HasRefs() bool
func (SelectProperties) ShouldResolve ¶
func (sp SelectProperties) ShouldResolve(path []string) (bool, error)
type SelectProperty ¶
type SelectProperty struct { Name string `json:"name"` IsPrimitive bool `json:"isPrimitive"` // Include the __typename in all the Refs below. IncludeTypeName bool `json:"includeTypeName"` // Not a primitive type? Then select these properties. Refs []SelectClass `json:"refs"` }
func (SelectProperty) FindSelectClass ¶
func (sp SelectProperty) FindSelectClass(className schema.ClassName) *SelectClass
FindSelectClass by specifying the exact class name
func (SelectProperty) HasPeer ¶
func (sp SelectProperty) HasPeer(peerName string) bool
HasPeer returns true if any of the referenced classes are from the specified peer
Click to show internal directories.
Click to hide internal directories.