Versions in this module Expand all Collapse all v0 v0.2.0 Apr 8, 2016 v0.1.0 Apr 8, 2016 Changes in this version + func LevenshteinDistance(a, b *string) int + func LevenshteinDistanceMax(a, b *string, max int) (int, bool) + type Collector interface + Collect func(ctx context.Context, searcher Searcher) error + FacetResults func() FacetResults + MaxScore func() float64 + Results func() DocumentMatchCollection + SetFacetsBuilder func(facetsBuilder *FacetsBuilder) + Took func() time.Duration + Total func() uint64 + type DateRangeFacet struct + Count int + End *string + Name string + Start *string + func (drf *DateRangeFacet) Same(other *DateRangeFacet) bool + type DateRangeFacets []*DateRangeFacet + func (drf DateRangeFacets) Add(dateRangeFacet *DateRangeFacet) DateRangeFacets + func (drf DateRangeFacets) Len() int + func (drf DateRangeFacets) Less(i, j int) bool + func (drf DateRangeFacets) Swap(i, j int) + type DocumentMatch struct + Expl *Explanation + Fields map[string]interface{} + Fragments FieldFragmentMap + ID string + Index string + Locations FieldTermLocationMap + Score float64 + func (dm *DocumentMatch) AddFieldValue(name string, value interface{}) + type DocumentMatchCollection []*DocumentMatch + func (c DocumentMatchCollection) Len() int + func (c DocumentMatchCollection) Less(i, j int) bool + func (c DocumentMatchCollection) Swap(i, j int) + type Explanation struct + Children []*Explanation + Message string + Value float64 + func (expl *Explanation) String() string + type FacetBuilder interface + Result func() *FacetResult + Update func(index.FieldTerms) + type FacetResult struct + DateRanges DateRangeFacets + Field string + Missing int + NumericRanges NumericRangeFacets + Other int + Terms TermFacets + Total int + func (fr *FacetResult) Fixup(size int) + func (fr *FacetResult) Merge(other *FacetResult) + type FacetResults map[string]*FacetResult + func (fr FacetResults) Fixup(name string, size int) + func (fr FacetResults) Merge(other FacetResults) + type FacetsBuilder struct + func NewFacetsBuilder(indexReader index.IndexReader) *FacetsBuilder + func (fb *FacetsBuilder) Add(name string, facetBuilder FacetBuilder) + func (fb *FacetsBuilder) Results() FacetResults + func (fb *FacetsBuilder) Update(docMatch *DocumentMatch) error + type FieldFragmentMap map[string][]string + type FieldTermLocationMap map[string]TermLocationMap + func MergeLocations(locations []FieldTermLocationMap) FieldTermLocationMap + type Location struct + ArrayPositions []float64 + End float64 + Pos float64 + Start float64 + func (l *Location) SameArrayElement(other *Location) bool + type Locations []*Location + type NumericRangeFacet struct + Count int + Max *float64 + Min *float64 + Name string + type NumericRangeFacets []*NumericRangeFacet + func (nrf NumericRangeFacets) Add(numericRangeFacet *NumericRangeFacet) NumericRangeFacets + func (nrf NumericRangeFacets) Len() int + func (nrf NumericRangeFacets) Less(i, j int) bool + func (nrf NumericRangeFacets) Swap(i, j int) + type Searcher interface + Advance func(ID string) (*DocumentMatch, error) + Close func() error + Count func() uint64 + Min func() int + Next func() (*DocumentMatch, error) + SetQueryNorm func(float64) + Weight func() float64 + type TermFacet struct + Count int + Term string + type TermFacets []*TermFacet + func (tf TermFacets) Add(termFacet *TermFacet) TermFacets + func (tf TermFacets) Len() int + func (tf TermFacets) Less(i, j int) bool + func (tf TermFacets) Swap(i, j int) + type TermLocationMap map[string]Locations + func MergeTermLocationMaps(rv, other TermLocationMap) TermLocationMap + func (t TermLocationMap) AddLocation(term string, location *Location)