Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FragmentFormatter ¶
type FragmentFormatter interface {
Format(f *Fragment, tlm search.TermLocationMap) string
}
type FragmentScorer ¶
type Fragmenter ¶
type Fragmenter interface {
Fragment([]byte, TermLocations) []*Fragment
}
type Highlighter ¶
type Highlighter interface { Fragmenter() Fragmenter SetFragmenter(Fragmenter) FragmentFormatter() FragmentFormatter SetFragmentFormatter(FragmentFormatter) Separator() string SetSeparator(string) BestFragmentInField(*search.DocumentMatch, *document.Document, string) string BestFragmentsInField(*search.DocumentMatch, *document.Document, string, int) []string }
type TermLocations ¶
type TermLocations []*TermLocation
func OrderTermLocations ¶
func OrderTermLocations(tlm search.TermLocationMap) TermLocations
func (TermLocations) Len ¶
func (t TermLocations) Len() int
func (TermLocations) Less ¶
func (t TermLocations) Less(i, j int) bool
func (TermLocations) Swap ¶
func (t TermLocations) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.