Versions in this module Expand all Collapse all v0 v0.9.0 Apr 3, 2020 v0.8.2 Mar 25, 2020 v0.8.1 Sep 20, 2019 v0.8.0 Jul 29, 2019 v0.7.0 Feb 27, 2018 v0.6.0 Jan 5, 2018 v0.5.0 Sep 28, 2016 v0.4.0 Sep 12, 2016 v0.3.0 Jun 16, 2016 v0.2.0 Apr 8, 2016 v0.1.0 Apr 8, 2016 Changes in this version + func SameArrayPositions(fieldArrayPositions []uint64, termLocationArrayPositions []float64) bool + 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, *document.Document, string) string + BestFragmentsInField func(*search.DocumentMatch, *document.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 []float64 + 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)