search

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	Query  string
	Offset int
	Limit  int
	Filter string
}

type Result

type Result[T any] struct {
	Hits       []T
	Total      int64
	Offset     int
	Limit      int
	Processing int64
}

type Searcher

type Searcher[T any] interface {
	Index(ctx context.Context, docs ...T) error
	Delete(ctx context.Context, ids ...string) error
	Search(ctx context.Context, params Params) (*Result[T], error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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