getComparator

open fun getComparator(numHits: Int, pruning: Pruning): FieldComparator<*>

Returns the FieldComparator to use for sorting.

Return

FieldComparator to use when sorting

Parameters

numHits

number of top hits the queue will store

pruning

controls how can the comparator to skip documents via