nearestneighbors

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLimit = 10
	DefaultK     = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Extender

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

func NewExtender

func NewExtender(searcher contextionary) *Extender

func (*Extender) AdditionalPropertyDefaultValue added in v1.19.0

func (e *Extender) AdditionalPropertyDefaultValue() interface{}

func (*Extender) AdditionalPropertyFn

func (e *Extender) AdditionalPropertyFn(ctx context.Context,
	in []search.Result, params interface{}, limit *int,
	argumentModuleParams map[string]interface{}, cfg moduletools.ClassConfig,
) ([]search.Result, error)

func (*Extender) ExtractAdditionalFn

func (e *Extender) ExtractAdditionalFn(param []*ast.Argument) interface{}

func (*Extender) Multi

func (e *Extender) Multi(ctx context.Context, in []search.Result, limit *int) ([]search.Result, error)

func (*Extender) Single

func (e *Extender) Single(ctx context.Context, in *search.Result, limit *int) (*search.Result, error)

Jump to

Keyboard shortcuts

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