searchparams

package
v1.19.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
}

type HybridSearch

type HybridSearch struct {
	SubSearches interface{} `json:"subSearches"`
	Type        string      `json:"type"`
	Limit       int         `json:"limit"`
	Alpha       float64     `json:"alpha"`
	Query       string      `json:"query"`
	Vector      []float32   `json:"vector"`
	Properties  []string    `json:"properties"`
}

type KeywordRanking

type KeywordRanking struct {
	Type                   string   `json:"type"`
	Properties             []string `json:"properties"`
	Query                  string   `json:"query"`
	AdditionalExplanations bool     `json:"additionalExplanations"`
}

type NearObject

type NearObject struct {
	ID           string  `json:"id"`
	Beacon       string  `json:"beacon"`
	Certainty    float64 `json:"certainty"`
	Distance     float64 `json:"distance"`
	WithDistance bool    `json:"-"`
}

type NearTextParams

type NearTextParams struct {
	Values       []string
	Limit        int
	MoveTo       ExploreMove
	MoveAwayFrom ExploreMove
	Certainty    float64
	Distance     float64
	WithDistance bool
	Network      bool
	Autocorrect  bool
}

type NearVector

type NearVector struct {
	Vector       []float32 `json:"vector"`
	Certainty    float64   `json:"certainty"`
	Distance     float64   `json:"distance"`
	WithDistance bool      `json:"-"`
}

type ObjectMove

type ObjectMove struct {
	ID     string
	Beacon string
}

type WeightedSearchResult

type WeightedSearchResult struct {
	SearchParams interface{} `json:"searchParams"`
	Weight       float64     `json:"weight"`
	Type         string      `json:"type"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL