PositiveScoresOnlyCollector

A Collector implementation which wraps another Collector and makes sure only documents with scores > 0 are collected.

Constructors

Link copied to clipboard
constructor(in: Collector)

Properties

Link copied to clipboard
open override 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
open override fun getLeafCollector(context: LeafReaderContext): LeafCollector

Create a new collector to collect the given context.

Link copied to clipboard
open override fun scoreMode(): ScoreMode

Indicates what features are required from the scorer.

Link copied to clipboard
fun set(weight: Weight)
Link copied to clipboard
open override fun toString(): String