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 + type Fragment struct + ArrayPositions []uint64 + End int + Index int + Orig []byte + Score float64 + Start int + func (f *Fragment) Overlaps(other *Fragment) bool + type FragmentFormatter interface + Format func(f *Fragment, orderedTermLocations TermLocations) string + type FragmentScorer interface + Score func(f *Fragment) float64 + type Fragmenter interface + Fragment func([]byte, TermLocations) []*Fragment + type Highlighter interface + BestFragmentInField func(*search.DocumentMatch, index.Document, string) string + BestFragmentsInField func(*search.DocumentMatch, index.Document, string, int) []string + FragmentFormatter func() FragmentFormatter + Fragmenter func() Fragmenter + Separator func() string + SetFragmentFormatter func(FragmentFormatter) + SetFragmenter func(Fragmenter) + SetSeparator func(string) + type TermLocation struct + ArrayPositions search.ArrayPositions + End int + Pos int + Start int + Term string + func (tl *TermLocation) Overlaps(other *TermLocation) bool + type TermLocations []*TermLocation + func OrderTermLocations(tlm search.TermLocationMap) TermLocations + func (t TermLocations) Len() int + func (t TermLocations) Less(i, j int) bool + func (t TermLocations) MergeOverlapping() + func (t TermLocations) Swap(i, j int)