search

package
v0.0.0-...-95c851e Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: LGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BatchAdd indexOperation = iota + 1
	BatchDelete
)

Variables

This section is empty.

Functions

func NewBleve

func NewBleve(path string, size int64, service repo.Service, log log.Log) (bleveSearch, error)

func NewElastic

func NewElastic(url string, size int64, service repo.Service, log log.Log) (elasticSearch, error)

func Reindex

func Reindex(p Provider, repo repo.Article) error

func StripTags

func StripTags(text string) string

Types

type Provider

type Provider interface {
	IsNewIndex() bool
	Search(string, content.User, ...content.QueryOpt) ([]content.Article, error)
	BatchIndex(articles []content.Article, op indexOperation) error
	RemoveFeed(content.FeedID) error
}

Jump to

Keyboard shortcuts

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