search

package
v1.0.1-0...-3379034 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(cfg *search_config.Config) (*Engine, error)

func (*Engine) Close

func (e *Engine) Close() error

func (*Engine) IndexPosts

func (e *Engine) IndexPosts(ctx context.Context, posts []*proto.Post) (err error)

func (*Engine) SearchPosts

func (e *Engine) SearchPosts(ctx context.Context, search string) (posts []*SearchResult, err error)

type SearchResult

type SearchResult struct {
	Post      proto.Post
	Locations search.FieldTermLocationMap
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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