nearText

package
v1.22.11 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: BSD-3-Clause Imports: 1 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 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
}

Jump to

Keyboard shortcuts

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