Collector

interface Collector

Expert: Collectors are primarily meant to be used to gather raw results from a search, and implement sorting or custom result filtering, collation, etc.

Lucene's core collectors are derived from Collector and SimpleCollector. Likely your application can use one of these classes, or subclass TopDocsCollector, instead of implementing Collector directly:

Inheritors

Properties

Link copied to clipboard
abstract var weight: Weight?

Set the Weight that will be used to produce scorers that will feed [ ]s. This is typically useful to have access to Weight.count from .

Functions

Link copied to clipboard

Create a new collector to collect the given context.

Link copied to clipboard
abstract fun scoreMode(): ScoreMode

Indicates what features are required from the scorer.