Versions in this module Expand all Collapse all v2 v2.4.3 Mar 29, 2024 v2.4.2 Mar 29, 2024 Changes in this version + const CheckDoneEvery + var PreAllocSizeSkipCap = 1000 + func FilterHitsBySearchAfter(hits []*search.DocumentMatch, sort search.SortOrder, after []string) []*search.DocumentMatch + func MakeTopNDocumentMatchHandler(ctx *search.SearchContext) (search.DocumentMatchHandler, bool, error) + type TopNCollector struct + func NewTopNCollector(size int, skip int, sort search.SortOrder) *TopNCollector + func NewTopNCollectorAfter(size int, sort search.SortOrder, after []string) *TopNCollector + func (hc *TopNCollector) Collect(ctx context.Context, searcher search.Searcher, reader index.IndexReader) error + func (hc *TopNCollector) FacetResults() search.FacetResults + func (hc *TopNCollector) MaxScore() float64 + func (hc *TopNCollector) Results() search.DocumentMatchCollection + func (hc *TopNCollector) SetFacetsBuilder(facetsBuilder *search.FacetsBuilder) + func (hc *TopNCollector) SetKNNHits(knnHits search.DocumentMatchCollection, ...) + func (hc *TopNCollector) Size() int + func (hc *TopNCollector) Took() time.Duration + func (hc *TopNCollector) Total() uint64