TotalHitCountCollector

Just counts the total number of hits. This is the collector behind IndexSearcher.count. When the Weight implements Weight.count, this collector will skip collecting segments.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Returns how many hits matched the search.

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.