Versions in this module Expand all Collapse all v0 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)