Skip to main content

Module sink

Module sink 

Source
Expand description

Where scored records go: a top-k tracker or a plain collector.

Structs§

CollectAll
Keeps everything it is offered.
Hit
A scored record. Ordered so that a greater hit is a better one: higher score first, then lower id.
TopKSink
Keeps the k best hits (highest score, ties to the lower id).

Traits§

ScoreSink
Consumer of (id, score) pairs produced by the search loop.