nearText

package
v1.23.6 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: BSD-3-Clause Imports: 10 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 GraphQLArgumentsProvider added in v1.23.3

type GraphQLArgumentsProvider struct {
	// contains filtered or unexported fields
}

func New added in v1.23.3

func (*GraphQLArgumentsProvider) Arguments added in v1.23.3

type NearTextParams

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

func (NearTextParams) GetCertainty

func (n NearTextParams) GetCertainty() float64

func (NearTextParams) GetDistance

func (n NearTextParams) GetDistance() float64

func (NearTextParams) SimilarityMetricProvided

func (n NearTextParams) SimilarityMetricProvided() bool

func (NearTextParams) Validate

func (n NearTextParams) Validate() error

type ObjectMove

type ObjectMove struct {
	ID     string
	Beacon string
}

type Searcher added in v1.23.3

type Searcher struct {
	// contains filtered or unexported fields
}

func NewSearcher added in v1.23.3

func NewSearcher(vectorizer vectorizer) *Searcher

func (*Searcher) VectorSearches added in v1.23.3

func (s *Searcher) VectorSearches() map[string]modulecapabilities.VectorForParams

Jump to

Keyboard shortcuts

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