index

package
v2.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(index string, client *elasticsearch.TypedClient) *Client

func (*Client) GetDocuments

func (c *Client) GetDocuments(ctx context.Context, identifiers ...string) (map[string]*schema.UBSchema, error)

func (*Client) Index

func (c *Client) Index() string

func (*Client) Search added in v2.0.4

func (c *Client) Search(ctx context.Context, querystring string, filter map[string]string, vectorMarc, vectorJson, vectorProse []float32, from, num int64) (*Result, error)

func (*Client) SearchKNN added in v2.0.8

func (c *Client) SearchKNN(ctx context.Context, filter map[string]string, vector []float32, vectorField string, k int64, numCandidates int64) (*Result, error)

type Result added in v2.0.7

type Result struct {
	Docs  map[string]*schema.UBSchema
	Total int64
	From  int64
	Num   int64
}

Jump to

Keyboard shortcuts

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