Documentation
¶
Index ¶
- func GetPropertyByName(c *models.Class, propName string) (*models.Property, error)
- func HasSearchableIndex(prop *models.Property) bool
- func PropertyHasSearchableIndex(class *models.Class, tentativePropertyName string) bool
- type ExploreMove
- type GroupBy
- type HybridSearch
- type KeywordRanking
- type NearObject
- type NearTextParams
- type NearVector
- type ObjectMove
- type WeightedSearchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPropertyByName ¶ added in v1.25.1
GetPropertyByName returns the class by its name
func HasSearchableIndex ¶ added in v1.25.1
Indicates whether property should be indexed Index holds document ids with property of/containing particular value and number of its occurrences in that property (index created using bucket of StrategyMapCollection)
Types ¶
type ExploreMove ¶
type ExploreMove struct {
Values []string
Force float32
Objects []ObjectMove
}
ExploreMove moves an existing Search Vector closer (or further away from) a specific other search term
type GroupBy ¶ added in v1.19.0
type GroupBy struct {
Property string
Groups int
ObjectsPerGroup int
Properties search.SelectProperties
}
type HybridSearch ¶
type HybridSearch struct {
SubSearches interface{} `json:"subSearches"`
Type string `json:"type"`
Alpha float64 `json:"alpha"`
Query string `json:"query"`
Vector models.Vector `json:"vector"`
Properties []string `json:"properties"`
TargetVectors []string `json:"targetVectors"`
FusionAlgorithm int `json:"fusionalgorithm"`
Distance float32 `json:"distance"`
WithDistance bool `json:"withDistance"`
MinimumOrTokensMatch int `json:"minimumOrTokenMatch"`
SearchOperator string `json:"searchOperator"`
NearTextParams *NearTextParams
NearVectorParams *NearVector
}
type KeywordRanking ¶
type KeywordRanking struct {
Type string `json:"type"`
Properties []string `json:"properties"`
Query string `json:"query"`
AdditionalExplanations bool `json:"additionalExplanations"`
MinimumOrTokensMatch int `json:"minimumOrTokensMatch"`
SearchOperator string `json:"searchOperator"`
}
func (*KeywordRanking) ChooseSearchableProperties ¶ added in v1.25.1
func (k *KeywordRanking) ChooseSearchableProperties(class *models.Class)
type NearObject ¶
type NearTextParams ¶
type NearTextParams struct {
Values []string
Limit int
MoveTo ExploreMove
MoveAwayFrom ExploreMove
Certainty float64
Distance float64
WithDistance bool
Network bool
Autocorrect bool
TargetVectors []string
}
type NearVector ¶
type ObjectMove ¶
type WeightedSearchResult ¶
Click to show internal directories.
Click to hide internal directories.