Documentation ¶
Index ¶
- func AnalyzerTypesAndInstances() ([]string, []string)
- func ByteArrayConverterTypesAndInstances() ([]string, []string)
- func CharFilterTypesAndInstances() ([]string, []string)
- func DateTimeParserTypesAndInstances() ([]string, []string)
- func FragmentFormatterTypesAndInstances() ([]string, []string)
- func FragmenterTypesAndInstances() ([]string, []string)
- func HighlighterTypesAndInstances() ([]string, []string)
- func IndexTypesAndInstances() ([]string, []string)
- func KVStoreTypesAndInstances() ([]string, []string)
- func RegisterAnalyzer(name string, constructor AnalyzerConstructor)
- func RegisterByteArrayConverter(name string, constructor ByteArrayConverterConstructor)
- 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 TokenFilterTypesAndInstances() ([]string, []string)
- func TokenMapTypesAndInstances() ([]string, []string)
- func TokenizerTypesAndInstances() ([]string, []string)
- type AnalyzerCache
- type AnalyzerConstructor
- type AnalyzerRegistry
- type ByteArrayConverterConstructor
- type ByteArrayConverterRegistry
- type 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 CharFilterCache
- type CharFilterConstructor
- type CharFilterRegistry
- type DateTimeParserCache
- type DateTimeParserConstructor
- type DateTimeParserRegistry
- type FragmentFormatterCache
- type FragmentFormatterConstructor
- type FragmentFormatterRegistry
- type FragmenterCache
- type FragmenterConstructor
- type FragmenterRegistry
- type HighlighterCache
- type HighlighterConstructor
- type HighlighterRegistry
- type IndexTypeConstructor
- type IndexTypeRegistry
- type KVStoreConstructor
- type KVStoreRegistry
- type TokenFilterCache
- type TokenFilterConstructor
- type TokenFilterRegistry
- type TokenMapCache
- type TokenMapConstructor
- type TokenMapRegistry
- type TokenizerCache
- type TokenizerConstructor
- type TokenizerRegistry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexTypesAndInstances ¶
func RegisterAnalyzer ¶
func RegisterAnalyzer(name string, constructor AnalyzerConstructor)
func RegisterByteArrayConverter ¶
func RegisterByteArrayConverter(name string, constructor ByteArrayConverterConstructor)
func RegisterCharFilter ¶
func RegisterCharFilter(name string, constructor CharFilterConstructor)
func RegisterDateTimeParser ¶
func RegisterDateTimeParser(name string, constructor DateTimeParserConstructor)
func RegisterFragmentFormatter ¶
func RegisterFragmentFormatter(name string, constructor FragmentFormatterConstructor)
func RegisterFragmenter ¶
func RegisterFragmenter(name string, constructor FragmenterConstructor)
func RegisterHighlighter ¶
func RegisterHighlighter(name string, constructor HighlighterConstructor)
func RegisterIndexType ¶
func RegisterIndexType(name string, constructor IndexTypeConstructor)
func RegisterKVStore ¶
func RegisterKVStore(name string, constructor KVStoreConstructor)
func RegisterTokenFilter ¶
func RegisterTokenFilter(name string, constructor TokenFilterConstructor)
func RegisterTokenMap ¶
func RegisterTokenMap(name string, constructor TokenMapConstructor)
func RegisterTokenizer ¶
func RegisterTokenizer(name string, constructor TokenizerConstructor)
Types ¶
type AnalyzerConstructor ¶
type AnalyzerRegistry ¶
type AnalyzerRegistry map[string]AnalyzerConstructor
type ByteArrayConverterConstructor ¶
type ByteArrayConverterConstructor func(config map[string]interface{}, cache *Cache) (analysis.ByteArrayConverter, error)
func ByteArrayConverterByName ¶
func ByteArrayConverterByName(name string) ByteArrayConverterConstructor
type ByteArrayConverterRegistry ¶
type ByteArrayConverterRegistry map[string]ByteArrayConverterConstructor
type Cache ¶
type Cache struct { CharFilters CharFilterCache Tokenizers TokenizerCache TokenMaps TokenMapCache TokenFilters TokenFilterCache Analyzers AnalyzerCache DateTimeParsers DateTimeParserCache FragmentFormatters FragmentFormatterCache Fragmenters FragmenterCache Highlighters HighlighterCache }
func (*Cache) AnalyzerNamed ¶
func (*Cache) CharFilterNamed ¶
func (c *Cache) CharFilterNamed(name string) (analysis.CharFilter, error)
func (*Cache) DateTimeParserNamed ¶
func (c *Cache) DateTimeParserNamed(name string) (analysis.DateTimeParser, error)
func (*Cache) DefineAnalyzer ¶
func (*Cache) DefineCharFilter ¶
func (*Cache) DefineDateTimeParser ¶
func (*Cache) DefineFragmentFormatter ¶
func (*Cache) DefineFragmenter ¶
func (*Cache) DefineHighlighter ¶
func (*Cache) DefineTokenFilter ¶
func (*Cache) DefineTokenMap ¶
func (*Cache) DefineTokenizer ¶
func (*Cache) FragmentFormatterNamed ¶
func (c *Cache) FragmentFormatterNamed(name string) (highlight.FragmentFormatter, error)
func (*Cache) FragmenterNamed ¶
func (c *Cache) FragmenterNamed(name string) (highlight.Fragmenter, error)
func (*Cache) HighlighterNamed ¶
func (c *Cache) HighlighterNamed(name string) (highlight.Highlighter, error)
func (*Cache) TokenFilterNamed ¶
func (c *Cache) TokenFilterNamed(name string) (analysis.TokenFilter, error)
type CharFilterCache ¶
type CharFilterCache map[string]analysis.CharFilter
func (CharFilterCache) CharFilterNamed ¶
func (c CharFilterCache) CharFilterNamed(name string, cache *Cache) (analysis.CharFilter, error)
func (CharFilterCache) DefineCharFilter ¶
func (c CharFilterCache) DefineCharFilter(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.CharFilter, error)
type CharFilterConstructor ¶
type CharFilterConstructor func(config map[string]interface{}, cache *Cache) (analysis.CharFilter, error)
type CharFilterRegistry ¶
type CharFilterRegistry map[string]CharFilterConstructor
type DateTimeParserCache ¶
type DateTimeParserCache map[string]analysis.DateTimeParser
func (DateTimeParserCache) DateTimeParserNamed ¶
func (c DateTimeParserCache) DateTimeParserNamed(name string, cache *Cache) (analysis.DateTimeParser, error)
func (DateTimeParserCache) DefineDateTimeParser ¶
func (c DateTimeParserCache) DefineDateTimeParser(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.DateTimeParser, error)
type DateTimeParserConstructor ¶
type DateTimeParserConstructor func(config map[string]interface{}, cache *Cache) (analysis.DateTimeParser, error)
type DateTimeParserRegistry ¶
type DateTimeParserRegistry map[string]DateTimeParserConstructor
type FragmentFormatterCache ¶
type FragmentFormatterCache map[string]highlight.FragmentFormatter
func (FragmentFormatterCache) DefineFragmentFormatter ¶
func (c FragmentFormatterCache) DefineFragmentFormatter(name string, typ string, config map[string]interface{}, cache *Cache) (highlight.FragmentFormatter, error)
func (FragmentFormatterCache) FragmentFormatterNamed ¶
func (c FragmentFormatterCache) FragmentFormatterNamed(name string, cache *Cache) (highlight.FragmentFormatter, error)
type FragmentFormatterConstructor ¶
type FragmentFormatterConstructor func(config map[string]interface{}, cache *Cache) (highlight.FragmentFormatter, error)
type FragmentFormatterRegistry ¶
type FragmentFormatterRegistry map[string]FragmentFormatterConstructor
type FragmenterCache ¶
type FragmenterCache map[string]highlight.Fragmenter
func (FragmenterCache) DefineFragmenter ¶
func (c FragmenterCache) DefineFragmenter(name string, typ string, config map[string]interface{}, cache *Cache) (highlight.Fragmenter, error)
func (FragmenterCache) FragmenterNamed ¶
func (c FragmenterCache) FragmenterNamed(name string, cache *Cache) (highlight.Fragmenter, error)
type FragmenterConstructor ¶
type FragmenterConstructor func(config map[string]interface{}, cache *Cache) (highlight.Fragmenter, error)
type FragmenterRegistry ¶
type FragmenterRegistry map[string]FragmenterConstructor
type HighlighterCache ¶
type HighlighterCache map[string]highlight.Highlighter
func (HighlighterCache) DefineHighlighter ¶
func (c HighlighterCache) DefineHighlighter(name string, typ string, config map[string]interface{}, cache *Cache) (highlight.Highlighter, error)
func (HighlighterCache) HighlighterNamed ¶
func (c HighlighterCache) HighlighterNamed(name string, cache *Cache) (highlight.Highlighter, error)
type HighlighterConstructor ¶
type HighlighterConstructor func(config map[string]interface{}, cache *Cache) (highlight.Highlighter, error)
type HighlighterRegistry ¶
type HighlighterRegistry map[string]HighlighterConstructor
type IndexTypeConstructor ¶
func IndexTypeConstructorByName ¶
func IndexTypeConstructorByName(name string) IndexTypeConstructor
type IndexTypeRegistry ¶
type IndexTypeRegistry map[string]IndexTypeConstructor
type KVStoreConstructor ¶
func KVStoreConstructorByName ¶
func KVStoreConstructorByName(name string) KVStoreConstructor
type KVStoreRegistry ¶
type KVStoreRegistry map[string]KVStoreConstructor
type TokenFilterCache ¶
type TokenFilterCache map[string]analysis.TokenFilter
func (TokenFilterCache) DefineTokenFilter ¶
func (c TokenFilterCache) DefineTokenFilter(name string, typ string, config map[string]interface{}, cache *Cache) (analysis.TokenFilter, error)
func (TokenFilterCache) TokenFilterNamed ¶
func (c TokenFilterCache) TokenFilterNamed(name string, cache *Cache) (analysis.TokenFilter, error)
type TokenFilterConstructor ¶
type TokenFilterConstructor func(config map[string]interface{}, cache *Cache) (analysis.TokenFilter, error)
type TokenFilterRegistry ¶
type TokenFilterRegistry map[string]TokenFilterConstructor
type TokenMapConstructor ¶
type TokenMapRegistry ¶
type TokenMapRegistry map[string]TokenMapConstructor
type TokenizerCache ¶
func (TokenizerCache) DefineTokenizer ¶
func (TokenizerCache) TokenizerNamed ¶
type TokenizerConstructor ¶
type TokenizerRegistry ¶
type TokenizerRegistry map[string]TokenizerConstructor
Click to show internal directories.
Click to hide internal directories.