Versions in this module Expand all Collapse all v0 v0.27.1 Sep 13, 2017 Changes in this version + var DefaultConfig = Config + type Config struct + IncludeNewer bool + Indices IndexConfigs + Threshold int + ToLower bool + func DecodeConfig(in interface{}) (Config, error) + func (c *Config) Add(index IndexConfig) + type Document interface + PubDate func() time.Time + SearchKeywords func(cfg IndexConfig) ([]Keyword, error) + type IndexConfig struct + Name string + Pattern string + ToLower bool + Weight int + func (cfg IndexConfig) ToKeywords(v interface{}) ([]Keyword, error) + type IndexConfigs []IndexConfig + type InvertedIndex struct + func NewInvertedIndex(cfg Config) *InvertedIndex + func (idx *InvertedIndex) Add(docs ...Document) error + func (idx *InvertedIndex) SearchDoc(doc Document, indices ...string) ([]Document, error) + func (idx *InvertedIndex) SearchKeyValues(args ...types.KeyValues) ([]Document, error) + type Keyword interface + String func() string + func StringsToKeywords(s ...string) []Keyword + type StringKeyword string + func (s StringKeyword) String() string