Versions in this module Expand all Collapse all v2 v2.4.3 Mar 29, 2024 v2.4.2 Mar 29, 2024 Changes in this version + var ErrAlreadyDefined = fmt.Errorf("item already defined") + func AnalyzerBuild(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + func AnalyzerTypesAndInstances() ([]string, []string) + func CharFilterBuild(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + func CharFilterTypesAndInstances() ([]string, []string) + func DateTimeParserBuild(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + func DateTimeParserTypesAndInstances() ([]string, []string) + func FragmentFormatterBuild(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + func FragmentFormatterTypesAndInstances() ([]string, []string) + func FragmenterBuild(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + func FragmenterTypesAndInstances() ([]string, []string) + func HighlighterBuild(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + func HighlighterTypesAndInstances() ([]string, []string) + func IndexTypesAndInstances() ([]string, []string) + func KVStoreTypesAndInstances() ([]string, []string) + func RegisterAnalyzer(name string, constructor AnalyzerConstructor) + func RegisterCharFilter(name string, constructor CharFilterConstructor) + func RegisterDateTimeParser(name string, constructor DateTimeParserConstructor) + func RegisterFragmentFormatter(name string, constructor FragmentFormatterConstructor) + func RegisterFragmenter(name string, constructor FragmenterConstructor) + func RegisterHighlighter(name string, constructor HighlighterConstructor) + func RegisterIndexType(name string, constructor IndexTypeConstructor) + func RegisterKVStore(name string, constructor KVStoreConstructor) + func RegisterTokenFilter(name string, constructor TokenFilterConstructor) + func RegisterTokenMap(name string, constructor TokenMapConstructor) + func RegisterTokenizer(name string, constructor TokenizerConstructor) + func TokenFilterBuild(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + func TokenFilterTypesAndInstances() ([]string, []string) + func TokenMapBuild(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + func TokenMapTypesAndInstances() ([]string, []string) + func TokenizerBuild(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + func TokenizerTypesAndInstances() ([]string, []string) + type AnalyzerCache struct + func NewAnalyzerCache() *AnalyzerCache + func (c *AnalyzerCache) AnalyzerNamed(name string, cache *Cache) (analysis.Analyzer, error) + func (c *AnalyzerCache) DefineAnalyzer(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.Analyzer, error) + type AnalyzerConstructor func(config map[string]interface{}, cache *Cache) (analysis.Analyzer, error) + type AnalyzerRegistry map[string]AnalyzerConstructor + type Cache struct + Analyzers *AnalyzerCache + CharFilters *CharFilterCache + DateTimeParsers *DateTimeParserCache + FragmentFormatters *FragmentFormatterCache + Fragmenters *FragmenterCache + Highlighters *HighlighterCache + TokenFilters *TokenFilterCache + TokenMaps *TokenMapCache + Tokenizers *TokenizerCache + func NewCache() *Cache + func (c *Cache) AnalyzerNamed(name string) (analysis.Analyzer, error) + func (c *Cache) CharFilterNamed(name string) (analysis.CharFilter, error) + func (c *Cache) DateTimeParserNamed(name string) (analysis.DateTimeParser, error) + func (c *Cache) DefineAnalyzer(name string, config map[string]interface{}) (analysis.Analyzer, error) + func (c *Cache) DefineCharFilter(name string, config map[string]interface{}) (analysis.CharFilter, error) + func (c *Cache) DefineDateTimeParser(name string, config map[string]interface{}) (analysis.DateTimeParser, error) + func (c *Cache) DefineFragmentFormatter(name string, config map[string]interface{}) (highlight.FragmentFormatter, error) + func (c *Cache) DefineFragmenter(name string, config map[string]interface{}) (highlight.Fragmenter, error) + func (c *Cache) DefineHighlighter(name string, config map[string]interface{}) (highlight.Highlighter, error) + func (c *Cache) DefineTokenFilter(name string, config map[string]interface{}) (analysis.TokenFilter, error) + func (c *Cache) DefineTokenMap(name string, config map[string]interface{}) (analysis.TokenMap, error) + func (c *Cache) DefineTokenizer(name string, config map[string]interface{}) (analysis.Tokenizer, error) + func (c *Cache) FragmentFormatterNamed(name string) (highlight.FragmentFormatter, error) + func (c *Cache) FragmenterNamed(name string) (highlight.Fragmenter, error) + func (c *Cache) HighlighterNamed(name string) (highlight.Highlighter, error) + func (c *Cache) TokenFilterNamed(name string) (analysis.TokenFilter, error) + func (c *Cache) TokenMapNamed(name string) (analysis.TokenMap, error) + func (c *Cache) TokenizerNamed(name string) (analysis.Tokenizer, error) + type CacheBuild func(name string, config map[string]interface{}, cache *Cache) (interface{}, error) + type CharFilterCache struct + func NewCharFilterCache() *CharFilterCache + func (c *CharFilterCache) CharFilterNamed(name string, cache *Cache) (analysis.CharFilter, error) + func (c *CharFilterCache) DefineCharFilter(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.CharFilter, error) + type CharFilterConstructor func(config map[string]interface{}, cache *Cache) (analysis.CharFilter, error) + type CharFilterRegistry map[string]CharFilterConstructor + type ConcurrentCache struct + func NewConcurrentCache() *ConcurrentCache + func (c *ConcurrentCache) DefineItem(name string, typ string, config map[string]interface{}, cache *Cache, ...) (interface{}, error) + func (c *ConcurrentCache) ItemNamed(name string, cache *Cache, build CacheBuild) (interface{}, error) + type DateTimeParserCache struct + func NewDateTimeParserCache() *DateTimeParserCache + func (c *DateTimeParserCache) DateTimeParserNamed(name string, cache *Cache) (analysis.DateTimeParser, error) + func (c *DateTimeParserCache) DefineDateTimeParser(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.DateTimeParser, error) + type DateTimeParserConstructor func(config map[string]interface{}, cache *Cache) (analysis.DateTimeParser, error) + type DateTimeParserRegistry map[string]DateTimeParserConstructor + type FragmentFormatterCache struct + func NewFragmentFormatterCache() *FragmentFormatterCache + func (c *FragmentFormatterCache) DefineFragmentFormatter(name string, typ string, config map[string]interface{}, cache *Cache) (highlight.FragmentFormatter, error) + func (c *FragmentFormatterCache) FragmentFormatterNamed(name string, cache *Cache) (highlight.FragmentFormatter, error) + type FragmentFormatterConstructor func(config map[string]interface{}, cache *Cache) (highlight.FragmentFormatter, error) + type FragmentFormatterRegistry map[string]FragmentFormatterConstructor + type FragmenterCache struct + func NewFragmenterCache() *FragmenterCache + func (c *FragmenterCache) DefineFragmenter(name string, typ string, config map[string]interface{}, cache *Cache) (highlight.Fragmenter, error) + func (c *FragmenterCache) FragmenterNamed(name string, cache *Cache) (highlight.Fragmenter, error) + type FragmenterConstructor func(config map[string]interface{}, cache *Cache) (highlight.Fragmenter, error) + type FragmenterRegistry map[string]FragmenterConstructor + type HighlighterCache struct + func NewHighlighterCache() *HighlighterCache + func (c *HighlighterCache) DefineHighlighter(name string, typ string, config map[string]interface{}, cache *Cache) (highlight.Highlighter, error) + func (c *HighlighterCache) HighlighterNamed(name string, cache *Cache) (highlight.Highlighter, error) + type HighlighterConstructor func(config map[string]interface{}, cache *Cache) (highlight.Highlighter, error) + type HighlighterRegistry map[string]HighlighterConstructor + type IndexTypeConstructor func(storeName string, storeConfig map[string]interface{}, ...) (index.Index, error) + func IndexTypeConstructorByName(name string) IndexTypeConstructor + type IndexTypeRegistry map[string]IndexTypeConstructor + type KVStoreConstructor func(mo store.MergeOperator, config map[string]interface{}) (store.KVStore, error) + func KVStoreConstructorByName(name string) KVStoreConstructor + type KVStoreRegistry map[string]KVStoreConstructor + type TokenFilterCache struct + func NewTokenFilterCache() *TokenFilterCache + func (c *TokenFilterCache) DefineTokenFilter(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.TokenFilter, error) + func (c *TokenFilterCache) TokenFilterNamed(name string, cache *Cache) (analysis.TokenFilter, error) + type TokenFilterConstructor func(config map[string]interface{}, cache *Cache) (analysis.TokenFilter, error) + type TokenFilterRegistry map[string]TokenFilterConstructor + type TokenMapCache struct + func NewTokenMapCache() *TokenMapCache + func (c *TokenMapCache) DefineTokenMap(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.TokenMap, error) + func (c *TokenMapCache) TokenMapNamed(name string, cache *Cache) (analysis.TokenMap, error) + type TokenMapConstructor func(config map[string]interface{}, cache *Cache) (analysis.TokenMap, error) + type TokenMapRegistry map[string]TokenMapConstructor + type TokenizerCache struct + func NewTokenizerCache() *TokenizerCache + func (c *TokenizerCache) DefineTokenizer(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.Tokenizer, error) + func (c *TokenizerCache) TokenizerNamed(name string, cache *Cache) (analysis.Tokenizer, error) + type TokenizerConstructor func(config map[string]interface{}, cache *Cache) (analysis.Tokenizer, error) + type TokenizerRegistry map[string]TokenizerConstructor