Versions in this module Expand all Collapse all v0 v0.6.0 Jan 5, 2018 Changes in this version + const DefaultSeparator + const Name + func Constructor(config map[string]interface{}, cache *registry.Cache) (highlight.Highlighter, error) + type FragmentQueue []*highlight.Fragment + func (fq *FragmentQueue) Pop() interface{} + func (fq *FragmentQueue) Push(x interface{}) + func (fq FragmentQueue) Len() int + func (fq FragmentQueue) Less(i, j int) bool + func (fq FragmentQueue) Swap(i, j int) + type FragmentScorer struct + func NewFragmentScorer(tlm search.TermLocationMap) *FragmentScorer + func (s *FragmentScorer) Score(f *highlight.Fragment) + type Highlighter struct + func NewHighlighter(fragmenter highlight.Fragmenter, formatter highlight.FragmentFormatter, ...) *Highlighter + func (s *Highlighter) BestFragmentInField(dm *search.DocumentMatch, doc *document.Document, field string) string + func (s *Highlighter) BestFragmentsInField(dm *search.DocumentMatch, doc *document.Document, field string, num int) []string + func (s *Highlighter) FragmentFormatter() highlight.FragmentFormatter + func (s *Highlighter) Fragmenter() highlight.Fragmenter + func (s *Highlighter) Separator() string + func (s *Highlighter) SetFragmentFormatter(f highlight.FragmentFormatter) + func (s *Highlighter) SetFragmenter(f highlight.Fragmenter) + func (s *Highlighter) SetSeparator(sep string)