neartext

package
v1.19.2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 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

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

func New

func (*GraphQLArgumentsProvider) Arguments

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

type ObjectMove

type ObjectMove struct {
	ID     string
	Beacon string
}

type Searcher

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

func NewSearcher

func NewSearcher(vectorizer vectorizer) *Searcher

func (*Searcher) VectorSearches

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