Documentation
¶
Index ¶
- func RemoveNumericPaddedTerms(sourceValues [][]byte) [][]byte
- type Aggregation
- type Aggregations
- type Bucket
- func (b *Bucket) Aggregation(name string) Calculator
- func (b *Bucket) Aggregations() map[string]Calculator
- func (b *Bucket) BoundOnly() bool
- func (b *Bucket) Buckets(name string) []*Bucket
- func (b *Bucket) Consume(d *DocumentMatch)
- func (b *Bucket) ConsumeScore(score float64, n int)
- 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
- func (b *Bucket) ScoreOnly() bool
- type BucketCalculator
- type Calculator
- type Collectible
- type Collector
- type CompositeScorer
- type ConstantGeoPointSource
- type ConstantTextValueSource
- type Context
- type DateValueSource
- type DateValuesSource
- type DocumentMatch
- func (dm *DocumentMatch) Complete(prealloc []Location) []Location
- func (dm *DocumentMatch) DocNumber(ctx *Context, fields []string, field string) (value int64, ok bool, err error)
- func (dm *DocumentMatch) DocNumbers(field string, buf []int64) (rv []int64, ok bool)
- 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
- type DocumentMatchIterator
- type DocumentMatchPool
- type DocumentMatchPoolTooSmall
- type DocumentValueReadable
- type DurationCalculator
- type Explanation
- type FieldFragmentMap
- type 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) NumericField() string
- func (f FieldSource) Value(match *DocumentMatch) []byte
- func (f FieldSource) Values(match *DocumentMatch) [][]byte
- type FieldTermLocation
- type FieldTermLocationMap
- type FilteringTextSource
- type GeoPointValueSource
- type GeoPointValuesSource
- type Location
- type Locations
- type MatchReader
- type MetricCalculator
- type MissingDateSource
- type MissingGeoPointSource
- type MissingNumericSource
- type MissingTextValueSource
- type NumericFieldSource
- type NumericValueSource
- type NumericValuesSource
- type 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 Reader
- type ScoreCalculator
- type ScoreSkipper
- type ScoreSource
- func (n *ScoreSource) AppendValue(d *DocumentMatch, buf []byte) []byte
- 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) Values(d *DocumentMatch) [][]byte
- type Scorer
- type Searcher
- type SearcherOptions
- type Similarity
- type Sort
- type SortOrder
- func (o SortOrder) Compare(i, j *DocumentMatch) int
- func (o SortOrder) Complete(match *DocumentMatch)
- func (o SortOrder) Compute(match *DocumentMatch)
- func (o SortOrder) Copy() SortOrder
- func (o SortOrder) DecodeScore(match *DocumentMatch)
- func (o SortOrder) Fields() (fields []string)
- func (o SortOrder) NumericFirst() (field string, desc, ok bool)
- func (o SortOrder) Reverse()
- func (o SortOrder) ScoreDescOnly() bool
- type SortValue
- type StoredFieldVisitable
- type TermLocationMap
- type TextValueAppender
- type TextValueSource
- type TextValuesSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Aggregation ¶
type Aggregation interface {
Fields() []string
Calculator() Calculator
}
type Aggregations ¶
type Aggregations map[string]Aggregation
func (Aggregations) Add ¶
func (a Aggregations) Add(name string, aggregation Aggregation)
func (Aggregations) Fields ¶
func (a Aggregations) Fields() []string
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
func (*Bucket) Aggregation ¶
func (b *Bucket) Aggregation(name string) Calculator
func (*Bucket) Aggregations ¶
func (b *Bucket) Aggregations() map[string]Calculator
func (*Bucket) BoundOnly ¶ added in v1.60.0
BoundOnly reports whether every aggregation accepts hits known only by an upper bound on their score; see ScoreCalculator.BoundOnly.
func (*Bucket) Consume ¶
func (b *Bucket) Consume(d *DocumentMatch)
func (*Bucket) ConsumeScore ¶ added in v1.60.0
ConsumeScore aggregates n hits known only by their shared score; see ScoreOnly.
type BucketCalculator ¶
type BucketCalculator interface {
Calculator
Buckets() []*Bucket
}
type Calculator ¶
type Calculator interface {
Consume(*DocumentMatch)
Finish()
Merge(Calculator)
}
type Collectible ¶
type Collectible interface {
Next(ctx *Context) (*DocumentMatch, error)
DocumentMatchPoolSize() int
Close() error
}
type Collector ¶
type Collector interface {
Collect(context.Context, Aggregations, Collectible) (DocumentMatchIterator, error)
Size() int
BackingSize() int
}
type CompositeScorer ¶
type CompositeScorer interface {
ScoreComposite(constituents []*DocumentMatch) float64
ExplainComposite(constituents []*DocumentMatch) *Explanation
}
type ConstantGeoPointSource ¶
func NewConstantGeoPointSource ¶
func NewConstantGeoPointSource(p geo.Point) *ConstantGeoPointSource
func (*ConstantGeoPointSource) Fields ¶
func (p *ConstantGeoPointSource) Fields() []string
func (*ConstantGeoPointSource) GeoPoint ¶
func (p *ConstantGeoPointSource) GeoPoint(_ *DocumentMatch) *geo.Point
type ConstantTextValueSource ¶
type ConstantTextValueSource []byte
func (ConstantTextValueSource) Fields ¶
func (c ConstantTextValueSource) Fields() []string
func (ConstantTextValueSource) Value ¶
func (c ConstantTextValueSource) Value(_ *DocumentMatch) []byte
type Context ¶
type Context struct {
DocumentMatchPool *DocumentMatchPool
// Ctx is the caller's cancellation context; collectors set it from Collect.
Ctx context.Context
// SkipBlocks lets a ScoreSkipper pass over postings blocks whose score
// bound is at or below the floor, reporting them to skipped with the
// floor as their score; set when the aggregations allow it (see
// Bucket.BoundOnly).
SkipBlocks bool
// contains filtered or unexported fields
}
Context represents the context around a single search
func NewSearchContext ¶
func (*Context) DocValueReaderForReader ¶
func (sc *Context) DocValueReaderForReader(r DocumentValueReadable, fields []string) (segment.DocumentValueReader, error)
type DateValueSource ¶
type DateValueSource interface {
Fields() []string
Date(match *DocumentMatch) time.Time
}
type DateValuesSource ¶
type DateValuesSource interface {
Fields() []string
Dates(match *DocumentMatch) []time.Time
}
type DocumentMatch ¶
type DocumentMatch struct {
Number uint64
Score float64
Explanation *Explanation
Locations FieldTermLocationMap
SortValue [][]byte
// used to maintain natural index order
HitNumber int
// used to temporarily hold field term location information during
// search processing in an efficient, recycle-friendly manner, to
// be later incorporated into the Locations map when search
// results are completed
FieldTermLocations []FieldTermLocation
// contains filtered or unexported fields
}
func (*DocumentMatch) Complete ¶
func (dm *DocumentMatch) Complete(prealloc []Location) []Location
Complete performs final preparation & transformation of the DocumentMatch at the end of search processing, also allowing the caller to provide an optional preallocated locations slice
func (*DocumentMatch) DocNumber ¶ added in v1.71.0
func (dm *DocumentMatch) DocNumber(ctx *Context, fields []string, field string) (value int64, ok bool, err error)
DocNumber reads the int64 doc value of field for dm without loading its document values; fields are the fields the context's readers were opened with. ok is false unless field is a numeric column holding exactly one value and no terms for dm.
func (*DocumentMatch) DocNumbers ¶ added in v1.30.0
func (dm *DocumentMatch) DocNumbers(field string, buf []int64) (rv []int64, ok bool)
DocNumbers appends the typed int64 doc values of field to buf; ok is false when the field is not stored as a numeric column for this match.
func (*DocumentMatch) DocValues ¶
func (dm *DocumentMatch) DocValues(field string) [][]byte
func (*DocumentMatch) LoadDocumentValues ¶
func (dm *DocumentMatch) LoadDocumentValues(ctx *Context, fields []string) error
func (*DocumentMatch) Reset ¶
func (dm *DocumentMatch) Reset() *DocumentMatch
Reset allows an already allocated DocumentMatch to be reused. It is called once per pooled candidate, so it zeroes the per-hit fields in place and keeps every buffer and the bound visitors rather than rebuilding the struct; `*dm = DocumentMatch{}` plus save/restore cost ~4x as much here.
func (*DocumentMatch) SetReader ¶
func (dm *DocumentMatch) SetReader(r MatchReader)
func (*DocumentMatch) Size ¶
func (dm *DocumentMatch) Size() int
func (*DocumentMatch) String ¶
func (dm *DocumentMatch) String() string
func (*DocumentMatch) VisitStoredFields ¶
func (dm *DocumentMatch) VisitStoredFields(visitor segment.StoredFieldVisitor) error
type DocumentMatchCollection ¶
type DocumentMatchCollection []*DocumentMatch
func (DocumentMatchCollection) Len ¶
func (c DocumentMatchCollection) Len() int
func (DocumentMatchCollection) Less ¶
func (c DocumentMatchCollection) Less(i, j int) bool
func (DocumentMatchCollection) Swap ¶
func (c DocumentMatchCollection) Swap(i, j int)
type DocumentMatchIterator ¶
type DocumentMatchIterator interface {
Next() (*DocumentMatch, error)
Aggregations() *Bucket
}
type DocumentMatchPool ¶
type DocumentMatchPool struct {
TooSmall DocumentMatchPoolTooSmall
// contains filtered or unexported fields
}
DocumentMatchPool manages use/re-use of DocumentMatch instances it pre-allocates space from a single large block with the expected number of instances. It is not thread-safe as currently all aspects of search take place in a single goroutine.
func NewDocumentMatchPool ¶
func NewDocumentMatchPool(size, sortSize int) *DocumentMatchPool
NewDocumentMatchPool will build a DocumentMatchPool with memory pre-allocated to accommodate the requested number of DocumentMatch instances
func (*DocumentMatchPool) Get ¶
func (p *DocumentMatchPool) Get() *DocumentMatch
Get returns an available DocumentMatch from the pool if the pool was not allocated with sufficient size, an allocation will occur to satisfy this request. As a side-effect this will grow the size of the pool.
func (*DocumentMatchPool) Put ¶
func (p *DocumentMatchPool) Put(d *DocumentMatch)
Put returns a DocumentMatch to the pool
type DocumentMatchPoolTooSmall ¶
type DocumentMatchPoolTooSmall func(p *DocumentMatchPool) *DocumentMatch
DocumentMatchPoolTooSmall is a callback function that can be executed when the DocumentMatchPool does not have sufficient capacity By default we just perform just-in-time allocation, but you could log a message, or panic, etc.
type DocumentValueReadable ¶
type DocumentValueReadable interface {
// DocumentValueReader provides a way to find all of the document
// values stored in the specified fields. The returned
// DocumentValueReader provides a means to visit specific document
// numbers.
DocumentValueReader(fields []string) (segment.DocumentValueReader, error)
}
type DurationCalculator ¶
type DurationCalculator interface {
Calculator
Duration() time.Duration
}
type Explanation ¶
type Explanation struct {
Value float64 `json:"value"`
Message string `json:"message"`
Children []*Explanation `json:"children,omitempty"`
}
func NewExplanation ¶
func NewExplanation(value float64, msg string, children ...*Explanation) *Explanation
func (*Explanation) Size ¶
func (e *Explanation) Size() int
func (*Explanation) String ¶
func (e *Explanation) String() string
type FieldFragmentMap ¶
type FieldSource ¶
type FieldSource string
func Field ¶
func Field(field string) FieldSource
func (FieldSource) Date ¶
func (f FieldSource) Date(match *DocumentMatch) time.Time
func (FieldSource) Dates ¶
func (f FieldSource) Dates(match *DocumentMatch) []time.Time
func (FieldSource) Fields ¶
func (f FieldSource) Fields() []string
func (FieldSource) GeoPoint ¶
func (f FieldSource) GeoPoint(match *DocumentMatch) *geo.Point
func (FieldSource) GeoPoints ¶
func (f FieldSource) GeoPoints(match *DocumentMatch) []*geo.Point
func (FieldSource) Number ¶
func (f FieldSource) Number(match *DocumentMatch) float64
func (FieldSource) Numbers ¶
func (f FieldSource) Numbers(match *DocumentMatch) []float64
func (FieldSource) NumericField ¶ added in v1.71.0
func (f FieldSource) NumericField() string
NumericField implements NumericFieldSource.
func (FieldSource) Value ¶
func (f FieldSource) Value(match *DocumentMatch) []byte
func (FieldSource) Values ¶
func (f FieldSource) Values(match *DocumentMatch) [][]byte
type FieldTermLocation ¶
func MergeFieldTermLocations ¶
func MergeFieldTermLocations(dest []FieldTermLocation, matches []*DocumentMatch) []FieldTermLocation
type FieldTermLocationMap ¶
type FieldTermLocationMap map[string]TermLocationMap
func MergeLocations ¶
func MergeLocations(locations []FieldTermLocationMap) FieldTermLocationMap
type FilteringTextSource ¶
type FilteringTextSource struct {
// contains filtered or unexported fields
}
func FilterText ¶
func FilterText(source TextValuesSource, filter func([]byte) bool) *FilteringTextSource
func (*FilteringTextSource) Fields ¶
func (f *FilteringTextSource) Fields() []string
func (*FilteringTextSource) Values ¶
func (f *FilteringTextSource) Values(match *DocumentMatch) [][]byte
type GeoPointValueSource ¶
type GeoPointValueSource interface {
Fields() []string
GeoPoint(match *DocumentMatch) *geo.Point
}
type GeoPointValuesSource ¶
type GeoPointValuesSource interface {
Fields() []string
GeoPoints(match *DocumentMatch) []*geo.Point
}
type MatchReader ¶
type MatchReader interface {
DocumentValueReadable
StoredFieldVisitable
}
type MetricCalculator ¶
type MetricCalculator interface {
Calculator
Value() float64
}
type MissingDateSource ¶
type MissingDateSource struct {
// contains filtered or unexported fields
}
func MissingDate ¶
func MissingDate(primary, replacement DateValuesSource) *MissingDateSource
func (*MissingDateSource) Fields ¶
func (f *MissingDateSource) Fields() []string
func (*MissingDateSource) Numbers ¶
func (f *MissingDateSource) Numbers(match *DocumentMatch) []time.Time
type MissingGeoPointSource ¶
type MissingGeoPointSource struct {
// contains filtered or unexported fields
}
func MissingGeoPoints ¶
func MissingGeoPoints(primary, replacement GeoPointValuesSource) *MissingGeoPointSource
func (*MissingGeoPointSource) Fields ¶
func (f *MissingGeoPointSource) Fields() []string
func (*MissingGeoPointSource) GeoPoints ¶
func (f *MissingGeoPointSource) GeoPoints(match *DocumentMatch) []*geo.Point
type MissingNumericSource ¶
type MissingNumericSource struct {
// contains filtered or unexported fields
}
func MissingNumeric ¶
func MissingNumeric(primary, replacement NumericValuesSource) *MissingNumericSource
func (*MissingNumericSource) Fields ¶
func (f *MissingNumericSource) Fields() []string
func (*MissingNumericSource) Numbers ¶
func (f *MissingNumericSource) Numbers(match *DocumentMatch) []float64
type MissingTextValueSource ¶
type MissingTextValueSource struct {
// contains filtered or unexported fields
}
func MissingTextValue ¶
func MissingTextValue(primary, replacement TextValueSource) *MissingTextValueSource
func (*MissingTextValueSource) AppendValue ¶ added in v1.21.0
func (f *MissingTextValueSource) AppendValue(match *DocumentMatch, buf []byte) []byte
func (*MissingTextValueSource) Fields ¶
func (f *MissingTextValueSource) Fields() []string
func (*MissingTextValueSource) Value ¶
func (f *MissingTextValueSource) Value(match *DocumentMatch) []byte
type NumericFieldSource ¶ added in v1.71.0
type NumericFieldSource interface {
NumericField() string
}
NumericFieldSource is a sort source whose value, for a document with exactly one int64 doc value in NumericField, is that value prefix-coded at shift 0. Collectors use it to reject hits by their typed value.
type NumericValueSource ¶
type NumericValueSource interface {
Fields() []string
Number(match *DocumentMatch) float64
}
type NumericValuesSource ¶
type NumericValuesSource interface {
Fields() []string
Numbers(match *DocumentMatch) []float64
}
type PointDistanceSource ¶
type PointDistanceSource struct {
// contains filtered or unexported fields
}
func NewGeoPointDistanceSource ¶
func NewGeoPointDistanceSource(a, b GeoPointValueSource, unit geo.DistanceUnit) *PointDistanceSource
func (PointDistanceSource) Fields ¶
func (p PointDistanceSource) Fields() []string
func (PointDistanceSource) Number ¶
func (p PointDistanceSource) Number(match *DocumentMatch) float64
func (PointDistanceSource) Numbers ¶
func (p PointDistanceSource) Numbers(match *DocumentMatch) []float64
func (PointDistanceSource) Value ¶
func (p PointDistanceSource) Value(match *DocumentMatch) []byte
func (PointDistanceSource) Values ¶
func (p PointDistanceSource) Values(match *DocumentMatch) [][]byte
type Reader ¶
type Reader interface {
DocumentValueReadable
StoredFieldVisitable
CollectionStats(field string) (segment.CollectionStats, error)
// DictionaryLookup provides a way to quickly determine if a term is
// in the dictionary for the specified field.
DictionaryLookup(field string) (segment.DictionaryLookup, error)
// DictionaryIterator provides a way to explore the terms used in the
// specified field. You can optionally filter these terms
// by the provided Automaton, or start/end terms.
DictionaryIterator(field string, automaton segment.Automaton, start,
end []byte) (segment.DictionaryIterator, error)
// PostingsIterator provides a way to find information about all documents
// that use the specified term in the specified field.
PostingsIterator(term []byte, field string, includeFreq, includeNorm,
includeTermVectors bool) (segment.PostingsIterator, error)
// Close releases all resources associated with this Reader
Close() error
}
type ScoreCalculator ¶ added in v1.60.0
type ScoreCalculator interface {
Calculator
// ScoreOnly reports whether ConsumeScore is equivalent to Consume.
ScoreOnly() bool
// ConsumeScore consumes n hits that all scored score.
ConsumeScore(score float64, n int)
// BoundOnly reports whether ConsumeScore(bound, n) is exact for n hits
// whose scores are only known to be at most bound, given a hit scoring
// at least bound was consumed before.
BoundOnly() bool
}
ScoreCalculator is a Calculator that can be fed only a hit's score, for hits that were never built into a DocumentMatch.
type ScoreSkipper ¶ added in v1.60.0
type ScoreSkipper interface {
// NextAbove returns the next hit whose score sorts above floor (as
// numeric.Float64ToInt64 orders scores). Hits at or below floor are
// passed to skipped instead, in index order, as n consecutive hits
// sharing score; returning false from skipped stops the search and
// NextAbove returns nil. When ctx.SkipBlocks is set, skipped hits may
// be reported with floor, an upper bound, instead of their own score.
NextAbove(ctx *Context, floor float64, skipped func(score float64, n int) bool) (*DocumentMatch, error)
}
ScoreSkipper is implemented by searchers that can score a hit without building a DocumentMatch, so a top-N collector only materializes hits that can still enter its results.
type ScoreSource ¶
type ScoreSource struct{}
func DocumentScore ¶
func DocumentScore() *ScoreSource
func (*ScoreSource) AppendValue ¶ added in v1.21.0
func (n *ScoreSource) AppendValue(d *DocumentMatch, buf []byte) []byte
func (*ScoreSource) Fields ¶
func (n *ScoreSource) Fields() []string
func (*ScoreSource) Number ¶
func (n *ScoreSource) Number(d *DocumentMatch) float64
func (*ScoreSource) Numbers ¶
func (n *ScoreSource) Numbers(d *DocumentMatch) []float64
func (*ScoreSource) Value ¶
func (n *ScoreSource) Value(d *DocumentMatch) []byte
func (*ScoreSource) Values ¶
func (n *ScoreSource) Values(d *DocumentMatch) [][]byte
type SearcherOptions ¶
type Similarity ¶
type Sort ¶
type Sort struct {
// contains filtered or unexported fields
}
func ParseSearchSortString ¶
func SortBy ¶
func SortBy(source TextValueSource) *Sort
func (*Sort) MissingFirst ¶
func (*Sort) Value ¶
func (s *Sort) Value(match *DocumentMatch) []byte
type SortOrder ¶
type SortOrder []*Sort
func ParseSortOrderStrings ¶
func (SortOrder) Compare ¶
func (o SortOrder) Compare(i, j *DocumentMatch) int
func (SortOrder) Complete ¶ added in v1.23.0
func (o SortOrder) Complete(match *DocumentMatch)
Complete encodes the score sort keys Compute deferred, so a returned hit's SortValue is a valid search-after key.
func (SortOrder) Compute ¶
func (o SortOrder) Compute(match *DocumentMatch)
Compute fills match.SortValue, reusing the byte buffers a pooled DocumentMatch already owns from a previous use so steady-state is allocation free. Score sorts are compared on DocumentMatch.Score, so their key is left empty until Complete encodes it for the final hits.
func (SortOrder) DecodeScore ¶ added in v1.23.0
func (o SortOrder) DecodeScore(match *DocumentMatch)
DecodeScore restores match.Score from the prefix-coded key of the first score sort, so a DocumentMatch built from a search-after key compares like a live hit. Keys that are not a full shift-0 encoding (as ScoreSource writes) leave Score at 0.
func (SortOrder) NumericFirst ¶ added in v1.71.0
NumericFirst returns the field and direction of the first sort when its key is the prefix-coded int64 doc value of field (see NumericFieldSource).
func (SortOrder) ScoreDescOnly ¶ added in v1.60.0
ScoreDescOnly reports whether o orders by descending score alone, the default relevance order.
type StoredFieldVisitable ¶
type StoredFieldVisitable interface {
// VisitStoredFields will call the visitor for each stored field
// of the specified document number.
VisitStoredFields(number uint64, visitor segment.StoredFieldVisitor) error
}
type TermLocationMap ¶
func MergeTermLocationMaps ¶
func MergeTermLocationMaps(rv, other TermLocationMap) TermLocationMap
func (TermLocationMap) AddLocation ¶
func (t TermLocationMap) AddLocation(term string, location *Location)
type TextValueAppender ¶ added in v1.21.0
type TextValueAppender interface {
AppendValue(match *DocumentMatch, buf []byte) []byte
}
TextValueAppender is optionally implemented by a TextValueSource that can write its value into buf (which may be reused) instead of allocating.
type TextValueSource ¶
type TextValueSource interface {
Fields() []string
Value(match *DocumentMatch) []byte
}
type TextValuesSource ¶
type TextValuesSource interface {
Fields() []string
Values(match *DocumentMatch) [][]byte
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package knn adapts exact and approximate top-k vector search to the search.Searcher interface so it composes with boolean, sort, collector and aggregation code.
|
Package knn adapts exact and approximate top-k vector search to the search.Searcher interface so it composes with boolean, sort, collector and aggregation code. |