readeef: github.com/urandom/readeef/content/search Index | Files

package search

import "github.com/urandom/readeef/content/search"

Index

Package Files

bleve.go elastic.go search.go

Constants

const (
    BatchAdd indexOperation = iota + 1
    BatchDelete
)

func NewBleve Uses

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

func NewElastic Uses

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

func Reindex Uses

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

func StripTags Uses

func StripTags(text string) string

type Provider Uses

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 search imports 20 packages (graph) and is imported by 4 packages. Updated 2018-06-09. Refresh now. Tools for package owners.