search

package
Version: v0.0.0-...-205d95a Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 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
t or T : Toggle theme light dark auto