newComparator
abstract fun newComparator(fieldname: String, numHits: Int, pruning: Pruning, reversed: Boolean): FieldComparator<*>
Creates a comparator for the field in the given index.
Return
FieldComparator.
Parameters
fieldname
Name of the field to create comparator for.