Back to godoc.org

Package search

v0.0.0-...-ffd16d0
Latest Go to latest

The latest major version is .

Published: Jul 8, 2020 | License: LGPL-3.0 | Module: github.com/urandom/readeef

Index

Constants

const (
	BatchAdd indexOperation = iota + 1
	BatchDelete
)

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

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
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier