Versions in this module Expand all Collapse all v0 v0.6.0 Aug 10, 2026 v0.5.0 Jul 28, 2026 Changes in this version + func RemoveNumericPaddedTerms(sourceValues [][]byte) [][]byte + type Aggregation interface + Calculator func() Calculator + Fields func() []string + type Aggregations map[string]Aggregation + func (a Aggregations) Add(name string, aggregation Aggregation) + func (a Aggregations) Fields() []string + type Bucket struct + func NewBucket(name string, aggregations map[string]Aggregation) *Bucket + func (b *Bucket) Aggregation(name string) Calculator + func (b *Bucket) Aggregations() map[string]Calculator + func (b *Bucket) Buckets(name string) []*Bucket + func (b *Bucket) Consume(d *DocumentMatch) + func (b *Bucket) Count() uint64 + func (b *Bucket) Duration() time.Duration + func (b *Bucket) Finish() + func (b *Bucket) Merge(other *Bucket) + func (b *Bucket) Metric(name string) float64 + func (b *Bucket) Name() string + type BucketCalculator interface + Buckets func() []*Bucket + type Calculator interface + Consume func(*DocumentMatch) + Finish func() + Merge func(Calculator) + type Collectible interface + Close func() error + DocumentMatchPoolSize func() int + Next func(ctx *Context) (*DocumentMatch, error) + type Collector interface + BackingSize func() int + Collect func(context.Context, Aggregations, Collectible) (DocumentMatchIterator, error) + Size func() int + type CompositeScorer interface + ExplainComposite func(constituents []*DocumentMatch) *Explanation + ScoreComposite func(constituents []*DocumentMatch) float64 + type ConstantGeoPointSource geo.Point + func NewConstantGeoPointSource(p geo.Point) *ConstantGeoPointSource + func (p *ConstantGeoPointSource) Fields() []string + func (p *ConstantGeoPointSource) GeoPoint(_ *DocumentMatch) *geo.Point + type ConstantTextValueSource []byte + func (c ConstantTextValueSource) Fields() []string + func (c ConstantTextValueSource) Value(_ *DocumentMatch) []byte + type Context struct + DocumentMatchPool *DocumentMatchPool + func NewSearchContext(size, sortSize int) *Context + func (sc *Context) DocValueReaderForReader(r DocumentValueReadable, fields []string) (segment.DocumentValueReader, error) + func (sc *Context) Size() int + type DateValueSource interface + Date func(match *DocumentMatch) time.Time + Fields func() []string + type DateValuesSource interface + Dates func(match *DocumentMatch) []time.Time + Fields func() []string + type DocumentMatch struct + Explanation *Explanation + FieldTermLocations []FieldTermLocation + HitNumber int + Locations FieldTermLocationMap + Number uint64 + Score float64 + SortValue [][]byte + func (dm *DocumentMatch) Complete(prealloc []Location) []Location + func (dm *DocumentMatch) DocValues(field string) [][]byte + func (dm *DocumentMatch) LoadDocumentValues(ctx *Context, fields []string) error + func (dm *DocumentMatch) Reset() *DocumentMatch + func (dm *DocumentMatch) SetReader(r MatchReader) + func (dm *DocumentMatch) Size() int + func (dm *DocumentMatch) String() string + func (dm *DocumentMatch) VisitStoredFields(visitor segment.StoredFieldVisitor) error + type DocumentMatchCollection []*DocumentMatch + func (c DocumentMatchCollection) Len() int + func (c DocumentMatchCollection) Less(i, j int) bool + func (c DocumentMatchCollection) Swap(i, j int) + type DocumentMatchIterator interface + Aggregations func() *Bucket + Next func() (*DocumentMatch, error) + type DocumentMatchPool struct + TooSmall DocumentMatchPoolTooSmall + func NewDocumentMatchPool(size, sortSize int) *DocumentMatchPool + func (p *DocumentMatchPool) Get() *DocumentMatch + func (p *DocumentMatchPool) Put(d *DocumentMatch) + type DocumentMatchPoolTooSmall func(p *DocumentMatchPool) *DocumentMatch + type DocumentValueReadable interface + DocumentValueReader func(fields []string) (segment.DocumentValueReader, error) + type DurationCalculator interface + Duration func() time.Duration + type Explanation struct + Children []*Explanation + Message string + Value float64 + func NewExplanation(value float64, msg string, children ...*Explanation) *Explanation + func (e *Explanation) Size() int + func (e *Explanation) String() string + type FieldFragmentMap map[string][]string + type FieldSource string + func Field(field string) FieldSource + func (f FieldSource) Date(match *DocumentMatch) time.Time + func (f FieldSource) Dates(match *DocumentMatch) []time.Time + func (f FieldSource) Fields() []string + func (f FieldSource) GeoPoint(match *DocumentMatch) *geo.Point + func (f FieldSource) GeoPoints(match *DocumentMatch) []*geo.Point + func (f FieldSource) Number(match *DocumentMatch) float64 + func (f FieldSource) Numbers(match *DocumentMatch) []float64 + func (f FieldSource) Value(match *DocumentMatch) []byte + func (f FieldSource) Values(match *DocumentMatch) [][]byte + type FieldTermLocation struct + Field string + Location Location + Term string + func MergeFieldTermLocations(dest []FieldTermLocation, matches []*DocumentMatch) []FieldTermLocation + type FieldTermLocationMap map[string]TermLocationMap + func MergeLocations(locations []FieldTermLocationMap) FieldTermLocationMap + type FilteringTextSource struct + func FilterText(source TextValuesSource, filter func([]byte) bool) *FilteringTextSource + func (f *FilteringTextSource) Fields() []string + func (f *FilteringTextSource) Values(match *DocumentMatch) [][]byte + type GeoPointValueSource interface + Fields func() []string + GeoPoint func(match *DocumentMatch) *geo.Point + type GeoPointValuesSource interface + Fields func() []string + GeoPoints func(match *DocumentMatch) []*geo.Point + type Location struct + End int + Pos int + Start int + func (l *Location) Size() int + type Locations []*Location + func (p Locations) Dedupe() Locations + func (p Locations) Len() int + func (p Locations) Less(i, j int) bool + func (p Locations) Swap(i, j int) + type MatchReader interface + type MetricCalculator interface + Value func() float64 + type MissingDateSource struct + func MissingDate(primary, replacement DateValuesSource) *MissingDateSource + func (f *MissingDateSource) Fields() []string + func (f *MissingDateSource) Numbers(match *DocumentMatch) []time.Time + type MissingGeoPointSource struct + func MissingGeoPoints(primary, replacement GeoPointValuesSource) *MissingGeoPointSource + func (f *MissingGeoPointSource) Fields() []string + func (f *MissingGeoPointSource) GeoPoints(match *DocumentMatch) []*geo.Point + type MissingNumericSource struct + func MissingNumeric(primary, replacement NumericValuesSource) *MissingNumericSource + func (f *MissingNumericSource) Fields() []string + func (f *MissingNumericSource) Numbers(match *DocumentMatch) []float64 + type MissingTextValueSource struct + func MissingTextValue(primary, replacement TextValueSource) *MissingTextValueSource + func (f *MissingTextValueSource) Fields() []string + func (f *MissingTextValueSource) Value(match *DocumentMatch) []byte + func (f *MissingTextValueSource) ValuePrealloc(match *DocumentMatch, prealloc []byte) []byte + type NumericValueSource interface + Fields func() []string + Number func(match *DocumentMatch) float64 + type NumericValuesSource interface + Fields func() []string + Numbers func(match *DocumentMatch) []float64 + type PointDistanceSource struct + func NewGeoPointDistanceSource(a, b GeoPointValueSource, unit geo.DistanceUnit) *PointDistanceSource + func (p PointDistanceSource) Fields() []string + func (p PointDistanceSource) Number(match *DocumentMatch) float64 + func (p PointDistanceSource) Numbers(match *DocumentMatch) []float64 + func (p PointDistanceSource) Value(match *DocumentMatch) []byte + func (p PointDistanceSource) Values(match *DocumentMatch) [][]byte + type QueryNormSearcher interface + QueryNormWeight func() (float64, bool) + SetQueryNorm func(queryNorm float64) + type RawTopNProvider interface + RawTopN func(context.Context, *Context, int) (RawTopNResult, bool, error) + type RawTopNResult struct + Matches DocumentMatchCollection + ScoredCandidates uint64 + TotalCandidates uint64 + type Reader interface + Close func() error + CollectionStats func(field string) (segment.CollectionStats, error) + DictionaryIterator func(field string, automaton segment.Automaton, start, end []byte) (segment.DictionaryIterator, error) + DictionaryLookup func(field string) (segment.DictionaryLookup, error) + PostingsIterator func(term []byte, field string, includeFreq, includeNorm, includeTermVectors bool) (segment.PostingsIterator, error) + type ScoreSource struct + func DocumentScore() *ScoreSource + func (n *ScoreSource) Fields() []string + func (n *ScoreSource) Number(d *DocumentMatch) float64 + func (n *ScoreSource) Numbers(d *DocumentMatch) []float64 + func (n *ScoreSource) Value(d *DocumentMatch) []byte + func (n *ScoreSource) ValuePrealloc(d *DocumentMatch, prealloc []byte) []byte + func (n *ScoreSource) Values(d *DocumentMatch) [][]byte + type Scorer interface + Explain func(freq int, norm float64) *Explanation + Score func(freq int, norm float64) float64 + type Searcher interface + Advance func(ctx *Context, number uint64) (*DocumentMatch, error) + Close func() error + Count func() uint64 + DocumentMatchPoolSize func() int + Min func() int + Next func(ctx *Context) (*DocumentMatch, error) + Size func() int + type SearcherOptions struct + DefaultAnalyzer *analysis.Analyzer + DefaultSearchField string + Explain bool + IncludeTermVectors bool + Score string + SimilarityForField func(field string) Similarity + type Similarity interface + ComputeNorm func(numTerms int) float32 + Scorer func(boost float64, collectionStats segment.CollectionStats, ...) Scorer + type Sort struct + func ParseSearchSortString(input string) *Sort + func SortBy(source TextValueSource) *Sort + func (s *Sort) Desc() *Sort + func (s *Sort) Fields() []string + func (s *Sort) MissingFirst() *Sort + func (s *Sort) Value(match *DocumentMatch) []byte + type SortOrder []*Sort + func ParseSortOrderStrings(in []string) SortOrder + func (o SortOrder) Compare(i, j *DocumentMatch) int + func (o SortOrder) CompareScore(i, j *DocumentMatch) int + func (o SortOrder) Compute(match *DocumentMatch) + func (o SortOrder) Copy() SortOrder + func (o SortOrder) Fields() (fields []string) + func (o SortOrder) IsScoreDescending() bool + func (o SortOrder) Reverse() + type SortValue [][]byte + type StoredFieldVisitable interface + VisitStoredFields func(number uint64, visitor segment.StoredFieldVisitor) error + type TermLocationMap map[string]Locations + func MergeTermLocationMaps(rv, other TermLocationMap) TermLocationMap + func (t TermLocationMap) AddLocation(term string, location *Location) + type TextValueSource interface + Fields func() []string + Value func(match *DocumentMatch) []byte + type TextValuesSource interface + Fields func() []string + Values func(match *DocumentMatch) [][]byte